imbric-theme 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. package/.dockerignore +14 -0
  2. package/.eslintignore +1 -0
  3. package/.prettierignore +1 -0
  4. package/.storybook/main.js +6 -2
  5. package/.storybook/preview.js +21 -0
  6. package/.vscode/settings.json +3 -0
  7. package/Dockerfile +17 -0
  8. package/atoms/AlertModal/AlertModal.js +69 -0
  9. package/atoms/AlertModal/AlertModal.module.css +3 -0
  10. package/atoms/AlertModal/AlertModal.stories.js +30 -0
  11. package/atoms/AlertModal/constants.js +4 -0
  12. package/atoms/AlertModal/index.js +3 -0
  13. package/atoms/Button/Button.js +17 -2
  14. package/atoms/Button/Button.module.css +25 -3
  15. package/atoms/Button/Button.stories.js +1 -1
  16. package/atoms/Button/__snapshots__/Button.stories.js.snap +8 -8
  17. package/atoms/Check/Check.js +6 -4
  18. package/atoms/Checkbox/Checkbox.js +83 -0
  19. package/atoms/Checkbox/Checkbox.module.css +60 -0
  20. package/atoms/Checkbox/Checkbox.stories.js +30 -0
  21. package/atoms/Checkbox/constants.js +1 -0
  22. package/atoms/Checkbox/index.js +3 -0
  23. package/atoms/Divider/Divider.js +5 -2
  24. package/atoms/Divider/Divider.module.css +20 -0
  25. package/atoms/Divider/Divider.stories.js +13 -2
  26. package/atoms/Divider/constants.js +3 -0
  27. package/atoms/Divider/index.js +1 -0
  28. package/atoms/Heading/Heading.js +1 -1
  29. package/atoms/Heading/Heading.module.css +4 -0
  30. package/atoms/Heading/Heading.stories.js +2 -2
  31. package/atoms/Heading/__snapshots__/Heading.stories.js.snap +16 -16
  32. package/atoms/Heading/constants.js +1 -1
  33. package/atoms/Icon/Icon.js +1 -1
  34. package/atoms/Icon/Icon.module.css +30 -0
  35. package/atoms/Icon/constants.js +750 -145
  36. package/atoms/Input/Input.js +195 -15
  37. package/atoms/Input/Input.module.css +62 -6
  38. package/atoms/Input/Input.stories.js +8 -2
  39. package/atoms/Input/__snapshots__/Input.stories.js.snap +5 -5
  40. package/atoms/Input/constants.js +1 -1
  41. package/atoms/Label/Label.js +31 -0
  42. package/atoms/Label/Label.module.css +42 -0
  43. package/atoms/Label/Label.stories.js +26 -0
  44. package/atoms/Label/constants.js +1 -0
  45. package/atoms/Label/index.js +3 -0
  46. package/atoms/LinkItem/LinkItem.js +38 -0
  47. package/atoms/{Link/Link.module.css → LinkItem/LinkItem.module.css} +6 -1
  48. package/atoms/{Link/Link.stories.js → LinkItem/LinkItem.stories.js} +5 -5
  49. package/atoms/LinkItem/index.js +3 -0
  50. package/atoms/Modal/Modal.js +27 -4
  51. package/atoms/Modal/Modal.module.css +63 -6
  52. package/atoms/Paragraph/Paragraph.module.css +4 -0
  53. package/atoms/Paragraph/Paragraph.stories.js +2 -2
  54. package/atoms/Paragraph/__snapshots__/Paragraph.stories.js.snap +16 -16
  55. package/atoms/Picture/Picture.js +15 -2
  56. package/atoms/Tab/Tab.js +41 -0
  57. package/atoms/Tab/Tab.module.css +17 -0
  58. package/atoms/Tab/Tab.stories.js +27 -0
  59. package/atoms/Tab/constants.js +1 -0
  60. package/atoms/Tab/index.js +3 -0
  61. package/atoms/Textarea/Textarea.js +106 -15
  62. package/atoms/Textarea/Textarea.module.css +31 -2
  63. package/atoms/Toggle/Toggle.js +56 -0
  64. package/atoms/Toggle/Toggle.module.css +41 -0
  65. package/atoms/Toggle/Toggle.stories.js +21 -0
  66. package/atoms/Toggle/constants.js +1 -0
  67. package/atoms/Toggle/index.js +3 -0
  68. package/helpers/storybook.js +2 -2
  69. package/hook/useAddColumn.js +40 -0
  70. package/hook/useStateDate.js +25 -0
  71. package/hook/useTable.js +54 -0
  72. package/index.js +41 -1
  73. package/jest.config.js +1 -1
  74. package/layout/DynamicTable/DynamicTable.js +372 -0
  75. package/layout/DynamicTable/DynamicTable.module.css +62 -0
  76. package/layout/DynamicTable/DynamicTable.stories.js +79 -0
  77. package/layout/DynamicTable/constants.js +323 -0
  78. package/layout/DynamicTable/index.js +3 -0
  79. package/layout/FlexColumnContent/FlexColumnContent.js +26 -0
  80. package/layout/FlexColumnContent/FlexColumnContent.module.css +5 -0
  81. package/layout/FlexColumnContent/FlexColumnContent.stories.js +28 -0
  82. package/layout/FlexColumnContent/constants.js +1 -0
  83. package/layout/FlexColumnContent/index.js +3 -0
  84. package/layout/Navbar/Navbar.js +247 -0
  85. package/layout/Navbar/Navbar.module.css +35 -0
  86. package/layout/Navbar/Navbar.stories.js +20 -0
  87. package/layout/Navbar/constants.js +35 -0
  88. package/layout/Navbar/index.js +2 -0
  89. package/layout/Sidebar/Sidebar.js +115 -0
  90. package/layout/Sidebar/Sidebar.module.css +387 -0
  91. package/layout/Sidebar/Sidebar.stories.js +28 -0
  92. package/layout/Sidebar/constants.js +228 -0
  93. package/layout/Sidebar/index.js +3 -0
  94. package/molecules/Accordion/Accordion.js +11 -11
  95. package/molecules/CardDefault/CardDefault.js +65 -0
  96. package/molecules/CardDefault/CardDefault.module.css +19 -0
  97. package/molecules/CardDefault/CardDefault.stories.js +23 -0
  98. package/molecules/CardDefault/constants.js +1 -0
  99. package/molecules/CardDefault/index.js +3 -0
  100. package/molecules/CardProductTypesBooking/CardProductTypesBooking.js +89 -0
  101. package/molecules/CardProductTypesBooking/CardProductTypesBooking.module.css +118 -0
  102. package/molecules/CardProductTypesBooking/CardProductTypesBooking.stories.js +25 -0
  103. package/molecules/CardProductTypesBooking/constants.js +1 -0
  104. package/molecules/CardProductTypesBooking/index.js +3 -0
  105. package/molecules/CardServiceDetail/CardServiceDetail.js +400 -0
  106. package/molecules/CardServiceDetail/CardServiceDetail.module.css +222 -0
  107. package/molecules/CardServiceDetail/CardServiceDetail.stories.js +23 -0
  108. package/molecules/CardServiceDetail/constants.js +1 -0
  109. package/molecules/CardServiceDetail/index.js +3 -0
  110. package/molecules/CardServices/CardServices.js +461 -0
  111. package/molecules/CardServices/CardServices.module.css +213 -0
  112. package/molecules/CardServices/CardServices.stories.js +41 -0
  113. package/molecules/CardServices/constants.js +5 -0
  114. package/molecules/CardServices/index.js +3 -0
  115. package/molecules/CardServicesFinalized/CardServicesFinalized.js +381 -0
  116. package/molecules/CardServicesFinalized/CardServicesFinalized.module.css +213 -0
  117. package/molecules/CardServicesFinalized/CardServicesFinalized.stories.js +23 -0
  118. package/molecules/CardServicesFinalized/constants.js +1 -0
  119. package/molecules/CardServicesFinalized/index.js +3 -0
  120. package/molecules/CheckList/CheckList.js +135 -0
  121. package/molecules/CheckList/CheckList.module.css +94 -0
  122. package/molecules/CheckList/CheckList.stories.js +25 -0
  123. package/molecules/CheckList/constants.js +23 -0
  124. package/molecules/CheckList/index.js +3 -0
  125. package/molecules/ColumnTable/ColumnTable.js +155 -0
  126. package/molecules/ColumnTable/ColumnTable.module.css +52 -0
  127. package/molecules/ColumnTable/ColumnTable.stories.js +26 -0
  128. package/molecules/ColumnTable/constants.js +117 -0
  129. package/molecules/ColumnTable/index.js +3 -0
  130. package/molecules/DatePicker/DatePicker.js +242 -0
  131. package/molecules/DatePicker/DatePicker.module.css +38 -0
  132. package/molecules/DatePicker/DatePicker.stories.js +23 -0
  133. package/molecules/DatePicker/constants.js +3 -0
  134. package/molecules/DatePicker/index.js +3 -0
  135. package/molecules/DatePickerTime/DatePickerTime.js +133 -0
  136. package/molecules/DatePickerTime/DatePickerTime.module.css +3 -0
  137. package/molecules/DatePickerTime/DatePickerTime.stories.js +18 -0
  138. package/molecules/DatePickerTime/constants.js +1 -0
  139. package/molecules/DatePickerTime/index.js +3 -0
  140. package/molecules/Dropdown/Dropdown.js +26 -23
  141. package/molecules/Dropdown/Dropdown.module.css +21 -3
  142. package/molecules/DynamicSelect/DynamicSelect.js +186 -0
  143. package/molecules/DynamicSelect/DynamicSelect.module.css +10 -0
  144. package/molecules/DynamicSelect/DynamicSelect.stories.js +32 -0
  145. package/molecules/DynamicSelect/constants.js +7 -0
  146. package/molecules/DynamicSelect/index.js +3 -0
  147. package/molecules/Error/Error.js +2 -2
  148. package/molecules/Error/Error.module.css +3 -2
  149. package/molecules/FooterTable/FooterTable.js +166 -0
  150. package/molecules/FooterTable/FooterTable.module.css +63 -0
  151. package/molecules/FooterTable/FooterTable.stories.js +23 -0
  152. package/molecules/FooterTable/constants.js +9 -0
  153. package/molecules/FooterTable/index.js +3 -0
  154. package/molecules/InputAutocomplete/InputAutocomplete.js +221 -0
  155. package/molecules/InputAutocomplete/InputAutocomplete.module.css +55 -0
  156. package/molecules/InputAutocomplete/InputAutocomplete.stories.js +23 -0
  157. package/molecules/InputAutocomplete/constants.js +1 -0
  158. package/molecules/InputAutocomplete/index.js +3 -0
  159. package/molecules/ItemMenu/ItemMenu.js +134 -0
  160. package/molecules/ItemMenu/ItemMenu.module.css +363 -0
  161. package/molecules/ItemMenu/ItemMenu.stories.js +42 -0
  162. package/molecules/ItemMenu/constants.js +36 -0
  163. package/molecules/ItemMenu/index.js +3 -0
  164. package/molecules/RowTable/RowTable.js +1057 -0
  165. package/molecules/RowTable/RowTable.module.css +63 -0
  166. package/molecules/RowTable/RowTable.stories.js +26 -0
  167. package/molecules/RowTable/constants.js +798 -0
  168. package/molecules/RowTable/index.js +3 -0
  169. package/molecules/Tabs/Tabs.js +59 -0
  170. package/molecules/Tabs/Tabs.module.css +13 -0
  171. package/molecules/Tabs/Tabs.stories.js +34 -0
  172. package/molecules/Tabs/constants.js +34 -0
  173. package/molecules/Tabs/index.js +3 -0
  174. package/package.json +33 -16
  175. package/pages/Login/Login.js +102 -0
  176. package/pages/Login/Login.module.css +5 -0
  177. package/pages/Login/Login.stories.js +23 -0
  178. package/pages/Login/constants.js +1 -0
  179. package/pages/Login/index.js +3 -0
  180. package/pages/Login/validation/loginSchema.js +5 -0
  181. package/public/favicon.ico +0 -0
  182. package/public/static/google-maps.png +0 -0
  183. package/public/static/images/folders-folder.svg +26 -0
  184. package/public/static/images/permissions.svg +14 -0
  185. package/public/static/images/reports-results.svg +18 -0
  186. package/public/static/logo.svg +19 -0
  187. package/public/static/logologin.png +0 -0
  188. package/public/static/logologin.svg +16 -0
  189. package/public/static/logologintagos.svg +19 -0
  190. package/public/static/logotipo.svg +50 -0
  191. package/public/static/logotipoS.svg +26 -0
  192. package/public/static/taxisvalencia_logod.png +0 -0
  193. package/scripts/create-component.js +2 -1
  194. package/styles/GrupoMutua.css +391 -0
  195. package/styles/default.css +391 -0
  196. package/styles/globals.css +1514 -0
  197. package/styles/radiotaxiaragon.css +391 -0
  198. package/styles/spartan.css +391 -0
  199. package/styles/tagos.css +391 -0
  200. package/styles/taxisvalencia.css +391 -0
  201. package/styles/tokens.css +2 -1
  202. package/tokens/index.js +2 -1
  203. package/.eslintcache +0 -1
  204. package/atoms/Link/Link.js +0 -33
  205. package/atoms/Link/index.js +0 -3
  206. /package/atoms/{Link → LinkItem}/__snapshots__/Link.stories.js.snap +0 -0
  207. /package/atoms/{Link → LinkItem}/constants.js +0 -0
