@concretecms/bedrock 1.1.18 → 1.2.2
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.
|
@@ -19,20 +19,39 @@ import _ from 'underscore'
|
|
|
19
19
|
elem.children('.ccm-block-cover').remove()
|
|
20
20
|
my.bindDrag()
|
|
21
21
|
my.bindDelete()
|
|
22
|
+
my.bindEditDesign()
|
|
22
23
|
},
|
|
23
24
|
|
|
24
25
|
bindDelete: function ContainerBlockDelete() {
|
|
25
26
|
var my = this
|
|
26
|
-
var deleter = my.getElem().find('
|
|
27
|
+
var deleter = my.getElem().find('ul.ccm-edit-mode-inline-container a[data-inline-command=delete-block]')
|
|
27
28
|
deleter.unbind('click.containerDelete').on('click.containerDelete', function(e) {
|
|
28
29
|
e.preventDefault()
|
|
29
30
|
my.delete()
|
|
30
31
|
})
|
|
31
32
|
},
|
|
32
33
|
|
|
34
|
+
bindEditDesign: function ContainerBlockEditDesign() {
|
|
35
|
+
var my = this
|
|
36
|
+
var menuElem = my.getElem().find('ul.ccm-edit-mode-inline-container a[data-inline-command=edit-container-design]')
|
|
37
|
+
menuElem.off('click.edit-mode')
|
|
38
|
+
.on('click.edit-mode', function (e) {
|
|
39
|
+
e.preventDefault()
|
|
40
|
+
// we are going to place this at the END of the list.
|
|
41
|
+
var $link = $(this)
|
|
42
|
+
var bID = parseInt($link.attr('data-container-block-id'))
|
|
43
|
+
var editor = Concrete.getEditMode()
|
|
44
|
+
var block = _.findWhere(editor.getBlocks(), { id: bID })
|
|
45
|
+
Concrete.event.fire('EditModeBlockEditInline', {
|
|
46
|
+
block: block, event: e, action: CCM_DISPATCHER_FILENAME + '/ccm/system/dialogs/block/design'
|
|
47
|
+
})
|
|
48
|
+
return false
|
|
49
|
+
})
|
|
50
|
+
},
|
|
51
|
+
|
|
33
52
|
bindDrag: function ContainerBlockBindDrag() {
|
|
34
53
|
var my = this
|
|
35
|
-
var mover = my.getElem().find('
|
|
54
|
+
var mover = my.getElem().find('ul.ccm-edit-mode-inline-container a[data-inline-command=move-block]').parent()
|
|
36
55
|
|
|
37
56
|
$.pep.unbind(mover)
|
|
38
57
|
mover.pep(my.getPepSettings())
|
|
@@ -50,16 +50,15 @@ ul.item-select-list i.ccm-item-select-list-sort {
|
|
|
50
50
|
font-style: normal;
|
|
51
51
|
margin: 0;
|
|
52
52
|
padding-left: 5px;
|
|
53
|
-
padding-left: 5px;
|
|
54
|
-
padding-right: 5px;
|
|
55
53
|
padding-right: 5px;
|
|
56
54
|
position: absolute;
|
|
57
55
|
right: 10px;
|
|
58
56
|
top: 10px;
|
|
59
57
|
|
|
60
58
|
&::after {
|
|
61
|
-
content:
|
|
62
|
-
font-family:
|
|
59
|
+
content: '\f338';
|
|
60
|
+
font-family: 'Font Awesome 5 Free';
|
|
61
|
+
font-weight: 600;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
&:hover {
|
|
@@ -313,41 +313,46 @@ div#ccm-menu-highlighter.ccm-block-highlight {
|
|
|
313
313
|
*/
|
|
314
314
|
ul.ccm-edit-mode-inline-commands {
|
|
315
315
|
background-color: #fff;
|
|
316
|
-
|
|
316
|
+
border-bottom-left-radius: 3px;
|
|
317
|
+
box-shadow: $popover-box-shadow;
|
|
318
|
+
display: flex;
|
|
319
|
+
height: 25px;
|
|
317
320
|
list-style-type: none;
|
|
318
321
|
margin: 0 !important;
|
|
319
322
|
opacity: 0;
|
|
320
323
|
padding: 0 !important;
|
|
321
324
|
position: absolute;
|
|
322
|
-
right:
|
|
323
|
-
top:
|
|
325
|
+
right: 0;
|
|
326
|
+
top: 0;
|
|
324
327
|
z-index: $index-level-inline-commands; // has to be over the click proxy
|
|
325
328
|
li {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
line-height: 20px !important;
|
|
329
|
+
align-items: center;
|
|
330
|
+
display: flex;
|
|
329
331
|
margin: 0 !important;
|
|
330
332
|
padding: 0 !important;
|
|
331
333
|
|
|
334
|
+
span {
|
|
335
|
+
color: #888;
|
|
336
|
+
display: inline-block;
|
|
337
|
+
font-size: 12px;
|
|
338
|
+
font-weight: bold;
|
|
339
|
+
line-height: 12px;
|
|
340
|
+
padding-left: 4px;
|
|
341
|
+
padding-right: 4px;
|
|
342
|
+
text-transform: uppercase;
|
|
343
|
+
}
|
|
344
|
+
|
|
332
345
|
a {
|
|
333
|
-
color: #
|
|
346
|
+
color: #444 !important;
|
|
334
347
|
display: inline-block;
|
|
335
348
|
font-weight: lighter;
|
|
336
|
-
|
|
337
|
-
line-height: 20px !important;
|
|
349
|
+
padding: 0;
|
|
338
350
|
position: relative;
|
|
339
351
|
text-align: center;
|
|
340
|
-
width:
|
|
352
|
+
width: 25px !important;
|
|
341
353
|
|
|
342
354
|
&:hover {
|
|
343
|
-
color:
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
i {
|
|
347
|
-
left: 3px;
|
|
348
|
-
position: absolute;
|
|
349
|
-
top: 3px;
|
|
350
|
-
vertical-align: middle;
|
|
355
|
+
color: $blue !important;
|
|
351
356
|
}
|
|
352
357
|
|
|
353
358
|
&.ccm-edit-mode-inline-command-move {
|
|
@@ -9,7 +9,8 @@ import '../../../cms/js/file-manager/file-manager'
|
|
|
9
9
|
options = $.extend({
|
|
10
10
|
bID: 0,
|
|
11
11
|
allowFileUploading: false,
|
|
12
|
-
allowInPageFileManagement: false
|
|
12
|
+
allowInPageFileManagement: false,
|
|
13
|
+
advancedSearchDisplayed: false
|
|
13
14
|
}, options)
|
|
14
15
|
|
|
15
16
|
this.options = options
|
|
@@ -119,6 +120,9 @@ import '../../../cms/js/file-manager/file-manager'
|
|
|
119
120
|
$details.show()
|
|
120
121
|
}
|
|
121
122
|
})
|
|
123
|
+
if (this.options.advancedSearchDisplayed) {
|
|
124
|
+
$('a[data-document-library-advanced-search]').trigger('click')
|
|
125
|
+
}
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
ConcreteDocumentLibrary.prototype.setupEditProperties = function() {
|
package/package.json
CHANGED