@lblod/ember-rdfa-editor-lblod-plugins 14.2.0 → 15.1.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/README.md +42 -30
  3. package/addon/components/article-structure-plugin/article-structure-card.hbs +2 -2
  4. package/addon/components/article-structure-plugin/article-structure-card.ts +1 -1
  5. package/addon/components/article-structure-plugin/structure-card.ts +1 -1
  6. package/addon/components/citation-plugin/citation-insert.hbs +2 -2
  7. package/addon/components/citation-plugin/citations/article-list.hbs +3 -3
  8. package/addon/components/citation-plugin/citations/legal-document-list.hbs +3 -3
  9. package/addon/components/citation-plugin/citations/search-modal.ts +1 -1
  10. package/addon/components/decision-plugin/decision-plugin-card.ts +1 -1
  11. package/addon/components/document-title-plugin/insert-title-card.hbs +2 -2
  12. package/addon/components/document-title-plugin/insert-title-card.ts +1 -1
  13. package/addon/components/hover-tooltip.hbs +2 -2
  14. package/addon/components/hover-tooltip.ts +2 -0
  15. package/addon/components/import-snippet-plugin/card.ts +1 -1
  16. package/addon/components/roadsign-regulation-plugin/measure-template.ts +1 -1
  17. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +2 -2
  18. package/addon/components/roadsign-regulation-plugin/roadsigns-modal.ts +1 -1
  19. package/addon/components/snippet-plugin/snippet-insert.hbs +2 -2
  20. package/addon/components/snippet-plugin/snippets/snippet-list.hbs +3 -3
  21. package/addon/components/standard-template-plugin/card.hbs +2 -2
  22. package/addon/components/table-of-contents-plugin/ember-nodes/outline.hbs +3 -3
  23. package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.ts +1 -1
  24. package/addon/components/template-comments-plugin/insert.hbs +2 -2
  25. package/addon/components/validation-plugin/validation-item.ts +1 -1
  26. package/addon/components/variable-plugin/address/edit.ts +1 -1
  27. package/addon/components/variable-plugin/address/insert.hbs +2 -2
  28. package/addon/components/variable-plugin/codelist/insert.ts +1 -1
  29. package/addon/components/variable-plugin/date/date-time-picker.ts +1 -1
  30. package/addon/components/variable-plugin/date/edit.hbs +3 -3
  31. package/addon/components/variable-plugin/date/edit.ts +4 -1
  32. package/addon/components/variable-plugin/date/insert.hbs +2 -2
  33. package/addon/components/variable-plugin/insert-variable-card.hbs +4 -5
  34. package/addon/components/variable-plugin/insert-variable-card.ts +3 -5
  35. package/addon/components/variable-plugin/location/insert.ts +1 -1
  36. package/addon/components/variable-plugin/number/insert.ts +1 -1
  37. package/addon/components/variable-plugin/number/nodeview.hbs +2 -3
  38. package/addon/components/variable-plugin/number/nodeview.ts +4 -1
  39. package/addon/helpers/capitalize.ts +1 -0
  40. package/addon/helpers/in-array.ts +1 -1
  41. package/addon/helpers/limit-text.ts +3 -2
  42. package/addon/plugins/citation-plugin/utils/cited-text.ts +0 -2
  43. package/addon/plugins/decision-plugin/commands/insert-article-container.ts +1 -4
  44. package/addon/plugins/decision-plugin/commands/insert-description.ts +1 -2
  45. package/addon/plugins/decision-plugin/commands/insert-motivation.ts +1 -2
  46. package/addon/plugins/decision-plugin/commands/insert-title.ts +1 -2
  47. package/addon/plugins/document-title-plugin/commands/insert-document-title.ts +1 -2
  48. package/addon/plugins/standard-template-plugin/utils/nodes.ts +1 -3
  49. package/app/styles/citaten-plugin.scss +155 -0
  50. package/components/hover-tooltip.d.ts +2 -0
  51. package/components/variable-plugin/date/edit.d.ts +2 -0
  52. package/components/variable-plugin/insert-variable-card.d.ts +2 -4
  53. package/components/variable-plugin/number/nodeview.d.ts +2 -0
  54. package/helpers/capitalize.d.ts +2 -0
  55. package/helpers/in-array.d.ts +1 -0
  56. package/helpers/limit-text.d.ts +1 -0
  57. package/index.js +3 -0
  58. package/package.json +14 -13
  59. package/types/global.d.ts +0 -17
  60. package/types/n2words/index.d.ts +6 -0
  61. package/types/tracked-toolbox/index.d.ts +11 -0
  62. package/webpack-config.js +22 -0
  63. package/.woodpecker/.scenarios.yml +0 -13
  64. package/app/components/citation-plugin/citations/modal.js +0 -1
  65. package/app/components/template-comments-plugin/comment-editor.js +0 -1
  66. package/app/components/template-comments-plugin/insert-template-comment.js +0 -1
  67. package/app/services/rdfa-editor-roadsign-regulation-plugin.js +0 -1
  68. package/types/ember-mu-transform-helpers/transforms/string-set.d.ts +0 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,99 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 15.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#343](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/343) [`e9b428c`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/e9b428cdffca32164ce9f2c03540dd5ad6a9ba19) Thanks [@dkozickis](https://github.com/dkozickis)! - GN-4130: Move styles for `data-editor-highlight`
