Skip to content

Commit

Permalink
chore: adjust dist files for the demo (TO REVERT)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Nov 3, 2024
1 parent 014baca commit b9fd13a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 119 deletions.
1 change: 1 addition & 0 deletions src/Autocomplete/assets/dist/foo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/Dropzone/assets/dist/controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 0 additions & 53 deletions src/Map/assets/dist/abstract_map_controller.js

This file was deleted.

1 change: 1 addition & 0 deletions src/Map/src/Bridge/Google/assets/dist/foo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
body { background-color: mediumvioletred }
37 changes: 1 addition & 36 deletions src/Map/src/Bridge/Google/assets/dist/map_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,42 +122,7 @@ class default_1 extends default_1$1 {
return polygon;
}
doCreateInfoWindow({ definition, element, }) {
const { headerContent, content, extra, rawOptions = {}, ...otherOptions } = definition;
const infoWindow = new _google.maps.InfoWindow({
headerContent: this.createTextOrElement(headerContent),
content: this.createTextOrElement(content),
...otherOptions,
...rawOptions,
});
if (element instanceof google.maps.marker.AdvancedMarkerElement) {
element.addListener('click', () => {
if (definition.autoClose) {
this.closeInfoWindowsExcept(infoWindow);
}
infoWindow.open({ map: this.map, anchor: element });
});
if (definition.opened) {
infoWindow.open({ map: this.map, anchor: element });
}
}
else if (element instanceof google.maps.Polygon) {
element.addListener('click', (event) => {
if (definition.autoClose) {
this.closeInfoWindowsExcept(infoWindow);
}
infoWindow.setPosition(event.latLng);
infoWindow.open(this.map);
});
if (definition.opened) {
const bounds = new google.maps.LatLngBounds();
element.getPath().forEach((point) => {
bounds.extend(point);
});
infoWindow.setPosition(bounds.getCenter());
infoWindow.open({ map: this.map, anchor: element });
}
}
return infoWindow;
// :)
}
createTextOrElement(content) {
if (!content) {
Expand Down
30 changes: 0 additions & 30 deletions src/Translator/assets/dist/translator_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,36 +118,6 @@ function getPluralizationRule(number, locale) {
case 'mn':
case 'mr':
case 'nah':
case 'nb':
case 'ne':
case 'nl':
case 'nn':
case 'no':
case 'oc':
case 'om':
case 'or':
case 'pa':
case 'pap':
case 'ps':
case 'pt':
case 'so':
case 'sq':
case 'sv':
case 'sw':
case 'ta':
case 'te':
case 'tk':
case 'ur':
case 'zu':
return 1 === number ? 0 : 1;
case 'am':
case 'bh':
case 'fil':
case 'fr':
case 'gun':
case 'hi':
case 'hy':
case 'ln':
case 'mg':
case 'nso':
case 'pt_BR':
Expand Down

0 comments on commit b9fd13a

Please sign in to comment.