typo3-typescript-sources 14.3.1 → 14.3.3
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/.github/workflows/sync-and-publish.yml +2 -2
- package/.last-synced-tag +1 -1
- package/README.md +2 -2
- package/backend/live-search/element/provider/default-result-item.ts +3 -0
- package/backend/live-search/element/provider/page-provider-result-item.ts +3 -1
- package/backend/live-search/element/result/item/item-container.ts +1 -0
- package/backend/live-search/element/result/item/item.ts +7 -0
- package/backend/live-search/result-types/page-result-type.ts +1 -0
- package/install/module/settings/extension-configuration.ts +8 -12
- package/install/renderable/wrap-group.ts +2 -2
- package/package.json +2 -2
|
@@ -235,7 +235,7 @@ jobs:
|
|
|
235
235
|
| Branch | TYPO3 Version | npm tag |
|
|
236
236
|
|----------|---------------|-----------|
|
|
237
237
|
| `main` | v14.x | `latest` |
|
|
238
|
-
| `v13.x` | v13.x | `v13`
|
|
238
|
+
| `v13.x` | v13.x | `v13-latest` |
|
|
239
239
|
|
|
240
240
|
## 📝 License
|
|
241
241
|
|
|
@@ -293,7 +293,7 @@ jobs:
|
|
|
293
293
|
|
|
294
294
|
MAJOR="${{ matrix.major_version }}"
|
|
295
295
|
if [ "$MAJOR" = "13" ]; then
|
|
296
|
-
npm publish --access public --tag v13
|
|
296
|
+
npm publish --access public --tag v13-latest
|
|
297
297
|
else
|
|
298
298
|
npm publish --access public
|
|
299
299
|
fi
|
package/.last-synced-tag
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v14.3.
|
|
1
|
+
v14.3.3
|
package/README.md
CHANGED
|
@@ -16,14 +16,14 @@ npm install typo3-typescript-sources
|
|
|
16
16
|
|
|
17
17
|
- **Original Repository:** [TYPO3/typo3](https://github.com/TYPO3/typo3)
|
|
18
18
|
- **Source Path:** `Build/Sources/TypeScript/`
|
|
19
|
-
- **Current TYPO3 Version:** `v14.3.
|
|
19
|
+
- **Current TYPO3 Version:** `v14.3.3`
|
|
20
20
|
|
|
21
21
|
## 🌿 Branches
|
|
22
22
|
|
|
23
23
|
| Branch | TYPO3 Version | npm tag |
|
|
24
24
|
|----------|---------------|-----------|
|
|
25
25
|
| `main` | v14.x | `latest` |
|
|
26
|
-
| `v13.x` | v13.x | `v13`
|
|
26
|
+
| `v13.x` | v13.x | `v13-latest` |
|
|
27
27
|
|
|
28
28
|
## 📝 License
|
|
29
29
|
|
|
@@ -15,10 +15,12 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
15
15
|
import { html, LitElement, nothing, type TemplateResult } from 'lit';
|
|
16
16
|
import '@typo3/backend/element/icon-element';
|
|
17
17
|
import miscLabels from '~labels/core.misc';
|
|
18
|
+
import type { ResultItemLanguageInterface } from '@typo3/backend/live-search/element/result/item/item';
|
|
18
19
|
|
|
19
20
|
@customElement('typo3-backend-live-search-result-item-default')
|
|
20
21
|
export class DefaultProviderResultItem extends LitElement {
|
|
21
22
|
@property({ type: Object, attribute: false }) icon: Record<string, string>;
|
|
23
|
+
@property({ type: Object, attribute: false }) language: ResultItemLanguageInterface | null = null;
|
|
22
24
|
@property({ type: String, attribute: false }) itemTitle: string;
|
|
23
25
|
@property({ type: String, attribute: false }) typeLabel: string;
|
|
24
26
|
@property({ type: Object, attribute: false }) extraData: { [key: string]: any };
|
|
@@ -32,6 +34,7 @@ export class DefaultProviderResultItem extends LitElement {
|
|
|
32
34
|
return html`
|
|
33
35
|
<div class="livesearch-result-item-icon">
|
|
34
36
|
<typo3-backend-icon title="${this.icon.title}" identifier="${this.icon.identifier}" overlay="${this.icon.overlay}" size="small"></typo3-backend-icon>
|
|
37
|
+
${this.language ? html`<typo3-backend-icon title="${this.language.title}" identifier="${this.language.iconIdentifier}" size="small"></typo3-backend-icon>` : nothing}
|
|
35
38
|
</div>
|
|
36
39
|
<div class="livesearch-result-item-summary">
|
|
37
40
|
<div class="livesearch-result-item-title">
|
|
@@ -15,10 +15,12 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
15
15
|
import { html, LitElement, nothing, type TemplateResult } from 'lit';
|
|
16
16
|
import '@typo3/backend/element/icon-element';
|
|
17
17
|
import miscLabels from '~labels/core.misc';
|
|
18
|
+
import type { ResultItemLanguageInterface } from '@typo3/backend/live-search/element/result/item/item';
|
|
18
19
|
|
|
19
20
|
@customElement('typo3-backend-live-search-result-item-page-provider')
|
|
20
21
|
export default class PageProviderResultItem extends LitElement {
|
|
21
22
|
@property({ type: Object, attribute: false }) icon: Record<string, string>;
|
|
23
|
+
@property({ type: Object, attribute: false }) language: ResultItemLanguageInterface | null = null;
|
|
22
24
|
@property({ type: String, attribute: false }) itemTitle: string;
|
|
23
25
|
@property({ type: String, attribute: false }) typeLabel: string;
|
|
24
26
|
@property({ type: Object, attribute: false }) extraData: { [key: string]: any };
|
|
@@ -32,7 +34,7 @@ export default class PageProviderResultItem extends LitElement {
|
|
|
32
34
|
return html`
|
|
33
35
|
<div class="livesearch-result-item-icon">
|
|
34
36
|
<typo3-backend-icon title="${this.icon.title}" identifier="${this.icon.identifier}" overlay="${this.icon.overlay}" size="small"></typo3-backend-icon>
|
|
35
|
-
|
|
37
|
+
${this.language ? html`<typo3-backend-icon title="${this.language.title}" identifier="${this.language.iconIdentifier}" size="small"></typo3-backend-icon>` : nothing}
|
|
36
38
|
</div>
|
|
37
39
|
<div class="livesearch-result-item-summary">
|
|
38
40
|
<div class="livesearch-result-item-title">
|
|
@@ -89,6 +89,7 @@ export class ItemContainer extends LitElement {
|
|
|
89
89
|
innerResultItemComponent = html`<typo3-backend-live-search-result-item-default
|
|
90
90
|
title="${resultItem.typeLabel}: ${resultItem.itemTitle}"
|
|
91
91
|
.icon="${resultItem.icon}"
|
|
92
|
+
.language="${resultItem.language}"
|
|
92
93
|
.itemTitle="${resultItem.itemTitle}"
|
|
93
94
|
.typeLabel="${resultItem.typeLabel}"
|
|
94
95
|
.extraData="${resultItem.extraData}">
|
|
@@ -15,11 +15,18 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
15
15
|
import { html, LitElement, type TemplateResult } from 'lit';
|
|
16
16
|
import '@typo3/backend/element/icon-element';
|
|
17
17
|
|
|
18
|
+
export interface ResultItemLanguageInterface {
|
|
19
|
+
id: number;
|
|
20
|
+
title: string;
|
|
21
|
+
iconIdentifier: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
export interface ResultItemInterface {
|
|
19
25
|
provider: string;
|
|
20
26
|
actions: ResultItemActionInterface[];
|
|
21
27
|
defaultAction: ResultItemActionInterface;
|
|
22
28
|
icon: Record<string, string>;
|
|
29
|
+
language: ResultItemLanguageInterface | null;
|
|
23
30
|
itemTitle: string;
|
|
24
31
|
typeLabel: string;
|
|
25
32
|
extraData: { [key: string]: any }
|
|
@@ -10,6 +10,7 @@ export function registerRenderer(type: string) {
|
|
|
10
10
|
(attributes: ResultItemInterface): TemplateResult => {
|
|
11
11
|
return html`<typo3-backend-live-search-result-item-page-provider
|
|
12
12
|
.icon="${attributes.icon}"
|
|
13
|
+
.language="${attributes.language}"
|
|
13
14
|
.itemTitle="${attributes.itemTitle}"
|
|
14
15
|
.typeLabel="${attributes.typeLabel}"
|
|
15
16
|
.extraData="${attributes.extraData}">
|
|
@@ -180,12 +180,10 @@ class ExtensionConfiguration extends AbstractInteractableModule {
|
|
|
180
180
|
|
|
181
181
|
parent.appendChild(offsetGroup);
|
|
182
182
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}).bindTo(offsetField);
|
|
188
|
-
});
|
|
183
|
+
new RegularEvent('keyup', (event: KeyboardEvent, offsetField: HTMLInputElement): void => {
|
|
184
|
+
const target = parent.querySelector<HTMLInputElement>(offsetField.dataset.target);
|
|
185
|
+
target.value = parent.querySelector<HTMLInputElement>(target.dataset.offsetfieldX).value + ',' + parent.querySelector<HTMLInputElement>(target.dataset.offsetfieldY).value;
|
|
186
|
+
}).delegateTo(parent, '.t3js-emconf-offsetfield');
|
|
189
187
|
});
|
|
190
188
|
|
|
191
189
|
this.currentModal.querySelectorAll('.t3js-emconf-wrap').forEach((element: HTMLInputElement): void => {
|
|
@@ -201,12 +199,10 @@ class ExtensionConfiguration extends AbstractInteractableModule {
|
|
|
201
199
|
|
|
202
200
|
parent.appendChild(offsetGroup);
|
|
203
201
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}).bindTo(wrapField);
|
|
209
|
-
});
|
|
202
|
+
new RegularEvent('keyup', (event: KeyboardEvent, wrapField: HTMLInputElement): void => {
|
|
203
|
+
const target = parent.querySelector<HTMLInputElement>(wrapField.dataset.target);
|
|
204
|
+
target.value = parent.querySelector<HTMLInputElement>(target.dataset.wrapfieldStart).value + '|' + parent.querySelector<HTMLInputElement>(target.dataset.wrapfieldEnd).value;
|
|
205
|
+
}).delegateTo(parent, '.t3js-emconf-wrapfield');
|
|
210
206
|
});
|
|
211
207
|
}
|
|
212
208
|
}
|
|
@@ -16,12 +16,12 @@ class WrapGroupElement extends LitElement {
|
|
|
16
16
|
<div class="form-multigroup-wrap">
|
|
17
17
|
<div class="form-multigroup-item">
|
|
18
18
|
<div class="input-group">
|
|
19
|
-
<input id="${this.wrapId}_wrap_start" class="form-control t3js-emconf-wrapfield" data-target="#${this.wrapId}" value="${this.values[0]
|
|
19
|
+
<input id="${this.wrapId}_wrap_start" class="form-control t3js-emconf-wrapfield" data-target="#${this.wrapId}" value="${this.values[0]?.trim()}"/>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
<div class="form-multigroup-item">
|
|
23
23
|
<div class="input-group">
|
|
24
|
-
<input id="${this.wrapId}_wrap_end" class="form-control t3js-emconf-wrapfield" data-target="#${this.wrapId}" value="${this.values[
|
|
24
|
+
<input id="${this.wrapId}_wrap_end" class="form-control t3js-emconf-wrapfield" data-target="#${this.wrapId}" value="${this.values[1]?.trim()}"/>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typo3-typescript-sources",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.3",
|
|
4
4
|
"description": "TYPO3 Core TypeScript Sources - Extracted from TYPO3/typo3 repository",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"typo3": {
|
|
30
30
|
"sourceRepository": "https://github.com/TYPO3/typo3",
|
|
31
|
-
"sourceTag": "v14.3.
|
|
31
|
+
"sourceTag": "v14.3.3",
|
|
32
32
|
"sourcePath": "Build/Sources/TypeScript"
|
|
33
33
|
}
|
|
34
34
|
}
|