@lblod/ember-rdfa-editor-lblod-plugins 39.1.2 → 39.2.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 +8 -0
- package/addon/components/common/tags/collapsible-tag-list.gts +149 -0
- package/addon/components/common/tags/tag-selector.gts +117 -0
- package/addon/components/snippet-plugin/snippet-insert-placeholder.gts +10 -8
- package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.gts +278 -0
- package/addon/components/snippet-plugin/snippet-list/snippet-list-view.gts +130 -0
- package/addon/components/snippet-plugin/snippet-list-select.gts +10 -9
- package/addon/helpers/in-array.ts +3 -9
- package/addon/plugins/common/tags/queries.ts +64 -0
- package/addon/plugins/common/tags/types.ts +12 -0
- package/addon/plugins/snippet-plugin/index.ts +11 -1
- package/addon/plugins/snippet-plugin/utils/fetch-data.ts +48 -17
- package/app/components/common/tags/collapsible-tag-list.js +1 -0
- package/app/components/common/tags/tag-selector.js +1 -0
- package/app/styles/common/tags.scss +61 -0
- package/app/styles/snippet-plugin.scss +44 -1
- package/declarations/addon/components/common/tags/collapsible-tag-list.d.ts +26 -0
- package/declarations/addon/components/common/tags/tag-selector.d.ts +31 -0
- package/declarations/addon/components/snippet-plugin/snippet-list/snippet-list-modal.d.ts +6 -0
- package/declarations/addon/components/snippet-plugin/snippet-list/snippet-list-view.d.ts +12 -8
- package/declarations/addon/helpers/in-array.d.ts +1 -4
- package/declarations/addon/plugins/common/tags/queries.d.ts +12 -0
- package/declarations/addon/plugins/common/tags/types.d.ts +9 -0
- package/declarations/addon/plugins/snippet-plugin/index.d.ts +4 -1
- package/declarations/addon/plugins/snippet-plugin/utils/fetch-data.d.ts +7 -1
- package/package.json +1 -1
- package/translations/en-US.yaml +16 -4
- package/translations/nl-BE.yaml +16 -4
- package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +0 -63
- package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.ts +0 -111
- package/addon/components/snippet-plugin/snippet-list/snippet-list-view.hbs +0 -66
- package/addon/components/snippet-plugin/snippet-list/snippet-list-view.ts +0 -57
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PreviewableDocument } from '@lblod/ember-rdfa-editor-lblod-plugins/components/common/documents/types';
|
|
2
2
|
import { type Option } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
|
|
3
|
+
import type { Tag } from '../common/tags/types';
|
|
3
4
|
export declare const DEFAULT_CONTENT_STRING = "block+";
|
|
4
5
|
export type SnippetPluginConfig = {
|
|
5
6
|
endpoint: string;
|
|
@@ -30,12 +31,14 @@ export type SnippetListArgs = {
|
|
|
30
31
|
label: string;
|
|
31
32
|
createdOn: string;
|
|
32
33
|
importedResources: string[];
|
|
34
|
+
tags: Tag[];
|
|
33
35
|
};
|
|
34
36
|
export declare class SnippetList {
|
|
35
37
|
uri: string;
|
|
36
38
|
label: string;
|
|
37
39
|
createdOn: string | null;
|
|
38
40
|
importedResources: string[];
|
|
39
|
-
|
|
41
|
+
tags: Tag[];
|
|
42
|
+
constructor({ uri, label, createdOn, importedResources, tags, }: SnippetListArgs);
|
|
40
43
|
}
|
|
41
44
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Snippet, SnippetList } from '../index';
|
|
2
|
+
import type { TagWithUri } from '../../common/tags/types';
|
|
2
3
|
export type SnippetFilter = {
|
|
3
4
|
name?: string;
|
|
4
5
|
snippetListUris?: string[];
|
|
@@ -8,6 +9,10 @@ export type Pagination = {
|
|
|
8
9
|
pageNumber: number;
|
|
9
10
|
pageSize: number;
|
|
10
11
|
};
|
|
12
|
+
type SnippetListFilter = {
|
|
13
|
+
name?: string;
|
|
14
|
+
tags?: TagWithUri[];
|
|
15
|
+
};
|
|
11
16
|
export declare const fetchSnippets: ({ endpoint, abortSignal, filter, pagination, }: {
|
|
12
17
|
endpoint: string;
|
|
13
18
|
abortSignal: AbortSignal;
|
|
@@ -20,7 +25,7 @@ export declare const fetchSnippets: ({ endpoint, abortSignal, filter, pagination
|
|
|
20
25
|
export declare const fetchSnippetLists: ({ endpoint, abortSignal, filter, orderBy, }: {
|
|
21
26
|
endpoint: string;
|
|
22
27
|
abortSignal: AbortSignal;
|
|
23
|
-
filter:
|
|
28
|
+
filter: SnippetListFilter;
|
|
24
29
|
orderBy: OrderBy;
|
|
25
30
|
}) => Promise<{
|
|
26
31
|
results: SnippetList[];
|
|
@@ -30,3 +35,4 @@ export declare const fetchSnippetListNames: ({ endpoint, abortSignal, snippetLis
|
|
|
30
35
|
abortSignal: AbortSignal;
|
|
31
36
|
snippetListUris: string[];
|
|
32
37
|
}) => Promise<Map<string, string>>;
|
|
38
|
+
export {};
|
package/package.json
CHANGED
package/translations/en-US.yaml
CHANGED
|
@@ -20,6 +20,13 @@ common:
|
|
|
20
20
|
label: Select
|
|
21
21
|
title: Insert
|
|
22
22
|
no-content: Does not contain any content
|
|
23
|
+
tags:
|
|
24
|
+
collapsible-tag-list:
|
|
25
|
+
show-less: Show less
|
|
26
|
+
tag-selector:
|
|
27
|
+
placeholder: Select tags
|
|
28
|
+
create-new-tag: Create new tag "{tagName}"
|
|
29
|
+
no-results-message: No results found
|
|
23
30
|
|
|
24
31
|
structure-plugin:
|
|
25
32
|
move-up: 'Move {structureName} up'
|
|
@@ -286,10 +293,14 @@ snippet-plugin:
|
|
|
286
293
|
modal:
|
|
287
294
|
title: Select available snippet lists for this template
|
|
288
295
|
subtitle: Select available snippets lists for this template
|
|
289
|
-
|
|
290
|
-
title:
|
|
291
|
-
|
|
292
|
-
|
|
296
|
+
filter:
|
|
297
|
+
title: Filters
|
|
298
|
+
name-filter:
|
|
299
|
+
label: List name
|
|
300
|
+
placeholder: Type to search
|
|
301
|
+
tag-filter:
|
|
302
|
+
label: Tags
|
|
303
|
+
reset: Reset filters
|
|
293
304
|
button:
|
|
294
305
|
cancel: Cancel
|
|
295
306
|
update: Save snippet lists
|
|
@@ -298,6 +309,7 @@ snippet-plugin:
|
|
|
298
309
|
list: List
|
|
299
310
|
created: Created
|
|
300
311
|
imported-resources: Imported Resources
|
|
312
|
+
tags: Tags
|
|
301
313
|
multi-snippet-toggle: Allow multi-snippet selection
|
|
302
314
|
snippet-node:
|
|
303
315
|
change-fragment: Change Fragment
|
package/translations/nl-BE.yaml
CHANGED
|
@@ -20,6 +20,13 @@ common:
|
|
|
20
20
|
label: Selecteer
|
|
21
21
|
title: Invoegen
|
|
22
22
|
no-content: Bevat geen inhoud
|
|
23
|
+
tags:
|
|
24
|
+
collapsible-tag-list:
|
|
25
|
+
show-less: Toon minder
|
|
26
|
+
tag-selector:
|
|
27
|
+
placeholder: Selecteer tags
|
|
28
|
+
create-new-tag: Maak nieuwe tag "{tagName}" aan
|
|
29
|
+
no-results-message: Geen resultaten gevonden
|
|
23
30
|
|
|
24
31
|
structure-plugin:
|
|
25
32
|
move-up: '{structureName} naar boven verplaatsen'
|
|
@@ -285,10 +292,14 @@ snippet-plugin:
|
|
|
285
292
|
modal:
|
|
286
293
|
title: Selecteer beschikbare fragmentlijsten voor deze sjabloon
|
|
287
294
|
subtitle: Selecteer beschikbare fragmentlijsten voor deze sjabloon
|
|
288
|
-
|
|
289
|
-
title:
|
|
290
|
-
|
|
291
|
-
|
|
295
|
+
filter:
|
|
296
|
+
title: Filters
|
|
297
|
+
name-filter:
|
|
298
|
+
label: Naam lijst
|
|
299
|
+
placeholder: Typ om te zoeken
|
|
300
|
+
tag-filter:
|
|
301
|
+
label: Tags
|
|
302
|
+
reset: Reset filters
|
|
292
303
|
button:
|
|
293
304
|
cancel: Annuleer
|
|
294
305
|
update: Fragmentlijsten opslaan
|
|
@@ -297,6 +308,7 @@ snippet-plugin:
|
|
|
297
308
|
list: Lijst
|
|
298
309
|
created: Aangemaakt op
|
|
299
310
|
imported-resources: Ingevoerde Middelen
|
|
311
|
+
tags: Tags
|
|
300
312
|
multi-snippet-toggle: Meerkeuze-fragmentselectie
|
|
301
313
|
snippet-node:
|
|
302
314
|
change-fragment: Fragment vervangen
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<AuModal
|
|
3
|
-
@modalOpen={{@open}}
|
|
4
|
-
@closeModal={{this.closeModal}}
|
|
5
|
-
@title={{t 'snippet-plugin.snippet-list.modal.title'}}
|
|
6
|
-
@size='large'
|
|
7
|
-
@padding='none'
|
|
8
|
-
as |modal|
|
|
9
|
-
>
|
|
10
|
-
<modal.Body>
|
|
11
|
-
<AuMainContainer class='snippet-modal--main-container' as |mc|>
|
|
12
|
-
<mc.content @scroll={{true}}>
|
|
13
|
-
<div class='snippet-modal--list-container'>
|
|
14
|
-
{{#if this.error}}
|
|
15
|
-
<Common::Search::AlertLoadError
|
|
16
|
-
@error={{this.error}}
|
|
17
|
-
class='au-u-margin-top-none'
|
|
18
|
-
/>
|
|
19
|
-
{{else}}
|
|
20
|
-
<SnippetPlugin::SnippetList::SnippetListView
|
|
21
|
-
@snippetLists={{this.snippetListResource.value}}
|
|
22
|
-
@snippetListUris={{this.snippetListUris}}
|
|
23
|
-
@listNameFilter={{this.nameFilterText}}
|
|
24
|
-
@sort={{this.sort}}
|
|
25
|
-
@onChange={{this.onChange}}
|
|
26
|
-
@isLoading={{this.snippetListResource.isRunning}}
|
|
27
|
-
/>
|
|
28
|
-
{{/if}}
|
|
29
|
-
</div>
|
|
30
|
-
<AuToolbar
|
|
31
|
-
@border='top'
|
|
32
|
-
@size='large'
|
|
33
|
-
@nowrap={{true}}
|
|
34
|
-
class='au-u-flex--vertical-center'
|
|
35
|
-
as |Group|
|
|
36
|
-
>
|
|
37
|
-
<Group>
|
|
38
|
-
<AuCheckbox
|
|
39
|
-
@checked={{this.allowMultipleSnippets}}
|
|
40
|
-
@onChange={{this.handleMultipleSnippetsCheckbox}}
|
|
41
|
-
>
|
|
42
|
-
{{t 'snippet-plugin.snippet-list.modal.multi-snippet-toggle'}}
|
|
43
|
-
</AuCheckbox>
|
|
44
|
-
</Group>
|
|
45
|
-
<Group>
|
|
46
|
-
<AuButtonGroup>
|
|
47
|
-
<AuButton @skin='secondary' {{on 'click' this.closeModal}}>
|
|
48
|
-
{{t 'snippet-plugin.snippet-list.modal.button.cancel'}}
|
|
49
|
-
</AuButton>
|
|
50
|
-
<AuButton
|
|
51
|
-
@skin='primary'
|
|
52
|
-
{{on 'click' this.saveAndClose}}
|
|
53
|
-
@disabled={{@onSaveSnippetLists.isRunning}}
|
|
54
|
-
>
|
|
55
|
-
{{t 'snippet-plugin.snippet-list.modal.button.update'}}
|
|
56
|
-
</AuButton>
|
|
57
|
-
</AuButtonGroup>
|
|
58
|
-
</Group>
|
|
59
|
-
</AuToolbar>
|
|
60
|
-
</mc.content>
|
|
61
|
-
</AuMainContainer>
|
|
62
|
-
</modal.Body>
|
|
63
|
-
</AuModal>
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { action } from '@ember/object';
|
|
3
|
-
import { restartableTask, timeout } from 'ember-concurrency';
|
|
4
|
-
import { task as trackedTask } from 'reactiveweb/ember-concurrency';
|
|
5
|
-
|
|
6
|
-
import { tracked } from '@glimmer/tracking';
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
fetchSnippetLists,
|
|
10
|
-
OrderBy,
|
|
11
|
-
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin/utils/fetch-data';
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
SnippetPluginConfig,
|
|
15
|
-
SnippetList,
|
|
16
|
-
} from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
|
|
17
|
-
import { localCopy, trackedReset } from 'tracked-toolbox';
|
|
18
|
-
|
|
19
|
-
interface Signature {
|
|
20
|
-
Args: {
|
|
21
|
-
config: SnippetPluginConfig;
|
|
22
|
-
onSaveSnippetLists: (
|
|
23
|
-
lists: SnippetList[],
|
|
24
|
-
allowMultipleSnippets: boolean,
|
|
25
|
-
) => void;
|
|
26
|
-
snippetListUris: string[] | undefined;
|
|
27
|
-
closeModal: () => void;
|
|
28
|
-
open: boolean;
|
|
29
|
-
allowMultipleSnippets?: boolean;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default class SnippetListModalComponent extends Component<Signature> {
|
|
34
|
-
// Filtering
|
|
35
|
-
@tracked nameFilterText: string | null = null;
|
|
36
|
-
|
|
37
|
-
// Sorting
|
|
38
|
-
@tracked sort: OrderBy = null;
|
|
39
|
-
|
|
40
|
-
// Display
|
|
41
|
-
@tracked error: unknown;
|
|
42
|
-
|
|
43
|
-
@trackedReset('args.snippetListUris')
|
|
44
|
-
snippetListUris: string[] = [...(this.args.snippetListUris ?? [])];
|
|
45
|
-
|
|
46
|
-
@localCopy('args.allowMultipleSnippets') allowMultipleSnippets = false;
|
|
47
|
-
|
|
48
|
-
@action
|
|
49
|
-
handleMultipleSnippetsCheckbox(checked: boolean) {
|
|
50
|
-
this.allowMultipleSnippets = checked;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
get config() {
|
|
54
|
-
return this.args.config;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@action
|
|
58
|
-
closeModal() {
|
|
59
|
-
this.allowMultipleSnippets = this.args.allowMultipleSnippets ?? false;
|
|
60
|
-
this.args.closeModal();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@action
|
|
64
|
-
saveAndClose() {
|
|
65
|
-
const snippetLists = this.snippetListResource.value?.filter((snippetList) =>
|
|
66
|
-
this.snippetListUris.includes(snippetList.uri),
|
|
67
|
-
);
|
|
68
|
-
this.args.onSaveSnippetLists(
|
|
69
|
-
snippetLists || [],
|
|
70
|
-
this.allowMultipleSnippets,
|
|
71
|
-
);
|
|
72
|
-
this.args.closeModal();
|
|
73
|
-
// Clear selection for next time
|
|
74
|
-
this.snippetListUris = [];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
snippetListSearch = restartableTask(async () => {
|
|
78
|
-
await timeout(500);
|
|
79
|
-
|
|
80
|
-
const abortController = new AbortController();
|
|
81
|
-
|
|
82
|
-
try {
|
|
83
|
-
const queryResult = await fetchSnippetLists({
|
|
84
|
-
endpoint: this.args.config.endpoint,
|
|
85
|
-
abortSignal: abortController.signal,
|
|
86
|
-
filter: {
|
|
87
|
-
name: this.nameFilterText ?? undefined,
|
|
88
|
-
},
|
|
89
|
-
orderBy: this.sort,
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
return queryResult.results;
|
|
93
|
-
} catch (error) {
|
|
94
|
-
this.error = error;
|
|
95
|
-
return [];
|
|
96
|
-
} finally {
|
|
97
|
-
abortController.abort();
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
snippetListResource = trackedTask<SnippetList[]>(
|
|
102
|
-
this,
|
|
103
|
-
this.snippetListSearch,
|
|
104
|
-
() => [this.nameFilterText, this.sort],
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
@action
|
|
108
|
-
onChange(snippetListUris: string[]) {
|
|
109
|
-
this.snippetListUris = snippetListUris;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{{! @glint-nocheck: not typesafe yet }}
|
|
2
|
-
<div class='say-snippet-lists-table'>
|
|
3
|
-
{{#let
|
|
4
|
-
(t 'snippet-plugin.snippet-list.modal.table.list')
|
|
5
|
-
(t 'snippet-plugin.snippet-list.modal.table.created')
|
|
6
|
-
(t 'snippet-plugin.snippet-list.modal.table.select')
|
|
7
|
-
(t 'snippet-plugin.snippet-list.modal.subtitle')
|
|
8
|
-
(t 'snippet-plugin.snippet-list.modal.search.label')
|
|
9
|
-
(t 'snippet-plugin.snippet-list.modal.table.imported-resources')
|
|
10
|
-
as |list created select subtitle search imported|
|
|
11
|
-
}}
|
|
12
|
-
<AuDataTable
|
|
13
|
-
@content={{this.snippetLists}}
|
|
14
|
-
@isLoading={{@isLoading}}
|
|
15
|
-
@noDataMessage={{t 'common.search.no-results'}}
|
|
16
|
-
@sort={{@sort}}
|
|
17
|
-
@onClickRow={{this.onClickRow}}
|
|
18
|
-
as |t|
|
|
19
|
-
>
|
|
20
|
-
<t.menu as |menu|>
|
|
21
|
-
<menu.general>
|
|
22
|
-
<AuToolbar class='au-o-box' as |Group|>
|
|
23
|
-
<Group />
|
|
24
|
-
<Group class='au-c-toolbar__group--center'>
|
|
25
|
-
<AuDataTableTextSearch
|
|
26
|
-
@wait={{500}}
|
|
27
|
-
@filter={{@listNameFilter}}
|
|
28
|
-
@placeholder={{search}}
|
|
29
|
-
/>
|
|
30
|
-
</Group>
|
|
31
|
-
</AuToolbar>
|
|
32
|
-
</menu.general>
|
|
33
|
-
</t.menu>
|
|
34
|
-
<t.content as |c|>
|
|
35
|
-
<c.header>
|
|
36
|
-
<th class='snippet-list-table-select-column'>{{select}}</th>
|
|
37
|
-
<AuDataTableThSortable
|
|
38
|
-
@field='label'
|
|
39
|
-
@label={{list}}
|
|
40
|
-
@currentSorting={{@sort}}
|
|
41
|
-
@class='data-table__header-title'
|
|
42
|
-
/>
|
|
43
|
-
<th>{{imported}}</th>
|
|
44
|
-
<AuDataTableThSortable
|
|
45
|
-
@field='createdOn'
|
|
46
|
-
@label={{created}}
|
|
47
|
-
@currentSorting={{@sort}}
|
|
48
|
-
@class='data-table__header-title snippet-list-table-created-column'
|
|
49
|
-
/>
|
|
50
|
-
</c.header>
|
|
51
|
-
<c.body as |row|>
|
|
52
|
-
<td class='snippet-list-table-select-column'>
|
|
53
|
-
<AuCheckbox
|
|
54
|
-
id={{row.label}}
|
|
55
|
-
@onChange={{fn this.onChange row.uri}}
|
|
56
|
-
@checked={{in-array @snippetListUris row.uri}}
|
|
57
|
-
/>
|
|
58
|
-
</td>
|
|
59
|
-
<td>{{row.label}}</td>
|
|
60
|
-
<td>{{row.importedResources}}</td>
|
|
61
|
-
<td class='snippet-list-table-created-column'>{{row.createdOn}}</td>
|
|
62
|
-
</c.body>
|
|
63
|
-
</t.content>
|
|
64
|
-
</AuDataTable>
|
|
65
|
-
{{/let}}
|
|
66
|
-
</div>
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { action } from '@ember/object';
|
|
3
|
-
import { SnippetList } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
|
|
4
|
-
|
|
5
|
-
interface Args {
|
|
6
|
-
snippetLists: SnippetList[];
|
|
7
|
-
snippetListUris: string[];
|
|
8
|
-
listNameFilter: string | null;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
onChange: (snippetListUris: string[]) => void;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default class SnippetListViewComponent extends Component<Args> {
|
|
14
|
-
@action
|
|
15
|
-
onChange(snippetUri: string, isSelected: boolean) {
|
|
16
|
-
if (isSelected) {
|
|
17
|
-
const newSnippetListUris = [...this.args.snippetListUris, snippetUri];
|
|
18
|
-
|
|
19
|
-
return this.args.onChange(newSnippetListUris);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const newSnippetListUris = this.args.snippetListUris.filter(
|
|
23
|
-
(uri) => uri !== snippetUri,
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
return this.args.onChange(newSnippetListUris);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@action
|
|
30
|
-
onClickRow(snippetList: SnippetList, event: Event) {
|
|
31
|
-
if (!(event.target instanceof HTMLElement)) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const target = event.target;
|
|
36
|
-
|
|
37
|
-
// Only trigger the action when clicking on a td or tr element
|
|
38
|
-
// This is to prevent the action from being triggered when clicking on a checkbox
|
|
39
|
-
if (target.tagName !== 'TD' && target.tagName !== 'TR') {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const snippetListUri = snippetList.uri;
|
|
44
|
-
|
|
45
|
-
if (!snippetListUri) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const isSelected = this.args.snippetListUris.includes(snippetListUri);
|
|
50
|
-
|
|
51
|
-
this.onChange(snippetListUri, !isSelected);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
get snippetLists() {
|
|
55
|
-
return this.args.snippetLists;
|
|
56
|
-
}
|
|
57
|
-
}
|