@lblod/ember-rdfa-editor-lblod-plugins 26.2.2 → 26.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 26.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#523](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/523) [`062c765`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/062c765ac0d45deacd81d63752660fc56eefffa0) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Redesign of fragment nodes
8
+
9
+ - [#524](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/524) [`d43b3aa`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/d43b3aae98f3c30ee62f3a15a32e73adca33baa6) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Add search to codelist variable
10
+
3
11
  ## 26.2.2
4
12
 
5
13
  ### Patch Changes
@@ -219,30 +219,37 @@ export default class SnippetNode extends Component<Signature> {
219
219
  />
220
220
  {{else}}
221
221
  <div class='say-snippet-card'>
222
- <div class='say-snippet-title'>{{this.node.attrs.title}}</div>
223
- <div class='say-snippet-content'>{{yield}}</div>
224
- <div class='say-snippet-icons' contenteditable='false'>
225
- <SnippetButton
226
- @icon={{SynchronizeIcon}}
227
- @helpText='snippet-plugin.snippet-node.change-fragment'
228
- {{on 'click' this.editFragment}}
229
- @isActive={{this.isActive}}
230
- />
231
- <SnippetButton
232
- @icon={{BinIcon}}
233
- @helpText='snippet-plugin.snippet-node.remove-fragment'
234
- {{on 'click' this.deleteFragment}}
235
- @isActive={{this.isActive}}
236
- class='say-snippet-remove-button'
237
- />
238
- {{#if this.allowMultipleSnippets}}
222
+ <div class='say-snippet-title'>
223
+ <span class='au-c-badge au-c-badge--small say-snippet-title-icon'>
224
+ <AuIcon @icon='plus-text' />
225
+ </span>
226
+ {{this.node.attrs.title}}
227
+ </div>
228
+ <div class='say-snippet-content'>
229
+ {{yield}}
230
+ <div class='say-snippet-icons' contenteditable='false'>
231
+ <SnippetButton
232
+ @icon={{SynchronizeIcon}}
233
+ @helpText='snippet-plugin.snippet-node.change-fragment'
234
+ {{on 'click' this.editFragment}}
235
+ @isActive={{this.isActive}}
236
+ />
239
237
  <SnippetButton
240
- @icon={{AddIcon}}
241
- @helpText='snippet-plugin.snippet-node.add-fragment'
242
- {{on 'click' this.addFragment}}
238
+ @icon={{BinIcon}}
239
+ @helpText='snippet-plugin.snippet-node.remove-fragment'
240
+ {{on 'click' this.deleteFragment}}
243
241
  @isActive={{this.isActive}}
242
+ class='say-snippet-remove-button'
244
243
  />
245
- {{/if}}
244
+ {{#if this.allowMultipleSnippets}}
245
+ <SnippetButton
246
+ @icon={{AddIcon}}
247
+ @helpText='snippet-plugin.snippet-node.add-fragment'
248
+ {{on 'click' this.addFragment}}
249
+ @isActive={{this.isActive}}
250
+ />
251
+ {{/if}}
252
+ </div>
246
253
  </div>
247
254
 
248
255
  </div>
@@ -22,7 +22,8 @@
22
22
  <PowerSelectMultiple
23
23
  id='codelist-select'
24
24
  @allowClear={{false}}
25
- @searchEnabled={{false}}
25
+ @searchEnabled={{true}}
26
+ @searchField='label'
26
27
  @options={{this.codelistOptions.value.options}}
27
28
  @selected={{this.selectedCodelistOption}}
28
29
  @onChange={{this.updateCodelistOption}}
@@ -34,7 +35,8 @@
34
35
  <PowerSelect
35
36
  id='codelist-select'
36
37
  @allowClear={{false}}
37
- @searchEnabled={{false}}
38
+ @searchEnabled={{true}}
39
+ @searchField='label'
38
40
  @options={{this.codelistOptions.value.options}}
39
41
  @selected={{this.selectedCodelistOption}}
40
42
  @onChange={{this.updateCodelistOption}}
@@ -1,7 +1,8 @@
1
1
  {{! @glint-nocheck: not typesafe yet }}
2
2
  <PowerSelect
3
3
  @allowClear={{false}}
4
- @searchEnabled={{false}}
4
+ @searchEnabled={{true}}
5
+ @searchField='label'
5
6
  @options={{this.codelistData.value}}
6
7
  @selected={{this.selectedCodelist}}
7
8
  @onChange={{this.selectCodelist}}
@@ -22,7 +22,8 @@
22
22
  <PowerSelectMultiple
23
23
  id='location-select'
24
24
  @allowClear={{false}}
25
- @searchEnabled={{false}}
25
+ @searchEnabled={{true}}
26
+ @searchField='label'
26
27
  @options={{this.locationOptions.value.options}}
27
28
  @selected={{this.selectedLocationOption}}
28
29
  @onChange={{this.updateLocationOption}}
@@ -34,7 +35,8 @@
34
35
  <PowerSelect
35
36
  id='location-select'
36
37
  @allowClear={{false}}
37
- @searchEnabled={{false}}
38
+ @searchEnabled={{true}}
39
+ @searchField='label'
38
40
  @options={{this.locationOptions.value.options}}
39
41
  @selected={{this.selectedLocationOption}}
40
42
  @onChange={{this.updateLocationOption}}
@@ -90,22 +90,31 @@
90
90
  border: 1px solid var(--au-blue-300);
91
91
  border-radius: var(--au-radius);
92
92
  .say-snippet-title {
93
- background-color: var(--au-blue-300);
93
+ background-color: var(--au-gray-100);
94
+ border-radius: 0.1em 0.1em 0 0;
94
95
  font-size: 1.6rem;
95
96
  font-weight: var(--au-medium);
96
97
  padding: 5px;
98
+ border-bottom: 1px solid var(--au-blue-300);
99
+ color: var(--au-blue-700);
100
+ .say-snippet-title-icon {
101
+ background-color: var(--au-blue-300);
102
+ color: black;
103
+ }
97
104
  }
98
105
  .say-snippet-content {
99
106
  padding: 20px;
100
107
  min-height: 100px;
101
- padding-right: 44px;
108
+ padding-right: 50px;
109
+ margin-top: 0;
102
110
  }
103
111
  .say-snippet-icons {
104
112
  display: flex;
105
113
  width: fit-content;
106
114
  position: absolute !important;
107
115
  right: 5px;
108
- bottom: 5px;
116
+ top: 0;
117
+ margin-top: 0;
109
118
  flex-direction: column;
110
119
  .say-snippet-button {
111
120
  height: 32px;
@@ -143,6 +152,19 @@
143
152
  }
144
153
  }
145
154
 
155
+ .ember-node.say-active:has(> .say-snippet-card) {
156
+ outline: none;
157
+ }
158
+
159
+ .ember-node.say-active > .say-snippet-card {
160
+ border-color: var(--au-blue-700);
161
+ border-width: 0.2rem;
162
+ > .say-snippet-title {
163
+ border-bottom-color: var(--au-blue-700);
164
+ border-bottom-width: 0.2rem;
165
+ }
166
+ }
167
+
146
168
  .say-snippet-placeholder {
147
169
  display: flex;
148
170
  flex-direction: row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "26.2.2",
3
+ "version": "26.3.0",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",