32 $this->urlBuilder = $urlBuilder;
48 $meta = array_merge_recursive(
51 self::ATTRIBUTE_SET_HANDLER_MODAL => [
58 'title' =>
__(
'Choose Affected Attribute Set'),
66 'affectedAttributeSetCurrent' => [
70 'dataType' =>
Form\Element\DataType\Text::NAME,
71 'componentType' =>
Form\Field::NAME,
72 'formElement' =>
Form\Element\Checkbox::NAME,
74 'description' =>
__(
'Add configurable attributes to the current Attribute Set'),
75 'dataScope' =>
'configurableAffectedAttributeSet',
86 'affectedAttributeSetNew' => [
90 'dataType' =>
Form\Element\DataType\Text::NAME,
91 'componentType' =>
Form\Field::NAME,
92 'formElement' =>
Form\Element\Checkbox::NAME,
95 'Add configurable attributes to the new Attribute Set based on current' 97 'dataScope' =>
'configurableAffectedAttributeSet',
109 'affectedAttributeSetExisting' => [
113 'dataType' =>
Form\Element\DataType\Text::NAME,
114 'componentType' =>
Form\Field::NAME,
115 'formElement' =>
Form\Element\Checkbox::NAME,
118 'Add configurable attributes to the existing Attribute Set' 120 'dataScope' =>
'configurableAffectedAttributeSet',
122 'true' =>
'existing',
152 'formElement' =>
'container',
153 'componentType' =>
'container',
155 'template' =>
'ui/form/components/complex',
161 'confirm_button' => [
165 'formElement' =>
'container',
166 'componentType' =>
'container',
167 'component' =>
'Magento_Ui/js/form/components/button',
170 'targetName' =>
'product_form.product_form.configurableVariations',
171 'actionName' =>
'addNewAttributeSetHandler',
174 'title' =>
__(
'Confirm'),
195 'dataType' => Form\Element\DataType\Text::NAME,
196 'formElement' => Form\Element\Input::NAME,
197 'componentType' => Form\Field::NAME,
198 'dataScope' =>
'configurableNewAttributeSetName',
199 'additionalClasses' =>
'new-attribute-set-name',
200 'label' =>
__(
'New Attribute Set Name'),
202 'validation' => [
'required-entry' =>
true],
204 'visible' =>
'ns = ${ $.ns }, index = affectedAttributeSetNew:checked',
206 '!ns = ${ $.ns }, index = affectedAttributeSetNew:checked',
224 if (!empty($meta[
$name][
'children'][
'attribute_set_id'][
'arguments'][
'data'][
'config'][
'options'])) {
225 $options = $meta[
$name][
'children'][
'attribute_set_id'][
'arguments'][
'data'][
'config'][
'options'];
230 'component' =>
'Magento_Ui/js/form/element/ui-select',
231 'disableLabel' =>
true,
232 'filterOptions' =>
false,
233 'elementTmpl' =>
'ui/grid/filters/elements/ui-select',
234 'formElement' =>
'select',
235 'componentType' => Form\Field::NAME,
237 'label' =>
__(
'Choose existing Attribute Set'),
238 'dataScope' =>
'configurableExistingAttributeSetId',
242 'value' =>
'ns = ${ $.ns }, index = attribute_set_id:value',
243 'visible' =>
'ns = ${ $.ns }, index = affectedAttributeSetExisting:checked',
245 '!ns = ${ $.ns }, index = affectedAttributeSetExisting:checked',
268 'component' =>
'Magento_Ui/js/form/components/html',
if(!isset($_GET['name'])) $name