@stratusjs/angular 0.3.7 → 0.3.8
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 +2 -1
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +2 -1
- 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 +63 -194
- package/src/editor/link-dialog.component.js +24 -1
- 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 +29 -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
|
}
|
|
@@ -119,6 +119,9 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
119
119
|
[key: string]: string
|
|
120
120
|
} = {}
|
|
121
121
|
|
|
122
|
+
// UI Flags
|
|
123
|
+
styled = false
|
|
124
|
+
|
|
122
125
|
constructor(
|
|
123
126
|
public dialogRef: MatDialogRef<LinkDialogComponent>,
|
|
124
127
|
@Inject(MAT_DIALOG_DATA) public data: LinkDialogData,
|
|
@@ -144,6 +147,22 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
144
147
|
// TODO: Assess & Possibly Remove when the System.js ecosystem is complete
|
|
145
148
|
// Load Component CSS until System.js can import CSS properly.
|
|
146
149
|
Stratus.Internals.CssLoader(`${localDir}${parentModuleName}/${moduleName}.component${min}.css`)
|
|
150
|
+
.then(() => {
|
|
151
|
+
this.styled = true
|
|
152
|
+
this.refresh()
|
|
153
|
+
})
|
|
154
|
+
.catch((err: any) => {
|
|
155
|
+
console.warn('Issue detected in CSS Loader for Component:', this)
|
|
156
|
+
console.error(err)
|
|
157
|
+
this.styled = true
|
|
158
|
+
this.refresh()
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
// SVG Icons
|
|
162
|
+
_.forEach({
|
|
163
|
+
selector_delete: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,
|
|
164
|
+
selector_edit: `${Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`
|
|
165
|
+
}, (value, key) => this.iconRegistry.addSvgIcon(key, this.sanitizer.bypassSecurityTrustResourceUrl(value)).getNamedSvgIcon(key))
|
|
147
166
|
|
|
148
167
|
// Hoist Data
|
|
149
168
|
this.model = this.data.model
|
|
@@ -274,6 +293,8 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
274
293
|
return
|
|
275
294
|
}
|
|
276
295
|
this.eventManager.trigger('insert', linkElement, this.editor)
|
|
296
|
+
// close dialog after inserting link
|
|
297
|
+
this.onCancelClick()
|
|
277
298
|
}
|
|
278
299
|
|
|
279
300
|
isSelected(content: ContentEntity) : boolean {
|
|
@@ -350,6 +371,14 @@ export class LinkDialogComponent extends ResponsiveComponent implements OnInit {
|
|
|
350
371
|
this.iconRegistry.addSvgIcon(uid, this.sanitizer.bypassSecurityTrustResourceUrl(url), options)
|
|
351
372
|
return uid
|
|
352
373
|
}
|
|
374
|
+
|
|
375
|
+
goToUrl(content: ContentEntity) {
|
|
376
|
+
if (!content || !content.contentType) {
|
|
377
|
+
console.error('unable to execute goToUrl() because a valid model content was not provided.')
|
|
378
|
+
return
|
|
379
|
+
}
|
|
380
|
+
window.open(content.contentType.editUrl + '?id=' + content.id, '_blank')
|
|
381
|
+
}
|
|
353
382
|
}
|
|
354
383
|
|
|
355
384
|
// Data Types
|
|
@@ -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,I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B;oBACD,2BAAe,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,CAAA;oBACtC,OAAO,WAAW,CAAA;gBACtB,CAAC;aACJ,CAAA;YA1SY,mBAAmB;gBAL/B,gBAAS,CAAC;oBACP,QAAQ,EAAE,MAAM,UAAU,EAAE;oBAC5B,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBAgDO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBAER,wBAAiB;eAlD3B,mBAAmB,CA0S/B;;QACD,CAAC","file":"tree-dialog.component.js"}
|
|
@@ -131,6 +131,8 @@ export class TreeDialogComponent extends ResponsiveComponent implements OnInit,
|
|
|
131
131
|
// AutoComplete Data
|
|
132
132
|
filteredContent: Array<ContentEntity>
|
|
133
133
|
dialogContentForm: FormGroup
|
|
134
|
+
|
|
135
|
+
// maybe make all of these public...
|
|
134
136
|
isContentLoading = false
|
|
135
137
|
isContentLoaded = false
|
|
136
138
|
lastContentSelectorQuery: string
|
|
@@ -210,6 +212,7 @@ export class TreeDialogComponent extends ResponsiveComponent implements OnInit,
|
|
|
210
212
|
if (_.isString(value)) {
|
|
211
213
|
this.lastContentSelectorQuery = `${this.basicContentSelectorQuery}${value}`
|
|
212
214
|
} else {
|
|
215
|
+
// console.log('switchMap value is not a string:', value)
|
|
213
216
|
this.data.content = value
|
|
214
217
|
this.data.url = null
|
|
215
218
|
}
|
|
@@ -325,6 +328,7 @@ export class TreeDialogComponent extends ResponsiveComponent implements OnInit,
|
|
|
325
328
|
// }
|
|
326
329
|
|
|
327
330
|
private handleContent(response:HttpResponse<Convoy<ContentEntity>>) {
|
|
331
|
+
// console.log('response handled!')
|
|
328
332
|
if (!response.ok || response.status !== 200 || _.isEmpty(response.body)) {
|
|
329
333
|
this.filteredContent = []
|
|
330
334
|
// FIXME: We have to go in this roundabout way to force changes to be detected since the
|
|
@@ -367,6 +371,7 @@ export class TreeDialogComponent extends ResponsiveComponent implements OnInit,
|
|
|
367
371
|
}
|
|
368
372
|
|
|
369
373
|
public isSelected(content: ContentEntity) {
|
|
374
|
+
// console.log('isSelected:', content)
|
|
370
375
|
if (!this.data.content) {
|
|
371
376
|
return false
|
|
372
377
|
}
|