@stratusjs/angular 0.3.7 → 0.3.9
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/package.json +1 -1
- package/src/editor/editor.component.js +3 -2
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +3 -2
- package/src/editor/link-dialog.component.css +218 -0
- package/src/editor/link-dialog.component.css.map +1 -1
- package/src/editor/link-dialog.component.html +108 -195
- package/src/editor/link-dialog.component.js +62 -17
- package/src/editor/link-dialog.component.js.map +1 -1
- package/src/editor/link-dialog.component.min.css +1 -1
- package/src/editor/link-dialog.component.min.html +1 -7
- package/src/editor/link-dialog.component.min.js +1 -1
- package/src/editor/link-dialog.component.scss +253 -0
- package/src/editor/link-dialog.component.ts +85 -24
- package/src/froala/plugins/inputButton.js.map +1 -1
- package/src/froala/plugins/inputButton.ts +170 -0
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-dialog.component.ts +5 -0
|
@@ -21,6 +21,259 @@
|
|
|
21
21
|
//background-image: url('');
|
|
22
22
|
background-size: cover;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
/* Styles for Both Selector and Content Areas */
|
|
26
|
+
.autocomplete-option {
|
|
27
|
+
.content-type {
|
|
28
|
+
margin-bottom: 2px;
|
|
29
|
+
md-icon,
|
|
30
|
+
mat-icon {
|
|
31
|
+
margin-right: 4px;
|
|
32
|
+
height: 14px;
|
|
33
|
+
width: 14px;
|
|
34
|
+
min-height: 14px;
|
|
35
|
+
min-width: 14px;
|
|
36
|
+
}
|
|
37
|
+
.content-type-name {
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
font-size: 11px;
|
|
40
|
+
text-transform: uppercase;
|
|
41
|
+
letter-spacing: 1px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.no-image-icon {
|
|
45
|
+
md-icon,
|
|
46
|
+
mat-icon {
|
|
47
|
+
height: 28px;
|
|
48
|
+
width: 28px;
|
|
49
|
+
min-height: 28px;
|
|
50
|
+
min-width: 28px;
|
|
51
|
+
svg g {
|
|
52
|
+
fill: #FFF;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.shapeholder {
|
|
57
|
+
width: 100%;
|
|
58
|
+
display: block;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.content-selector-autocomplete {
|
|
63
|
+
.column-title h3 {
|
|
64
|
+
margin: 0 0 5px;
|
|
65
|
+
font-size: 16px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/* Selector Autocomplete Options */
|
|
72
|
+
md-autocomplete,
|
|
73
|
+
.content-selector {
|
|
74
|
+
margin-top: 12px;
|
|
75
|
+
}
|
|
76
|
+
.selector-filter md-checkbox {
|
|
77
|
+
padding-right: 10px;
|
|
78
|
+
}
|
|
79
|
+
.md-autocomplete-suggestions li {
|
|
80
|
+
height: 80px;
|
|
81
|
+
}
|
|
82
|
+
.content-selector-autocomplete {
|
|
83
|
+
.autocomplete-row {
|
|
84
|
+
padding: 4px 0;
|
|
85
|
+
border-bottom: 1px solid rgba(0,0,0,.1);
|
|
86
|
+
* {
|
|
87
|
+
line-height: 1.4;
|
|
88
|
+
}
|
|
89
|
+
.column-image {
|
|
90
|
+
.image-container {
|
|
91
|
+
margin-right: 18px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
h3 {
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
}
|
|
97
|
+
.routing {
|
|
98
|
+
font-size: 13px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.content {
|
|
102
|
+
.image,
|
|
103
|
+
.column-title {
|
|
104
|
+
opacity: .3;
|
|
105
|
+
}
|
|
106
|
+
md-icon.content-icon,
|
|
107
|
+
mat-icon.content-icon {
|
|
108
|
+
z-index: 5;
|
|
109
|
+
height: 40px;
|
|
110
|
+
width: 40px;
|
|
111
|
+
min-height: 40px;
|
|
112
|
+
min-width: 40px;
|
|
113
|
+
svg {
|
|
114
|
+
filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
|
|
115
|
+
-webkit-filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
|
|
116
|
+
g {
|
|
117
|
+
fill: #FFF;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Draggable Content List */
|
|
125
|
+
|
|
126
|
+
.selector-wrapper {
|
|
127
|
+
background: rgba(255,255,255,.4);
|
|
128
|
+
margin-top: 20px;
|
|
129
|
+
padding: 40px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Based on Angular Material 8+ */
|
|
133
|
+
|
|
134
|
+
.content-list {
|
|
135
|
+
margin: 0 auto;
|
|
136
|
+
max-width: 600px;
|
|
137
|
+
min-height: 60px;
|
|
138
|
+
display: block;
|
|
139
|
+
border-radius: 4px;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
}
|
|
142
|
+
.content-box {
|
|
143
|
+
padding: 12px 16px;
|
|
144
|
+
color: rgba(0, 0, 0, 0.87);
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
background: white;
|
|
151
|
+
font-size: 14px;
|
|
152
|
+
}
|
|
153
|
+
.content-box:last-child {
|
|
154
|
+
border: none;
|
|
155
|
+
}
|
|
156
|
+
.custom-ghost-placeholder {
|
|
157
|
+
background: rgba(0,0,0,.4);
|
|
158
|
+
min-height: 60px;
|
|
159
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Content List Custom */
|
|
163
|
+
.column-image,
|
|
164
|
+
.column-title,
|
|
165
|
+
.column-action {
|
|
166
|
+
float: left;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.column-image {
|
|
170
|
+
width: 15%;
|
|
171
|
+
padding-right: 10px;
|
|
172
|
+
.image,
|
|
173
|
+
.no-image-icon {
|
|
174
|
+
margin-right: 10px;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.column-title {
|
|
178
|
+
width: 70%;
|
|
179
|
+
}
|
|
180
|
+
.column-action {
|
|
181
|
+
width: 15%;
|
|
182
|
+
> * {
|
|
183
|
+
display: inline-block;
|
|
184
|
+
vertical-align: middle;
|
|
185
|
+
margin-bottom: 2px;
|
|
186
|
+
&:last-child {
|
|
187
|
+
margin-bottom: 0;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
.content-box.cdk-drag-preview {
|
|
192
|
+
.column-image {
|
|
193
|
+
width: 15%;
|
|
194
|
+
}
|
|
195
|
+
.column-title {
|
|
196
|
+
width: 85%;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
margin: 0 auto;
|
|
201
|
+
.routing {
|
|
202
|
+
color: #333;
|
|
203
|
+
font-size: 13px;
|
|
204
|
+
}
|
|
205
|
+
.content-list {
|
|
206
|
+
.content-list-header {
|
|
207
|
+
margin-bottom: 20px;
|
|
208
|
+
padding-bottom: 20px;
|
|
209
|
+
h3,
|
|
210
|
+
.note {
|
|
211
|
+
margin: 0;
|
|
212
|
+
display: inline-block;
|
|
213
|
+
vertical-align: text-bottom;
|
|
214
|
+
line-height: 1.2;
|
|
215
|
+
}
|
|
216
|
+
.note {
|
|
217
|
+
padding-left: 10px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.content-message-box {
|
|
221
|
+
// extra information for the list messages (currently only used for an empty list)
|
|
222
|
+
}
|
|
223
|
+
.content-list-container {
|
|
224
|
+
width: 100%;
|
|
225
|
+
}
|
|
226
|
+
.content-list-row {
|
|
227
|
+
margin-bottom: 10px;
|
|
228
|
+
padding: 12px 16px;
|
|
229
|
+
background: rgba(0, 0, 0, 0.04);
|
|
230
|
+
border-radius: 2px;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
&.active {
|
|
233
|
+
// extra options for status >= 1
|
|
234
|
+
}
|
|
235
|
+
&.inactive {
|
|
236
|
+
// extra options for status < 1
|
|
237
|
+
background: #DDD;
|
|
238
|
+
}
|
|
239
|
+
&.published {
|
|
240
|
+
// extra options for status == 1
|
|
241
|
+
}
|
|
242
|
+
&.unpublished {
|
|
243
|
+
// extra options for published != 1
|
|
244
|
+
background: #DDD;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
.btn.btn-delete, .btn.btn-edit {
|
|
248
|
+
float: right;
|
|
249
|
+
width: 35px;
|
|
250
|
+
min-width: unset;
|
|
251
|
+
height: 35px;
|
|
252
|
+
font-size: 10px;
|
|
253
|
+
margin-left: 12px;
|
|
254
|
+
padding: 0;
|
|
255
|
+
background: #fff;
|
|
256
|
+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
|
|
257
|
+
&:hover {
|
|
258
|
+
background: #fff;
|
|
259
|
+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
|
|
260
|
+
}
|
|
261
|
+
svg {
|
|
262
|
+
margin: 0 auto;
|
|
263
|
+
width: 60%;
|
|
264
|
+
g {
|
|
265
|
+
fill: #222;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
.firefox .btn.btn-delete svg, .firefox .btn.btn-edit svg {
|
|
271
|
+
&,
|
|
272
|
+
g {
|
|
273
|
+
max-width: 28px;
|
|
274
|
+
max-height: 28px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
24
277
|
}
|
|
25
278
|
}
|
|
26
279
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
// ChangeDetectionStrategy,
|
|
4
4
|
ChangeDetectorRef,
|
|
5
5
|
Component,
|
|
6
|
-
Inject,
|
|
6
|
+
Inject, OnDestroy,
|
|
7
7
|
OnInit
|
|
8
8
|
} from '@angular/core'
|
|
9
9
|
import {
|
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
import {ContentEntity} from '@stratusjs/angular/data/content.interface'
|
|
62
62
|
import {IconOptions, MatIconRegistry} from '@angular/material/icon'
|
|
63
63
|
import {DomSanitizer} from '@angular/platform-browser'
|
|
64
|
+
import {Convoy} from '@stratusjs/angular/data/convoy.interface'
|
|
64
65
|
|
|
65
66
|
// Local Setup
|
|
66
67
|
const systemDir = '@stratusjs/angular'
|
|
@@ -79,7 +80,7 @@ const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`]
|
|
|
79
80
|
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
80
81
|
// changeDetection: ChangeDetectionStrategy.OnPush
|
|
81
82
|
})
|
|
82
|
-
export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
83
|
+
export class LinkDialogComponent extends ResponsiveComponent implements OnInit, OnDestroy {
|
|
83
84
|
|
|
84
85
|
// Basic Component Settings
|
|
85
86
|
title = moduleName + '_component'
|
|
@@ -93,7 +94,7 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
93
94
|
// AutoComplete Data
|
|
94
95
|
apiBase = '/Api/Content'
|
|
95
96
|
contentEntities: any[] = []
|
|
96
|
-
|
|
97
|
+
dialogContentForm: FormGroup
|
|
97
98
|
isContentLoading = true
|
|
98
99
|
lastContentQuery: string
|
|
99
100
|
|
|
@@ -112,6 +113,7 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
112
113
|
eventInsert = true
|
|
113
114
|
|
|
114
115
|
// UI Settings
|
|
116
|
+
isListView = false
|
|
115
117
|
selected: Array<number> = []
|
|
116
118
|
|
|
117
119
|
// Icon Localization
|
|
@@ -119,6 +121,11 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
119
121
|
[key: string]: string
|
|
120
122
|
} = {}
|
|
121
123
|
|
|
124
|
+
// Timing Flags
|
|
125
|
+
isInitialized = false
|
|
126
|
+
isDestroyed = false
|
|
127
|
+
isStyled = false
|
|
128
|
+
|
|
122
129
|
constructor(
|
|
123
130
|
public dialogRef: MatDialogRef<LinkDialogComponent>,
|
|
124
131
|
@Inject(MAT_DIALOG_DATA) public data: LinkDialogData,
|
|
@@ -144,6 +151,22 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
144
151
|
// TODO: Assess & Possibly Remove when the System.js ecosystem is complete
|
|
145
152
|
// Load Component CSS until System.js can import CSS properly.
|
|
146
153
|
Stratus.Internals.CssLoader(`${localDir}${parentModuleName}/${moduleName}.component${min}.css`)
|
|
154
|
+
.then(() => {
|
|
155
|
+
this.isStyled = true
|
|
156
|
+
this.refresh()
|
|
157
|
+
})
|
|
158
|
+
.catch((err: any) => {
|
|
159
|
+
console.warn('Issue detected in CSS Loader for Component:', this)
|
|
160
|
+
console.error(err)
|
|
161
|
+
this.isStyled = true
|
|
162
|
+
this.refresh()
|
|
163
|
+
})
|
|
164
|
+
|
|
165
|
+
// SVG Icons
|
|
166
|
+
_.forEach({
|
|
167
|
+
selector_delete: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,
|
|
168
|
+
selector_edit: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`
|
|
169
|
+
}, (value, key) => this.iconRegistry.addSvgIcon(key, this.sanitizer.bypassSecurityTrustResourceUrl(value)).getNamedSvgIcon(key))
|
|
147
170
|
|
|
148
171
|
// Hoist Data
|
|
149
172
|
this.model = this.data.model
|
|
@@ -156,32 +179,51 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
156
179
|
|
|
157
180
|
// TODO: Move this to its own AutoComplete Component
|
|
158
181
|
// AutoComplete Logic
|
|
159
|
-
this.
|
|
160
|
-
|
|
182
|
+
this.dialogContentForm = this.fb.group({
|
|
183
|
+
contentSelectorInput: ''
|
|
161
184
|
})
|
|
162
|
-
this.
|
|
163
|
-
.get('
|
|
185
|
+
this.dialogContentForm
|
|
186
|
+
.get('contentSelectorInput')
|
|
164
187
|
.valueChanges
|
|
165
188
|
.pipe(
|
|
166
189
|
debounceTime(300),
|
|
167
|
-
tap(() =>
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
190
|
+
tap(() => this.isContentLoading = true),
|
|
191
|
+
switchMap((value: string|ContentEntity) => {
|
|
192
|
+
if (!_.isString(value)) {
|
|
193
|
+
this.select(value)
|
|
194
|
+
return this.getQuery()
|
|
195
|
+
}
|
|
171
196
|
return this.getQuery(value)
|
|
172
197
|
}
|
|
173
198
|
)
|
|
174
199
|
)
|
|
175
200
|
.subscribe((response: HttpResponse<any>) => this.processContent(response))
|
|
176
201
|
|
|
177
|
-
//
|
|
178
|
-
this.
|
|
179
|
-
(
|
|
180
|
-
|
|
202
|
+
// Initial Call for Content
|
|
203
|
+
this.backend
|
|
204
|
+
.get(this.getQueryUrl())
|
|
205
|
+
.pipe(
|
|
206
|
+
finalize(() => this.isContentLoading = false),
|
|
207
|
+
)
|
|
208
|
+
.subscribe((response: HttpResponse<Convoy<ContentEntity>>) => this.processContent(response))
|
|
209
|
+
|
|
210
|
+
// Mark as complete
|
|
211
|
+
this.isInitialized = true
|
|
181
212
|
|
|
182
213
|
// FIXME: We have to go in this roundabout way to force changes to be detected since the
|
|
183
214
|
// Dialog Sub-Components don't seem to have the right timing for ngOnInit
|
|
184
|
-
this.refresh()
|
|
215
|
+
// this.refresh()
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
ngOnDestroy() {
|
|
219
|
+
this.isDestroyed = true
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public refresh() {
|
|
223
|
+
if (this.isDestroyed) {
|
|
224
|
+
return new Promise<void>(resolve => resolve())
|
|
225
|
+
}
|
|
226
|
+
return super.refresh()
|
|
185
227
|
}
|
|
186
228
|
|
|
187
229
|
onCancelClick(): void {
|
|
@@ -197,14 +239,8 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
197
239
|
}
|
|
198
240
|
|
|
199
241
|
getQueryUrl(query?: string): string {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if (this.pageEvent) {
|
|
203
|
-
limit = this.pageEvent.pageSize
|
|
204
|
-
paging = this.pageEvent.pageIndex + 1
|
|
205
|
-
}
|
|
206
|
-
query = (_.isString(query) && !_.isEmpty(query)) ? `"${query}"` : ''
|
|
207
|
-
return `${this.apiBase}?limit=${limit}&p=${paging}&q=${query}`
|
|
242
|
+
query = (!_.isString(query) || _.isEmpty(query)) ? '' : `"${query}"`
|
|
243
|
+
return `${this.apiBase}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&q=${query}`
|
|
208
244
|
}
|
|
209
245
|
|
|
210
246
|
getQuery(query?: string): Observable<HttpResponse<any>> {
|
|
@@ -274,6 +310,8 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
274
310
|
return
|
|
275
311
|
}
|
|
276
312
|
this.eventManager.trigger('insert', linkElement, this.editor)
|
|
313
|
+
// close dialog after inserting link
|
|
314
|
+
this.onCancelClick()
|
|
277
315
|
}
|
|
278
316
|
|
|
279
317
|
isSelected(content: ContentEntity) : boolean {
|
|
@@ -350,6 +388,29 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
350
388
|
this.iconRegistry.addSvgIcon(uid, this.sanitizer.bypassSecurityTrustResourceUrl(url), options)
|
|
351
389
|
return uid
|
|
352
390
|
}
|
|
391
|
+
|
|
392
|
+
displayContentText(content: ContentEntity) {
|
|
393
|
+
// Ensure Content is Selected before Display Text
|
|
394
|
+
if (!content) {
|
|
395
|
+
return
|
|
396
|
+
}
|
|
397
|
+
// Routing Display
|
|
398
|
+
const routing = _.get(content, 'routing[0].url')
|
|
399
|
+
const routingText = !_.isUndefined(routing) ? ` (/${routing})` : ' (No route!)'
|
|
400
|
+
// ContentId Fallback
|
|
401
|
+
const contentId = _.get(content, 'id')
|
|
402
|
+
const contentIdText = !_.isUndefined(contentId) ? `Content: ${contentId}` : null
|
|
403
|
+
// Return Version Title or Fallback Text
|
|
404
|
+
return (_.get(content, 'version.title') || contentIdText) + routingText
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
goToUrl(content: ContentEntity) {
|
|
408
|
+
if (!content || !content.contentType) {
|
|
409
|
+
console.error('unable to execute goToUrl() because a valid model content was not provided.')
|
|
410
|
+
return
|
|
411
|
+
}
|
|
412
|
+
window.open(content.contentType.editUrl + '?id=' + content.id, '_blank')
|
|
413
|
+
}
|
|
353
414
|
}
|
|
354
415
|
|
|
355
416
|
// Data Types
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["inputButton.ts"],"names":[],"mappings":";;;;;;;;;;;;;;YAaA,oBAAA,MAAa,iBAAiB;gBAY1B,YAAY,OAAY;oBANxB,UAAK,GAAG,KAAK,CAAA;oBACb,SAAI,GAAG,aAAa,CAAA;oBACpB,cAAS,GAAG,cAAc,CAAA;oBAMtB,IAAI,CAAC,GAAG,GAAG,gBAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAA;oBACtC,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;oBAElC,IAAI,CAAC,KAAK,GAAG,OAAO,IAAI,OAAO,CAAC,KAAK,CAAA;oBAGrC,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;wBACzC,OAAO,GAAG,EAAE,CAAA;qBACf;oBACD,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAA;oBACrC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAA;oBACpD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MA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,QAAQ,CAAC,GAAG,EAAE,CAAA;gBAC9C,CAAC;aA2KJ,CAAA;;QACD,CAAC","file":"inputButton.js"}
|
|
@@ -109,4 +109,174 @@ export class InputButtonPlugin implements TriggerInterface {
|
|
|
109
109
|
// FIXME: This is specific to the Froala API
|
|
110
110
|
this.snapshot = this.editor.snapshot.get()
|
|
111
111
|
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Insert link into the editor.
|
|
115
|
+
*/
|
|
116
|
+
// insertLink(href: any, text: any, attrs: any) {
|
|
117
|
+
// if (typeof attrs == 'undefined') attrs = {};
|
|
118
|
+
// if (this.editor.events.trigger('link.beforeInsert', [href, text, attrs]) === false) return false; // Get image if we have one selected.
|
|
119
|
+
//
|
|
120
|
+
// let $current_image = this.editor.image ? this.editor.image.get() : null;
|
|
121
|
+
//
|
|
122
|
+
// if (!$current_image && this.editor.el.tagName != 'A') {
|
|
123
|
+
// this.editor.selection.restore();
|
|
124
|
+
// this.editor.popups.hide('link.insert');
|
|
125
|
+
// } else if (this.editor.el.tagName == 'A') {
|
|
126
|
+
// this.editor.$el.focus();
|
|
127
|
+
// }
|
|
128
|
+
//
|
|
129
|
+
// let original_href = href; // Convert email address.
|
|
130
|
+
//
|
|
131
|
+
// if (this.editor.opts.linkConvertEmailAddress) {
|
|
132
|
+
// if (this.editor.helpers.isEmail(href) && !/^mailto:.*/i.test(href)) {
|
|
133
|
+
// href = "mailto:".concat(href);
|
|
134
|
+
// }
|
|
135
|
+
// } // Check if is local path.
|
|
136
|
+
//
|
|
137
|
+
//
|
|
138
|
+
// let local_path = /^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i; // Add autoprefix.
|
|
139
|
+
//
|
|
140
|
+
// if (this.editor.opts.linkAutoPrefix !== '' && !new RegExp('^(' + FE.LinkProtocols.join('|') + '):.', 'i').test(href) && !/^data:image.*/i.test(href) && !/^(https?:|ftps?:|file:|)\/\//i.test(href) && !local_path.test(href)) {
|
|
141
|
+
// // Do prefix only if starting character is not absolute.
|
|
142
|
+
// if (['/', '{', '[', '#', '(', '.'].indexOf((href || '')[0]) < 0) {
|
|
143
|
+
// href = this.editor.opts.linkAutoPrefix + href;
|
|
144
|
+
// }
|
|
145
|
+
// } // Sanitize the URL.
|
|
146
|
+
//
|
|
147
|
+
//
|
|
148
|
+
// href = this.editor.helpers.sanitizeURL(href); // Default attributs.
|
|
149
|
+
//
|
|
150
|
+
// if (this.editor.opts.linkAlwaysBlank) attrs.target = '_blank';
|
|
151
|
+
// if (this.editor.opts.linkAlwaysNoFollow) attrs.rel = 'nofollow';
|
|
152
|
+
//
|
|
153
|
+
// if (this.editor.helpers.isEmail(original_href)) {
|
|
154
|
+
// attrs.target = null;
|
|
155
|
+
// attrs.rel = null;
|
|
156
|
+
// } // https://github.com/froala/wysiwyg-editor/issues/1576.
|
|
157
|
+
//
|
|
158
|
+
//
|
|
159
|
+
// if (attrs.target == '_blank') {
|
|
160
|
+
// if (this.editor.opts.linkNoOpener) {
|
|
161
|
+
// if (!attrs.rel) attrs.rel = 'noopener';else attrs.rel += ' noopener';
|
|
162
|
+
// }
|
|
163
|
+
//
|
|
164
|
+
// if (this.editor.opts.linkNoReferrer) {
|
|
165
|
+
// if (!attrs.rel) attrs.rel = 'noreferrer';else attrs.rel += ' noreferrer';
|
|
166
|
+
// }
|
|
167
|
+
// } else if (attrs.target == null) {
|
|
168
|
+
// if (attrs.rel) {
|
|
169
|
+
// attrs.rel = attrs.rel.replace(/noopener/, '').replace(/noreferrer/, '');
|
|
170
|
+
// } else {
|
|
171
|
+
// attrs.rel = null;
|
|
172
|
+
// }
|
|
173
|
+
// } // Format text.
|
|
174
|
+
//
|
|
175
|
+
//
|
|
176
|
+
// text = text || '';
|
|
177
|
+
//
|
|
178
|
+
// if (href === this.editor.opts.linkAutoPrefix) {
|
|
179
|
+
// let $popup = this.editor.popups.get('link.insert');
|
|
180
|
+
// $popup.find('input[name="href"]').addClass('fr-error');
|
|
181
|
+
// this.editor.events.trigger('link.bad', [original_href]);
|
|
182
|
+
// return false;
|
|
183
|
+
// } // Check if we have selection only in one link.
|
|
184
|
+
//
|
|
185
|
+
//
|
|
186
|
+
// let link = get();
|
|
187
|
+
// let $link;
|
|
188
|
+
//
|
|
189
|
+
// if (link) {
|
|
190
|
+
// $link = $(link);
|
|
191
|
+
// $link.attr('href', href); // Change text if it is different.
|
|
192
|
+
//
|
|
193
|
+
// if (text.length > 0 && $link.text() != text && !$current_image) {
|
|
194
|
+
// let child = $link.get(0);
|
|
195
|
+
//
|
|
196
|
+
// while (child.childNodes.length === 1 && child.childNodes[0].nodeType == Node.ELEMENT_NODE) {
|
|
197
|
+
// child = child.childNodes[0];
|
|
198
|
+
// }
|
|
199
|
+
//
|
|
200
|
+
// $(child).text(text);
|
|
201
|
+
// }
|
|
202
|
+
//
|
|
203
|
+
// if (!$current_image) {
|
|
204
|
+
// $link.prepend(FE.START_MARKER).append(FE.END_MARKER);
|
|
205
|
+
// } // Set attributes.
|
|
206
|
+
// // https://github.com/froala-labs/froala-editor-js-2/issues/2023
|
|
207
|
+
//
|
|
208
|
+
//
|
|
209
|
+
// for (let prop in attrs) {
|
|
210
|
+
// if (!attrs[prop]) {
|
|
211
|
+
// $link.removeAttr(prop);
|
|
212
|
+
// } else {
|
|
213
|
+
// $link.attr(prop, attrs[prop]);
|
|
214
|
+
// }
|
|
215
|
+
// }
|
|
216
|
+
//
|
|
217
|
+
// if (!$current_image) {
|
|
218
|
+
// this.editor.selection.restore();
|
|
219
|
+
// }
|
|
220
|
+
// } else {
|
|
221
|
+
// // We don't have any image selected.
|
|
222
|
+
// if (!$current_image) {
|
|
223
|
+
// // Remove current links.
|
|
224
|
+
// this.editor.format.remove('a'); // Nothing is selected.
|
|
225
|
+
//
|
|
226
|
+
// if (this.editor.selection.isCollapsed()) {
|
|
227
|
+
// text = text.length === 0 ? original_href : text;
|
|
228
|
+
// this.editor.html.insert("<a href=\"".concat(href, "\">").concat(FE.START_MARKER).concat(text.replace(/&/g, '&').replace(/</, '<', '>', '>')).concat(FE.END_MARKER, "</a>"));
|
|
229
|
+
// this.editor.selection.restore();
|
|
230
|
+
// } else {
|
|
231
|
+
// if (text.length > 0 && text != this.editor.selection.text().replace(/\n/g, '')) {
|
|
232
|
+
// this.editor.selection.remove();
|
|
233
|
+
// this.editor.html.insert("<a href=\"".concat(href, "\">").concat(FE.START_MARKER).concat(text.replace(/&/g, '&')).concat(FE.END_MARKER, "</a>"));
|
|
234
|
+
// this.editor.selection.restore();
|
|
235
|
+
// } else {
|
|
236
|
+
// _split(); // Add link.
|
|
237
|
+
//
|
|
238
|
+
//
|
|
239
|
+
// this.editor.format.apply('a', {
|
|
240
|
+
// href: href
|
|
241
|
+
// });
|
|
242
|
+
// }
|
|
243
|
+
// }
|
|
244
|
+
// } else {
|
|
245
|
+
// // Just wrap current image with a link.
|
|
246
|
+
// $current_image.wrap("<a href=\"".concat(href, "\"></a>"));
|
|
247
|
+
//
|
|
248
|
+
// if (this.editor.image.hasCaption()) {
|
|
249
|
+
// $current_image.parent().append($current_image.parents('.fr-img-caption').find('.fr-inner'));
|
|
250
|
+
// }
|
|
251
|
+
// } // Set attributes.
|
|
252
|
+
//
|
|
253
|
+
//
|
|
254
|
+
// let links = allSelected();
|
|
255
|
+
//
|
|
256
|
+
// for (let i = 0; i < links.length; i++) {
|
|
257
|
+
// $link = $(links[i]);
|
|
258
|
+
// $link.attr(attrs);
|
|
259
|
+
// $link.removeAttr('_moz_dirty');
|
|
260
|
+
// } // Show link edit if only one link.
|
|
261
|
+
//
|
|
262
|
+
//
|
|
263
|
+
// if (links.length == 1 && this.editor.$wp && !$current_image) {
|
|
264
|
+
// $(links[0]).prepend(FE.START_MARKER).append(FE.END_MARKER);
|
|
265
|
+
// this.editor.selection.restore();
|
|
266
|
+
// }
|
|
267
|
+
// } // Hide popup and try to edit.
|
|
268
|
+
//
|
|
269
|
+
//
|
|
270
|
+
// if (!$current_image) {
|
|
271
|
+
// _edit();
|
|
272
|
+
// } else {
|
|
273
|
+
// let $pop = this.editor.popups.get('link.insert');
|
|
274
|
+
//
|
|
275
|
+
// if ($pop) {
|
|
276
|
+
// $pop.find('input:focus').blur();
|
|
277
|
+
// }
|
|
278
|
+
//
|
|
279
|
+
// this.editor.image.edit($current_image);
|
|
280
|
+
// }
|
|
281
|
+
// }
|
|
112
282
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tree-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuFM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,aAAa,CAAA;YAC1B,gBAAgB,GAAG,MAAM,CAAA;YAGzB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAA;YAU3F,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,0CAAmB;
|
|
1
|
+
{"version":3,"sources":["tree-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuFM,SAAS,GAAG,oBAAoB,CAAA;YAChC,UAAU,GAAG,aAAa,CAAA;YAC1B,gBAAgB,GAAG,MAAM,CAAA;YAGzB,GAAG,GAAG,CAAC,oBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;YAClC,QAAQ,GAAG,GAAG,iBAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,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