siam-ui-utils 3.0.32 → 3.1.0

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.
Files changed (124) hide show
  1. package/dist/CustomBootstrap.js +9 -9
  2. package/dist/CustomBootstrap.js.map +1 -1
  3. package/dist/_virtual/_commonjsHelpers.js +7 -7
  4. package/dist/_virtual/events.js +6 -6
  5. package/dist/_virtual/events2.js +5 -5
  6. package/dist/_virtual/index.js +8 -8
  7. package/dist/_virtual/index2.js +5 -5
  8. package/dist/assets/img/copiar.png.js +5 -5
  9. package/dist/assets/img/take-photo.jpg.js +5 -5
  10. package/dist/constants.js +9 -9
  11. package/dist/copy-link/index.js +60 -60
  12. package/dist/copy-link/index.js.map +1 -1
  13. package/dist/copy-link/styles.css +37 -37
  14. package/dist/custom-input/CustomInputCheckbox.js +37 -35
  15. package/dist/custom-input/CustomInputCheckbox.js.map +1 -1
  16. package/dist/custom-input/CustomInputCurrency.js +84 -84
  17. package/dist/custom-input/CustomInputCurrency.js.map +1 -1
  18. package/dist/custom-input/CustomInputFile.js +47 -45
  19. package/dist/custom-input/CustomInputFile.js.map +1 -1
  20. package/dist/custom-input/CustomInputRadio.js +68 -66
  21. package/dist/custom-input/CustomInputRadio.js.map +1 -1
  22. package/dist/custom-input/constant.js +5 -5
  23. package/dist/custom-input/index.js +12 -12
  24. package/dist/drag-and-dropzone/DropzoneComponent.js +83 -0
  25. package/dist/drag-and-dropzone/DropzoneComponent.js.map +1 -0
  26. package/dist/drag-and-dropzone/config.js +59 -59
  27. package/dist/drag-and-dropzone/index.js +39 -39
  28. package/dist/drag-and-dropzone/index.js.map +1 -1
  29. package/dist/dropzone/Input.js +77 -77
  30. package/dist/dropzone/Layout.js +50 -50
  31. package/dist/dropzone/Preview.js +117 -117
  32. package/dist/dropzone/SubmitButton.js +34 -34
  33. package/dist/dropzone/assets/cancel.svg.js +5 -5
  34. package/dist/dropzone/assets/remove.svg.js +5 -5
  35. package/dist/dropzone/assets/restart.svg.js +5 -5
  36. package/dist/dropzone/index.js +514 -514
  37. package/dist/dropzone/utils.js +93 -93
  38. package/dist/dropzone-uploader/base/index.js +135 -135
  39. package/dist/dropzone-uploader/index.js +7 -7
  40. package/dist/dropzone-uploader/styled/index.js +148 -148
  41. package/dist/dropzone-uploader/styled/index.js.map +1 -1
  42. package/dist/iconos/constants-svg.js +666 -666
  43. package/dist/iconos/icon-button-svg.js +50 -50
  44. package/dist/iconos/index.js +24 -24
  45. package/dist/iconos/styled-icon.js +26 -26
  46. package/dist/index.js +4 -4
  47. package/dist/intl-messages/index.js +11 -11
  48. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -8
  49. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -13
  50. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -8
  51. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -13
  52. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -9
  53. package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js +111 -0
  54. package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js.map +1 -0
  55. package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js +106 -0
  56. package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js.map +1 -0
  57. package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js +125 -0
  58. package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js.map +1 -0
  59. package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js +75 -0
  60. package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js.map +1 -0
  61. package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js +225 -0
  62. package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js.map +1 -0
  63. package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js +122 -0
  64. package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js.map +1 -0
  65. package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js +83 -0
  66. package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js.map +1 -0
  67. package/dist/node_modules/@neolution-ch/reactstrap/esm/utils.js +68 -0
  68. package/dist/node_modules/@neolution-ch/reactstrap/esm/utils.js.map +1 -0
  69. package/dist/node_modules/classnames/index.js +62 -62
  70. package/dist/node_modules/dom-helpers/esm/addClass.js +10 -10
  71. package/dist/node_modules/dom-helpers/esm/hasClass.js +8 -8
  72. package/dist/node_modules/dom-helpers/esm/removeClass.js +16 -16
  73. package/dist/node_modules/dropzone/dist/dropzone.js +1968 -0
  74. package/dist/node_modules/dropzone/dist/dropzone.js.map +1 -0
  75. package/dist/node_modules/events/events.js +372 -372
  76. package/dist/node_modules/just-extend/index.esm.js +43 -0
  77. package/dist/node_modules/just-extend/index.esm.js.map +1 -0
  78. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +275 -275
  79. package/dist/node_modules/react-transition-group/esm/Transition.js +441 -441
  80. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +146 -146
  81. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -6
  82. package/dist/node_modules/react-transition-group/esm/config.js +7 -7
  83. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +100 -100
  84. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -24
  85. package/dist/node_modules/react-transition-group/esm/utils/reflow.js +7 -7
  86. package/dist/react-notifications/Notification.js +73 -73
  87. package/dist/react-notifications/NotificationContainer.js +59 -59
  88. package/dist/react-notifications/NotificationManager.js +174 -174
  89. package/dist/react-notifications/Notifications.js +72 -72
  90. package/dist/react-notifications/constants.js +26 -26
  91. package/dist/react-notifications/index.js +11 -11
  92. package/dist/select/custom-select/constants.js +8 -8
  93. package/dist/select/custom-select/index.js +89 -90
  94. package/dist/select/custom-select/index.js.map +1 -1
  95. package/dist/select/custom-select-input/index.js +12 -12
  96. package/dist/select/index.js +9 -9
  97. package/dist/select/multi-select/badge-label-multi-select.js +29 -29
  98. package/dist/select/multi-select/index.css +36 -23
  99. package/dist/select/multi-select/index.js +171 -62
  100. package/dist/select/multi-select/index.js.map +1 -1
  101. package/dist/select/multi-select/styled-component.js +23 -24
  102. package/dist/select/multi-select/styled-component.js.map +1 -1
  103. package/dist/timer/index.js +60 -60
  104. package/dist/timer/styles.css +58 -58
  105. package/dist/tomar-foto/index.js +62 -62
  106. package/dist/tomar-foto/index.js.map +1 -1
  107. package/dist/view-layout/button-editor.js +14 -14
  108. package/dist/view-layout/constants.js +11 -11
  109. package/dist/view-layout/editor-layer.js +28 -28
  110. package/dist/view-layout/index.js +53 -53
  111. package/dist/view-layout/slot-wrapper.js +39 -39
  112. package/dist/view-layout/styles.css +126 -126
  113. package/dist/where-by-room/index.js +20 -20
  114. package/dist/where-by-room/room.js +78 -78
  115. package/index.d.ts +1 -1
  116. package/package.json +12 -10
  117. package/dist/_virtual/react-dropzone.js +0 -8
  118. package/dist/_virtual/react-dropzone.js.map +0 -1
  119. package/dist/_virtual/react-dropzone2.js +0 -5
  120. package/dist/_virtual/react-dropzone2.js.map +0 -1
  121. package/dist/node_modules/react-dropzone-component/dist/react-dropzone.js +0 -1023
  122. package/dist/node_modules/react-dropzone-component/dist/react-dropzone.js.map +0 -1
  123. package/dist/node_modules/react-multi-select-component/dist/esm/index.js +0 -178
  124. package/dist/node_modules/react-multi-select-component/dist/esm/index.js.map +0 -1
