@oxyshop/admin 1.3.49 → 1.3.51
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/lib/index.js +937 -79
- package/lib/style.css +714 -361
- package/package.json +6 -6
- package/src/components/article-slug.js +65 -0
- package/src/components/blog-category-slug.js +71 -0
- package/src/components/blog-slug.js +65 -0
- package/src/components/documentUploadInput.js +33 -0
- package/src/components/feedCategorySelect.js +6 -0
- package/src/components/imageInput.js +41 -0
- package/src/components/productVariantPricingGraph.js +86 -0
- package/src/components/productVariantPricingSimulation.js +276 -0
- package/src/index.js +22 -1
- package/src/plugins/ckeditor/index.js +29 -0
package/src/index.js
CHANGED
|
@@ -7,9 +7,17 @@ import 'sylius-bundle/AdminBundle/Resources/private/js/app'
|
|
|
7
7
|
// Scripts - components
|
|
8
8
|
import './components/taxonAttributes'
|
|
9
9
|
import FeedCategorySelect from './components/feedCategorySelect'
|
|
10
|
+
import ProductVariantPricingGraph from './components/productVariantPricingGraph'
|
|
11
|
+
import CustomerGroupClientAssigner from './components/customerGroupClientAssigner'
|
|
10
12
|
import TooltipHelpers from './components/tooltipHelpers'
|
|
11
13
|
import AdminSidebarScroller from './components/adminSidebarScroller'
|
|
12
14
|
import CustomerGroupingRuleConfiguration from './components/customerGroupingRuleConfiguration'
|
|
15
|
+
import ImageInput from './components/imageInput'
|
|
16
|
+
import ProductVariantPricingSimulation from './components/productVariantPricingSimulation'
|
|
17
|
+
import DocumentUploadInput from './components/documentUploadInput'
|
|
18
|
+
import './components/blog-slug.js'
|
|
19
|
+
import './components/article-slug.js'
|
|
20
|
+
import './components/blog-category-slug.js'
|
|
13
21
|
|
|
14
22
|
// Scripts - plugin
|
|
15
23
|
import './plugins/ckeditor/index'
|
|
@@ -30,7 +38,6 @@ import '@oxyshop/admin/lib/style.css'
|
|
|
30
38
|
import '@oxyshop/admin/images/logo.png'
|
|
31
39
|
import '@oxyshop/admin/images/admin-logo.svg'
|
|
32
40
|
import '@oxyshop/admin/images/50x50.png'
|
|
33
|
-
import CustomerGroupClientAssigner from './components/customerGroupClientAssigner'
|
|
34
41
|
|
|
35
42
|
// Components initializations
|
|
36
43
|
$(document).ready(() => {
|
|
@@ -59,7 +66,21 @@ $(document).ready(() => {
|
|
|
59
66
|
const adminSidebarScroller = new AdminSidebarScroller(adminSidebarElement, 'a.item')
|
|
60
67
|
adminSidebarScroller.scrollToActiveLink()
|
|
61
68
|
|
|
69
|
+
const productVariantPricingGraph = new ProductVariantPricingGraph('.ng-product-variant-pricing-graph')
|
|
70
|
+
productVariantPricingGraph.init()
|
|
71
|
+
|
|
72
|
+
const productVariantPricingSimulation = new ProductVariantPricingSimulation(
|
|
73
|
+
'.ng-product-variant-pricing-simulation'
|
|
74
|
+
)
|
|
75
|
+
productVariantPricingSimulation.init()
|
|
76
|
+
|
|
62
77
|
// Client search select
|
|
63
78
|
const clientSearchSelect = new CustomerGroupClientAssigner('.ng-customer-group-client-assigner')
|
|
64
79
|
clientSearchSelect.init()
|
|
80
|
+
|
|
81
|
+
const imageInput = new ImageInput('.ng-image-input')
|
|
82
|
+
imageInput.init()
|
|
83
|
+
|
|
84
|
+
const documentUploadInput = new DocumentUploadInput('input.ng-document-upload-input')
|
|
85
|
+
documentUploadInput.init()
|
|
65
86
|
})
|
|
@@ -90,3 +90,32 @@ vendorDescriptionElements.forEach((element) => {
|
|
|
90
90
|
// eslint-disable-next-line no-undef
|
|
91
91
|
CKEDITOR.replace(element.name, ckEditorOptions)
|
|
92
92
|
})
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Blog article
|
|
96
|
+
*/
|
|
97
|
+
const articleAnnotationElements = document.querySelectorAll(
|
|
98
|
+
'form[name="nextgen_cms_bundle_article"] textarea[name$="[annotation]"]'
|
|
99
|
+
)
|
|
100
|
+
articleAnnotationElements.forEach((element) => {
|
|
101
|
+
// eslint-disable-next-line no-undef
|
|
102
|
+
CKEDITOR.replace(element.name, ckEditorOptions)
|
|
103
|
+
})
|
|
104
|
+
const articleContentElements = document.querySelectorAll(
|
|
105
|
+
'form[name="nextgen_cms_bundle_article"] textarea[name$="[content]"]'
|
|
106
|
+
)
|
|
107
|
+
articleContentElements.forEach((element) => {
|
|
108
|
+
// eslint-disable-next-line no-undef
|
|
109
|
+
CKEDITOR.replace(element.name, ckEditorOptions)
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Blog category
|
|
114
|
+
*/
|
|
115
|
+
const categoryDescriptionElements = document.querySelectorAll(
|
|
116
|
+
'form[name="nextgen_cms_bundle_blog_category"] textarea[name$="[description]"]'
|
|
117
|
+
)
|
|
118
|
+
categoryDescriptionElements.forEach((element) => {
|
|
119
|
+
// eslint-disable-next-line no-undef
|
|
120
|
+
CKEDITOR.replace(element.name, ckEditorOptions)
|
|
121
|
+
})
|