@supersoniks/concorde 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,7 @@ export declare class SonicDate extends SonicDate_base {
|
|
|
7
7
|
get wording_billet_periode_validite(): string;
|
|
8
8
|
set wording_billet_periode_validite(value: string);
|
|
9
9
|
designMode: boolean | null;
|
|
10
|
+
time_zone: string | null;
|
|
10
11
|
date: number | null;
|
|
11
12
|
date_string: string | null;
|
|
12
13
|
start_date_string: string | null;
|
|
@@ -28,7 +29,7 @@ export declare class SonicDate extends SonicDate_base {
|
|
|
28
29
|
/**
|
|
29
30
|
* Retourne un tableau des différentes parties de la date en fonction des options données, de la date de début et de fin.
|
|
30
31
|
*/
|
|
31
|
-
getDatesParts(start_date: number, end_date: number, options:
|
|
32
|
+
getDatesParts(start_date: number, end_date: number, options: any): any;
|
|
32
33
|
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
33
34
|
}
|
|
34
35
|
export {};
|
|
@@ -17,6 +17,7 @@ let SonicDate = class SonicDate extends Subscriber(TemplatesContainer(LitElement
|
|
|
17
17
|
this.duAu = [];
|
|
18
18
|
this._wording_billet_periode_validite = "";
|
|
19
19
|
this.designMode = null;
|
|
20
|
+
this.time_zone = null;
|
|
20
21
|
this.date = null;
|
|
21
22
|
this.date_string = null;
|
|
22
23
|
this.start_date_string = null;
|
|
@@ -116,6 +117,8 @@ let SonicDate = class SonicDate extends Subscriber(TemplatesContainer(LitElement
|
|
|
116
117
|
options.minute = this.minute;
|
|
117
118
|
if (this.era)
|
|
118
119
|
options.era = this.era;
|
|
120
|
+
if (this.time_zone)
|
|
121
|
+
options.timeZone = this.time_zone;
|
|
119
122
|
let parts = this.getDatesParts(this.start_date, this.end_date, options);
|
|
120
123
|
return html `${parts.map((part) => {
|
|
121
124
|
let template = this.templateParts[part.type];
|
|
@@ -136,6 +139,9 @@ __decorate([
|
|
|
136
139
|
__decorate([
|
|
137
140
|
property({ type: Boolean })
|
|
138
141
|
], SonicDate.prototype, "designMode", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
property({ type: String })
|
|
144
|
+
], SonicDate.prototype, "time_zone", void 0);
|
|
139
145
|
__decorate([
|
|
140
146
|
property({ type: Number })
|
|
141
147
|
], SonicDate.prototype, "date", void 0);
|
package/core/utils/api.js
CHANGED
|
@@ -84,7 +84,7 @@ class API {
|
|
|
84
84
|
* Concatène le serviceURL et le endpoint donné en paramètre
|
|
85
85
|
*/
|
|
86
86
|
computeURL(path) {
|
|
87
|
-
return this.serviceURL + "/" + path;
|
|
87
|
+
return (this.serviceURL + "/" + path).replace(/\/{2,}/g, "/");
|
|
88
88
|
}
|
|
89
89
|
/*
|
|
90
90
|
* Envoie des données au endPoint passé en paramètre. par défaut en POST
|