requirejs-config.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Copyright © Magento, Inc. All rights reserved.
  3. * See COPYING.txt for license details.
  4. */
  5. var config = {
  6. map: {
  7. '*': {
  8. categoryForm: 'Magento_Catalog/catalog/category/form',
  9. newCategoryDialog: 'Magento_Catalog/js/new-category-dialog',
  10. categoryTree: 'Magento_Catalog/js/category-tree',
  11. productGallery: 'Magento_Catalog/js/product-gallery',
  12. baseImage: 'Magento_Catalog/catalog/base-image-uploader',
  13. productAttributes: 'Magento_Catalog/catalog/product-attributes',
  14. categoryCheckboxTree: 'Magento_Catalog/js/category-checkbox-tree'
  15. }
  16. },
  17. deps: [
  18. 'Magento_Catalog/catalog/product'
  19. ],
  20. config: {
  21. mixins: {
  22. 'Magento_Catalog/js/components/use-parent-settings/select': {
  23. 'Magento_Catalog/js/components/use-parent-settings/toggle-disabled-mixin': true
  24. },
  25. 'Magento_Catalog/js/components/use-parent-settings/textarea': {
  26. 'Magento_Catalog/js/components/use-parent-settings/toggle-disabled-mixin': true
  27. },
  28. 'Magento_Catalog/js/components/use-parent-settings/single-checkbox': {
  29. 'Magento_Catalog/js/components/use-parent-settings/toggle-disabled-mixin': true
  30. }
  31. }
  32. }
  33. };