@@ -0,0 +1,62 @@
1
+ .opFunction {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ width: 100%;
6
+ }
7
+
8
+ .opFunctionBox3 {
9
+ margin-left: 16px;
10
+ }
11
+
12
+ /* .opFunctionBox1 {
13
+ display: inline-flex;
14
+ } */
15
+
16
+ .opFunctionBoxTotal2 {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ width: 100%;
20
+ justify-content: flex-start;
21
+ }
22
+
23
+ .opFunctionBox2 {
24
+ display: inline-flex;
25
+ align-items: flex-end;
26
+ width: 100%;
27
+ justify-content: flex-end;
28
+ }
29
+
30
+ .dynamic-table {
31
+ box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 7%), 0px 2px 2px 0px rgb(0 0 0 / 7%), 0px 1px 5px 0px rgb(0 0 0 / 6%);
32
+ }
33
+
34
+ .table {
35
+ width: 100%;
36
+ table-layout: fixed;
37
+
38
+ }
39
+
40
+ .tbl-header {
41
+ /* background-color: rgba(255, 255, 255, 0.3); */
42
+ /* background-color: -webkit-linear-gradient(left, #25c481, #25b7c4);
43
+ background-color: linear-gradient(to right, #25c481, #25b7c4); */
44
+ border: 1px solid rgba(0, 0, 0, 0.1);
45
+ }
46
+
47
+ .tbl-content {
48
+ height: max-content;
49
+ overflow-x: auto;
50
+ margin-top: 0px;
51
+ border: 1px solid rgba(0, 0, 0, 0.1);
52
+ }
53
+
54
+ .td {
55
+ padding: 15px;
56
+ text-align: left;
57
+ vertical-align: middle;
58
+ font-weight: 300;
59
+ font-size: 12px;
60
+ color: var(--color-font-base);
61
+ border-bottom: solid 1px rgba(0, 0, 0, 0.1);
62
+ }
@@ -0,0 +1,79 @@
1
+ import { DynamicTable, styles, options } from '.'
2
+
3
+ import {
4
+ getTemplate,
5
+ getListTemplate,
6
+ getOptionsArgTypes,
7
+ } from '../../helpers/storybook'
8
+ import ColumnTable from '../../molecules/ColumnTable'
9
+ import Heading from '../../atoms/Heading';
10
+ import { Vertical } from '../Spacer/components';
11
+ import RowTable from '../../molecules/RowTable';
12
+ import FooterTable from '../../molecules/FooterTable';
13
+
14
+
15
+ const Template = getTemplate(DynamicTable, styles)
16
+ const ListTemplate = getListTemplate(DynamicTable, styles)
17
+
18
+
19
+
20
+ export default {
21
+ title: 'Layout/DynamicTable',
22
+ component: DynamicTable,
23
+ args: {
24
+ optionsData: options.bookings,
25
+ opColumns: options.columns,
26
+ opAddColumns: options.opAddColumns,
27
+ isViewRange: true,
28
+ isViewAddColumn: true,
29
+ isViewDownloadDoc: true,
30
+ labelDinamicSelect: 'Mostrar u ocultar columnas',
31
+ placeholderDinamicSelect: 'Seleccionar columnas',
32
+ },
33
+ argTypes: {
34
+ // types: getOptionsArgTypes(options.types),
35
+ },
36
+ }
37
+
38
+ export const Default = Template.bind({})
39
+
40
+
41
+ export const TableTotal = () =>
42
+ <div>
43
+
44
+ {/* Title - Optional */}
45
+ <Heading color='black' size='lg' weight='normal'>
46
+ Servicios de traslados
47
+ </Heading>
48
+
49
+ <Vertical size='sm' />
50
+
51
+ {/* Dynamic Table */}
52
+ <Default></Default>
53
+
54
+ <Vertical size='sm' />
55
+
56
+ {/* Column Table */}
57
+ <ColumnTable columnsData={options.columns}> </ColumnTable>
58
+
59
+ <Vertical size='sm' />
60
+
61
+ {/* Row Table */}
62
+ <RowTable slice={options.bookings} columnsData={options.columns}></RowTable>
63
+
64
+ {/* Footer Table */}
65
+ <FooterTable range={[]} slice={options.bookings} setPage={4} page={1} />
66
+
67
+ </div>
68
+
69
+
70
+ // TableTotal.args = { isInline: true }
71
+
72
+
73
+ {/* <Canvas>
74
+ <Story name="Basic">
75
+ </Story>
76
+ </Canvas> */}
77
+
78
+
79
+
@@ -0,0 +1,323 @@
1
+ export const options = {
2
+
3
+ bookings: [
4
+ {
5
+ id: 346248956,
6
+ idUser: 146280,
7
+ idAuthorization: 817457,
8
+ status: 30,
9
+ origin: {
10
+ addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
11
+ lat: 40.40068,
12
+ lon: -3.698589
13
+ },
14
+ destination: {
15
+ addressField: "Estación de Chamartín, Madrid, España",
16
+ lat: 40.47237,
17
+ lon: -3.683141
18
+ },
19
+ timeBookingStartRealTimestamp: 1653559804000,
20
+ asap: true,
21
+ paymentMethod: 50,
22
+ entryChannel: 15,
23
+ idSupplierFleet: 57,
24
+ idSupplier: 57,
25
+ distanceMeters: 10501,
26
+ durationMinutes: 0,
27
+ location: "MADRID",
28
+ passengerName: "Alberto Alvarez Gonzalez",
29
+ phoneNumberPassenger: "453654654",
30
+ phoneNumberTaxiDriver: "600000000",
31
+ idSupplierTax: "11",
32
+ idSupplierServic: "15828",
33
+ cancelledWithCharg: false,
34
+ priceCustomer: "25.00000",
35
+ priceSupplier: "25.00000",
36
+ phoneNumberSupplier: "676800672",
37
+ idAuthorizationGroup: 335,
38
+ supplierTaxiDescription: "Seat León | 4",
39
+ subscriberCode: "6300",
40
+ userNumber: "93271095",
41
+ idService: 1946195318,
42
+ shared: false,
43
+ timeZone: "Europe/Madrid",
44
+ notes: "2022-05-26 10:10:03 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:10:03 | 33 | SYSTEM | 114 | El número de vuelo es a.\n2022-05-26 10:10:03 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:10:12 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:10:12 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15828\n2022-05-26 10:10:44 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 25 EUR establecido por SPARTAN (25.0 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:10:44 | 33 | SYSTEM | 145 | Recibo enviado KO - 25€ + 0€ (peaje)",
45
+ tollCustomer: 0.00000,
46
+ tollSupplier: 0.00000,
47
+ paymentMethodCustomer: 4,
48
+ createdBy: 146280,
49
+ bookingBreakTitle1: "Evento",
50
+ bookingBreakTitle2: "Descripción actuación",
51
+ bookingBreakTitle3: "Centro de coste",
52
+ bookingBreakTitle4: "CIF visita comercial",
53
+ bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
54
+ bookingBreakValue2: "a",
55
+ bookingBreakValue3: "",
56
+ bookingBreakValue4: "02661135N",
57
+ authorizationBreakTitle1: "Num.Empleado",
58
+ authorizationBreakTitle2: "Centro Empleado",
59
+ authorizationBreakTitle3: "ID Empresa",
60
+ authorizationBreakTitle7: "Nombre de la empresa",
61
+ authorizationBreakValue1: "U0193271",
62
+ authorizationBreakValue2: "5570",
63
+ authorizationBreakValue3: "95",
64
+ authorizationBreakValue5: "SC",
65
+ authorizationBreakValue6: "U0193271095",
66
+ authorizationBreakValue7: "FACILITIES"
67
+ },
68
+ {
69
+ id: 346248955,
70
+ idUser: 146280,
71
+ idAuthorization: 817457,
72
+ status: 30,
73
+ origin: {
74
+ addressField: "Estación de Chamartín, Madrid, España",
75
+ lat: 40.47237,
76
+ lon: -3.683141
77
+ },
78
+ destination: {
79
+ addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
80
+ lat: 40.40068,
81
+ lon: -3.698589
82
+ },
83
+ timeBookingStartRealTimestamp: 1653559749000,
84
+ asap: true,
85
+ paymentMethod: 50,
86
+ entryChannel: 15,
87
+ idSupplierFleet: 57,
88
+ idSupplier: 57,
89
+ distanceMeters: 10501,
90
+ durationMinutes: 0,
91
+ location: "MADRID",
92
+ passengerName: "Zombre Apellido1 Apellido2",
93
+ phoneNumberPassenger: "453654654",
94
+ phoneNumberTaxiDriver: "600000000",
95
+ idSupplierTaxi: "11",
96
+ idSupplierService: "15827",
97
+ cancelledWithCharge: false,
98
+ priceCustomer: "22.50000",
99
+ priceSupplier: "22.50000",
100
+ phoneNumberSupplier: "676800672",
101
+ idAuthorizationGroup: 335,
102
+ supplierTaxiDescription: "Seat León | 4",
103
+ subscriberCode: "6300",
104
+ userNumber: "93271095",
105
+ idService: 1946195317,
106
+ shared: false,
107
+ timeZone: "Europe/Madrid",
108
+ notes: "2022-05-26 10:09:09 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:09:09 | 33 | SYSTEM | 114 | El número de vuelo es 1.\n2022-05-26 10:09:09 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:09:18 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:09:18 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15827\n2022-05-26 10:09:51 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 22.5 EUR establecido por SPARTAN (22.5 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:09:52 | 33 | SYSTEM | 145 | Recibo enviado KO - 22.5€ + 0€ (peaje)",
109
+ tollCustomer: 0.00000,
110
+ tollSupplier: 0.00000,
111
+ paymentMethodCustomer: 4,
112
+ createdBy: 146280,
113
+ bookingBreakTitle1: "Evento",
114
+ bookingBreakTitle2: "Descripción actuación",
115
+ bookingBreakTitle3: "Centro de coste",
116
+ bookingBreakTitle4: "CIF visita comercial",
117
+ bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
118
+ bookingBreakValue2: "sasasa",
119
+ bookingBreakValue3: "",
120
+ bookingBreakValue4: "02661135N",
121
+ authorizationBreakTitle1: "Num.Empleado",
122
+ authorizationBreakTitle2: "Centro Empleado",
123
+ authorizationBreakTitle3: "ID Empresa",
124
+ authorizationBreakTitle7: "Nombre de la empresa",
125
+ authorizationBreakValue1: "U0193271",
126
+ authorizationBreakValue2: "5570",
127
+ authorizationBreakValue3: "95",
128
+ authorizationBreakValue5: "SC",
129
+ authorizationBreakValue6: "U0193271095",
130
+ authorizationBreakValue7: "FACILITIES"
131
+ },
132
+ {
133
+ id: 346248954,
134
+ idUser: 146280,
135
+ idAuthorization: 817457,
136
+ status: 30,
137
+ origin: {
138
+ addressField: "Cines Embajadores, Glorieta Sta. María de la Cabeza, 5, 28045 Madrid",
139
+ lat: 40.40068,
140
+ lon: -3.698589
141
+ },
142
+ destination: {
143
+ addressField: "Estación de Chamartín, Madrid, España",
144
+ lat: 40.47237,
145
+ lon: -3.683141
146
+ },
147
+ timeBookingStartRealTimestamp: 1653559603000,
148
+ asap: true,
149
+ paymentMethod: 50,
150
+ entryChannel: 15,
151
+ idSupplierFleet: 57,
152
+ idSupplier: 57,
153
+ distanceMeters: 10501,
154
+ durationMinutes: 0,
155
+ location: "MADRID",
156
+ passengerName: "Sandra Vicente Garcia",
157
+ phoneNumberPassenger: "453654654",
158
+ phoneNumberTaxiDriver: "600000000",
159
+ idSupplierTaxi: "11",
160
+ idSupplierService: "15826",
161
+ cancelledWithCharge: false,
162
+ priceCustomer: "23.00000",
163
+ priceSupplier: "23.00000",
164
+ phoneNumberSupplier: "676800672",
165
+ idAuthorizationGroup: 335,
166
+ supplierTaxiDescription: "Seat León | 4",
167
+ subscriberCode: "6300",
168
+ userNumber: "93271095",
169
+ idService: 1946195316,
170
+ shared: false,
171
+ timeZone: "Europe/Madrid",
172
+ notes: "2022-05-26 10:06:42 | 11 | Laura | 150 | Servicio solicitado Portal - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML like Gecko) Chrome/101.0.4951.64 Safari/537.36. WL 4069\n2022-05-26 10:06:42 | 33 | SYSTEM | 114 | El número de vuelo es 1.\n2022-05-26 10:06:42 | 33 | SYSTEM | 149 | Servicio enviado a MADRID_TAKSEE_TAXI (57)\n2022-05-26 10:06:51 | 44 | SYSTEM | 110 | Ha ocurrido un error enviando el email de confirmación al usuario\n2022-05-26 10:06:51 | 11 | SYSTEM | 130 | Confirmado por: MADRID_TAKSEE_TAXI (Taxi: 11). Num. servicio: 15826\n2022-05-26 10:08:15 | 33 | SYSTEM | 136 | Finalizado por SPARTAN. Importe 23 EUR establecido por SPARTAN (23.0 + 0.00 peaje)(40.4777 -3.7073)\n2022-05-26 10:08:16 | 33 | SYSTEM | 145 | Recibo enviado KO - 23€ + 0€ (peaje)",
173
+ tollCustomer: 0.00000,
174
+ tollSupplier: 0.00000,
175
+ paymentMethodCustomer: 4,
176
+ createdBy: 146280,
177
+ bookingBreakTitle1: "Evento",
178
+ bookingBreakTitle2: "Descripción actuación",
179
+ bookingBreakTitle3: "Centro de coste",
180
+ bookingBreakTitle4: "CIF visita comercial",
181
+ bookingBreakValue1: "Ev. Gen. - Acciones comerciales",
182
+ bookingBreakValue2: "sasasa",
183
+ bookingBreakValue3: "",
184
+ bookingBreakValue4: "02661135N",
185
+ authorizationBreakTitle1: "Num.Empleado",
186
+ authorizationBreakTitle2: "Centro Empleado",
187
+ authorizationBreakTitle3: "ID Empresa",
188
+ authorizationBreakTitle7: "Nombre de la empresa",
189
+ authorizationBreakValue1: "U0193271",
190
+ authorizationBreakValue2: "5570",
191
+ authorizationBreakValue3: "95",
192
+ authorizationBreakValue5: "SC",
193
+ authorizationBreakValue6: "U0193271095",
194
+ authorizationBreakValue7: "FACILITIES"
195
+ }
196
+ ],
197
+
198
+ columns: [
199
+ {
200
+ activeView: true,
201
+ sortable: true,
202
+ accessor: 'timeBookingStartRealTimestamp',
203
+ subAccessor: '',
204
+ title: 'Fecha',
205
+ viewIsFilter: true,
206
+ typeFilter: 'date',
207
+ subTypeFilter: false,
208
+ idInput: 'fecha',
209
+ nameInput: 'Fecha',
210
+ placeholder: 'Fecha'
211
+ },
212
+ {
213
+ activeView: true,
214
+ sortable: true,
215
+ accessor: 'passengerName',
216
+ subAccessor: '',
217
+ title: 'Pasajero',
218
+ viewIsFilter: true,
219
+ typeFilter: 'text',
220
+ subTypeFilter: false,
221
+ idInput: 'pasajero',
222
+ nameInput: 'Pasajero',
223
+ placeholder: 'Pasajero'
224
+ },
225
+ {
226
+ activeView: true,
227
+ sortable: true,
228
+ accessor: 'origin',
229
+ subAccessor: 'addressField',
230
+ title: 'Recogida',
231
+ viewIsFilter: true,
232
+ typeFilter: 'text',
233
+ subTypeFilter: false,
234
+ idInput: 'recogida',
235
+ nameInput: 'Recogida',
236
+ placeholder: 'Recogida'
237
+ },
238
+ {
239
+ activeView: true,
240
+ sortable: true,
241
+ accessor: 'destination',
242
+ subAccessor: 'addressField',
243
+ title: 'Destino',
244
+ viewIsFilter: true,
245
+ typeFilter: 'text',
246
+ subTypeFilter: false,
247
+ idInput: 'destino',
248
+ nameInput: 'Destino',
249
+ placeholder: 'Destino'
250
+ },
251
+ {
252
+ activeView: true,
253
+ sortable: true,
254
+ accessor: 'priceCustomer',
255
+ subAccessor: '',
256
+ title: 'Precio',
257
+ viewIsFilter: true,
258
+ typeFilter: 'text',
259
+ subTypeFilter: true,
260
+ idInput: 'precio',
261
+ nameInput: 'Precio',
262
+ placeholder: 'Precio'
263
+ },
264
+ {
265
+ activeView: false,
266
+ sortable: true,
267
+ accessor: 'id',
268
+ subAccessor: '',
269
+ title: 'ID',
270
+ viewIsFilter: true,
271
+ typeFilter: 'number',
272
+ subTypeFilter: false,
273
+ idInput: 'id',
274
+ nameInput: 'id',
275
+ placeholder: 'id'
276
+ },
277
+ {
278
+ activeView: false,
279
+ sortable: true,
280
+ accessor: 'idService',
281
+ subAccessor: '',
282
+ title: 'ID Reserva',
283
+ viewIsFilter: true,
284
+ typeFilter: 'number',
285
+ subTypeFilter: false,
286
+ idInput: 'IDReserva',
287
+ nameInput: 'ID Reserva',
288
+ placeholder: 'ID Reserva'
289
+ },
290
+ {
291
+ activeView: false,
292
+ sortable: true,
293
+ accessor: 'idSupplier',
294
+ subAccessor: '',
295
+ title: 'ID Proveedor',
296
+ viewIsFilter: true,
297
+ typeFilter: 'number',
298
+ subTypeFilter: false,
299
+ idInput: 'IDProveedor',
300
+ nameInput: 'ID Proveedor',
301
+ placeholder: 'ID Proveedor'
302
+ },
303
+ ],
304
+
305
+ opAddColumns: [
306
+ {
307
+ label: 'ID',
308
+ value: 'id',
309
+ activeView: false,
310
+ },
311
+ {
312
+ label: 'ID Reserva',
313
+ value: 'idService',
314
+ activeView: false,
315
+ },
316
+ {
317
+ label: 'ID Proveedor',
318
+ value: 'idSupplier',
319
+ activeView: false,
320
+ }
321
+ ]
322
+
323
+ }
@@ -0,0 +1,3 @@
1
+ export { default, DynamicTable } from './DynamicTable'
2
+ export { options } from './constants'
3
+ export { default as styles } from './DynamicTable.module.css'
@@ -0,0 +1,26 @@
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import styles from './FlexColumnContent.module.css'
5
+ import { options } from './constants'
6
+ import withStyles from '../../hocs/withStyles'
7
+
8
+ export const FlexColumnContent = ({ children, getStyles }) => {
9
+ return (
10
+ <div className={getStyles('flex-column-content')}>
11
+ {children}
12
+ </div>
13
+ )
14
+ }
15
+
16
+ FlexColumnContent.propTypes = {
17
+ children: PropTypes.node.isRequired,
18
+ getStyles: PropTypes.func.isRequired,
19
+ types: PropTypes.oneOf(options.types),
20
+ }
21
+
22
+ FlexColumnContent.defaultProps = {
23
+ getStyles: () => {},
24
+ }
25
+
26
+ export default withStyles(styles)(FlexColumnContent)
@@ -0,0 +1,5 @@
1
+ .flex-column-content {
2
+ display: flex;
3
+ flex: 1 1 auto;
4
+ width: 100%;
5
+ }
@@ -0,0 +1,28 @@
1
+ import { FlexColumnContent, styles, options } from '.'
2
+
3
+ import {
4
+ getTemplate,
5
+ getListTemplate,
6
+ getOptionsArgTypes,
7
+ } from '../../helpers/storybook'
8
+
9
+ const Template = getTemplate(FlexColumnContent, styles)
10
+ const ListTemplate = getListTemplate(FlexColumnContent, styles)
11
+
12
+ export default {
13
+ title: 'Layout/FlexColumnContent',
14
+ component: FlexColumnContent,
15
+ args: {
16
+ children: `Farthings pulled strain? Half they'll greater land sordid Elessar. Glamdring um 17 13 motion? Creaked fate spawning chief lords loved loveliest ashes Elfs witness. Brook born Caradhras dining raining! Seeing-stones taking unlost working. A wizard is never late, Frodo Baggins. Nor is he early. He arrives precisely when he means to. Oakenshield despite distinct prosperous wields relight dark weighed leader reaches rid honor. Moments poison Sackville-Bagginses echoes dozens fend get. Scales exist apple Gundabad retaken bunch agreeable mantle cannot name's seasoning private.
17
+ Brave dry defeats? Remembered unleashed Denethor niceties legacy. Streets cares pretty Brandybucks ostler. Intact dispatch their expenses suffered flaming bacon should Fili? Jacksie begins hallway needed tracked Gondor's wonderful popularity. Seemed ears perfectly Oakenshield's pale fall animals stabs betrayed grumbling? Stuff awake Brandybuck large done. Curse you and all the halflings!
18
+ Dared sit torment goes Anárion forgiven west. Summon Bucklebury ship. Terms none Farthings. Tea choose Dwarvish! Leagues gracious carpet payment Brandywine senses very thousand! Don't you leave him, Samwise Gamgee. Firestorm raising Shire reaction mud morninged shines death should! It'll Halflings nab pot drove start. Carpet Lasgalen seen sleepies!
19
+ Seeing renown knocked battered contend World shepherd. Roof sautéed kingdom agree curtain lived preparing down material Galion appearance! Faramir one-fourteenth study talked amongst fisherman barren recoil responsible. There is one Dwarf yet in Moria who still draws breath. Boats wait exaggerate guessed Muil usurper suffice. Unspoken swears stands serpent depart Mithril. Ugly threat Dwarf possessions yours homage long-term unmade. Well-earned suffice tapestry tongue piled smoke lacerations talisman helps Dragon-Slayer crown? Blanket shan't dare appearances hours grave Muil.`,
20
+ },
21
+ argTypes: {
22
+ types: getOptionsArgTypes(options.types),
23
+ },
24
+ }
25
+
26
+ export const Default = Template.bind({})
27
+ // export const List = ListTemplate.bind({})
28
+ // List.args = { items: options.types.map((type) => ({ type })) }
@@ -0,0 +1 @@
1
+ export const options = { types: ['row', 'column', ] }
@@ -0,0 +1,3 @@
1
+ export { default, FlexColumnContent } from './FlexColumnContent'
2
+ export { options } from './constants'
3
+ export { default as styles } from './FlexColumnContent.module.css'