@lblod/ember-rdfa-editor-lblod-plugins 35.4.0 → 35.5.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 (18) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/addon/components/_private/appuniversum-overrides/au-card.gts +0 -2
  3. package/addon/components/besluit-type-plugin/besluit-type-form.gts +8 -0
  4. package/addon/components/besluit-type-plugin/besluit-type-select.gts +2 -1
  5. package/addon/components/roadsign-regulation-plugin/roadsigns-table.gts +1 -1
  6. package/app/styles/structure-plugin.scss +6 -2
  7. package/declarations/addon/components/besluit-type-plugin/besluit-type-form.d.ts +2 -0
  8. package/declarations/addon/components/besluit-type-plugin/besluit-type-select.d.ts +1 -0
  9. package/declarations/addon/components/roadsign-regulation-plugin/roadsigns-modal.d.ts +2 -2
  10. package/declarations/addon/components/structure-plugin/_private/structure.d.ts +1 -1
  11. package/declarations/addon/plugins/decision-plugin/utils/build-article-structure.d.ts +1 -1
  12. package/declarations/addon/plugins/roadsign-regulation-plugin/queries/mobility-measure-concept.d.ts +1 -1
  13. package/declarations/addon/plugins/roadsign-regulation-plugin/queries/traffic-signal-concept.d.ts +2 -2
  14. package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/mobility-measure-concept.d.ts +4 -4
  15. package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/mobility-measure-design.d.ts +16 -16
  16. package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/traffic-signal-concept.d.ts +2 -2
  17. package/declarations/addon/plugins/roadsign-regulation-plugin/schemas/traffic-signal.d.ts +4 -4
  18. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 35.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#649](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/649) [`d317e0f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/d317e0f900739d19318c2ef9a9386b26a746efcc) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Allow modify renderInPlace for besluit type form component
