@haus-tech/badge-plugin 4.0.2 → 4.0.3-rc.1
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.
|
@@ -19,6 +19,7 @@ const rxjs_1 = require("rxjs");
|
|
|
19
19
|
const operators_1 = require("rxjs/operators");
|
|
20
20
|
const common_1 = require("@angular/common");
|
|
21
21
|
const update_badge_component_1 = require("./update-badge.component");
|
|
22
|
+
const core_3 = require("@ngx-translate/core");
|
|
22
23
|
const getBadgeListDocument = (0, gql_1.graphql)(`
|
|
23
24
|
query GetBadges($options: BadgeListOptions) {
|
|
24
25
|
badges(options: $options) {
|
|
@@ -217,7 +218,18 @@ exports.BadgeListComponent = BadgeListComponent = __decorate([
|
|
|
217
218
|
styleUrls: ['./badge-list.component.scss'],
|
|
218
219
|
changeDetection: core_2.ChangeDetectionStrategy.OnPush,
|
|
219
220
|
standalone: true,
|
|
220
|
-
imports: [
|
|
221
|
+
imports: [
|
|
222
|
+
common_1.CommonModule,
|
|
223
|
+
update_badge_component_1.UpdateBadgeComponent,
|
|
224
|
+
core_1.PageBlockComponent,
|
|
225
|
+
core_1.ActionBarComponent,
|
|
226
|
+
core_1.ActionBarLeftComponent,
|
|
227
|
+
core_1.ActionBarRightComponent,
|
|
228
|
+
core_1.AssetFileInputComponent,
|
|
229
|
+
core_1.SelectToggleComponent,
|
|
230
|
+
core_1.ChipComponent,
|
|
231
|
+
core_3.TranslateModule,
|
|
232
|
+
],
|
|
221
233
|
}),
|
|
222
234
|
(0, core_2.Injectable)(),
|
|
223
235
|
__metadata("design:paramtypes", [core_1.NotificationService,
|
|
@@ -3,6 +3,13 @@ import {
|
|
|
3
3
|
NotificationService,
|
|
4
4
|
ModalService,
|
|
5
5
|
SelectionManager,
|
|
6
|
+
PageBlockComponent,
|
|
7
|
+
ActionBarComponent,
|
|
8
|
+
ActionBarLeftComponent,
|
|
9
|
+
ActionBarRightComponent,
|
|
10
|
+
AssetFileInputComponent,
|
|
11
|
+
SelectToggleComponent,
|
|
12
|
+
ChipComponent,
|
|
6
13
|
} from '@vendure/admin-ui/core'
|
|
7
14
|
import {
|
|
8
15
|
Component,
|
|
@@ -20,6 +27,7 @@ import { finalize, map, switchMap } from 'rxjs/operators'
|
|
|
20
27
|
import { Asset } from '@vendure/core'
|
|
21
28
|
import { CommonModule } from '@angular/common'
|
|
22
29
|
import { UpdateBadgeComponent } from './update-badge.component'
|
|
30
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
23
31
|
|
|
24
32
|
const getBadgeListDocument = graphql(`
|
|
25
33
|
query GetBadges($options: BadgeListOptions) {
|
|
@@ -85,7 +93,18 @@ export interface BadgePluginOptions {
|
|
|
85
93
|
styleUrls: ['./badge-list.component.scss'],
|
|
86
94
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
87
95
|
standalone: true,
|
|
88
|
-
imports: [
|
|
96
|
+
imports: [
|
|
97
|
+
CommonModule,
|
|
98
|
+
UpdateBadgeComponent,
|
|
99
|
+
PageBlockComponent,
|
|
100
|
+
ActionBarComponent,
|
|
101
|
+
ActionBarLeftComponent,
|
|
102
|
+
ActionBarRightComponent,
|
|
103
|
+
AssetFileInputComponent,
|
|
104
|
+
SelectToggleComponent,
|
|
105
|
+
ChipComponent,
|
|
106
|
+
TranslateModule,
|
|
107
|
+
],
|
|
89
108
|
})
|
|
90
109
|
@Injectable()
|
|
91
110
|
export class BadgeListComponent
|
|
@@ -16,6 +16,7 @@ const core_2 = require("@vendure/admin-ui/core");
|
|
|
16
16
|
const gql_1 = require("./gql");
|
|
17
17
|
const common_1 = require("@angular/common");
|
|
18
18
|
const ng_select_1 = require("@ng-select/ng-select");
|
|
19
|
+
const core_3 = require("@ngx-translate/core");
|
|
19
20
|
const updateBadgeDocument = (0, gql_1.graphql)(`
|
|
20
21
|
mutation UpdateBadge($input: UpdateBadgeInput!) {
|
|
21
22
|
updateBadge(input: $input) {
|
|
@@ -96,7 +97,13 @@ exports.UpdateBadgeComponent = UpdateBadgeComponent = __decorate([
|
|
|
96
97
|
styleUrls: ['./update-badge.component.scss'],
|
|
97
98
|
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
|
|
98
99
|
standalone: true,
|
|
99
|
-
imports: [
|
|
100
|
+
imports: [
|
|
101
|
+
common_1.CommonModule,
|
|
102
|
+
forms_1.ReactiveFormsModule,
|
|
103
|
+
ng_select_1.NgSelectModule,
|
|
104
|
+
core_2.LabeledDataComponent,
|
|
105
|
+
core_3.TranslateModule,
|
|
106
|
+
],
|
|
100
107
|
}),
|
|
101
108
|
__metadata("design:paramtypes", [forms_1.FormBuilder,
|
|
102
109
|
core_1.ChangeDetectorRef,
|
|
@@ -10,11 +10,12 @@ import {
|
|
|
10
10
|
} from '@angular/core'
|
|
11
11
|
import { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms'
|
|
12
12
|
import { Observable } from 'rxjs'
|
|
13
|
-
import { DataService } from '@vendure/admin-ui/core'
|
|
13
|
+
import { DataService, LabeledDataComponent } from '@vendure/admin-ui/core'
|
|
14
14
|
import { Badge, Collection } from './gql/graphql'
|
|
15
15
|
import { graphql } from './gql'
|
|
16
16
|
import { CommonModule } from '@angular/common'
|
|
17
17
|
import { NgSelectModule } from '@ng-select/ng-select'
|
|
18
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
18
19
|
|
|
19
20
|
const updateBadgeDocument = graphql(`
|
|
20
21
|
mutation UpdateBadge($input: UpdateBadgeInput!) {
|
|
@@ -30,7 +31,13 @@ const updateBadgeDocument = graphql(`
|
|
|
30
31
|
styleUrls: ['./update-badge.component.scss'],
|
|
31
32
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
33
|
standalone: true,
|
|
33
|
-
imports: [
|
|
34
|
+
imports: [
|
|
35
|
+
CommonModule,
|
|
36
|
+
ReactiveFormsModule,
|
|
37
|
+
NgSelectModule,
|
|
38
|
+
LabeledDataComponent,
|
|
39
|
+
TranslateModule,
|
|
40
|
+
],
|
|
34
41
|
})
|
|
35
42
|
export class UpdateBadgeComponent implements OnChanges {
|
|
36
43
|
@Input() badge: Badge
|
package/package.json
CHANGED