Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
import FormFieldToggler, {ToggleType} from '@components/form/form-field-toggler';
import CountryMap from '@pages/country/country-map';
export default class ZipCodeManager {
constructor() {
this.initZipCodeToggler();
}
private initZipCodeToggler(): void {
new FormFieldToggler({
disablingInputSelector: CountryMap.isZipCodeNeededSwitch,
targetSelector: CountryMap.zipCodeFormatInput,
toggleType: ToggleType.availability,
});
}
}

View File

@@ -0,0 +1,9 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
export default {
isZipCodeNeededSwitch: 'input[name="country[need_zip_code]"]',
zipCodeFormatInput: '#country_zip_code_format',
};

View File

@@ -0,0 +1,20 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
import ZipCodeManager from '@pages/country/components/zip-code-manager';
import FormSubmitButton from '@components/form-submit-button';
const {$} = window;
$(() => {
window.prestashop.component.initComponents(
[
'TranslatableInput',
],
);
new FormSubmitButton();
new ZipCodeManager();
});

View File

@@ -0,0 +1,19 @@
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
$(() => {
const countryGrid = new window.prestashop.component.Grid('country');
countryGrid.addExtension(new window.prestashop.component.GridExtensions.FiltersResetExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.SortingExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.ExportToSqlManagerExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.ReloadListExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.BulkActionCheckboxExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.SubmitBulkActionExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.SubmitRowActionExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.LinkRowActionExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.FiltersSubmitButtonEnablerExtension());
countryGrid.addExtension(new window.prestashop.component.GridExtensions.ColumnTogglingExtension());
});