@vendure/admin-ui 1.6.0 → 1.6.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.
Files changed (44) hide show
  1. package/bundles/vendure-admin-ui-catalog.umd.js +6 -1
  2. package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
  3. package/bundles/vendure-admin-ui-core.umd.js +5 -5
  4. package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
  5. package/bundles/vendure-admin-ui-dashboard.umd.js +1 -1
  6. package/bundles/vendure-admin-ui-dashboard.umd.js.map +1 -1
  7. package/catalog/components/product-variants-editor/product-variants-editor.component.d.ts +13 -10
  8. package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
  9. package/core/common/version.d.ts +1 -1
  10. package/core/vendure-admin-ui-core.metadata.json +1 -1
  11. package/esm2015/catalog/components/product-variants-editor/product-variants-editor.component.js +7 -2
  12. package/esm2015/core/common/generated-types.js +1 -1
  13. package/esm2015/core/common/introspection-result.js +1 -1
  14. package/esm2015/core/common/utilities/configurable-operation-utils.js +2 -2
  15. package/esm2015/core/common/version.js +2 -2
  16. package/esm2015/core/components/app-shell/app-shell.component.js +1 -1
  17. package/esm2015/core/components/main-nav/main-nav.component.js +2 -2
  18. package/esm2015/core/data/definitions/order-definitions.js +431 -431
  19. package/esm2015/core/shared/components/address-form/address-form.component.js +2 -2
  20. package/esm2015/core/shared/components/formatted-address/formatted-address.component.js +2 -2
  21. package/esm2015/core/shared/dynamic-form-inputs/combination-mode-form-input/combination-mode-form-input.component.js +1 -1
  22. package/esm2015/dashboard/components/dashboard-widget/dashboard-widget.component.js +2 -2
  23. package/fesm2015/vendure-admin-ui-catalog.js +6 -1
  24. package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
  25. package/fesm2015/vendure-admin-ui-core.js +459 -459
  26. package/fesm2015/vendure-admin-ui-core.js.map +1 -1
  27. package/fesm2015/vendure-admin-ui-dashboard.js +1 -1
  28. package/fesm2015/vendure-admin-ui-dashboard.js.map +1 -1
  29. package/package.json +2 -2
  30. package/static/i18n-messages/cs.json +1 -0
  31. package/static/i18n-messages/de.json +1 -0
  32. package/static/i18n-messages/en.json +1 -0
  33. package/static/i18n-messages/es.json +1 -0
  34. package/static/i18n-messages/fr.json +1 -0
  35. package/static/i18n-messages/it.json +1 -0
  36. package/static/i18n-messages/pl.json +1 -0
  37. package/static/i18n-messages/pt_BR.json +1 -0
  38. package/static/i18n-messages/pt_PT.json +1 -0
  39. package/static/i18n-messages/ru.json +1 -0
  40. package/static/i18n-messages/uk.json +1 -0
  41. package/static/i18n-messages/zh_Hans.json +1 -0
  42. package/static/i18n-messages/zh_Hant.json +1 -0
  43. package/static/styles/global/_utilities.scss +9 -0
  44. package/static/theme.min.css +1 -1
@@ -3292,460 +3292,460 @@ class FacetDataService {
3292
3292
  }
3293
3293
  }
3294
3294
 
