@concretecms/bedrock 1.6.0 → 1.6.1

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.
@@ -152,10 +152,16 @@ export default {
152
152
  }
153
153
  }
154
154
  }
155
+
155
156
  this.applyLocalization()
156
157
  ConcreteEvent.subscribe('FileUploaderFilesReadyToUpload', function(e, filesReadyToUpload) {
157
158
  my.filesReadyToUpload = filesReadyToUpload
158
159
  })
160
+
161
+ const fileChooserItemKey = $.cookie('ConcreteFileChooserItemKey')
162
+ if (fileChooserItemKey) {
163
+ this.activateTabByKey(fileChooserItemKey)
164
+ }
159
165
  },
160
166
  watch: {
161
167
  choosers() {
@@ -222,12 +228,12 @@ export default {
222
228
  activateTabByKey(key) {
223
229
  var my = this
224
230
  this.choosers.forEach(function(chooser) {
225
- if (chooser.id === key) {
231
+ if (chooser.componentKey === key) {
226
232
  my.activateTab(chooser)
227
233
  }
228
234
  })
229
235
  this.uploaders.forEach(function(uploader) {
230
- if (uploader.id === key) {
236
+ if (uploader.componentKey === key) {
231
237
  my.activateTab(uploader)
232
238
  }
233
239
  })
@@ -235,6 +241,9 @@ export default {
235
241
  activateTab(item) {
236
242
  this.activeNavItem = item
237
243
 
244
+ // Store the last selected tab ID in a cookie (expires in 7 days)
245
+ $.cookie('ConcreteFileChooserItemKey', item.componentKey, { expires: 7, path: '/' })
246
+
238
247
  // Reset Selected Files because the component always rerender after Tab switch
239
248
  // Otherwise we have to use keep-alive built-in component [@see https://vuejs.org/v2/api/#keep-alive]
240
249
  // to keep selection from different Tabs
@@ -277,6 +277,8 @@
277
277
  var finalSettings = { autoOpen: false, data: {} }
278
278
  $.extend(finalSettings, defaults, options)
279
279
 
280
+ finalSettings.classes = { 'ui-dialog': finalSettings.dialogClass }
281
+
280
282
  if (finalSettings.element) {
281
283
  $(finalSettings.element).jqdialog(finalSettings).jqdialog()
282
284
  $(finalSettings.element).jqdialog('open')
@@ -219,9 +219,9 @@
219
219
 
220
220
  @include color-mode(dark) {
221
221
  .ccm-ui {
222
- .ccm-sitemap-tree {
223
- ul.ui-fancytree {
224
- li[role=treeitem] {
222
+ ul.ui-fancytree {
223
+ li[role=treeitem] {
224
+ span.fancytree-node {
225
225
  span.fancytree-expander,
226
226
  span.icon-folder,
227
227
  span.icon-home,
@@ -63,7 +63,7 @@ $form-select-border-color: rgb(235, 235, 235);
63
63
  $form-select-box-shadow: 0 0;
64
64
  $input-border-radius: 4px;
65
65
  //$input-border-width: 1px;
66
- $input-color: $dark-blue;
66
+ //$input-color: $dark-blue;
67
67
  $input-padding-y: 0.5rem;
68
68
  $label-margin-bottom: 0.4rem;
69
69
  $input-box-shadow: inset 0 0;
@@ -607,12 +607,22 @@ div.ccm-panel-content {
607
607
  }
608
608
 
609
609
  @include color-mode(dark) {
610
- header {
611
- a {
612
- color: $gray-400;
610
+ div.ccm-panel-content {
611
+ header {
612
+ a {
613
+ color: $gray-400;
613
614
 
614
- svg {
615
- fill: $gray-400;
615
+ svg {
616
+ fill: $gray-400;
617
+ }
618
+
619
+ &:hover {
620
+ color: $blue;
621
+
622
+ svg {
623
+ fill: $blue;
624
+ }
625
+ }
616
626
  }
617
627
  }
618
628
  }
@@ -145,4 +145,4 @@ a.ccm-panel-add-block-draggable-block-type.ccm-stacked-list {
145
145
  a.ccm-panel-add-container-item {
146
146
  color: $light;
147
147
  }
148
- }
148
+ }
@@ -178,9 +178,11 @@
178
178
 
179
179
  @include color-mode(dark) {
180
180
  #ccm-detail-page-attributes {
181
- &[data-attribute-key-id] {
182
- background-color: $panel-background-color-dark;
183
- border: 2px solid lighten($panel-background-color-dark, 0.3);
181
+ .form-group {
182
+ &[data-attribute-key-id] {
183
+ background-color: $panel-background-color-dark;
184
+ border: 2px solid lighten($panel-background-color-dark, 0.3);
185
+ }
184
186
  }
185
187
  }
186
188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concretecms/bedrock",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "The asset framework and dependencies for Concrete CMS.",
5
5
  "scripts": {
6
6
  "lint": "standardx \"**/*.{js,vue}\" && stylelint assets/**/*.{scss,vue}",