<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <argument name="data" xsi:type="array">
        <item name="js_config" xsi:type="array">
            <item name="provider" xsi:type="string">customer_group_listing.customer_group_listing_data_source</item>
        </item>
    </argument>
    <settings>
        <buttons>
            <button name="add">
                <url path="*/*/new"/>
                <class>primary</class>
                <label translate="true">Add New Customer Group</label>
            </button>
        </buttons>
        <spinner>customer_group_columns</spinner>
        <deps>
            <dep>customer_group_listing.customer_group_listing_data_source</dep>
        </deps>
    </settings>
    <dataSource name="customer_group_listing_data_source" component="Magento_Ui/js/grid/provider">
        <settings>
            <storageConfig>
                <param name="indexField" xsi:type="string">customer_group_id</param>
            </storageConfig>
            <updateUrl path="mui/index/render"/>
        </settings>
        <aclResource>Magento_Customer::group</aclResource>
        <dataProvider class="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider" name="customer_group_listing_data_source">
            <settings>
                <requestFieldName>id</requestFieldName>
                <primaryFieldName>customer_group_id</primaryFieldName>
            </settings>
        </dataProvider>
    </dataSource>
    <listingToolbar name="listing_top">
        <bookmark name="bookmarks"/>
        <columnsControls name="columns_controls"/>
        <filters name="listing_filters"/>
        <paging name="listing_paging"/>
    </listingToolbar>
    <columns name="customer_group_columns">
        <column name="customer_group_id">
            <settings>
                <filter>textRange</filter>
                <label translate="true">ID</label>
                <sorting>asc</sorting>
            </settings>
        </column>
        <column name="customer_group_code">
            <settings>
                <filter>text</filter>
                <label translate="true">Group</label>
            </settings>
        </column>
        <column name="tax_class_id" component="Magento_Ui/js/grid/columns/select">
            <settings>
                <options class="Magento\Tax\Model\TaxClass\Source\Customer"/>
                <filter>select</filter>
                <dataType>select</dataType>
                <label translate="true">Tax Class</label>
            </settings>
        </column>
        <actionsColumn name="actions" class="Magento\Customer\Ui\Component\Listing\Column\GroupActions">
            <settings>
                <indexField>customer_group_id</indexField>
            </settings>
        </actionsColumn>
    </columns>
</listing>
