Skip to content

Commit b1c8f9e

Browse files
committed
Revert "Test diff size (4)"
This reverts commit 7fcb3d3.
1 parent 3d3cfd1 commit b1c8f9e

File tree

3 files changed

+127
-1
lines changed

3 files changed

+127
-1
lines changed

src/Chartjs/assets/dist/controller.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class default_1 extends Controller {
3434
}
3535
this.chart = new Chart(canvasContext, payload);
3636
this.dispatchEvent('connect', { chart: this.chart });
37-
console.log('Lorem ipsum dolor sit amet, consectetur adipisicing elit. At commodi doloremque ducimus, et excepturi ipsam iure labore laboriosam nobis non odit perferendis placeat quae quidem tempora tempore tenetur voluptates. Quo.')
3837
}
3938
viewValueChanged() {
4039
if (this.chart) {
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import { Controller } from '@hotwired/stimulus';
2+
export type Point = {
3+
lat: number;
4+
lng: number;
5+
};
6+
export type MapView<Options, MarkerOptions, InfoWindowOptions, PolygonOptions> = {
7+
center: Point | null;
8+
zoom: number | null;
9+
fitBoundsToMarkers: boolean;
10+
markers: Array<MarkerDefinition<MarkerOptions, InfoWindowOptions>>;
11+
polygons: Array<PolygonDefinition<PolygonOptions, InfoWindowOptions>>;
12+
options: Options;
13+
};
14+
export type MarkerDefinition<MarkerOptions, InfoWindowOptions> = {
15+
position: Point;
16+
title: string | null;
17+
infoWindow?: Omit<InfoWindowDefinition<InfoWindowOptions>, 'position'>;
18+
rawOptions?: MarkerOptions;
19+
extra: Record<string, unknown>;
20+
};
21+
export type PolygonDefinition<PolygonOptions, InfoWindowOptions> = {
22+
infoWindow?: Omit<InfoWindowDefinition<InfoWindowOptions>, 'position'>;
23+
points: Array<Point>;
24+
title: string | null;
25+
rawOptions?: PolygonOptions;
26+
extra: Record<string, unknown>;
27+
};
28+
export type InfoWindowDefinition<InfoWindowOptions> = {
29+
headerContent: string | null;
30+
content: string | null;
31+
position: Point;
32+
opened: boolean;
33+
autoClose: boolean;
34+
rawOptions?: InfoWindowOptions;
35+
extra: Record<string, unknown>;
36+
};
37+
export default abstract class<MapOptions, Map, MarkerOptions, Marker, InfoWindowOptions, InfoWindow, PolygonOptions, Polygon> extends Controller<HTMLElement> {
38+
static values: {
39+
providerOptions: ObjectConstructor;
40+
view: ObjectConstructor;
41+
};
42+
viewValue: MapView<MapOptions, MarkerOptions, InfoWindowOptions, PolygonOptions>;
43+
protected map: Map;
44+
protected markers: Array<Marker>;
45+
protected infoWindows: Array<InfoWindow>;
46+
protected polygons: Array<Polygon>;
47+
connect(): void;
48+
protected abstract doCreateMap({ center, zoom, options, }: {
49+
center: Point | null;
50+
zoom: number | null;
51+
options: MapOptions;
52+
}): Map;
53+
createMarker(definition: MarkerDefinition<MarkerOptions, InfoWindowOptions>): Marker;
54+
createPolygon(definition: PolygonDefinition<PolygonOptions, InfoWindowOptions>): Polygon;
55+
protected abstract doCreateMarker(definition: MarkerDefinition<MarkerOptions, InfoWindowOptions>): Marker;
56+
protected abstract doCreatePolygon(definition: PolygonDefinition<PolygonOptions, InfoWindowOptions>): Polygon;
57+
protected createInfoWindow({ definition, element, }: {
58+
definition: MarkerDefinition<MarkerOptions, InfoWindowOptions>['infoWindow'] | PolygonDefinition<PolygonOptions, InfoWindowOptions>['infoWindow'];
59+
element: Marker | Polygon;
60+
}): InfoWindow;
61+
protected abstract doCreateInfoWindow({ definition, element, }: {
62+
definition: MarkerDefinition<MarkerOptions, InfoWindowOptions>['infoWindow'];
63+
element: Marker;
64+
} | {
65+
definition: PolygonDefinition<PolygonOptions, InfoWindowOptions>['infoWindow'];
66+
element: Polygon;
67+
}): InfoWindow;
68+
protected abstract doFitBoundsToMarkers(): void;
69+
protected abstract dispatchEvent(name: string, payload: Record<string, unknown>): void;
70+
}

src/Translator/assets/dist/translator_controller.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,63 @@ function getPluralizationRule(number, locale) {
104104
case 'fi':
105105
case 'fo':
106106
case 'fur':
107+
case 'fy':
108+
case 'gl':
109+
case 'gu':
110+
case 'ha':
111+
case 'he':
112+
case 'hu':
113+
case 'is':
114+
case 'it':
115+
case 'ku':
116+
case 'lb':
117+
case 'ml':
118+
case 'mn':
119+
case 'mr':
120+
case 'nah':
121+
case 'nb':
122+
case 'ne':
123+
case 'nl':
124+
case 'nn':
125+
case 'no':
126+
case 'oc':
127+
case 'om':
128+
case 'or':
129+
case 'pa':
130+
case 'pap':
131+
case 'ps':
132+
case 'pt':
133+
case 'so':
134+
case 'sq':
135+
case 'sv':
136+
case 'sw':
137+
case 'ta':
138+
case 'te':
139+
case 'tk':
140+
case 'ur':
141+
case 'zu':
142+
return 1 === number ? 0 : 1;
143+
case 'am':
144+
case 'bh':
145+
case 'fil':
146+
case 'fr':
147+
case 'gun':
148+
case 'hi':
149+
case 'hy':
150+
case 'ln':
151+
case 'mg':
152+
case 'nso':
153+
case 'pt_BR':
154+
case 'ti':
155+
case 'wa':
156+
return number < 2 ? 0 : 1;
157+
case 'be':
158+
case 'bs':
159+
case 'hr':
160+
case 'ru':
161+
case 'sh':
162+
case 'sr':
163+
case 'uk':
107164
return 1 === number % 10 && 11 !== number % 100
108165
? 0
109166
: number % 10 >= 2 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)

0 commit comments

Comments
 (0)