8
+
9
+ Styles that were applied to elements with the `data-editor-highlight` attribute (used by `citation-plugin`) moved from
10
+ [editor repository](https://github.com/lblod/ember-rdfa-editor/pull/1013) to this repo as part of the `citation-plugin`.
11
+
12
+ - [#351](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/351) [`f6fa933`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/f6fa933569a70c3cc0f7d4348c4c8a121b77cd1f) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove explicit creation of `rdfa-id` attributes
13
+
14
+ ### Patch Changes
15
+
16
+ - [`83cc1ae`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/83cc1ae8b3bba280aa001566e7d77109a2d43170) Thanks [@abeforgit](https://github.com/abeforgit)! - bump peerdep to allow editor v7
17
+
18
+ ## 15.0.0
19
+
20
+ ### Major Changes
21
+
22
+ - [#323](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/323) [`5bedaab`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/5bedaabb7efa05626012333e63095671309e9f97) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove usage of `component` helper in preparation of embroider-compatibility.
23
+
24
+ This removal also causes a change in the variable-plugin insert-component API, the insert-components now need to be passed directly (instead of their path).
25
+
26
+ Before:
27
+
28
+ ```typescript
29
+ get variableTypes(): VariableConfig[] {
30
+ return [
31
+ {
32
+ label: 'text',
33
+ component: {
34
+ path: 'variable-plugin/text/insert',
35
+ },
36
+ },
37
+ {
38
+ label: 'location',
39
+ component: {
40
+ path: 'variable-plugin/location/insert',
41
+ options: {
42
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
43
+ },
44
+ },
45
+ },
46
+ ];
47
+ }
48
+ ```
49
+
50
+ After:
51
+
52
+ ```typescript
53
+ import TextVariableInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/text/insert';
54
+ import LocationInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/location/insert';
55
+ ...
56
+ get variableTypes() {
57
+ return [
58
+ {
59
+ label: 'text',
60
+ component: TextVariableInsertComponent,
61
+ },
62
+ {
63
+ label: 'location',
64
+ component: LocationInsertComponent,
65
+ options: {
66
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
67
+ },
68
+ },
69
+ ];
70
+ }
71
+ ```
72
+
73
+ - [#333](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/333) [`04ea965`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/04ea96580189ee0a9440fe77618b8b2c1d9941a5) Thanks [@elpoelma](https://github.com/elpoelma)! - Drop support for ember 3.28
74
+ The minimum required version of `ember-source` is now 4.8.0.
75
+ The 5.x range remains untested.
76
+
77
+ ### Minor Changes
78
+
79
+ - [#332](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/332) [`cf7082f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/cf7082fdd89c862936276cfb562a0a07e5a49c4b) Thanks [@elpoelma](https://github.com/elpoelma)! - Expose a Webpack config for Embroidered apps
80
+
81
+ - [#332](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/332) [`cf7082f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/cf7082fdd89c862936276cfb562a0a07e5a49c4b) Thanks [@elpoelma](https://github.com/elpoelma)! - Specify `@ember/string` 3.x as a peerdep
82
+
83
+ - [#334](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/334) [`fd271a1`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/fd271a1dd9b32e4081707ea416f35be70f57aa30) Thanks [@elpoelma](https://github.com/elpoelma)! - Add support for the ember-concurrency 3.x range
84
+
85
+ - [#332](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/332) [`cf7082f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/cf7082fdd89c862936276cfb562a0a07e5a49c4b) Thanks [@elpoelma](https://github.com/elpoelma)! - Specify `ember-power-select` 6.x|7.x as a peerdep
86
+
87
+ - [#325](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/325) [`4c402d2`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/4c402d21f6e45a03436fd5155bb508ce6c3fb091) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove redundant types for `string-set` ember-data transform
88
+
89
+ - [#324](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/324) [`95634ed`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/95634eda12927736fa16945ff85b80876b7c0058) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove direct usages of aulist::item in order to ensure compatibility with `@appuniversum/ember-appuniversum` 2.16.0
90
+
91
+ - [#325](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/325) [`4c402d2`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/4c402d21f6e45a03436fd5155bb508ce6c3fb091) Thanks [@elpoelma](https://github.com/elpoelma)! - Fix internal types for tracked-toolbox
92
+
93
+ ### Patch Changes
94
+
95
+ - [#331](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/331) [`910ec85`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/910ec8596b602a0ff408da0fcec4222ad81fb75a) Thanks [@piemonkey](https://github.com/piemonkey)! - Small internal changes to allow for embroider builds
96
+
3
97
  ## 14.2.0
4
98
 
5
99
  ### Minor Changes
package/README.md CHANGED
@@ -5,8 +5,8 @@ related to the LBLOD Project.
5
5
 
6
6
  ## Compatibility
7
7
 
8
- - Ember.js and ember data v3.28 or 4.x
9
- note: we smoke-test for 3.28 but develop on the latest 4.x minor. The 5.x range is currently untested and not officially supported, but we accept issues and PRs to do so.
8
+ - Ember.js 4.8+
9
+ The 5.x range is currently untested and not officially supported, but we accept issues and PRs to do so.
10
10
 
11
11
  - Embroider or ember-auto-import v2
12
12
  - Node 18 or above
@@ -368,7 +368,7 @@ This plugin provides an Ember service, `import-rdfa-snippet` which allows you to
368
368
  manner:
369
369
 
370
370
  ```js
371
- import { inject as service } from '@ember/service';
371
+ import { service } from '@ember/service';
372
372
 
373
373
  // An entry point to download the resouce (e.g a route) in your host app.
374
374
  // (...)
@@ -563,7 +563,7 @@ The `variable-plugin/insert-variable-card` can be easily configured: it expects
563
563
  - `controller`: An instance of the `SayController` class
564
564
  - `variableTypes`: A list of `VariableConfig` objects. With each `VariableConfig` containing:
565
565
  - the `label` which should be displayed in the variable-select dropdown
566
- - the `path` to the insert-variable component
566
+ - the `component`: class of the component which should be displayed upon selecting the variable type.
567
567
  - _optionally_ an `options` argument object which should be passed to the insert-variable component.
568
568
 
569
569
  * The `VariableConfig` type is defined as follows:
@@ -571,10 +571,8 @@ The `variable-plugin/insert-variable-card` can be easily configured: it expects
571
571
  ```js
572
572
  type VariableConfig = {
573
573
  label: string;
574
- component: {
575
- path: string;
576
- options?: unknown;
577
- };
574
+ component: ComponentLike;
575
+ options?: unknown;
578
576
  };
579
577
  ```
580
578
 
@@ -592,49 +590,44 @@ To allows users to insert variables into a document, add the following to the ed
592
590
  `this.controller` is an instance of `SayController` and `this.variableTypes` is the list of `VariableConfig` objects which should be defined in your controller/component class:
593
591
 
594
592
  ```js
593
+ import TextVariableInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/text/insert';
594
+ import NumberInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/number/insert';
595
+ import DateInsertVariableComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/date/insert-variable';
596
+ import LocationInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/location/insert';
597
+ import CodelistInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/codelist/insert';
598
+ import VariablePluginAddressInsertVariableComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/address/insert-variable';
599
+ ...
595
600
  get variableTypes() {
596
601
  return [
597
602
  {
598
603
  label: 'text',
599
- component: {
600
- path: 'variable-plugin/text/insert',
601
- },
604
+ component: TextVariableInsertComponent,
602
605
  },
603
606
  {
604
607
  label: 'number',
605
- component: {
606
- path: 'variable-plugin/number/insert',
607
- },
608
+ component: NumberInsertComponent,
608
609
  },
609
610
  {
610
611
  label: 'date',
611
- component: {
612
- path: 'variable-plugin/date/insert',
613
- },
612
+ component: DateInsertVariableComponent
614
613
  },
615
614
  {
616
615
  label: 'location',
617
- component: {
618
- path: 'variable-plugin/location/insert',
619
- options: {
620
- endpoint: 'https://dev.roadsigns.lblod.info/sparql',
621
- },
616
+ component: LocationInsertComponent,
617
+ options: {
618
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
622
619
  },
623
620
  },
624
621
  {
625
622
  label: 'codelist',
626
- component: {
627
- path: 'variable-plugin/codelist/insert',
628
- options: {
629
- endpoint: 'https://dev.roadsigns.lblod.info/sparql',
630
- },
623
+ component: CodelistInsertComponent,
624
+ options: {
625
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
631
626
  },
632
627
  },
633
628
  {
634
629
  label: 'address',
635
- component: {
636
- path: 'variable-plugin/address/insert-variable',
637
- },
630
+ component: VariablePluginAddressInsertVariableComponent,
638
631
  },
639
632
  ];
640
633
  }
@@ -817,6 +810,25 @@ Template comments have a specific style that can be imported in the stylesheet w
817
810
  @import 'template-comments-plugin';
818
811
  ```
819
812
 
813
+ ## Embroider
814
+ To use `@lblod/ember-rdfa-editor-lblod-plugins` with Embroider some extra Webpack configuration is needed, which you can import like this:
815
+
816
+ ```js
817
+ // ember-cli-build.js
818
+ // ...
819
+ const { Webpack } = require('@embroider/webpack');
820
+ return require('@embroider/compat').compatBuild(app, Webpack, {
821
+ // other Embroider options
822
+ packagerOptions: {
823
+ webpackConfig: require('@lblod/ember-rdfa-editor-lblod-plugins/webpack-config'),
824
+ },
825
+ extraPublicTrees: [],
826
+ });
827
+ };
828
+ ```
829
+
830
+ If you already provide some Webpack configuration, you can deep merge that with the config object we provide.
831
+
820
832
  ## Contributing
821
833
 
822
834
  See the [Contributing](CONTRIBUTING.md) guide for details.
@@ -1,10 +1,10 @@
1
1
  <div>
2
2
  {{#each this.structureTypes as |structureType|}}
3
- <AuList::Item>
3
+ <li class="au-c-list__item">
4
4
  <AuButton @icon="add" @iconAlignment="left" @skin="link" @disabled={{not (this.canInsertStructure structureType)}}
5
5
  {{on 'click' (fn this.insertStructure structureType)}}>
6
6
  {{t structureType.translations.insert}}
7
7
  </AuButton>
8
- </AuList::Item>
8
+ </li>
9
9
  {{/each}}
10
10
  </div>
@@ -1,5 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
- import { inject as service } from '@ember/service';
2
+ import { service } from '@ember/service';
3
3
  import IntlService from 'ember-intl/services/intl';
4
4
  import {
5
5
  ArticleStructurePluginOptions,
@@ -9,7 +9,7 @@ import {
9
9
  import { ArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
10
10
  import { findAncestorOfType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin/utils/structure';
11
11
  import { tracked } from '@glimmer/tracking';
12
- import { inject as service } from '@ember/service';
12
+ import { service } from '@ember/service';
13
13
  import IntlService from 'ember-intl/services/intl';
14
14
 
15
15
  type Args = {
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon='add'
4
4
  @iconAlignment='left'
@@ -8,7 +8,7 @@
8
8
  >
9
9
  {{t 'citaten-plugin.insert.title'}}
10
10
  </AuButton>
11
- </AuList::Item>
11
+ </li>
12
12
 
13
13
  <CitationPlugin::Citations::SearchModal
14
14
  @open={{this.showModal}}
@@ -1,11 +1,11 @@
1
1
  {{#if @articles.length}}
2
- <AuList @direction="vertical" @divider={{true}}>
2
+ <AuList @direction="vertical" @divider={{true}} as |Item|>
3
3
  {{#each @articles as |article|}}
4
- <AuList::Item>
4
+ <Item>
5
5
  <CitationPlugin::Citations::ArticlePreview
6
6
  @insertArticleCitation={{fn @insertArticleCitation article}}
7
7
  @article={{article}} />
8
- </AuList::Item>
8
+ </Item>
9
9
  {{/each}}
10
10
  </AuList>
11
11
  {{else}}
@@ -1,13 +1,13 @@
1
1
  {{#if @legalDocuments.length}}
2
- <AuList @direction="vertical" @divider={{true}}>
2
+ <AuList @direction="vertical" @divider={{true}} as |Item|>
3
3
  {{#each @legalDocuments as |legalDocument|}}
4
- <AuList::Item class="au-u-padding-left-small au-u-padding-right-small">
4
+ <Item class="au-u-padding-left-small au-u-padding-right-small">
5
5
  <CitationPlugin::Citations::LegalDocumentPreview
6
6
  @legalDocument={{legalDocument}}
7
7
  @onCitationInsert={{fn @onCitationInsert legalDocument}}
8
8
  @onCitationDetails={{fn @onCitationDetails legalDocument}}
9
9
  @fullSize={{@fullSize}} />
10
- </AuList::Item>
10
+ </Item>
11
11
  {{/each}}
12
12
  </AuList>
13
13
  {{else}}
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
2
2
  import { tracked } from '@glimmer/tracking';
3
3
  import { action } from '@ember/object';
4
4
  import { restartableTask, timeout } from 'ember-concurrency';
5
- import { inject as service } from '@ember/service';
5
+ import { service } from '@ember/service';
6
6
  import { capitalize } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/strings';
7
7
  import { task as trackedTask } from 'ember-resources/util/ember-concurrency';
8
8
  import {
@@ -5,7 +5,7 @@ import {
5
5
  insertArticleContainer,
6
6
  } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/decision-plugin/commands';
7
7
  import { SayController } from '@lblod/ember-rdfa-editor';
8
- import { inject as service } from '@ember/service';
8
+ import { service } from '@ember/service';
9
9
  import IntlService from 'ember-intl/services/intl';
10
10
  import { VALIDATION_KEY } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/validation';
11
11
 
@@ -1,5 +1,5 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton @icon="add" @iconAlignment="left" @skin="link" {{on 'click' this.insertTitle}} @disabled={{not this.canInsertTitle}}>
3
3
  {{t "document-title-plugin.insert-title"}}
4
4
  </AuButton>
5
- </AuList::Item>
5
+ </li>
@@ -1,6 +1,6 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { action } from '@ember/object';
3
- import { inject as service } from '@ember/service';
3
+ import { service } from '@ember/service';
4
4
  import { SayController } from '@lblod/ember-rdfa-editor';
5
5
  import IntlService from 'ember-intl/services/intl';
6
6
  import insertDocumentTitle from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/document-title-plugin/commands/insert-document-title';
@@ -1,8 +1,8 @@
1
- <Velcro @placement={{this.placement}} as |velcro|>
1
+ <this.Velcro @placement={{this.placement}} as |velcro|>
2
2
  {{#let velcro.loop as |loop|}}
3
3
  {{yield (hash velcroHook=velcro.hook handleHover=(modifier this.hover)) to='hover' }}
4
4
  {{#if this.tooltipOpen}}
5
5
  {{yield loop to='tooltip'}}
6
6
  {{/if}}
7
7
  {{/let}}
8
- </Velcro>
8
+ </this.Velcro>
@@ -1,12 +1,14 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { modifier } from 'ember-modifier';
3
3
  import { tracked } from '@glimmer/tracking';
4
+ import { Velcro } from 'ember-velcro';
4
5
 
5
6
  interface Args {
6
7
  placement?: string;
7
8
  }
8
9
 
9
10
  export default class HoverTooltip extends Component<Args> {
11
+ Velcro = Velcro;
10
12
  hover = modifier(
11
13
  (element) => {
12
14
  element.addEventListener('mouseenter', this.showTooltip);
@@ -1,5 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
- import { inject as service } from '@ember/service';
2
+ import { service } from '@ember/service';
3
3
  import { action } from '@ember/object';
4
4
  import { ProseParser } from '@lblod/ember-rdfa-editor';
5
5
  import { SayController } from '@lblod/ember-rdfa-editor';
@@ -1,5 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
- import { inject as service } from '@ember/service';
2
+ import { service } from '@ember/service';
3
3
  import includeInstructions from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/roadsign-regulation-plugin/utils/includeInstructions';
4
4
  import RoadsignRegistryService from '@lblod/ember-rdfa-editor-lblod-plugins/services/roadsign-registry';
5
5
  import { trackedFunction } from 'ember-resources/util/function';
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @skin="link"
4
4
  @icon="add"
@@ -8,5 +8,5 @@
8
8
  >
9
9
  {{t "editor-plugins.roadsign-regulation.card.insert-measure"}}
10
10
  </AuButton>
11
- </AuList::Item>
11
+ </li>
12
12
  <RoadsignRegulationPlugin::RoadsignsModal @modalOpen={{this.modalOpen}} @closeModal={{this.closeModal}} @controller={{@controller}} @options={{@options}}/>
@@ -3,7 +3,7 @@ import Component from '@glimmer/component';
3
3
  import { tracked } from '@glimmer/tracking';
4
4
  import { task } from 'ember-concurrency';
5
5
  import { v4 as uuid } from 'uuid';
6
- import { inject as service } from '@ember/service';
6
+ import { service } from '@ember/service';
7
7
  import includeInstructions from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/roadsign-regulation-plugin/utils/includeInstructions';
8
8
  import {
9
9
  NON_ZONAL_URI,
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon='add'
4
4
  @iconAlignment='left'
@@ -7,7 +7,7 @@
7
7
  >
8
8
  {{t 'snippet-plugin.insert.title'}}
9
9
  </AuButton>
10
- </AuList::Item>
10
+ </li>
11
11
 
12
12
  <SnippetPlugin::SearchModal
13
13
  @open={{this.showModal}}
@@ -1,12 +1,12 @@
1
1
  {{#if @snippets.length}}
2
- <AuList @direction='vertical'>
2
+ <AuList @direction='vertical' as |Item|>
3
3
  {{#each @snippets as |snippet|}}
4
- <AuList::Item>
4
+ <Item>
5
5
  <SnippetPlugin::Snippets::SnippetPreview
6
6
  @snippet={{snippet}}
7
7
  @onInsert={{@onInsert}}
8
8
  />
9
- </AuList::Item>
9
+ </Item>
10
10
  {{/each}}
11
11
  </AuList>
12
12
  {{/if}}
@@ -1,7 +1,7 @@
1
1
  <StandardTemplatePlugin::TemplateProvider @controller={{@controller}} @templates={{@templates}} as |provider|>
2
2
  {{#if provider.hasApplicableTemplates}}
3
3
  {{#each provider.applicableTemplates as |template|}}
4
- <AuList::Item>
4
+ <li class="au-c-list__item">
5
5
  <AuButton
6
6
  @skin="link"
7
7
  @icon="add"
@@ -10,7 +10,7 @@
10
10
  >
11
11
  {{template.title}}
12
12
  </AuButton>
13
- </AuList::Item>
13
+ </li>
14
14
  {{/each}}
15
15
  {{/if}}
16
16
  </StandardTemplatePlugin::TemplateProvider>
@@ -1,6 +1,6 @@
1
- <AuList @divider={{true}} class='table-of-contents'>
1
+ <AuList @divider={{true}} class='table-of-contents' as |Item|>
2
2
  {{#each @entries as |outlineEntry|}}
3
- <AuList::Item>
3
+ <Item>
4
4
  <AuButton
5
5
  @wrap={{true}}
6
6
  {{! template-lint-disable no-capital-arguments }}
@@ -16,6 +16,6 @@
16
16
  @onEntryClick={{@onEntryClick}}
17
17
  />
18
18
  {{/if}}
19
- </AuList::Item>
19
+ </Item>
20
20
  {{/each}}
21
21
  </AuList>
@@ -4,7 +4,7 @@ import { EmberNodeArgs } from '@lblod/ember-rdfa-editor/utils/ember-node';
4
4
  import { Selection } from '@lblod/ember-rdfa-editor';
5
5
  import { TableOfContentsConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/table-of-contents-plugin';
6
6
  import { extractOutline } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/table-of-contents-plugin/utils';
7
- import { inject as service } from '@ember/service';
7
+ import { service } from '@ember/service';
8
8
  import IntlService from 'ember-intl/services/intl';
9
9
  export default class TableOfContentsComponent extends Component<EmberNodeArgs> {
10
10
  @service declare intl: IntlService;
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon='add'
4
4
  @iconAlignment='left'
@@ -8,4 +8,4 @@
8
8
  >
9
9
  {{t 'template-comments-plugin.insert.title'}}
10
10
  </AuButton>
11
- </AuList::Item>
11
+ </li>
@@ -1,7 +1,7 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { SayController } from '@lblod/ember-rdfa-editor';
3
3
  import { ValidationResult } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/validation';
4
- import { inject as service } from '@ember/service';
4
+ import { service } from '@ember/service';
5
5
  import IntlService from 'ember-intl/services/intl';
6
6
 
7
7
  interface Args {
@@ -12,7 +12,7 @@ import {
12
12
  import { restartableTask, timeout } from 'ember-concurrency';
13
13
  import { trackedReset } from 'tracked-toolbox';
14
14
  import { trackedTask } from 'ember-resources/util/ember-concurrency';
15
- import { inject as service } from '@ember/service';
15
+ import { service } from '@ember/service';
16
16
  import IntlService from 'ember-intl/services/intl';
17
17
 
18
18
  type Args = {
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon="add"
4
4
  @iconAlignment="left"
@@ -7,4 +7,4 @@
7
7
  @disabled={{not this.canInsertAddress}}>
8
8
  {{t "editor-plugins.address.insert"}}
9
9
  </AuButton>
10
- </AuList::Item>
10
+ </li>
@@ -6,7 +6,7 @@ import {
6
6
  CodeList,
7
7
  fetchCodeListsByPublisher,
8
8
  } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/fetch-data';
9
- import { inject as service } from '@ember/service';
9
+ import { service } from '@ember/service';
10
10
  import IntlService from 'ember-intl/services/intl';
11
11
  import { trackedFunction } from 'ember-resources/util/function';
12
12
  import { v4 as uuidv4 } from 'uuid';
@@ -1,6 +1,6 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { action } from '@ember/object';
3
- import { inject as service } from '@ember/service';
3
+ import { service } from '@ember/service';
4
4
  import { localCopy } from 'tracked-toolbox';
5
5
  import Intl from 'ember-intl/services/intl';
6
6
 
@@ -21,7 +21,7 @@
21
21
  @onChange={{this.changeIncludeTime}}
22
22
  />
23
23
  {{#if this.isCustom}}
24
- <Velcro @placement="top" @offsetOptions={{hash mainAxis=10}} as |velcro|>
24
+ <this.Velcro @placement="top" @offsetOptions={{hash mainAxis=10}} as |velcro|>
25
25
  <AuBadge
26
26
  @size="small"
27
27
  @icon="info-circle"
@@ -40,7 +40,7 @@
40
40
  {{t 'date-plugin.card.info-custom-time'}}
41
41
  </AuPill>
42
42
  {{/if}}
43
- </Velcro>
43
+ </this.Velcro>
44
44
  {{/if}}
45
45
  </AuFormRow>
46
46
  </VariablePlugin::Date::DateTimePicker>
@@ -67,7 +67,7 @@
67
67
  @onChange={{this.setDateFormatFromKey}}
68
68
  />
69
69
  </AuFormRow>
70
- {{/if}}
70
+ {{/if}}
71
71
  {{#if (eq this.dateFormatType "custom")}}
72
72
  <AuFormRow @alignment="post">
73
73
  <AuButton @skin="secondary" @icon="info-circle"
@@ -3,7 +3,7 @@ import { tracked } from '@glimmer/tracking';
3
3
  import { action } from '@ember/object';
4
4
  import { SayController } from '@lblod/ember-rdfa-editor';
5
5
  import { NodeSelection, PNode } from '@lblod/ember-rdfa-editor';
6
- import { inject as service } from '@ember/service';
6
+ import { service } from '@ember/service';
7
7
  import IntlService from 'ember-intl/services/intl';
8
8
  import {
9
9
  isNone,
@@ -22,6 +22,7 @@ import {
22
22
  formatContainsTime,
23
23
  validateDateFormat,
24
24
  } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/date-helpers';
25
+ import { Velcro } from 'ember-velcro';
25
26
 
26
27
  type Args = {
27
28
  controller: SayController;
@@ -29,6 +30,8 @@ type Args = {
29
30
  };
30
31
  const SECONDS_REGEX = new RegExp('[sStT]|p{2,}');
31
32
  export default class DateEditComponent extends Component<Args> {
33
+ Velcro = Velcro;
34
+
32
35
  @service
33
36
  declare intl: IntlService;
34
37
 
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon="add"
4
4
  @iconAlignment="left"
@@ -6,4 +6,4 @@
6
6
  {{on 'click' this.insert}}>
7
7
  {{t "date-plugin.insert.date"}}
8
8
  </AuButton>
9
- </AuList::Item>
9
+ </li>