@@ -1,72 +1,72 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Component, createRef } from "react";
3
- import PropTypes from "prop-types";
4
- import classnames from "../_virtual/index.js";
5
- import Notification from "./Notification.js";
6
- import TransitionGroup from "../node_modules/react-transition-group/esm/TransitionGroup.js";
7
- import CSSTransition from "../node_modules/react-transition-group/esm/CSSTransition.js";
8
- class Notifications extends Component {
9
- constructor(props) {
10
- super(props);
11
- this.nodeRefs = {};
12
- }
13
- handleRequestHide = (notification) => () => {
14
- const { onRequestHide } = this.props;
15
- if (onRequestHide) {
16
- onRequestHide(notification);
17
- }
18
- };
19
- getNodeRef = (key) => {
20
- if (!this.nodeRefs[key]) {
21
- this.nodeRefs[key] = createRef();
22
- }
23
- return this.nodeRefs[key];
24
- };
25
- render() {
26
- const {
27
- notifications = [],
28
- enterTimeout = 400,
29
- leaveTimeout = 400
30
- } = this.props;
31
- const className = classnames("notification-container", {
32
- "notification-container-empty": notifications.length === 0
33
- });
34
- return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(TransitionGroup, { children: notifications.map((notification) => {
35
- const key = notification.id || (/* @__PURE__ */ new Date()).getTime();
36
- const nodeRef = this.getNodeRef(key);
37
- return /* @__PURE__ */ jsx(
38
- CSSTransition,
39
- {
40
- classNames: "notification",
41
- timeout: { exit: leaveTimeout, enter: enterTimeout },
42
- nodeRef,
43
- children: /* @__PURE__ */ jsx(
44
- Notification,
45
- {
46
- ref: nodeRef,
47
- type: notification.type,
48
- title: notification.title,
49
- message: notification.message,
50
- timeOut: notification.timeOut,
51
- onClick: notification.onClick,
52
- onRequestHide: this.handleRequestHide(notification),
53
- customClassName: notification.customClassName
54
- },
55
- key
56
- )
57
- },
58
- key
59
- );
60
- }) }) });
61
- }
62
- }
63
- Notifications.propTypes = {
64
- notifications: PropTypes.array,
65
- onRequestHide: PropTypes.func,
66
- enterTimeout: PropTypes.number,
67
- leaveTimeout: PropTypes.number
68
- };
69
- export {
70
- Notifications as default
71
- };
72
- //# sourceMappingURL=Notifications.js.map
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Component, createRef } from "react";
3
+ import PropTypes from "prop-types";
4
+ import classnames from "../_virtual/index.js";
5
+ import Notification from "./Notification.js";
6
+ import TransitionGroup from "../node_modules/react-transition-group/esm/TransitionGroup.js";
7
+ import CSSTransition from "../node_modules/react-transition-group/esm/CSSTransition.js";
8
+ class Notifications extends Component {
9
+ constructor(props) {
10
+ super(props);
11
+ this.nodeRefs = {};
12
+ }
13
+ handleRequestHide = (notification) => () => {
14
+ const { onRequestHide } = this.props;
15
+ if (onRequestHide) {
16
+ onRequestHide(notification);
17
+ }
18
+ };
19
+ getNodeRef = (key) => {
20
+ if (!this.nodeRefs[key]) {
21
+ this.nodeRefs[key] = createRef();
22
+ }
23
+ return this.nodeRefs[key];
24
+ };
25
+ render() {
26
+ const {
27
+ notifications = [],
28
+ enterTimeout = 400,
29
+ leaveTimeout = 400
30
+ } = this.props;
31
+ const className = classnames("notification-container", {
32
+ "notification-container-empty": notifications.length === 0
33
+ });
34
+ return /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(TransitionGroup, { children: notifications.map((notification) => {
35
+ const key = notification.id || (/* @__PURE__ */ new Date()).getTime();
36
+ const nodeRef = this.getNodeRef(key);
37
+ return /* @__PURE__ */ jsx(
38
+ CSSTransition,
39
+ {
40
+ classNames: "notification",
41
+ timeout: { exit: leaveTimeout, enter: enterTimeout },
42
+ nodeRef,
43
+ children: /* @__PURE__ */ jsx(
44
+ Notification,
45
+ {
46
+ ref: nodeRef,
47
+ type: notification.type,
48
+ title: notification.title,
49
+ message: notification.message,
50
+ timeOut: notification.timeOut,
51
+ onClick: notification.onClick,
52
+ onRequestHide: this.handleRequestHide(notification),
53
+ customClassName: notification.customClassName
54
+ },
55
+ key
56
+ )
57
+ },
58
+ key
59
+ );
60
+ }) }) });
61
+ }
62
+ }
63
+ Notifications.propTypes = {
64
+ notifications: PropTypes.array,
65
+ onRequestHide: PropTypes.func,
66
+ enterTimeout: PropTypes.number,
67
+ leaveTimeout: PropTypes.number
68
+ };
69
+ export {
70
+ Notifications as default
71
+ };
72
+ //# sourceMappingURL=Notifications.js.map
@@ -1,26 +1,26 @@
1
- const TYPES = {
2
- CHANGE: "change",
3
- ERROR: "error",
4
- INFO: "info",
5
- PRIMARY: "primary",
6
- SECONDARY: "secondary",
7
- SUCCESS: "success",
8
- WARNING: "warning"
9
- };
10
- const TITLES = {
11
- AVISO: "AVISO",
12
- ERROR: "ERROR",
13
- EXITO: "EXITO",
14
- INFORMACION: "INFORMACION",
15
- PRIMARIO: "PRIMARIO",
16
- SECUNDARIO: "SECUNDARIO"
17
- };
18
- const DEFAULT_VALUES = {
19
- TIMEOUT: 5e3
20
- };
21
- export {
22
- DEFAULT_VALUES,
23
- TITLES,
24
- TYPES
25
- };
26
- //# sourceMappingURL=constants.js.map
1
+ const TYPES = {
2
+ CHANGE: "change",
3
+ ERROR: "error",
4
+ INFO: "info",
5
+ PRIMARY: "primary",
6
+ SECONDARY: "secondary",
7
+ SUCCESS: "success",
8
+ WARNING: "warning"
9
+ };
10
+ const TITLES = {
11
+ AVISO: "AVISO",
12
+ ERROR: "ERROR",
13
+ EXITO: "EXITO",
14
+ INFORMACION: "INFORMACION",
15
+ PRIMARIO: "PRIMARIO",
16
+ SECUNDARIO: "SECUNDARIO"
17
+ };
18
+ const DEFAULT_VALUES = {
19
+ TIMEOUT: 5e3
20
+ };
21
+ export {
22
+ DEFAULT_VALUES,
23
+ TITLES,
24
+ TYPES
25
+ };
26
+ //# sourceMappingURL=constants.js.map
@@ -1,11 +1,11 @@
1
- import "./notifications.css";
2
- import Notifications from "./Notifications.js";
3
- import { default as default2 } from "./NotificationContainer.js";
4
- import { default as default3 } from "./NotificationManager.js";
5
- export {
6
- default2 as NotificationContainer,
7
- default3 as NotificationManager,
8
- Notifications,
9
- Notifications as default
10
- };
11
- //# sourceMappingURL=index.js.map
1
+ import "./notifications.css";
2
+ import Notifications from "./Notifications.js";
3
+ import { default as default2 } from "./NotificationContainer.js";
4
+ import { default as default3 } from "./NotificationManager.js";
5
+ export {
6
+ default2 as NotificationContainer,
7
+ default3 as NotificationManager,
8
+ Notifications,
9
+ Notifications as default
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- const LABELS = {
2
- SIN_DATOS: "SIN DATOS",
3
- SELECCIONE: "SELECCIONE..."
4
- };
5
- export {
6
- LABELS
7
- };
8
- //# sourceMappingURL=constants.js.map
1
+ const LABELS = {
2
+ SIN_DATOS: "SIN DATOS",
3
+ SELECCIONE: "SELECCIONE..."
4
+ };
5
+ export {
6
+ LABELS
7
+ };
8
+ //# sourceMappingURL=constants.js.map
@@ -1,90 +1,89 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
3
- import Select from "react-select";
4
- import { Label } from "reactstrap";
5
- import { CustomSelectInput } from "../custom-select-input/index.js";
6
- import { LABELS } from "./constants.js";
7
- import "react-tagsinput/react-tagsinput.css";
8
- const { SIN_DATOS, SELECCIONE } = LABELS;
9
- const CustomSelect = (props) => {
10
- const [firstElement] = useState(props.firstElement);
11
- const [newItem] = useState(props.newItem);
12
- const [selectedIoption, setIoption] = useState({});
13
- const [customStylesOption] = useState(props.customStylesOption);
14
- const [customStyles, setCustomStyles] = useState({});
15
- useEffect(() => {
16
- if (newItem) {
17
- props.options.push(newItem);
18
- }
19
- }, [newItem, props.options]);
20
- useEffect(() => {
21
- const { options = [] } = props;
22
- if (firstElement && Number(options?.length) > 1) {
23
- const propIOption = options.filter((item) => item === firstElement);
24
- if (propIOption?.length === 0) {
25
- props.options.unshift(firstElement);
26
- }
27
- }
28
- }, [firstElement, props.options]);
29
- useEffect(() => {
30
- const { selectedValue } = props;
31
- const errorProp = { value: null };
32
- if (selectedValue || firstElement && firstElement.value === selectedValue) {
33
- const propIOption = props.options.filter(({ value }) => {
34
- return JSON.stringify(value) === JSON.stringify(selectedValue);
35
- });
36
- if (propIOption[0]) {
37
- setIoption(propIOption[0]);
38
- if (!Object.getOwnPropertyDescriptor(selectedIoption, "label")) {
39
- props.onChange(propIOption[0]);
40
- }
41
- } else {
42
- setIoption(errorProp);
43
- props.onChange(errorProp);
44
- }
45
- } else if (props.options.length > 0) {
46
- setIoption(errorProp);
47
- props.onChange(errorProp);
48
- }
49
- }, [props.selectedValue, props.options, firstElement]);
50
- useEffect(() => {
51
- if (customStylesOption) {
52
- const stylesOption = {
53
- option: (base, { data }) => {
54
- return {
55
- ...base,
56
- color: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "blue !important" : "",
57
- fontWeight: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "bold" : ""
58
- };
59
- }
60
- };
61
- setCustomStyles(stylesOption);
62
- }
63
- }, [customStylesOption]);
64
- return /* @__PURE__ */ jsxs(Fragment, { children: [
65
- props.label && props.label !== "" && /* @__PURE__ */ jsxs(Label, { className: "mb-0", children: [
66
- props.label,
67
- ":"
68
- ] }),
69
- /* @__PURE__ */ jsx(
70
- Select,
71
- {
72
- ...props,
73
- components: { Input: CustomSelectInput },
74
- className: "react-select",
75
- classNamePrefix: "react-select",
76
- name: "form-field-name",
77
- value: Object.getOwnPropertyDescriptor(selectedIoption, "label") ? selectedIoption : "",
78
- onChange: props.onChange,
79
- options: props.options,
80
- placeholder: Number(props.options.length) === 0 ? SIN_DATOS : props.placeholder || SELECCIONE,
81
- isDisabled: props.disabled,
82
- styles: customStyles
83
- }
84
- )
85
- ] });
86
- };
87
- export {
88
- CustomSelect
89
- };
90
- //# sourceMappingURL=index.js.map
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { useState, useEffect } from "react";
3
+ import Select from "react-select";
4
+ import Label from "../../node_modules/@neolution-ch/reactstrap/esm/Label.js";
5
+ import { CustomSelectInput } from "../custom-select-input/index.js";
6
+ import { LABELS } from "./constants.js";
7
+ const { SIN_DATOS, SELECCIONE } = LABELS;
8
+ const CustomSelect = (props) => {
9
+ const [firstElement] = useState(props.firstElement);
10
+ const [newItem] = useState(props.newItem);
11
+ const [selectedIoption, setIoption] = useState({});
12
+ const [customStylesOption] = useState(props.customStylesOption);
13
+ const [customStyles, setCustomStyles] = useState({});
14
+ useEffect(() => {
15
+ if (newItem) {
16
+ props.options.push(newItem);
17
+ }
18
+ }, [newItem, props.options]);
19
+ useEffect(() => {
20
+ const { options = [] } = props;
21
+ if (firstElement && Number(options?.length) > 1) {
22
+ const propIOption = options.filter((item) => item === firstElement);
23
+ if (propIOption?.length === 0) {
24
+ props.options.unshift(firstElement);
25
+ }
26
+ }
27
+ }, [firstElement, props.options]);
28
+ useEffect(() => {
29
+ const { selectedValue } = props;
30
+ const errorProp = { value: null };
31
+ if (selectedValue || firstElement && firstElement.value === selectedValue) {
32
+ const propIOption = props.options.filter(({ value }) => {
33
+ return JSON.stringify(value) === JSON.stringify(selectedValue);
34
+ });
35
+ if (propIOption[0]) {
36
+ setIoption(propIOption[0]);
37
+ if (!Object.getOwnPropertyDescriptor(selectedIoption, "label")) {
38
+ props.onChange(propIOption[0]);
39
+ }
40
+ } else {
41
+ setIoption(errorProp);
42
+ props.onChange(errorProp);
43
+ }
44
+ } else if (props.options.length > 0) {
45
+ setIoption(errorProp);
46
+ props.onChange(errorProp);
47
+ }
48
+ }, [props.selectedValue, props.options, firstElement]);
49
+ useEffect(() => {
50
+ if (customStylesOption) {
51
+ const stylesOption = {
52
+ option: (base, { data }) => {
53
+ return {
54
+ ...base,
55
+ color: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "blue !important" : "",
56
+ fontWeight: data.fields && data.fields[customStylesOption.fieldMatch] === customStylesOption.valueMatch ? "bold" : ""
57
+ };
58
+ }
59
+ };
60
+ setCustomStyles(stylesOption);
61
+ }
62
+ }, [customStylesOption]);
63
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
64
+ props.label && props.label !== "" && /* @__PURE__ */ jsxs(Label, { className: "mb-0", children: [
65
+ props.label,
66
+ ":"
67
+ ] }),
68
+ /* @__PURE__ */ jsx(
69
+ Select,
70
+ {
71
+ ...props,
72
+ components: { Input: CustomSelectInput },
73
+ className: "react-select",
74
+ classNamePrefix: "react-select",
75
+ name: "form-field-name",
76
+ value: Object.getOwnPropertyDescriptor(selectedIoption, "label") ? selectedIoption : "",
77
+ onChange: props.onChange,
78
+ options: props.options,
79
+ placeholder: Number(props.options.length) === 0 ? SIN_DATOS : props.placeholder || SELECCIONE,
80
+ isDisabled: props.disabled,
81
+ styles: customStyles
82
+ }
83
+ )
84
+ ] });
85
+ };
86
+ export {
87
+ CustomSelect
88
+ };
89
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/select/custom-select/index.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\r\nimport Select from 'react-select';\r\nimport { Label } from 'reactstrap';\r\nimport { CustomSelectInput } from '../custom-select-input';\r\nimport { LABELS } from './constants';\r\nimport 'react-tagsinput/react-tagsinput.css';\r\n\r\ninterface ICustomStylesOption {\r\n fieldMatch: string;\r\n valueMatch: any;\r\n}\r\ninterface IOption {\r\n label: string;\r\n value: any;\r\n fields?: any;\r\n}\r\ninterface IOption {\r\n label: string;\r\n value: any;\r\n fields?: any;\r\n}\r\ninterface Props {\r\n label: string;\r\n tabIndex: number;\r\n options: [IOption];\r\n onChange: any;\r\n selectedValue: any;\r\n firstElement?: IOption; // no ingresar null como VALUE del elemento, setear '' ya que lo toma como que no se selecciono nada\r\n newItem?: IOption;\r\n placeholder?: string;\r\n disabled?: boolean;\r\n customStylesOption?: ICustomStylesOption;\r\n}\r\n\r\nconst { SIN_DATOS, SELECCIONE } = LABELS;\r\n\r\nexport const CustomSelect: React.FC<Props> = (props: Props) => {\r\n const [firstElement] = useState(props.firstElement);\r\n const [newItem] = useState(props.newItem);\r\n const [selectedIoption, setIoption] = useState({});\r\n const [customStylesOption] = useState(props.customStylesOption);\r\n const [customStyles, setCustomStyles] = useState({});\r\n\r\n // agrega items\r\n useEffect(() => {\r\n if (newItem) {\r\n props.options.push(newItem);\r\n }\r\n }, [newItem, props.options]);\r\n\r\n // Seleccion del 1er item.\r\n useEffect(() => {\r\n const { options = [] } = props;\r\n if (firstElement && Number(options?.length) > 1) {\r\n const propIOption = options.filter((item) => item === firstElement);\r\n\r\n if (propIOption?.length === 0) {\r\n props.options.unshift(firstElement);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [firstElement, props.options]);\r\n\r\n // selecciona un valor seteado dentro de la coleccion\r\n useEffect(() => {\r\n const { selectedValue } = props;\r\n const errorProp = { value: null };\r\n\r\n if (\r\n selectedValue ||\r\n (firstElement && firstElement.value === selectedValue)\r\n ) {\r\n const propIOption = props.options.filter(({ value }) => {\r\n return JSON.stringify(value) === JSON.stringify(selectedValue);\r\n });\r\n\r\n if (propIOption[0]) {\r\n setIoption(propIOption[0]);\r\n if (!Object.getOwnPropertyDescriptor(selectedIoption, 'label')) {\r\n props.onChange(propIOption[0]);\r\n }\r\n } else {\r\n setIoption(errorProp);\r\n props.onChange(errorProp);\r\n }\r\n } else if (props.options.length > 0) {\r\n setIoption(errorProp);\r\n props.onChange(errorProp);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.selectedValue, props.options, firstElement]);\r\n\r\n useEffect(() => {\r\n if (customStylesOption) {\r\n const stylesOption = {\r\n option: (base: any, { data }: any) => {\r\n return {\r\n ...base,\r\n color:\r\n data.fields &&\r\n data.fields[customStylesOption.fieldMatch] ===\r\n customStylesOption.valueMatch\r\n ? 'blue !important'\r\n : '',\r\n fontWeight:\r\n data.fields &&\r\n data.fields[customStylesOption.fieldMatch] ===\r\n customStylesOption.valueMatch\r\n ? 'bold'\r\n : '',\r\n };\r\n },\r\n };\r\n setCustomStyles(stylesOption);\r\n }\r\n }, [customStylesOption]);\r\n\r\n return (\r\n <>\r\n {props.label && props.label !== '' && (\r\n <Label className=\"mb-0\">{props.label}:</Label>\r\n )}\r\n <Select\r\n {...props}\r\n components={{ Input: CustomSelectInput }}\r\n className=\"react-select\"\r\n classNamePrefix=\"react-select\"\r\n name=\"form-field-name\"\r\n value={\r\n Object.getOwnPropertyDescriptor(selectedIoption, 'label')\r\n ? selectedIoption\r\n : ''\r\n }\r\n onChange={props.onChange}\r\n options={props.options}\r\n placeholder={\r\n Number(props.options.length) === 0\r\n ? SIN_DATOS\r\n : props.placeholder || SELECCIONE\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GACF;AAEJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/select/custom-select/index.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\r\nimport Select from 'react-select';\r\nimport { Label } from '@neolution-ch/reactstrap';\r\nimport { CustomSelectInput } from '../custom-select-input';\r\nimport { LABELS } from './constants';\r\n\r\ninterface ICustomStylesOption {\r\n fieldMatch: string;\r\n valueMatch: any;\r\n}\r\ninterface IOption {\r\n label: string;\r\n value: any;\r\n fields?: any;\r\n}\r\ninterface IOption {\r\n label: string;\r\n value: any;\r\n fields?: any;\r\n}\r\ninterface Props {\r\n label: string;\r\n tabIndex: number;\r\n options: [IOption];\r\n onChange: any;\r\n selectedValue: any;\r\n firstElement?: IOption; // no ingresar null como VALUE del elemento, setear '' ya que lo toma como que no se selecciono nada\r\n newItem?: IOption;\r\n placeholder?: string;\r\n disabled?: boolean;\r\n customStylesOption?: ICustomStylesOption;\r\n}\r\n\r\nconst { SIN_DATOS, SELECCIONE } = LABELS;\r\n\r\nexport const CustomSelect: React.FC<Props> = (props: Props) => {\r\n const [firstElement] = useState(props.firstElement);\r\n const [newItem] = useState(props.newItem);\r\n const [selectedIoption, setIoption] = useState({});\r\n const [customStylesOption] = useState(props.customStylesOption);\r\n const [customStyles, setCustomStyles] = useState({});\r\n\r\n // agrega items\r\n useEffect(() => {\r\n if (newItem) {\r\n props.options.push(newItem);\r\n }\r\n }, [newItem, props.options]);\r\n\r\n // Seleccion del 1er item.\r\n useEffect(() => {\r\n const { options = [] } = props;\r\n if (firstElement && Number(options?.length) > 1) {\r\n const propIOption = options.filter((item) => item === firstElement);\r\n\r\n if (propIOption?.length === 0) {\r\n props.options.unshift(firstElement);\r\n }\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [firstElement, props.options]);\r\n\r\n // selecciona un valor seteado dentro de la coleccion\r\n useEffect(() => {\r\n const { selectedValue } = props;\r\n const errorProp = { value: null };\r\n\r\n if (\r\n selectedValue ||\r\n (firstElement && firstElement.value === selectedValue)\r\n ) {\r\n const propIOption = props.options.filter(({ value }) => {\r\n return JSON.stringify(value) === JSON.stringify(selectedValue);\r\n });\r\n\r\n if (propIOption[0]) {\r\n setIoption(propIOption[0]);\r\n if (!Object.getOwnPropertyDescriptor(selectedIoption, 'label')) {\r\n props.onChange(propIOption[0]);\r\n }\r\n } else {\r\n setIoption(errorProp);\r\n props.onChange(errorProp);\r\n }\r\n } else if (props.options.length > 0) {\r\n setIoption(errorProp);\r\n props.onChange(errorProp);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [props.selectedValue, props.options, firstElement]);\r\n\r\n useEffect(() => {\r\n if (customStylesOption) {\r\n const stylesOption = {\r\n option: (base: any, { data }: any) => {\r\n return {\r\n ...base,\r\n color:\r\n data.fields &&\r\n data.fields[customStylesOption.fieldMatch] ===\r\n customStylesOption.valueMatch\r\n ? 'blue !important'\r\n : '',\r\n fontWeight:\r\n data.fields &&\r\n data.fields[customStylesOption.fieldMatch] ===\r\n customStylesOption.valueMatch\r\n ? 'bold'\r\n : '',\r\n };\r\n },\r\n };\r\n setCustomStyles(stylesOption);\r\n }\r\n }, [customStylesOption]);\r\n\r\n return (\r\n <>\r\n {props.label && props.label !== '' && (\r\n <Label className=\"mb-0\">{props.label}:</Label>\r\n )}\r\n <Select\r\n {...props}\r\n components={{ Input: CustomSelectInput }}\r\n className=\"react-select\"\r\n classNamePrefix=\"react-select\"\r\n name=\"form-field-name\"\r\n value={\r\n Object.getOwnPropertyDescriptor(selectedIoption, 'label')\r\n ? selectedIoption\r\n : ''\r\n }\r\n onChange={props.onChange}\r\n options={props.options}\r\n placeholder={\r\n Number(props.options.length) === 0\r\n ? SIN_DATOS\r\n : props.placeholder || SELECCIONE\r\n }\r\n isDisabled={props.disabled}\r\n styles={customStyles}\r\n />\r\n </>\r\n );\r\n};\r\n"],"names":[],"mappings":";;;;;;AAiCA,MAAM,EAAE,WAAW,WAAA,IAAe;AAE3B,MAAM,eAAgC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GAAG;AACnC,iBAAW,SAAS;AACpB,YAAM,SAAS,SAAS;AAAA,IAC1B;AAAA,EAEF,GAAG,CAAC,MAAM,eAAe,MAAM,SAAS,YAAY,CAAC;AAErD,YAAU,MAAM;AACd,QAAI,oBAAoB;AACtB,YAAM,eAAe;AAAA,QACnB,QAAQ,CAAC,MAAW,EAAE,WAAgB;AACpC,iBAAO;AAAA,YACL,GAAG;AAAA,YACH,OACE,KAAK,UACL,KAAK,OAAO,mBAAmB,UAAU,MACvC,mBAAmB,aACjB,oBACA;AAAA,YACN,YACE,KAAK,UACL,KAAK,OAAO,mBAAmB,UAAU,MACvC,mBAAmB,aACjB,SACA;AAAA,UAAA;AAAA,QAEV;AAAA,MAAA;AAEF,sBAAgB,YAAY;AAAA,IAC9B;AAAA,EACF,GAAG,CAAC,kBAAkB,CAAC;AAEvB,SACE,qBAAA,UAAA,EACG,UAAA;AAAA,IAAA,MAAM,SAAS,MAAM,UAAU,MAC9B,qBAAC,OAAA,EAAM,WAAU,QAAQ,UAAA;AAAA,MAAA,MAAM;AAAA,MAAM;AAAA,IAAA,GAAC;AAAA,IAExC;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAG;AAAA,QACJ,YAAY,EAAE,OAAO,kBAAA;AAAA,QACrB,WAAU;AAAA,QACV,iBAAgB;AAAA,QAChB,MAAK;AAAA,QACL,OACE,OAAO,yBAAyB,iBAAiB,OAAO,IACpD,kBACA;AAAA,QAEN,UAAU,MAAM;AAAA,QAChB,SAAS,MAAM;AAAA,QACf,aACE,OAAO,MAAM,QAAQ,MAAM,MAAM,IAC7B,YACA,MAAM,eAAe;AAAA,QAE3B,YAAY,MAAM;AAAA,QAClB,QAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EACV,GACF;AAEJ;"}
@@ -1,12 +1,12 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { components } from "react-select";
3
- const CustomSelectInput = (props) => {
4
- const customProps = { ...props };
5
- delete customProps.autoCorrect;
6
- delete customProps.autoCapitalize;
7
- return /* @__PURE__ */ jsx(components.Input, { ...customProps });
8
- };
9
- export {
10
- CustomSelectInput
11
- };
12
- //# sourceMappingURL=index.js.map
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { components } from "react-select";
3
+ const CustomSelectInput = (props) => {
4
+ const customProps = { ...props };
5
+ delete customProps.autoCorrect;
6
+ delete customProps.autoCapitalize;
7
+ return /* @__PURE__ */ jsx(components.Input, { ...customProps });
8
+ };
9
+ export {
10
+ CustomSelectInput
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- import { CustomSelect } from "./custom-select/index.js";
2
- import { CustomMultiSelect } from "./multi-select/index.js";
3
- import { CustomSelectInput } from "./custom-select-input/index.js";
4
- export {
5
- CustomMultiSelect,
6
- CustomSelect,
7
- CustomSelectInput
8
- };
9
- //# sourceMappingURL=index.js.map
1
+ import { CustomSelect } from "./custom-select/index.js";
2
+ import { CustomMultiSelect } from "./multi-select/index.js";
3
+ import { CustomSelectInput } from "./custom-select-input/index.js";
4
+ export {
5
+ CustomMultiSelect,
6
+ CustomSelect,
7
+ CustomSelectInput
8
+ };
9
+ //# sourceMappingURL=index.js.map
@@ -1,29 +1,29 @@
1
- import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- import { toCamelCase } from "siam-utils";
3
- import { ClickableBadge } from "./styled-component.js";
4
- const BadgeLabelMultiSelect = ({
5
- descripcionLabel = [],
6
- onRemove = () => {
7
- }
8
- }) => {
9
- const getBadgeColor = (value) => {
10
- return value.color || "dark";
11
- };
12
- return /* @__PURE__ */ jsx(Fragment, { children: descripcionLabel.map((item) => /* @__PURE__ */ jsxs(
13
- ClickableBadge,
14
- {
15
- color: getBadgeColor(item),
16
- pill: true,
17
- onClick: () => onRemove(item.value),
18
- children: [
19
- toCamelCase(item.label),
20
- " ×"
21
- ]
22
- },
23
- item.value
24
- )) });
25
- };
26
- export {
27
- BadgeLabelMultiSelect as default
28
- };
29
- //# sourceMappingURL=badge-label-multi-select.js.map
1
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
+ import { toCamelCase } from "siam-utils";
3
+ import { ClickableBadge } from "./styled-component.js";
4
+ const BadgeLabelMultiSelect = ({
5
+ descripcionLabel = [],
6
+ onRemove = () => {
7
+ }
8
+ }) => {
9
+ const getBadgeColor = (value) => {
10
+ return value.color || "dark";
11
+ };
12
+ return /* @__PURE__ */ jsx(Fragment, { children: descripcionLabel.map((item) => /* @__PURE__ */ jsxs(
13
+ ClickableBadge,
14
+ {
15
+ color: getBadgeColor(item),
16
+ pill: true,
17
+ onClick: () => onRemove(item.value),
18
+ children: [
19
+ toCamelCase(item.label),
20
+ " ×"
21
+ ]
22
+ },
23
+ item.value
24
+ )) });
25
+ };
26
+ export {
27
+ BadgeLabelMultiSelect as default
28
+ };
29
+ //# sourceMappingURL=badge-label-multi-select.js.map
@@ -1,24 +1,37 @@
1
- .rmsc input[type=checkbox] {
2
- accent-color: #900604;
3
- }
4
-
5
- .rmsc .item:hover {
6
- background-color: #f8e1e1;
7
- }
8
-
9
- .rmsc input[type=checkbox]:focus {
10
- outline: 2px solid #900604;
11
- outline-offset: 2px;
12
- }
13
-
14
- .custom-multiselect .dropdown-container {
15
- min-height: 38px;
16
- }
17
-
18
- .dropdown-heading-value {
19
- color: green;
20
- height: 2rem;
21
- display: inline;
22
- font-weight: bold;
23
- padding: 0.4rem;
1
+ .multiselect-checkbox-option .custom-checkbox {
2
+ margin-bottom: 0;
3
+ }
4
+ .multiselect-checkbox-option .custom-checkbox input[type=checkbox] + label {
5
+ line-height: 1.2 !important;
6
+ display: flex;
7
+ align-items: center;
8
+ padding-left: 1.75rem;
9
+ }
10
+ .multiselect-checkbox-option .custom-checkbox input[type=checkbox] + label::before {
11
+ top: 50%;
12
+ transform: translateY(-50%);
13
+ }
14
+ .multiselect-checkbox-option .custom-checkbox input[type=checkbox]:checked + label::after {
15
+ top: 50%;
16
+ transform: translateY(-65%) rotate(45deg);
17
+ }
18
+
19
+ .custom-multiselect__control {
20
+ min-height: 38px;
21
+ border-color: #ccc;
22
+ }
23
+ .custom-multiselect__control:hover {
24
+ border-color: #900604;
25
+ }
26
+ .custom-multiselect__control--is-focused {
27
+ border-color: #900604;
28
+ box-shadow: 0 0 0 1px #900604;
29
+ }
30
+
31
+ .dropdown-heading-value {
32
+ color: green;
33
+ height: 2rem;
34
+ display: inline;
35
+ font-weight: bold;
36
+ padding: 0.4rem;
24
37
  }