josenanodev-react-components-library 0.0.1 → 0.0.3
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.
- package/dist/cjs/common/types.d.ts +113 -0
- package/dist/cjs/components/Multicalendar/Multicalendar.css +381 -0
- package/dist/cjs/components/Multicalendar/Multicalendar.d.ts +1 -1
- package/dist/cjs/components/Multicalendar/Multicalendar.js +2 -2
- package/dist/cjs/components/Multicalendar/Multicalendar.js.map +1 -1
- package/dist/cjs/components/Multicalendar/subcomponents/composites/CellsRow/CellsRow.css +5 -0
- package/dist/cjs/components/Multicalendar/subcomponents/composites/CellsRow/types.d.ts +11 -0
- package/dist/cjs/components/Multicalendar/subcomponents/composites/DatesGrid/DatesGrid.css +6 -0
- package/dist/cjs/components/Multicalendar/subcomponents/composites/DatesGrid/types.d.ts +13 -0
- package/dist/cjs/components/Multicalendar/subcomponents/composites/ListElementsColumn/ListElementsColumn.css +3 -0
- package/dist/cjs/components/Multicalendar/subcomponents/composites/ListElementsColumn/types.d.ts +9 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/Cell/Cell.css +7 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/Cell/types.d.ts +10 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/DatesRow/DatesRow.css +60 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/DatesRow/types.d.ts +11 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/DropdownMonthNavigation/DropdownMonthNavigation.css +14 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/DropdownMonthNavigation/types.d.ts +5 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/ListElement/ListElement.css +14 -0
- package/dist/cjs/components/Multicalendar/subcomponents/individuals/ListElement/types.d.ts +7 -0
- package/dist/cjs/components/Multicalendar/types.d.ts +41 -0
- package/dist/cjs/index.css +77 -0
- package/dist/cjs/languages/types.d.ts +192 -0
- package/dist/cjs/react-app-env.d.ts +1 -0
- package/dist/esm/common/types.d.ts +113 -0
- package/dist/esm/components/Multicalendar/Multicalendar.css +381 -0
- package/dist/esm/components/Multicalendar/Multicalendar.d.ts +1 -1
- package/dist/esm/components/Multicalendar/Multicalendar.js +2 -2
- package/dist/esm/components/Multicalendar/Multicalendar.js.map +1 -1
- package/dist/esm/components/Multicalendar/subcomponents/composites/CellsRow/CellsRow.css +5 -0
- package/dist/esm/components/Multicalendar/subcomponents/composites/CellsRow/types.d.ts +11 -0
- package/dist/esm/components/Multicalendar/subcomponents/composites/DatesGrid/DatesGrid.css +6 -0
- package/dist/esm/components/Multicalendar/subcomponents/composites/DatesGrid/types.d.ts +13 -0
- package/dist/esm/components/Multicalendar/subcomponents/composites/ListElementsColumn/ListElementsColumn.css +3 -0
- package/dist/esm/components/Multicalendar/subcomponents/composites/ListElementsColumn/types.d.ts +9 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/Cell/Cell.css +7 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/Cell/types.d.ts +10 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/DatesRow/DatesRow.css +60 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/DatesRow/types.d.ts +11 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/DropdownMonthNavigation/DropdownMonthNavigation.css +14 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/DropdownMonthNavigation/types.d.ts +5 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/ListElement/ListElement.css +14 -0
- package/dist/esm/components/Multicalendar/subcomponents/individuals/ListElement/types.d.ts +7 -0
- package/dist/esm/components/Multicalendar/types.d.ts +41 -0
- package/dist/esm/index.css +77 -0
- package/dist/esm/languages/types.d.ts +192 -0
- package/dist/esm/react-app-env.d.ts +1 -0
- package/package.json +93 -88
- package/dist/cjs/stories/Button.d.ts +0 -29
- package/dist/cjs/stories/Button.js +0 -29
- package/dist/cjs/stories/Button.js.map +0 -1
- package/dist/cjs/stories/Header.d.ts +0 -13
- package/dist/cjs/stories/Header.js +0 -28
- package/dist/cjs/stories/Header.js.map +0 -1
- package/dist/cjs/stories/Page.d.ts +0 -3
- package/dist/cjs/stories/Page.js +0 -45
- package/dist/cjs/stories/Page.js.map +0 -1
- package/dist/cjs/utils/datesArray.test.d.ts +0 -4
- package/dist/cjs/utils/datesArray.test.js +0 -24
- package/dist/cjs/utils/datesArray.test.js.map +0 -1
- package/dist/cjs/utils/jsToSqlDate.test.d.ts +0 -4
- package/dist/cjs/utils/jsToSqlDate.test.js +0 -16
- package/dist/cjs/utils/jsToSqlDate.test.js.map +0 -1
- package/dist/cjs/utils/monthYearString.test.d.ts +0 -4
- package/dist/cjs/utils/monthYearString.test.js +0 -16
- package/dist/cjs/utils/monthYearString.test.js.map +0 -1
- package/dist/cjs/utils/numberOfDaysInAMonth.test.d.ts +0 -4
- package/dist/cjs/utils/numberOfDaysInAMonth.test.js +0 -18
- package/dist/cjs/utils/numberOfDaysInAMonth.test.js.map +0 -1
- package/dist/cjs/utils/sqlToJsDate.test.d.ts +0 -4
- package/dist/cjs/utils/sqlToJsDate.test.js +0 -16
- package/dist/cjs/utils/sqlToJsDate.test.js.map +0 -1
- package/dist/esm/stories/Button.d.ts +0 -29
- package/dist/esm/stories/Button.js +0 -22
- package/dist/esm/stories/Button.js.map +0 -1
- package/dist/esm/stories/Header.d.ts +0 -13
- package/dist/esm/stories/Header.js +0 -21
- package/dist/esm/stories/Header.js.map +0 -1
- package/dist/esm/stories/Page.d.ts +0 -3
- package/dist/esm/stories/Page.js +0 -38
- package/dist/esm/stories/Page.js.map +0 -1
- package/dist/esm/utils/datesArray.test.d.ts +0 -4
- package/dist/esm/utils/datesArray.test.js +0 -19
- package/dist/esm/utils/datesArray.test.js.map +0 -1
- package/dist/esm/utils/jsToSqlDate.test.d.ts +0 -4
- package/dist/esm/utils/jsToSqlDate.test.js +0 -11
- package/dist/esm/utils/jsToSqlDate.test.js.map +0 -1
- package/dist/esm/utils/monthYearString.test.d.ts +0 -4
- package/dist/esm/utils/monthYearString.test.js +0 -11
- package/dist/esm/utils/monthYearString.test.js.map +0 -1
- package/dist/esm/utils/numberOfDaysInAMonth.test.d.ts +0 -4
- package/dist/esm/utils/numberOfDaysInAMonth.test.js +0 -16
- package/dist/esm/utils/numberOfDaysInAMonth.test.js.map +0 -1
- package/dist/esm/utils/sqlToJsDate.test.d.ts +0 -4
- package/dist/esm/utils/sqlToJsDate.test.js +0 -11
- package/dist/esm/utils/sqlToJsDate.test.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.dates-row {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-flow: row;
|
|
5
|
+
overflow-y: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dates-row .date-cell {
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dates-row .date-cell .div-date-cell,
|
|
13
|
+
.dates-row .date-cell .div-date-cell-today {
|
|
14
|
+
position: absolute;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 48px;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-flow: column;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dates-row .date-cell .div-date-cell-today div {
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
background: var(--primary-color);
|
|
27
|
+
color: rgb(255, 255, 255);
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
line-height: 18px;
|
|
30
|
+
font-weight: 800;
|
|
31
|
+
width: 40px;
|
|
32
|
+
height: 40px;
|
|
33
|
+
padding: 1px 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dates-row .date-cell .div-date-cell p,
|
|
37
|
+
.dates-row .date-cell .div-date-cell-today p {
|
|
38
|
+
margin: 0;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
line-height: 18px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dates-row .date-cell .month-start {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
height: 100%;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
border-left: 1px solid rgb(235, 235, 235);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dates-row .date-cell .month-start p {
|
|
52
|
+
margin: 0;
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
line-height: 20px;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
padding-left: 8px;
|
|
58
|
+
padding-top: 8px;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.dropdown-month-navigation {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 200px;
|
|
5
|
+
margin: 0px 10px;
|
|
6
|
+
border: 1px solid rgb(216, 216, 216);
|
|
7
|
+
color: black;
|
|
8
|
+
background-color: white;
|
|
9
|
+
border-radius: 6px;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 18px;
|
|
13
|
+
height: 28px;
|
|
14
|
+
}
|
package/dist/cjs/components/Multicalendar/subcomponents/individuals/ListElement/ListElement.css
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.list-element {
|
|
2
|
+
position: relative;
|
|
3
|
+
border-bottom: 1px solid rgb(235, 235, 235);
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
background-color: white;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.list-element:hover {
|
|
11
|
+
background-color: rgb(240, 240, 240);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { languageType } from "../../languages/types";
|
|
2
|
+
|
|
3
|
+
export interface MulticalendarPropsType {
|
|
4
|
+
multicalendarId: string;
|
|
5
|
+
ReactCellChildren: ReactCellChildrenType;
|
|
6
|
+
ReactListElementChildren: ReactListElementChildrenType;
|
|
7
|
+
listElementsIdsArray: string[] | number[];
|
|
8
|
+
language: languageType,
|
|
9
|
+
cellsWidth?: number;
|
|
10
|
+
cellsHeight?: number;
|
|
11
|
+
verticalAxisWidth?: number;
|
|
12
|
+
horizontalAxisHeight?: number;
|
|
13
|
+
horizontalInitialCellQuantity?: number;
|
|
14
|
+
chunkRenderX?: number;
|
|
15
|
+
chunkRenderY?: number;
|
|
16
|
+
draggingOverDateCells?: boolean,
|
|
17
|
+
dynamicPagination?: boolean;
|
|
18
|
+
logoUrl?: string;
|
|
19
|
+
waitTimeForCalls?: number;
|
|
20
|
+
callsOnScrollingStops?: Function;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface RenderCoordinatesType {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type ReactCellChildrenType = React.ElementType<CellChildrenPropsType>;
|
|
29
|
+
|
|
30
|
+
export type ReactListElementChildrenType =
|
|
31
|
+
React.ElementType<ListElementChildrenPropsType>;
|
|
32
|
+
|
|
33
|
+
export interface CellChildrenPropsType {
|
|
34
|
+
date: string;
|
|
35
|
+
/**Date in SQL format, i.e. 1993-03-29 */
|
|
36
|
+
listElementId: string | number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ListElementChildrenPropsType {
|
|
40
|
+
listElementId: string | number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
|
|
4
|
+
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
5
|
+
-webkit-font-smoothing: antialiased;
|
|
6
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
|
+
color: black;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
body p {
|
|
11
|
+
line-height: normal;
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
code {
|
|
16
|
+
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--primary-color: #ec6321;
|
|
21
|
+
--secondary-color: #46ba0d;
|
|
22
|
+
--green-palette-one: #7bce51;
|
|
23
|
+
--green-palette-two: #52ac25;
|
|
24
|
+
--green-palette-three: #3a8117;
|
|
25
|
+
--green-palette-four: #27580f;
|
|
26
|
+
--green-palette-five: #1b3a0c;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
input[type="checkbox"] {
|
|
30
|
+
/* Add if not using autoprefixer */
|
|
31
|
+
-webkit-appearance: none;
|
|
32
|
+
/* Remove most all native input styles */
|
|
33
|
+
appearance: none;
|
|
34
|
+
/* For iOS < 15 */
|
|
35
|
+
background-color: white;
|
|
36
|
+
/* Not removed via appearance */
|
|
37
|
+
margin: 0;
|
|
38
|
+
|
|
39
|
+
font: inherit;
|
|
40
|
+
color: dimgray;
|
|
41
|
+
min-width: 1.15em;
|
|
42
|
+
width: 1.15em;
|
|
43
|
+
height: 1.15em;
|
|
44
|
+
border: 0.15em solid dimgray;
|
|
45
|
+
border-radius: 0.15em;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
input[type="checkbox"]::before {
|
|
53
|
+
content: "";
|
|
54
|
+
width: 0.65em;
|
|
55
|
+
height: 0.65em;
|
|
56
|
+
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
|
57
|
+
transform: scale(0);
|
|
58
|
+
transform-origin: bottom left;
|
|
59
|
+
transition: 120ms transform ease-in-out;
|
|
60
|
+
box-shadow: inset 1em 1em var(--primary-color);
|
|
61
|
+
/* Windows High Contrast Mode */
|
|
62
|
+
background-color: CanvasText;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
input[type="checkbox"]:checked::before {
|
|
66
|
+
transform: scale(1);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
input[type="checkbox"]:focus {
|
|
70
|
+
outline: max(2px, 0.08em) solid rgb(145, 145, 145);
|
|
71
|
+
outline-offset: max(2px, 0.08em);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input[type="checkbox"]:disabled {
|
|
75
|
+
color: rgb(165, 165, 165);
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export type languageType = {[key: string]: string} & {
|
|
2
|
+
"of": string
|
|
3
|
+
"Automatized": string,
|
|
4
|
+
"properties": string,
|
|
5
|
+
"stablishment": string,
|
|
6
|
+
"stablishments": string,
|
|
7
|
+
"Loading": string,
|
|
8
|
+
"Today": string,
|
|
9
|
+
"Filters": string,
|
|
10
|
+
"Search": string,
|
|
11
|
+
"Property Manager": string,
|
|
12
|
+
"Zones": string,
|
|
13
|
+
"Properties": string,
|
|
14
|
+
"Categories": string,
|
|
15
|
+
"Clear filters": string,
|
|
16
|
+
"monday": string,
|
|
17
|
+
"tuesday": string,
|
|
18
|
+
"wednesday": string,
|
|
19
|
+
"thursday": string,
|
|
20
|
+
"friday": string,
|
|
21
|
+
"saturday": string,
|
|
22
|
+
"sunday": string,
|
|
23
|
+
"january": string,
|
|
24
|
+
"february": string,
|
|
25
|
+
"march": string,
|
|
26
|
+
"april": string,
|
|
27
|
+
"may": string,
|
|
28
|
+
"june": string,
|
|
29
|
+
"july": string,
|
|
30
|
+
"august": string,
|
|
31
|
+
"september": string,
|
|
32
|
+
"october": string,
|
|
33
|
+
"november": string,
|
|
34
|
+
"december": string,
|
|
35
|
+
"days": string,
|
|
36
|
+
"Reload": string,
|
|
37
|
+
"Reload properties": string,
|
|
38
|
+
"Reload prices": string,
|
|
39
|
+
"Competitors": string,
|
|
40
|
+
"Quick view": string,
|
|
41
|
+
"View KPIs": string,
|
|
42
|
+
"Recommended price": string,
|
|
43
|
+
"Minimal price": string,
|
|
44
|
+
"Base price": string,
|
|
45
|
+
"PMS price": string,
|
|
46
|
+
"Change by quantity": string,
|
|
47
|
+
"Change by percentage": string,
|
|
48
|
+
"Competitors price": string,
|
|
49
|
+
"Minimal stay": string,
|
|
50
|
+
"Availability": string,
|
|
51
|
+
"Auto adjustment": string,
|
|
52
|
+
"Ajust leftout days": string,
|
|
53
|
+
"Send prices to OTAs": string,
|
|
54
|
+
"Update competitors prices": string,
|
|
55
|
+
"Go back to original values": string,
|
|
56
|
+
"Updating competitors prices": string,
|
|
57
|
+
"Select price type": string,
|
|
58
|
+
"Base": string,
|
|
59
|
+
"Recommended": string,
|
|
60
|
+
"Minimal": string,
|
|
61
|
+
"It is the ideal price of the market": string,
|
|
62
|
+
"It is the price desired by the property manager": string,
|
|
63
|
+
"It is the highest value between recommended and base price": string,
|
|
64
|
+
"Go back": string,
|
|
65
|
+
"Apply": string,
|
|
66
|
+
"Send": string,
|
|
67
|
+
"Cancel": string,
|
|
68
|
+
"Schedule": string,
|
|
69
|
+
"Menu": string,
|
|
70
|
+
"Multidashboard": string,
|
|
71
|
+
"Settings": string,
|
|
72
|
+
"General report": string,
|
|
73
|
+
"Property resume": string,
|
|
74
|
+
"Price settings": string,
|
|
75
|
+
"Update competitors prices up to 1 year": string,
|
|
76
|
+
"Performance manager": string,
|
|
77
|
+
"Pickup": string,
|
|
78
|
+
"Forecast": string,
|
|
79
|
+
"Rate shopper": string,
|
|
80
|
+
"Aspirational compset": string,
|
|
81
|
+
"Individual dashboard": string,
|
|
82
|
+
"Individual report": string,
|
|
83
|
+
"Schedule automatic prices sends": string,
|
|
84
|
+
"Send new prices now": string,
|
|
85
|
+
"Select date range": string,
|
|
86
|
+
"Custom range": string,
|
|
87
|
+
"Generate prices Excel file": string,
|
|
88
|
+
"Select channels, Mark Up and currency": string,
|
|
89
|
+
"Channel": string,
|
|
90
|
+
"Mark Up": string,
|
|
91
|
+
"MLOS": string,
|
|
92
|
+
"Currency": string,
|
|
93
|
+
"Add channel": string,
|
|
94
|
+
"Export to Excel": string,
|
|
95
|
+
"Save settings": string,
|
|
96
|
+
"Controls": string,
|
|
97
|
+
"General data": string,
|
|
98
|
+
"Work days": string,
|
|
99
|
+
"Weekends and holydays": string,
|
|
100
|
+
"Fixed expenses": string,
|
|
101
|
+
"Varaible expenses": string,
|
|
102
|
+
"Local currency": string,
|
|
103
|
+
"Symbol": string,
|
|
104
|
+
"Cleaning fee": string,
|
|
105
|
+
"Weekdays discounts": string,
|
|
106
|
+
"Seasons discounts": string,
|
|
107
|
+
"High": string,
|
|
108
|
+
"Medium high": string,
|
|
109
|
+
"Medium": string,
|
|
110
|
+
"Medium low": string,
|
|
111
|
+
"Low": string,
|
|
112
|
+
"Left out days": string,
|
|
113
|
+
"Release": string,
|
|
114
|
+
"Increase": string,
|
|
115
|
+
"Occupation rules": string,
|
|
116
|
+
"Apply rules": string,
|
|
117
|
+
"Max OCC": string,
|
|
118
|
+
"Max ADR": string,
|
|
119
|
+
"Final autoprice": string,
|
|
120
|
+
"Release (N days)": string,
|
|
121
|
+
"% Occupation": string,
|
|
122
|
+
"% Discount": string,
|
|
123
|
+
"Maximum": string,
|
|
124
|
+
"Pax. Mapped": string,
|
|
125
|
+
"Minimal occ.": string,
|
|
126
|
+
"Maxmimum occ.": string,
|
|
127
|
+
"Type of adjustment": string,
|
|
128
|
+
"Personalized": string,
|
|
129
|
+
"Price per guest": string,
|
|
130
|
+
"Occupation": string,
|
|
131
|
+
"Pax occupation": string,
|
|
132
|
+
"Price": string,
|
|
133
|
+
"Guests": string,
|
|
134
|
+
"Regular price rised by:": string,
|
|
135
|
+
"Regular price decreased by:": string,
|
|
136
|
+
"PAX price": string,
|
|
137
|
+
"Go back to Multiprice": string,
|
|
138
|
+
"Seasons": string,
|
|
139
|
+
"1º Fortnight": string;
|
|
140
|
+
"2º Fortnight": string;
|
|
141
|
+
"Workdays": string;
|
|
142
|
+
"Weekend": string;
|
|
143
|
+
"Go back to initial price settings": string;
|
|
144
|
+
"Settings saved succesfully": string;
|
|
145
|
+
"Seasons and minimal stays saved succesfully": string;
|
|
146
|
+
"An error has ocurred, try again later": string;
|
|
147
|
+
"All task have been succesfully achived. We are waiting to recieve data from the OTA. This task can take up to 15min.": string,
|
|
148
|
+
"It was no possible to send the task to update the competitors prices": string;
|
|
149
|
+
"Server is under mantanance, please wait until the service is brought back to you": string;
|
|
150
|
+
"There has been an error, please try again": string;
|
|
151
|
+
"prices will be sent periodically": string;
|
|
152
|
+
"Selected dates": string;
|
|
153
|
+
"Days range": string;
|
|
154
|
+
"Revenue": string;
|
|
155
|
+
"ADR": string;
|
|
156
|
+
"Appliable days of the week": string;
|
|
157
|
+
"Manual edition": string;
|
|
158
|
+
"Period": string;
|
|
159
|
+
"Protect prices": string;
|
|
160
|
+
"Protect MLOS": string;
|
|
161
|
+
"Unprotect prices": string;
|
|
162
|
+
"Unprotect MLOS": string;
|
|
163
|
+
"Import prices from PMS": string;
|
|
164
|
+
"Settings type": string;
|
|
165
|
+
"Customized": string;
|
|
166
|
+
"Prices have been successfully sent": string;
|
|
167
|
+
"There has been an error while trying to send the selected prices, please try again later": string;
|
|
168
|
+
"Copy settings to other properties": string;
|
|
169
|
+
"Select the properties to which the settings will be copied": string;
|
|
170
|
+
"NOTE: All the settings on the selected properties will be overwriten, previous settings in each of the will be lost": string;
|
|
171
|
+
"Request import": string;
|
|
172
|
+
"Atention!": string;
|
|
173
|
+
"You are trying to lower a price below the minimal price, this can't be done, the price will stay at the minimum": string;
|
|
174
|
+
"Don't show this again": string;
|
|
175
|
+
"Import successfully requested, this task can take up to 10 minutes": string;
|
|
176
|
+
"Import requested have failed, please try again later": string;
|
|
177
|
+
"Some custom changes are not protected": string;
|
|
178
|
+
"There are unprotected custom changes that will be sent. Remember to protect any change in base price or minimal stay, otherwise the changes will be lost on further calculus": string;
|
|
179
|
+
"Protect changes and send": string;
|
|
180
|
+
"Send changes without protecting": string;
|
|
181
|
+
"Please define base price values before saving": string;
|
|
182
|
+
"Please define pax mapped before saving": string;
|
|
183
|
+
"Do you want to save your changes?": string;
|
|
184
|
+
"A request will be sent to save your settings": string;
|
|
185
|
+
"Minimal price by season": string;
|
|
186
|
+
"Minimum price according to costs": string;
|
|
187
|
+
"Break even": string;
|
|
188
|
+
"The minimal price of a season can't be lower than the minimal price according to costs": string;
|
|
189
|
+
"Season": string;
|
|
190
|
+
"Event": string;
|
|
191
|
+
"Holiday": string;
|
|
192
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="react-scripts" />
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { languageType } from "./assets/languages/types";
|
|
2
|
+
|
|
3
|
+
export interface customWindow extends Window {
|
|
4
|
+
access: string;
|
|
5
|
+
propertyManagerCode: string;
|
|
6
|
+
propertyManagerLookAndFeelCode: string;
|
|
7
|
+
languageCode: string;
|
|
8
|
+
actionUrl: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface SagaActionParamsType<T> {
|
|
12
|
+
type: string;
|
|
13
|
+
payload: T;
|
|
14
|
+
repeatsLeft: number;
|
|
15
|
+
persistentReduxAction: string;
|
|
16
|
+
reduxError: string;
|
|
17
|
+
showErrorMessage?: boolean;
|
|
18
|
+
millisecondsWait?: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface NotificationsReducerStateType {
|
|
22
|
+
quickNotifications: QuickNotificationsType[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface lookAndFeelType {
|
|
26
|
+
code: string;
|
|
27
|
+
logoUrl: string;
|
|
28
|
+
primaryColor: string;
|
|
29
|
+
secondaryColor: string;
|
|
30
|
+
fontFamily: "Roboto" | "Bitter" | "Dosis" | "Figtree" | "Mulish" | "Nunito Sans";
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
propertyManagerCode?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface AppSettingsReducerStateType {
|
|
36
|
+
view: "multidestiny";
|
|
37
|
+
language: languageType;
|
|
38
|
+
lookAndFeel?: lookAndFeelType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface DestiniesReducerStateType {
|
|
42
|
+
countries: CountryType[];
|
|
43
|
+
regions: RegionType[];
|
|
44
|
+
provinces: ProvinceType[];
|
|
45
|
+
municipalities: MunicipalityType[];
|
|
46
|
+
mixedDestinies: DestinyType[];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DatesReducerStateType {
|
|
50
|
+
draggingOverDateCells: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface QuickNotificationsType {
|
|
54
|
+
text: string;
|
|
55
|
+
creation: Date;
|
|
56
|
+
type: "info" | "error" | "ok";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface CountryType {
|
|
60
|
+
code: string;
|
|
61
|
+
name: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface RegionType {
|
|
65
|
+
code: string;
|
|
66
|
+
name: string;
|
|
67
|
+
country: {
|
|
68
|
+
code: string;
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface ProvinceType {
|
|
74
|
+
code: string;
|
|
75
|
+
name: string;
|
|
76
|
+
country: {
|
|
77
|
+
code: string;
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
region: {
|
|
81
|
+
code: string;
|
|
82
|
+
name: string;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface MunicipalityType {
|
|
87
|
+
code: string;
|
|
88
|
+
name: string;
|
|
89
|
+
country: {
|
|
90
|
+
code: string;
|
|
91
|
+
name: string;
|
|
92
|
+
};
|
|
93
|
+
region: {
|
|
94
|
+
code: string;
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
province: {
|
|
98
|
+
code: string;
|
|
99
|
+
name: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type DestinyType = (CountryType | RegionType | ProvinceType | MunicipalityType) & {
|
|
104
|
+
type: "country" | "region" | "province" | "municipality";
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type SeasonsType = "high" | "medium high" | "medium" | "medium low" | "low"
|
|
108
|
+
|
|
109
|
+
export type EventsType = "1" | "2" | "3"
|
|
110
|
+
|
|
111
|
+
export type HolidaysType = "1" | "2" | "3"
|
|
112
|
+
|
|
113
|
+
export type OccupationsType = "high" | "medium" | "low"
|