8
+
9
+ ### Patch Changes
10
+
11
+ - [#647](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/647) [`2663d32`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/2663d32eef43f8a781ad3f4bd6e3b05e1d1c4f0b) Thanks [@kobemertens](https://github.com/kobemertens)! - Glint V2 hybrid setup
12
+
13
+ - [#650](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/650) [`6973282`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/6973282740db8016c28959d0f83bb9cd96e9f10c) Thanks [@kobemertens](https://github.com/kobemertens)! - fix structure move on select by using outline instead of changing the border size
14
+
3
15
  ## 35.4.0
4
16
 
5
17
  ### Minor Changes
@@ -133,7 +133,6 @@ export default class AuCard extends Component<AuCardSignature> {
133
133
  @skin='link'
134
134
  class='au-c-card__toggle'
135
135
  aria-hidden='true'
136
- focusable='false'
137
136
  aria-expanded={{if this.sectionOpen 'true' 'false'}}
138
137
  >
139
138
  {{#if this.sectionOpen}}
@@ -169,7 +168,6 @@ export default class AuCard extends Component<AuCardSignature> {
169
168
  @skin='link'
170
169
  class='au-c-card__toggle'
171
170
  aria-hidden='true'
172
- focusable='false'
173
171
  aria-expanded={{if this.sectionOpen 'true' 'false'}}
174
172
  >
175
173
  {{#if this.sectionOpen}}
@@ -9,6 +9,7 @@ interface Sig {
9
9
  selectedType?: BesluitTypeInstance;
10
10
  setType: (selected: BesluitTypeInstance) => void;
11
11
  required?: boolean;
12
+ renderInPlace?: boolean;
12
13
  };
13
14
  Element: HTMLDivElement;
14
15
  }
@@ -36,6 +37,10 @@ export default class BesluitTypePluginBesluitTypeSelectComponent extends Compone
36
37
  });
37
38
  }
38
39
  };
40
+ get renderInPlace() {
41
+ if (this.args.renderInPlace === false) return false;
42
+ return true;
43
+ }
39
44
 
40
45
  <template>
41
46
  <div ...attributes>
@@ -46,6 +51,7 @@ export default class BesluitTypePluginBesluitTypeSelectComponent extends Compone
46
51
  @selected={{@selectedType.parent}}
47
52
  @showWarningWhenEmpty={{false}}
48
53
  @required={{@required}}
54
+ @renderInPlace={{this.renderInPlace}}
49
55
  />
50
56
  {{#if @selectedType.parent.subTypes.length}}
51
57
  <BesluitTypeSelect
@@ -55,6 +61,7 @@ export default class BesluitTypePluginBesluitTypeSelectComponent extends Compone
55
61
  @selected={{@selectedType.subType}}
56
62
  @showWarningWhenEmpty={{true}}
57
63
  @required={{@required}}
64
+ @renderInPlace={{this.renderInPlace}}
58
65
  />
59
66
  {{/if}}
60
67
  {{#if @selectedType.subType.subTypes.length}}
@@ -65,6 +72,7 @@ export default class BesluitTypePluginBesluitTypeSelectComponent extends Compone
65
72
  @selected={{@selectedType.subSubType}}
66
73
  @showWarningWhenEmpty={{true}}
67
74
  @required={{@required}}
75
+ @renderInPlace={{this.renderInPlace}}
68
76
  />
69
77
  {{/if}}
70
78
  </div>
@@ -16,6 +16,7 @@ interface Sig {
16
16
  showWarningWhenEmpty: boolean;
17
17
  onchange: (selected: BesluitType) => void;
18
18
  required?: boolean;
19
+ renderInPlace?: boolean;
19
20
  };
20
21
  Element: HTMLDivElement;
21
22
  }
@@ -49,7 +50,7 @@ export default class BesluitTypePluginBesluitTypeSelectComponent extends Compone
49
50
  </AuLabel>
50
51
  <PowerSelect
51
52
  id={{id}}
52
- @renderInPlace={{true}}
53
+ @renderInPlace={{@renderInPlace}}
53
54
  @searchEnabled={{true}}
54
55
  @searchMessage={{t 'besluit-type-plugin.search-message'}}
55
56
  @noMatchesMessage={{t 'besluit-type-plugin.no-matches-message'}}
@@ -127,7 +127,7 @@ export default class RoadSignsTable extends Component<Signature> {
127
127
  <td>
128
128
  <AuHelpText
129
129
  @size='large'
130
- skin='secondary'
130
+ @skin='secondary'
131
131
  class='au-u-margin-none'
132
132
  >
133
133
  <MeasurePreview
@@ -94,11 +94,15 @@
94
94
 
95
95
  .ember-node.say-active > .say-structure {
96
96
  border-color: var(--au-blue-700);
97
- border-width: 0.2rem;
97
+ outline-color: var(--au-blue-700);
98
+ outline-width: 0.18rem;
99
+ outline-style: solid;
98
100
 
99
101
  > .say-structure__header {
100
102
  border-bottom-color: var(--au-blue-700);
101
- border-bottom-width: 0.2rem;
103
+ outline-color: var(--au-blue-700);
104
+ outline-width: 0.18rem;
105
+ outline-style: solid;
102
106
  }
103
107
  }
104
108
 
@@ -7,6 +7,7 @@ interface Sig {
7
7
  selectedType?: BesluitTypeInstance;
8
8
  setType: (selected: BesluitTypeInstance) => void;
9
9
  required?: boolean;
10
+ renderInPlace?: boolean;
10
11
  };
11
12
  Element: HTMLDivElement;
12
13
  }
@@ -14,5 +15,6 @@ export default class BesluitTypePluginBesluitTypeSelectComponent extends Compone
14
15
  updateParentType: (selected: BesluitType) => void;
15
16
  updateSubType: (selected: BesluitType) => void;
16
17
  updateSubSubType: (selected: BesluitType) => void;
18
+ get renderInPlace(): boolean;
17
19
  }
18
20
  export {};
@@ -8,6 +8,7 @@ interface Sig {
8
8
  showWarningWhenEmpty: boolean;
9
9
  onchange: (selected: BesluitType) => void;
10
10
  required?: boolean;
11
+ renderInPlace?: boolean;
11
12
  };
12
13
  Element: HTMLDivElement;
13
14
  }
@@ -91,8 +91,8 @@ export default class RoadsignsModal extends Component<Signature> {
91
91
  variableSignage: boolean;
92
92
  trafficSignalConcepts: ({
93
93
  code: string;
94
- image: string;
95
94
  uri: string;
95
+ image: string;
96
96
  position: number;
97
97
  regulatoryNotation?: string | undefined;
98
98
  } & ({
@@ -119,8 +119,8 @@ export default class RoadsignsModal extends Component<Signature> {
119
119
  variableSignage: boolean;
120
120
  trafficSignalConcepts: ({
121
121
  code: string;
122
- image: string;
123
122
  uri: string;
123
+ image: string;
124
124
  position: number;
125
125
  regulatoryNotation?: string | undefined;
126
126
  } & ({
@@ -13,7 +13,7 @@ interface Sig {
13
13
  }
14
14
  export default class Structure extends Component<Sig> {
15
15
  intl: IntlService;
16
- titleSchema: Schema<"text" | "doc", "em" | "strong" | "redacted" | "underline" | "strikethrough" | "subscript" | "superscript" | "highlight" | "color">;
16
+ titleSchema: Schema<"text" | "doc", "em" | "strong" | "color" | "redacted" | "underline" | "strikethrough" | "subscript" | "superscript" | "highlight">;
17
17
  innerView?: SayView;
18
18
  /**
19
19
  * A time counter to store the last time an update to the title was added to
@@ -13,7 +13,7 @@ export declare function generateStructureAttrs({ config, subject, properties, ba
13
13
  hasTitle: boolean;
14
14
  structureType: "paragraph" | "article" | "section" | "title" | "chapter" | "subsection";
15
15
  headerTag: string | undefined;
16
- headerFormat: "plain-number" | "name" | "section-symbol" | undefined;
16
+ headerFormat: "name" | "plain-number" | "section-symbol" | undefined;
17
17
  romanize: boolean;
18
18
  subject: string;
19
19
  };
@@ -20,8 +20,8 @@ export declare function queryMobilityMeasures(endpoint: string, options?: Mobili
20
20
  variableSignage: boolean;
21
21
  trafficSignalConcepts: ({
22
22
  code: string;
23
- image: string;
24
23
  uri: string;
24
+ image: string;
25
25
  position: number;
26
26
  regulatoryNotation?: string | undefined;
27
27
  } & ({
@@ -5,8 +5,8 @@ type QueryOptions = {
5
5
  };
6
6
  export declare function queryTrafficSignalConcepts(endpoint: string, options: QueryOptions): Promise<(({
7
7
  code: string;
8
- image: string;
9
8
  uri: string;
9
+ image: string;
10
10
  position: number;
11
11
  regulatoryNotation?: string | undefined;
12
12
  } & {
@@ -17,8 +17,8 @@ export declare function queryTrafficSignalConcepts(endpoint: string, options: Qu
17
17
  uri: string;
18
18
  }[];
19
19
  code: string;
20
- image: string;
21
20
  uri: string;
21
+ image: string;
22
22
  position: number;
23
23
  regulatoryNotation?: string | undefined;
24
24
  type: "https://data.vlaanderen.be/ns/mobiliteit#Verkeersbordconcept";
@@ -17,14 +17,14 @@ export declare const MobilityMeasureConceptSchema: z.ZodObject<{
17
17
  position: z.ZodDefault<z.ZodNumber>;
18
18
  }, "strip", z.ZodTypeAny, {
19
19
  code: string;
20
- image: string;
21
20
  uri: string;
21
+ image: string;
22
22
  position: number;
23
23
  regulatoryNotation?: string | undefined;
24
24
  }, {
25
25
  code: string;
26
- image: string;
27
26
  uri: string;
27
+ image: string;
28
28
  position?: number | undefined;
29
29
  regulatoryNotation?: string | undefined;
30
30
  }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -66,8 +66,8 @@ export declare const MobilityMeasureConceptSchema: z.ZodObject<{
66
66
  variableSignage: boolean;
67
67
  trafficSignalConcepts: ({
68
68
  code: string;
69
- image: string;
70
69
  uri: string;
70
+ image: string;
71
71
  position: number;
72
72
  regulatoryNotation?: string | undefined;
73
73
  } & ({
@@ -87,8 +87,8 @@ export declare const MobilityMeasureConceptSchema: z.ZodObject<{
87
87
  variableSignage?: boolean | undefined;
88
88
  trafficSignalConcepts?: ({
89
89
  code: string;
90
- image: string;
91
90
  uri: string;
91
+ image: string;
92
92
  position?: number | undefined;
93
93
  regulatoryNotation?: string | undefined;
94
94
  } & ({
@@ -12,14 +12,14 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
12
12
  position: z.ZodDefault<z.ZodNumber>;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  code: string;
15
- image: string;
16
15
  uri: string;
16
+ image: string;
17
17
  position: number;
18
18
  regulatoryNotation?: string | undefined;
19
19
  }, {
20
20
  code: string;
21
- image: string;
22
21
  uri: string;
22
+ image: string;
23
23
  position?: number | undefined;
24
24
  regulatoryNotation?: string | undefined;
25
25
  }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -57,8 +57,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
57
57
  uri: string;
58
58
  trafficSignalConcept: {
59
59
  code: string;
60
- image: string;
61
60
  uri: string;
61
+ image: string;
62
62
  position: number;
63
63
  regulatoryNotation?: string | undefined;
64
64
  } & ({
@@ -74,8 +74,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
74
74
  uri: string;
75
75
  trafficSignalConcept: {
76
76
  code: string;
77
- image: string;
78
77
  uri: string;
78
+ image: string;
79
79
  position?: number | undefined;
80
80
  regulatoryNotation?: string | undefined;
81
81
  } & ({
@@ -95,14 +95,14 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
95
95
  position: z.ZodDefault<z.ZodNumber>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  code: string;
98
- image: string;
99
98
  uri: string;
99
+ image: string;
100
100
  position: number;
101
101
  regulatoryNotation?: string | undefined;
102
102
  }, {
103
103
  code: string;
104
- image: string;
105
104
  uri: string;
105
+ image: string;
106
106
  position?: number | undefined;
107
107
  regulatoryNotation?: string | undefined;
108
108
  }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -154,14 +154,14 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
154
154
  position: z.ZodDefault<z.ZodNumber>;
155
155
  }, "strip", z.ZodTypeAny, {
156
156
  code: string;
157
- image: string;
158
157
  uri: string;
158
+ image: string;
159
159
  position: number;
160
160
  regulatoryNotation?: string | undefined;
161
161
  }, {
162
162
  code: string;
163
- image: string;
164
163
  uri: string;
164
+ image: string;
165
165
  position?: number | undefined;
166
166
  regulatoryNotation?: string | undefined;
167
167
  }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -203,8 +203,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
203
203
  variableSignage: boolean;
204
204
  trafficSignalConcepts: ({
205
205
  code: string;
206
- image: string;
207
206
  uri: string;
207
+ image: string;
208
208
  position: number;
209
209
  regulatoryNotation?: string | undefined;
210
210
  } & ({
@@ -224,8 +224,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
224
224
  variableSignage?: boolean | undefined;
225
225
  trafficSignalConcepts?: ({
226
226
  code: string;
227
- image: string;
228
227
  uri: string;
228
+ image: string;
229
229
  position?: number | undefined;
230
230
  regulatoryNotation?: string | undefined;
231
231
  } & ({
@@ -248,8 +248,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
248
248
  variableSignage: boolean;
249
249
  trafficSignalConcepts: ({
250
250
  code: string;
251
- image: string;
252
251
  uri: string;
252
+ image: string;
253
253
  position: number;
254
254
  regulatoryNotation?: string | undefined;
255
255
  } & ({
@@ -264,8 +264,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
264
264
  };
265
265
  trafficSignals: ({
266
266
  code: string;
267
- image: string;
268
267
  uri: string;
268
+ image: string;
269
269
  position: number;
270
270
  regulatoryNotation?: string | undefined;
271
271
  } & ({
@@ -280,8 +280,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
280
280
  uri: string;
281
281
  trafficSignalConcept: {
282
282
  code: string;
283
- image: string;
284
283
  uri: string;
284
+ image: string;
285
285
  position: number;
286
286
  regulatoryNotation?: string | undefined;
287
287
  } & ({
@@ -304,8 +304,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
304
304
  variableSignage?: boolean | undefined;
305
305
  trafficSignalConcepts?: ({
306
306
  code: string;
307
- image: string;
308
307
  uri: string;
308
+ image: string;
309
309
  position?: number | undefined;
310
310
  regulatoryNotation?: string | undefined;
311
311
  } & ({
@@ -320,8 +320,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
320
320
  };
321
321
  trafficSignals: ({
322
322
  code: string;
323
- image: string;
324
323
  uri: string;
324
+ image: string;
325
325
  position?: number | undefined;
326
326
  regulatoryNotation?: string | undefined;
327
327
  } & ({
@@ -336,8 +336,8 @@ export declare const MobilityMeasureDesignSchema: z.ZodObject<{
336
336
  uri: string;
337
337
  trafficSignalConcept: {
338
338
  code: string;
339
- image: string;
340
339
  uri: string;
340
+ image: string;
341
341
  position?: number | undefined;
342
342
  regulatoryNotation?: string | undefined;
343
343
  } & ({
@@ -7,14 +7,14 @@ export declare const TrafficSignalConceptSchema: z.ZodIntersection<z.ZodObject<{
7
7
  position: z.ZodDefault<z.ZodNumber>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  code: string;
10
- image: string;
11
10
  uri: string;
11
+ image: string;
12
12
  position: number;
13
13
  regulatoryNotation?: string | undefined;
14
14
  }, {
15
15
  code: string;
16
- image: string;
17
16
  uri: string;
17
+ image: string;
18
18
  position?: number | undefined;
19
19
  regulatoryNotation?: string | undefined;
20
20
  }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -10,14 +10,14 @@ export declare const TrafficSignalSchema: z.ZodObject<{
10
10
  position: z.ZodDefault<z.ZodNumber>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  code: string;
13
- image: string;
14
13
  uri: string;
14
+ image: string;
15
15
  position: number;
16
16
  regulatoryNotation?: string | undefined;
17
17
  }, {
18
18
  code: string;
19
- image: string;
20
19
  uri: string;
20
+ image: string;
21
21
  position?: number | undefined;
22
22
  regulatoryNotation?: string | undefined;
23
23
  }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -55,8 +55,8 @@ export declare const TrafficSignalSchema: z.ZodObject<{
55
55
  uri: string;
56
56
  trafficSignalConcept: {
57
57
  code: string;
58
- image: string;
59
58
  uri: string;
59
+ image: string;
60
60
  position: number;
61
61
  regulatoryNotation?: string | undefined;
62
62
  } & ({
@@ -72,8 +72,8 @@ export declare const TrafficSignalSchema: z.ZodObject<{
72
72
  uri: string;
73
73
  trafficSignalConcept: {
74
74
  code: string;
75
- image: string;
76
75
  uri: string;
76
+ image: string;
77
77
  position?: number | undefined;
78
78
  regulatoryNotation?: string | undefined;
79
79
  } & ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "35.4.0",
3
+ "version": "35.5.0",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -108,9 +108,10 @@
108
108
  "@glimmer/component": "^1.1.2",
109
109
  "@glimmer/tracking": "^1.1.2",
110
110
  "@glint/core": "^1.5.0",
111
+ "@glint/ember-tsc": "^1.5.0",
111
112
  "@glint/environment-ember-loose": "^1.5.0",
112
113
  "@glint/environment-ember-template-imports": "^1.5.0",
113
- "@glint/template": "^1.5.0",
114
+ "@glint/template": "^1.7.7",
114
115
  "@lblod/ember-rdfa-editor": "13.6.0",
115
116
  "@rdfjs/to-ntriples": "^3.0.1",
116
117
  "@rdfjs/types": "^1.1.0",