3295
- const DISCOUNT_FRAGMENT = gql `
3296
- fragment Discount on Discount {
3297
- adjustmentSource
3298
- amount
3299
- amountWithTax
3300
- description
3301
- type
3302
- }
3303
- `;
3304
- const REFUND_FRAGMENT = gql `
3305
- fragment Refund on Refund {
3306
- id
3307
- state
3308
- items
3309
- shipping
3310
- adjustment
3311
- transactionId
3312
- paymentId
3313
- }
3314
- `;
3315
- const ORDER_ADDRESS_FRAGMENT = gql `
3316
- fragment OrderAddress on OrderAddress {
3317
- fullName
3318
- company
3319
- streetLine1
3320
- streetLine2
3321
- city
3322
- province
3323
- postalCode
3324
- country
3325
- countryCode
3326
- phoneNumber
3327
- }
3328
- `;
3329
- const ORDER_FRAGMENT = gql `
3330
- fragment Order on Order {
3331
- id
3332
- createdAt
3333
- updatedAt
3334
- orderPlacedAt
3335
- code
3336
- state
3337
- nextStates
3338
- total
3339
- totalWithTax
3340
- currencyCode
3341
- customer {
3342
- id
3343
- firstName
3344
- lastName
3345
- }
3346
- shippingLines {
3347
- shippingMethod {
3348
- name
3349
- }
3350
- }
3351
- }
3352
- `;
3353
- const FULFILLMENT_FRAGMENT = gql `
3354
- fragment Fulfillment on Fulfillment {
3355
- id
3356
- state
3357
- nextStates
3358
- createdAt
3359
- updatedAt
3360
- method
3361
- orderItems {
3362
- id
3363
- }
3364
- trackingCode
3365
- }
3366
- `;
3367
- const ORDER_LINE_FRAGMENT = gql `
3368
- fragment OrderLine on OrderLine {
3369
- id
3370
- featuredAsset {
3371
- preview
3372
- }
3373
- productVariant {
3374
- id
3375
- name
3376
- sku
3377
- trackInventory
3378
- stockOnHand
3379
- }
3380
- discounts {
3381
- ...Discount
3382
- }
3383
- unitPrice
3384
- unitPriceWithTax
3385
- proratedUnitPrice
3386
- proratedUnitPriceWithTax
3387
- quantity
3388
- items {
3389
- id
3390
- unitPrice
3391
- unitPriceWithTax
3392
- taxRate
3393
- refundId
3394
- cancelled
3395
- fulfillment {
3396
- ...Fulfillment
3397
- }
3398
- }
3399
- linePrice
3400
- lineTax
3401
- linePriceWithTax
3402
- discountedLinePrice
3403
- discountedLinePriceWithTax
3404
- }
3405
- `;
3406
- const ORDER_DETAIL_FRAGMENT = gql `
3407
- fragment OrderDetail on Order {
3408
- id
3409
- createdAt
3410
- updatedAt
3411
- code
3412
- state
3413
- nextStates
3414
- active
3415
- couponCodes
3416
- customer {
3417
- id
3418
- firstName
3419
- lastName
3420
- }
3421
- lines {
3422
- ...OrderLine
3423
- }
3424
- surcharges {
3425
- id
3426
- sku
3427
- description
3428
- price
3429
- priceWithTax
3430
- taxRate
3431
- }
3432
- discounts {
3433
- ...Discount
3434
- }
3435
- promotions {
3436
- id
3437
- couponCode
3438
- }
3439
- subTotal
3440
- subTotalWithTax
3441
- total
3442
- totalWithTax
3443
- currencyCode
3444
- shipping
3445
- shippingWithTax
3446
- shippingLines {
3447
- shippingMethod {
3448
- id
3449
- code
3450
- name
3451
- fulfillmentHandlerCode
3452
- description
3453
- }
3454
- }
3455
- taxSummary {
3456
- description
3457
- taxBase
3458
- taxRate
3459
- taxTotal
3460
- }
3461
- shippingAddress {
3462
- ...OrderAddress
3463
- }
3464
- billingAddress {
3465
- ...OrderAddress
3466
- }
3467
- payments {
3468
- id
3469
- createdAt
3470
- transactionId
3471
- amount
3472
- method
3473
- state
3474
- nextStates
3475
- errorMessage
3476
- metadata
3477
- refunds {
3478
- id
3479
- createdAt
3480
- state
3481
- items
3482
- adjustment
3483
- total
3484
- paymentId
3485
- reason
3486
- transactionId
3487
- method
3488
- metadata
3489
- orderItems {
3490
- id
3491
- }
3492
- }
3493
- }
3494
- fulfillments {
3495
- ...Fulfillment
3496
- }
3497
- modifications {
3498
- id
3499
- createdAt
3500
- isSettled
3501
- priceChange
3502
- note
3503
- payment {
3504
- id
3505
- amount
3506
- }
3507
- orderItems {
3508
- id
3509
- }
3510
- refund {
3511
- id
3512
- paymentId
3513
- total
3514
- }
3515
- surcharges {
3516
- id
3517
- }
3518
- }
3519
- }
3520
- ${DISCOUNT_FRAGMENT}
3521
- ${ORDER_ADDRESS_FRAGMENT}
3522
- ${FULFILLMENT_FRAGMENT}
3523
- ${ORDER_LINE_FRAGMENT}
3524
- `;
3525
- const GET_ORDERS_LIST = gql `
3526
- query GetOrderList($options: OrderListOptions) {
3527
- orders(options: $options) {
3528
- items {
3529
- ...Order
3530
- }
3531
- totalItems
3532
- }
3533
- }
3534
- ${ORDER_FRAGMENT}
3535
- `;
3536
- const GET_ORDER = gql `
3537
- query GetOrder($id: ID!) {
3538
- order(id: $id) {
3539
- ...OrderDetail
3540
- }
3541
- }
3542
- ${ORDER_DETAIL_FRAGMENT}
3543
- `;
3544
- const SETTLE_PAYMENT = gql `
3545
- mutation SettlePayment($id: ID!) {
3546
- settlePayment(id: $id) {
3547
- ... on Payment {
3548
- id
3549
- transactionId
3550
- amount
3551
- method
3552
- state
3553
- metadata
3554
- }
3555
- ...ErrorResult
3556
- ... on SettlePaymentError {
3557
- paymentErrorMessage
3558
- }
3559
- ... on PaymentStateTransitionError {
3560
- transitionError
3561
- }
3562
- ... on OrderStateTransitionError {
3563
- transitionError
3564
- }
3565
- }
3566
- }
3567
- ${ERROR_RESULT_FRAGMENT}
3568
- `;
3569
- const TRANSITION_PAYMENT_TO_STATE = gql `
3570
- mutation TransitionPaymentToState($id: ID!, $state: String!) {
3571
- transitionPaymentToState(id: $id, state: $state) {
3572
- ... on Payment {
3573
- id
3574
- transactionId
3575
- amount
3576
- method
3577
- state
3578
- metadata
3579
- }
3580
- ...ErrorResult
3581
- ... on PaymentStateTransitionError {
3582
- transitionError
3583
- }
3584
- }
3585
- }
3586
- ${ERROR_RESULT_FRAGMENT}
3587
- `;
3588
- const CREATE_FULFILLMENT = gql `
3589
- mutation CreateFulfillment($input: FulfillOrderInput!) {
3590
- addFulfillmentToOrder(input: $input) {
3591
- ...Fulfillment
3592
- ... on CreateFulfillmentError {
3593
- errorCode
3594
- message
3595
- fulfillmentHandlerError
3596
- }
3597
- ... on FulfillmentStateTransitionError {
3598
- errorCode
3599
- message
3600
- transitionError
3601
- }
3602
- ...ErrorResult
3603
- }
3604
- }
3605
- ${FULFILLMENT_FRAGMENT}
3606
- ${ERROR_RESULT_FRAGMENT}
3607
- `;
3608
- const CANCEL_ORDER = gql `
3609
- mutation CancelOrder($input: CancelOrderInput!) {
3610
- cancelOrder(input: $input) {
3611
- ...OrderDetail
3612
- ...ErrorResult
3613
- }
3614
- }
3615
- ${ORDER_DETAIL_FRAGMENT}
3616
- ${ERROR_RESULT_FRAGMENT}
3617
- `;
3618
- const REFUND_ORDER = gql `
3619
- mutation RefundOrder($input: RefundOrderInput!) {
3620
- refundOrder(input: $input) {
3621
- ...Refund
3622
- ...ErrorResult
3623
- }
3624
- }
3625
- ${REFUND_FRAGMENT}
3626
- ${ERROR_RESULT_FRAGMENT}
3627
- `;
3628
- const SETTLE_REFUND = gql `
3629
- mutation SettleRefund($input: SettleRefundInput!) {
3630
- settleRefund(input: $input) {
3631
- ...Refund
3632
- ...ErrorResult
3633
- }
3634
- }
3635
- ${REFUND_FRAGMENT}
3636
- ${ERROR_RESULT_FRAGMENT}
3637
- `;
3638
- const GET_ORDER_HISTORY = gql `
3639
- query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {
3640
- order(id: $id) {
3641
- id
3642
- history(options: $options) {
3643
- totalItems
3644
- items {
3645
- id
3646
- type
3647
- createdAt
3648
- isPublic
3649
- administrator {
3650
- id
3651
- firstName
3652
- lastName
3653
- }
3654
- data
3655
- }
3656
- }
3657
- }
3658
- }
3659
- `;
3660
- const ADD_NOTE_TO_ORDER = gql `
3661
- mutation AddNoteToOrder($input: AddNoteToOrderInput!) {
3662
- addNoteToOrder(input: $input) {
3663
- id
3664
- }
3665
- }
3666
- `;
3667
- const UPDATE_ORDER_NOTE = gql `
3668
- mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {
3669
- updateOrderNote(input: $input) {
3670
- id
3671
- data
3672
- isPublic
3673
- }
3674
- }
3675
- `;
3676
- const DELETE_ORDER_NOTE = gql `
3677
- mutation DeleteOrderNote($id: ID!) {
3678
- deleteOrderNote(id: $id) {
3679
- result
3680
- message
3681
- }
3682
- }
3683
- `;
3684
- const TRANSITION_ORDER_TO_STATE = gql `
3685
- mutation TransitionOrderToState($id: ID!, $state: String!) {
3686
- transitionOrderToState(id: $id, state: $state) {
3687
- ...Order
3688
- ...ErrorResult
3689
- ... on OrderStateTransitionError {
3690
- transitionError
3691
- }
3692
- }
3693
- }
3694
- ${ORDER_FRAGMENT}
3695
- ${ERROR_RESULT_FRAGMENT}
3696
- `;
3697
- const UPDATE_ORDER_CUSTOM_FIELDS = gql `
3698
- mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {
3699
- setOrderCustomFields(input: $input) {
3700
- ...Order
3701
- }
3702
- }
3703
- ${ORDER_FRAGMENT}
3704
- `;
3705
- const TRANSITION_FULFILLMENT_TO_STATE = gql `
3706
- mutation TransitionFulfillmentToState($id: ID!, $state: String!) {
3707
- transitionFulfillmentToState(id: $id, state: $state) {
3708
- ...Fulfillment
3709
- ...ErrorResult
3710
- ... on FulfillmentStateTransitionError {
3711
- transitionError
3712
- }
3713
- }
3714
- }
3715
- ${FULFILLMENT_FRAGMENT}
3716
- ${ERROR_RESULT_FRAGMENT}
3717
- `;
3718
- const GET_ORDER_SUMMARY = gql `
3719
- query GetOrderSummary($start: DateTime!, $end: DateTime!) {
3720
- orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {
3721
- totalItems
3722
- items {
3723
- id
3724
- total
3725
- currencyCode
3726
- }
3727
- }
3728
- }
3729
- `;
3730
- const MODIFY_ORDER = gql `
3731
- mutation ModifyOrder($input: ModifyOrderInput!) {
3732
- modifyOrder(input: $input) {
3733
- ...OrderDetail
3734
- ...ErrorResult
3735
- }
3736
- }
3737
- ${ORDER_DETAIL_FRAGMENT}
3738
- ${ERROR_RESULT_FRAGMENT}
3739
- `;
3740
- const ADD_MANUAL_PAYMENT_TO_ORDER = gql `
3741
- mutation AddManualPayment($input: ManualPaymentInput!) {
3742
- addManualPaymentToOrder(input: $input) {
3743
- ...OrderDetail
3744
- ...ErrorResult
3745
- }
3746
- }
3747
- ${ORDER_DETAIL_FRAGMENT}
3748
- ${ERROR_RESULT_FRAGMENT}
3295
+ const DISCOUNT_FRAGMENT = gql `
3296
+ fragment Discount on Discount {
3297
+ adjustmentSource
3298
+ amount
3299
+ amountWithTax
3300
+ description
3301
+ type
3302
+ }
3303
+ `;
3304
+ const REFUND_FRAGMENT = gql `
3305
+ fragment Refund on Refund {
3306
+ id
3307
+ state
3308
+ items
3309
+ shipping
3310
+ adjustment
3311
+ transactionId
3312
+ paymentId
3313
+ }
3314
+ `;
3315
+ const ORDER_ADDRESS_FRAGMENT = gql `
3316
+ fragment OrderAddress on OrderAddress {
3317
+ fullName
3318
+ company
3319
+ streetLine1
3320
+ streetLine2
3321
+ city
3322
+ province
3323
+ postalCode
3324
+ country
3325
+ countryCode
3326
+ phoneNumber
3327
+ }
3328
+ `;
3329
+ const ORDER_FRAGMENT = gql `
3330
+ fragment Order on Order {
3331
+ id
3332
+ createdAt
3333
+ updatedAt
3334
+ orderPlacedAt
3335
+ code
3336
+ state
3337
+ nextStates
3338
+ total
3339
+ totalWithTax
3340
+ currencyCode
3341
+ customer {
3342
+ id
3343
+ firstName
3344
+ lastName
3345
+ }
3346
+ shippingLines {
3347
+ shippingMethod {
3348
+ name
3349
+ }
3350
+ }
3351
+ }
3352
+ `;
3353
+ const FULFILLMENT_FRAGMENT = gql `
3354
+ fragment Fulfillment on Fulfillment {
3355
+ id
3356
+ state
3357
+ nextStates
3358
+ createdAt
3359
+ updatedAt
3360
+ method
3361
+ orderItems {
3362
+ id
3363
+ }
3364
+ trackingCode
3365
+ }
3366
+ `;
3367
+ const ORDER_LINE_FRAGMENT = gql `
3368
+ fragment OrderLine on OrderLine {
3369
+ id
3370
+ featuredAsset {
3371
+ preview
3372
+ }
3373
+ productVariant {
3374
+ id
3375
+ name
3376
+ sku
3377
+ trackInventory
3378
+ stockOnHand
3379
+ }
3380
+ discounts {
3381
+ ...Discount
3382
+ }
3383
+ unitPrice
3384
+ unitPriceWithTax
3385
+ proratedUnitPrice
3386
+ proratedUnitPriceWithTax
3387
+ quantity
3388
+ items {
3389
+ id
3390
+ unitPrice
3391
+ unitPriceWithTax
3392
+ taxRate
3393
+ refundId
3394
+ cancelled
3395
+ fulfillment {
3396
+ ...Fulfillment
3397
+ }
3398
+ }
3399
+ linePrice
3400
+ lineTax
3401
+ linePriceWithTax
3402
+ discountedLinePrice
3403
+ discountedLinePriceWithTax
3404
+ }
3405
+ `;
3406
+ const ORDER_DETAIL_FRAGMENT = gql `
3407
+ fragment OrderDetail on Order {
3408
+ id
3409
+ createdAt
3410
+ updatedAt
3411
+ code
3412
+ state
3413
+ nextStates
3414
+ active
3415
+ couponCodes
3416
+ customer {
3417
+ id
3418
+ firstName
3419
+ lastName
3420
+ }
3421
+ lines {
3422
+ ...OrderLine
3423
+ }
3424
+ surcharges {
3425
+ id
3426
+ sku
3427
+ description
3428
+ price
3429
+ priceWithTax
3430
+ taxRate
3431
+ }
3432
+ discounts {
3433
+ ...Discount
3434
+ }
3435
+ promotions {
3436
+ id
3437
+ couponCode
3438
+ }
3439
+ subTotal
3440
+ subTotalWithTax
3441
+ total
3442
+ totalWithTax
3443
+ currencyCode
3444
+ shipping
3445
+ shippingWithTax
3446
+ shippingLines {
3447
+ shippingMethod {
3448
+ id
3449
+ code
3450
+ name
3451
+ fulfillmentHandlerCode
3452
+ description
3453
+ }
3454
+ }
3455
+ taxSummary {
3456
+ description
3457
+ taxBase
3458
+ taxRate
3459
+ taxTotal
3460
+ }
3461
+ shippingAddress {
3462
+ ...OrderAddress
3463
+ }
3464
+ billingAddress {
3465
+ ...OrderAddress
3466
+ }
3467
+ payments {
3468
+ id
3469
+ createdAt
3470
+ transactionId
3471
+ amount
3472
+ method
3473
+ state
3474
+ nextStates
3475
+ errorMessage
3476
+ metadata
3477
+ refunds {
3478
+ id
3479
+ createdAt
3480
+ state
3481
+ items
3482
+ adjustment
3483
+ total
3484
+ paymentId
3485
+ reason
3486
+ transactionId
3487
+ method
3488
+ metadata
3489
+ orderItems {
3490
+ id
3491
+ }
3492
+ }
3493
+ }
3494
+ fulfillments {
3495
+ ...Fulfillment
3496
+ }
3497
+ modifications {
3498
+ id
3499
+ createdAt
3500
+ isSettled
3501
+ priceChange
3502
+ note
3503
+ payment {
3504
+ id
3505
+ amount
3506
+ }
3507
+ orderItems {
3508
+ id
3509
+ }
3510
+ refund {
3511
+ id
3512
+ paymentId
3513
+ total
3514
+ }
3515
+ surcharges {
3516
+ id
3517
+ }
3518
+ }
3519
+ }
3520
+ ${DISCOUNT_FRAGMENT}
3521
+ ${ORDER_ADDRESS_FRAGMENT}
3522
+ ${FULFILLMENT_FRAGMENT}
3523
+ ${ORDER_LINE_FRAGMENT}
3524
+ `;
3525
+ const GET_ORDERS_LIST = gql `
3526
+ query GetOrderList($options: OrderListOptions) {
3527
+ orders(options: $options) {
3528
+ items {
3529
+ ...Order
3530
+ }
3531
+ totalItems
3532
+ }
3533
+ }
3534
+ ${ORDER_FRAGMENT}
3535
+ `;
3536
+ const GET_ORDER = gql `
3537
+ query GetOrder($id: ID!) {
3538
+ order(id: $id) {
3539
+ ...OrderDetail
3540
+ }
3541
+ }
3542
+ ${ORDER_DETAIL_FRAGMENT}
3543
+ `;
3544
+ const SETTLE_PAYMENT = gql `
3545
+ mutation SettlePayment($id: ID!) {
3546
+ settlePayment(id: $id) {
3547
+ ... on Payment {
3548
+ id
3549
+ transactionId
3550
+ amount
3551
+ method
3552
+ state
3553
+ metadata
3554
+ }
3555
+ ...ErrorResult
3556
+ ... on SettlePaymentError {
3557
+ paymentErrorMessage
3558
+ }
3559
+ ... on PaymentStateTransitionError {
3560
+ transitionError
3561
+ }
3562
+ ... on OrderStateTransitionError {
3563
+ transitionError
3564
+ }
3565
+ }
3566
+ }
3567
+ ${ERROR_RESULT_FRAGMENT}
3568
+ `;
3569
+ const TRANSITION_PAYMENT_TO_STATE = gql `
3570
+ mutation TransitionPaymentToState($id: ID!, $state: String!) {
3571
+ transitionPaymentToState(id: $id, state: $state) {
3572
+ ... on Payment {
3573
+ id
3574
+ transactionId
3575
+ amount
3576
+ method
3577
+ state
3578
+ metadata
3579
+ }
3580
+ ...ErrorResult
3581
+ ... on PaymentStateTransitionError {
3582
+ transitionError
3583
+ }
3584
+ }
3585
+ }
3586
+ ${ERROR_RESULT_FRAGMENT}
3587
+ `;
3588
+ const CREATE_FULFILLMENT = gql `
3589
+ mutation CreateFulfillment($input: FulfillOrderInput!) {
3590
+ addFulfillmentToOrder(input: $input) {
3591
+ ...Fulfillment
3592
+ ... on CreateFulfillmentError {
3593
+ errorCode
3594
+ message
3595
+ fulfillmentHandlerError
3596
+ }
3597
+ ... on FulfillmentStateTransitionError {
3598
+ errorCode
3599
+ message
3600
+ transitionError
3601
+ }
3602
+ ...ErrorResult
3603
+ }
3604
+ }
3605
+ ${FULFILLMENT_FRAGMENT}
3606
+ ${ERROR_RESULT_FRAGMENT}
3607
+ `;
3608
+ const CANCEL_ORDER = gql `
3609
+ mutation CancelOrder($input: CancelOrderInput!) {
3610
+ cancelOrder(input: $input) {
3611
+ ...OrderDetail
3612
+ ...ErrorResult
3613
+ }
3614
+ }
3615
+ ${ORDER_DETAIL_FRAGMENT}
3616
+ ${ERROR_RESULT_FRAGMENT}
3617
+ `;
3618
+ const REFUND_ORDER = gql `
3619
+ mutation RefundOrder($input: RefundOrderInput!) {
3620
+ refundOrder(input: $input) {
3621
+ ...Refund
3622
+ ...ErrorResult
3623
+ }
3624
+ }
3625
+ ${REFUND_FRAGMENT}
3626
+ ${ERROR_RESULT_FRAGMENT}
3627
+ `;
3628
+ const SETTLE_REFUND = gql `
3629
+ mutation SettleRefund($input: SettleRefundInput!) {
3630
+ settleRefund(input: $input) {
3631
+ ...Refund
3632
+ ...ErrorResult
3633
+ }
3634
+ }
3635
+ ${REFUND_FRAGMENT}
3636
+ ${ERROR_RESULT_FRAGMENT}
3637
+ `;
3638
+ const GET_ORDER_HISTORY = gql `
3639
+ query GetOrderHistory($id: ID!, $options: HistoryEntryListOptions) {
3640
+ order(id: $id) {
3641
+ id
3642
+ history(options: $options) {
3643
+ totalItems
3644
+ items {
3645
+ id
3646
+ type
3647
+ createdAt
3648
+ isPublic
3649
+ administrator {
3650
+ id
3651
+ firstName
3652
+ lastName
3653
+ }
3654
+ data
3655
+ }
3656
+ }
3657
+ }
3658
+ }
3659
+ `;
3660
+ const ADD_NOTE_TO_ORDER = gql `
3661
+ mutation AddNoteToOrder($input: AddNoteToOrderInput!) {
3662
+ addNoteToOrder(input: $input) {
3663
+ id
3664
+ }
3665
+ }
3666
+ `;
3667
+ const UPDATE_ORDER_NOTE = gql `
3668
+ mutation UpdateOrderNote($input: UpdateOrderNoteInput!) {
3669
+ updateOrderNote(input: $input) {
3670
+ id
3671
+ data
3672
+ isPublic
3673
+ }
3674
+ }
3675
+ `;
3676
+ const DELETE_ORDER_NOTE = gql `
3677
+ mutation DeleteOrderNote($id: ID!) {
3678
+ deleteOrderNote(id: $id) {
3679
+ result
3680
+ message
3681
+ }
3682
+ }
3683
+ `;
3684
+ const TRANSITION_ORDER_TO_STATE = gql `
3685
+ mutation TransitionOrderToState($id: ID!, $state: String!) {
3686
+ transitionOrderToState(id: $id, state: $state) {
3687
+ ...Order
3688
+ ...ErrorResult
3689
+ ... on OrderStateTransitionError {
3690
+ transitionError
3691
+ }
3692
+ }
3693
+ }
3694
+ ${ORDER_FRAGMENT}
3695
+ ${ERROR_RESULT_FRAGMENT}
3696
+ `;
3697
+ const UPDATE_ORDER_CUSTOM_FIELDS = gql `
3698
+ mutation UpdateOrderCustomFields($input: UpdateOrderInput!) {
3699
+ setOrderCustomFields(input: $input) {
3700
+ ...Order
3701
+ }
3702
+ }
3703
+ ${ORDER_FRAGMENT}
3704
+ `;
3705
+ const TRANSITION_FULFILLMENT_TO_STATE = gql `
3706
+ mutation TransitionFulfillmentToState($id: ID!, $state: String!) {
3707
+ transitionFulfillmentToState(id: $id, state: $state) {
3708
+ ...Fulfillment
3709
+ ...ErrorResult
3710
+ ... on FulfillmentStateTransitionError {
3711
+ transitionError
3712
+ }
3713
+ }
3714
+ }
3715
+ ${FULFILLMENT_FRAGMENT}
3716
+ ${ERROR_RESULT_FRAGMENT}
3717
+ `;
3718
+ const GET_ORDER_SUMMARY = gql `
3719
+ query GetOrderSummary($start: DateTime!, $end: DateTime!) {
3720
+ orders(options: { filter: { orderPlacedAt: { between: { start: $start, end: $end } } } }) {
3721
+ totalItems
3722
+ items {
3723
+ id
3724
+ total
3725
+ currencyCode
3726
+ }
3727
+ }
3728
+ }
3729
+ `;
3730
+ const MODIFY_ORDER = gql `
3731
+ mutation ModifyOrder($input: ModifyOrderInput!) {
3732
+ modifyOrder(input: $input) {
3733
+ ...OrderDetail
3734
+ ...ErrorResult
3735
+ }
3736
+ }
3737
+ ${ORDER_DETAIL_FRAGMENT}
3738
+ ${ERROR_RESULT_FRAGMENT}
3739
+ `;
3740
+ const ADD_MANUAL_PAYMENT_TO_ORDER = gql `
3741
+ mutation AddManualPayment($input: ManualPaymentInput!) {
3742
+ addManualPaymentToOrder(input: $input) {
3743
+ ...OrderDetail
3744
+ ...ErrorResult
3745
+ }
3746
+ }
3747
+ ${ORDER_DETAIL_FRAGMENT}
3748
+ ${ERROR_RESULT_FRAGMENT}
3749
3749
  `;
3750
3750
 
3751
3751
  class OrderDataService {
@@ -7271,7 +7271,7 @@ class MainNavComponent {
7271
7271
  MainNavComponent.decorators = [
7272
7272
  { type: Component, args: [{
7273
7273
  selector: 'vdr-main-nav',
7274
- template: "<nav class=\"sidenav\" [clr-nav-level]=\"2\">\r\n <section class=\"sidenav-content\">\r\n <ng-container *ngFor=\"let section of navBuilderService.navMenuConfig$ | async\">\r\n <section\r\n class=\"nav-group\"\r\n [attr.data-section-id]=\"section.id\"\r\n [class.collapsible]=\"section.collapsible\"\r\n *ngIf=\"shouldDisplayLink(section)\"\r\n >\r\n <vdr-ui-extension-point [locationId]=\"section.id\" api=\"navMenu\" [topPx]=\"-6\" [leftPx]=\"8\">\r\n <ng-container *ngIf=\"navBuilderService.sectionBadges[section.id] | async as sectionBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"sectionBadge !== 'none'\"\r\n [type]=\"sectionBadge\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <input [id]=\"section.id\" type=\"checkbox\" [checked]=\"section.collapsedByDefault\" />\r\n <label class=\"nav-group-header\" [for]=\"section.id\">{{ section.label | translate }}</label>\r\n <ul class=\"nav-list\">\r\n <ng-container *ngFor=\"let item of section.items\">\r\n <li *ngIf=\"shouldDisplayLink(item)\">\r\n <a\r\n class=\"nav-link\"\r\n [attr.data-item-id]=\"section.id\"\r\n [routerLink]=\"getRouterLink(item)\"\r\n routerLinkActive=\"active\"\r\n >\r\n <ng-container *ngIf=\"item.statusBadge | async as itemBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"itemBadge.type !== 'none'\"\r\n [type]=\"itemBadge.type\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <clr-icon [attr.shape]=\"item.icon || 'block'\" size=\"20\"></clr-icon>\r\n {{ item.label | translate }}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </vdr-ui-extension-point>\r\n </section>\r\n </ng-container>\r\n </section>\r\n</nav>\r\n",
7274
+ template: "<nav class=\"sidenav\" [clr-nav-level]=\"2\">\r\n <section class=\"sidenav-content\">\r\n <ng-container *ngFor=\"let section of navBuilderService.navMenuConfig$ | async\">\r\n <section\r\n class=\"nav-group\"\r\n [attr.data-section-id]=\"section.id\"\r\n [class.collapsible]=\"section.collapsible\"\r\n *ngIf=\"shouldDisplayLink(section)\"\r\n >\r\n <vdr-ui-extension-point [locationId]=\"section.id\" api=\"navMenu\" [topPx]=\"-6\" [leftPx]=\"8\">\r\n <ng-container *ngIf=\"navBuilderService.sectionBadges[section.id] | async as sectionBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"sectionBadge !== 'none'\"\r\n [type]=\"sectionBadge\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <input [id]=\"section.id\" type=\"checkbox\" [checked]=\"section.collapsedByDefault\" />\r\n <label class=\"nav-group-header\" [for]=\"section.id\">{{ section.label | translate }}</label>\r\n <ul class=\"nav-list\">\r\n <ng-container *ngFor=\"let item of section.items\">\r\n <li *ngIf=\"shouldDisplayLink(item)\">\r\n <a\r\n class=\"nav-link\"\r\n [attr.data-item-id]=\"section.id\"\r\n [routerLink]=\"getRouterLink(item)\"\r\n routerLinkActive=\"active\"\r\n (click)=\"item.onClick && item.onClick($event)\"\r\n >\r\n <ng-container *ngIf=\"item.statusBadge | async as itemBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"itemBadge.type !== 'none'\"\r\n [type]=\"itemBadge.type\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <clr-icon [attr.shape]=\"item.icon || 'block'\" size=\"20\"></clr-icon>\r\n {{ item.label | translate }}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </vdr-ui-extension-point>\r\n </section>\r\n </ng-container>\r\n </section>\r\n</nav>\r\n",
7275
7275
  styles: [":host{order:-1;background-color:var(--clr-nav-background-color)}nav.sidenav{height:100%;width:10.8rem;border-right-color:var(--clr-sidenav-border-color)}.sidenav .nav-group .nav-list{margin:0}.sidenav .nav-group .nav-group-header{margin:0;line-height:1.2}.sidenav .nav-group .nav-link{display:inline-flex;line-height:1rem;padding-right:.6rem}.nav-list clr-icon{flex-shrink:0;margin-right:12px}.nav-group{-webkit-hyphens:auto;hyphens:auto}.nav-group,.nav-link{position:relative}.nav-group vdr-status-badge{left:10px;top:6px}.nav-link vdr-status-badge{left:25px;top:3px}\n"]
7276
7276
  },] }
7277
7277
  ];
@@ -8611,7 +8611,7 @@ function toConfigurableOperationInput(operation, formValueOperations) {
8611
8611
  code: operation.code,
8612
8612
  arguments: Object.values(formValueOperations.args || {}).map((value, j) => ({
8613
8613
  name: operation.args[j].name,
8614
- value: value.hasOwnProperty('value')
8614
+ value: (value === null || value === void 0 ? void 0 : value.hasOwnProperty('value'))
8615
8615
  ? encodeConfigArgValue(value.value)
8616
8616
  : encodeConfigArgValue(value),
8617
8617
  })),
@@ -9704,7 +9704,7 @@ class AddressFormComponent {
9704
9704
  AddressFormComponent.decorators = [
9705
9705
  { type: Component, args: [{
9706
9706
  selector: 'vdr-address-form',
9707
- template: "<form [formGroup]=\"formGroup\">\r\n <clr-input-container>\r\n <label>{{ 'customer.full-name' | translate }}</label>\r\n <input formControlName=\"fullName\" type=\"text\" clrInput/>\r\n </clr-input-container>\r\n\r\n <div class=\"clr-row\">\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.street-line-1' | translate }}</label>\r\n <input formControlName=\"streetLine1\" type=\"text\" clrInput/>\r\n </clr-input-container>\r\n </div>\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.street-line-2' | translate }}</label>\r\n <input formControlName=\"streetLine2\" type=\"text\" clrInput/>\r\n </clr-input-container>\r\n </div>\r\n </div>\r\n <div class=\"clr-row\">\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.city' | translate }}</label>\r\n <input formControlName=\"city\" type=\"text\" clrInput/>\r\n </clr-input-container>\r\n </div>\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.province' | translate }}</label>\r\n <input formControlName=\"province\" type=\"text\" clrInput/>\r\n </clr-input-container>\r\n </div>\r\n </div>\r\n <div class=\"clr-row\">\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.postal-code' | translate }}</label>\r\n <input formControlName=\"postalCode\" type=\"text\" clrInput/>\r\n </clr-input-container>\r\n </div>\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.country' | translate }}</label>\r\n <select name=\"countryCode\" formControlName=\"countryCode\" clrInput clrSelect>\r\n <option *ngFor=\"let country of availableCountries\" [value]=\"country.code\">\r\n {{ country.name }}\r\n </option>\r\n </select>\r\n </clr-input-container>\r\n </div>\r\n </div>\r\n <clr-input-container>\r\n <label>{{ 'customer.phone-number' | translate }}</label>\r\n <input formControlName=\"phoneNumber\" type=\"text\" clrInput/>\r\n </clr-input-container>\r\n <section formGroupName=\"customFields\" *ngIf=\"formGroup.get('customFields') as customFieldsGroup\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"Address\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"customFieldsGroup\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n</form>\r\n",
9707
+ template: "<form [formGroup]=\"formGroup\">\r\n <div class=\"clr-row\">\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.full-name' | translate }}</label>\r\n <input formControlName=\"fullName\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n </div>\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.company' | translate }}</label>\r\n <input formControlName=\"company\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n </div>\r\n </div>\r\n\r\n <div class=\"clr-row\">\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.street-line-1' | translate }}</label>\r\n <input formControlName=\"streetLine1\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n </div>\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.street-line-2' | translate }}</label>\r\n <input formControlName=\"streetLine2\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n </div>\r\n </div>\r\n <div class=\"clr-row\">\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.city' | translate }}</label>\r\n <input formControlName=\"city\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n </div>\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.province' | translate }}</label>\r\n <input formControlName=\"province\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n </div>\r\n </div>\r\n <div class=\"clr-row\">\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.postal-code' | translate }}</label>\r\n <input formControlName=\"postalCode\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n </div>\r\n <div class=\"clr-col-md-4\">\r\n <clr-input-container>\r\n <label>{{ 'customer.country' | translate }}</label>\r\n <select name=\"countryCode\" formControlName=\"countryCode\" clrInput clrSelect>\r\n <option *ngFor=\"let country of availableCountries\" [value]=\"country.code\">\r\n {{ country.name }}\r\n </option>\r\n </select>\r\n </clr-input-container>\r\n </div>\r\n </div>\r\n <clr-input-container>\r\n <label>{{ 'customer.phone-number' | translate }}</label>\r\n <input formControlName=\"phoneNumber\" type=\"text\" clrInput />\r\n </clr-input-container>\r\n <section formGroupName=\"customFields\" *ngIf=\"formGroup.get('customFields') as customFieldsGroup\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"Address\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"customFieldsGroup\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n</form>\r\n",
9708
9708
  changeDetection: ChangeDetectionStrategy.OnPush,
9709
9709
  styles: [""]
9710
9710
  },] }
@@ -12284,7 +12284,7 @@ class FormattedAddressComponent {
12284
12284
  FormattedAddressComponent.decorators = [
12285
12285
  { type: Component, args: [{
12286
12286
  selector: 'vdr-formatted-address',
12287
- template: "<ul class=\"address-lines\">\r\n <li *ngIf=\"address.fullName\">{{ address.fullName }}</li>\r\n <li *ngIf=\"address.streetLine1\">{{ address.streetLine1 }}</li>\r\n <li *ngIf=\"address.streetLine2\">{{ address.streetLine2 }}</li>\r\n <li *ngIf=\"address.city\">{{ address.city }}</li>\r\n <li *ngIf=\"address.province\">{{ address.province }}</li>\r\n <li *ngIf=\"address.postalCode\">{{ address.postalCode }}</li>\r\n <li *ngIf=\"address.country\">\r\n <clr-icon shape=\"world\" size=\"12\"></clr-icon>\r\n {{ getCountryName() }}\r\n </li>\r\n <li *ngIf=\"address.phoneNumber\">\r\n <clr-icon shape=\"phone-handset\" size=\"12\"></clr-icon>\r\n {{ address.phoneNumber }}\r\n </li>\r\n <li *ngFor=\"let customField of getCustomFields()\" class=\"custom-field\">\r\n <vdr-labeled-data [label]=\"customField.key\">{{ customField.value }}</vdr-labeled-data>\r\n </li>\r\n</ul>\r\n",
12287
+ template: "<ul class=\"address-lines\">\r\n <li *ngIf=\"address.fullName\">{{ address.fullName }}</li>\r\n <li *ngIf=\"address.company\">{{ address.company }}</li>\r\n <li *ngIf=\"address.streetLine1\">{{ address.streetLine1 }}</li>\r\n <li *ngIf=\"address.streetLine2\">{{ address.streetLine2 }}</li>\r\n <li *ngIf=\"address.city\">{{ address.city }}</li>\r\n <li *ngIf=\"address.province\">{{ address.province }}</li>\r\n <li *ngIf=\"address.postalCode\">{{ address.postalCode }}</li>\r\n <li *ngIf=\"address.country\">\r\n <clr-icon shape=\"world\" size=\"12\"></clr-icon>\r\n {{ getCountryName() }}\r\n </li>\r\n <li *ngIf=\"address.phoneNumber\">\r\n <clr-icon shape=\"phone-handset\" size=\"12\"></clr-icon>\r\n {{ address.phoneNumber }}\r\n </li>\r\n <li *ngFor=\"let customField of getCustomFields()\" class=\"custom-field\">\r\n <vdr-labeled-data [label]=\"customField.key\">{{ customField.value }}</vdr-labeled-data>\r\n </li>\r\n</ul>\r\n",
12288
12288
  changeDetection: ChangeDetectionStrategy.OnPush,
12289
12289
  styles: [".address-lines{list-style-type:none;line-height:1.2em}.custom-field{margin-top:6px}\n"]
12290
12290
  },] }
@@ -16059,7 +16059,7 @@ function patchObject(obj, patch) {
16059
16059
  }
16060
16060
 
16061
16061
  // Auto-generated by the set-version.js script.
16062
- const ADMIN_UI_VERSION = '1.6.0';
16062
+ const ADMIN_UI_VERSION = '1.6.3';
16063
16063
 
16064
16064
  /**
16065
16065
  * Responsible for registering dashboard widget components and querying for layouts.