siam-ui-utils 3.0.28 → 3.0.30
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/CustomBootstrap.js +9 -9
- package/dist/_virtual/_commonjsHelpers.js +7 -7
- package/dist/_virtual/events.js +6 -6
- package/dist/_virtual/events2.js +5 -5
- package/dist/_virtual/index.js +8 -8
- package/dist/_virtual/index2.js +5 -5
- package/dist/_virtual/react-dropzone.js +8 -8
- package/dist/_virtual/react-dropzone2.js +5 -5
- package/dist/assets/img/copiar.png.js +5 -5
- package/dist/assets/img/take-photo.jpg.js +5 -5
- package/dist/constants.js +9 -9
- package/dist/copy-link/index.js +60 -60
- package/dist/copy-link/styles.css +37 -37
- package/dist/custom-input/CustomInputCheckbox.js +36 -36
- package/dist/custom-input/CustomInputCurrency.js +85 -85
- package/dist/custom-input/CustomInputFile.js +46 -46
- package/dist/custom-input/CustomInputRadio.js +67 -67
- package/dist/custom-input/constant.js +5 -5
- package/dist/custom-input/index.js +12 -14
- package/dist/custom-input/index.js.map +1 -1
- package/dist/drag-and-dropzone/config.js +59 -59
- package/dist/drag-and-dropzone/index.js +39 -39
- package/dist/dropzone/Input.js +77 -77
- package/dist/dropzone/Layout.js +50 -50
- package/dist/dropzone/Preview.js +117 -117
- package/dist/dropzone/SubmitButton.js +34 -34
- package/dist/dropzone/assets/cancel.svg.js +5 -5
- package/dist/dropzone/assets/remove.svg.js +5 -5
- package/dist/dropzone/assets/restart.svg.js +5 -5
- package/dist/dropzone/index.js +514 -514
- package/dist/dropzone/utils.js +93 -93
- package/dist/dropzone-uploader/base/index.js +135 -135
- package/dist/dropzone-uploader/index.js +7 -7
- package/dist/dropzone-uploader/styled/index.js +149 -149
- package/dist/iconos/constants-svg.js +666 -666
- package/dist/iconos/icon-button-svg.js +50 -50
- package/dist/iconos/index.js +24 -24
- package/dist/iconos/styled-icon.js +26 -26
- package/dist/index.js +4 -4
- package/dist/intl-messages/index.js +11 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -9
- package/dist/node_modules/classnames/index.js +62 -62
- package/dist/node_modules/dom-helpers/esm/addClass.js +10 -10
- package/dist/node_modules/dom-helpers/esm/hasClass.js +8 -8
- package/dist/node_modules/dom-helpers/esm/removeClass.js +16 -16
- package/dist/node_modules/events/events.js +372 -372
- package/dist/node_modules/react-dropzone-component/dist/react-dropzone.js +1023 -1023
- package/dist/node_modules/react-multi-select-component/dist/esm/index.js +178 -178
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +275 -275
- package/dist/node_modules/react-transition-group/esm/Transition.js +441 -441
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +146 -146
- package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -6
- package/dist/node_modules/react-transition-group/esm/config.js +7 -7
- package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +100 -100
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -24
- package/dist/node_modules/react-transition-group/esm/utils/reflow.js +7 -7
- package/dist/react-notifications/Notification.js +73 -73
- package/dist/react-notifications/NotificationContainer.js +59 -59
- package/dist/react-notifications/NotificationManager.js +174 -174
- package/dist/react-notifications/Notifications.js +72 -72
- package/dist/react-notifications/constants.js +26 -26
- package/dist/react-notifications/index.js +11 -11
- package/dist/select/custom-select/constants.js +8 -8
- package/dist/select/custom-select/index.js +90 -90
- package/dist/select/custom-select-input/index.js +12 -12
- package/dist/select/index.js +9 -9
- package/dist/select/multi-select/badge-label-multi-select.js +29 -29
- package/dist/select/multi-select/index.css +23 -23
- package/dist/select/multi-select/index.js +63 -63
- package/dist/select/multi-select/styled-component.js +24 -24
- package/dist/timer/index.js +60 -60
- package/dist/timer/styles.css +58 -58
- package/dist/tomar-foto/index.js +62 -62
- package/dist/view-layout/button-editor.js +14 -14
- package/dist/view-layout/constants.js +11 -11
- package/dist/view-layout/editor-layer.js +28 -28
- package/dist/view-layout/index.js +53 -53
- package/dist/view-layout/slot-wrapper.js +39 -39
- package/dist/view-layout/styles.css +126 -126
- package/dist/where-by-room/index.js +20 -20
- package/dist/where-by-room/room.js +78 -78
- package/package.json +1 -1
- package/dist/_virtual/browser.js +0 -8
- package/dist/_virtual/browser.js.map +0 -1
- package/dist/_virtual/warning.js +0 -8
- package/dist/_virtual/warning.js.map +0 -1
- package/dist/custom-input/customInputMask/children-wrapper.js +0 -12
- package/dist/custom-input/customInputMask/children-wrapper.js.map +0 -1
- package/dist/custom-input/customInputMask/constants.js +0 -19
- package/dist/custom-input/customInputMask/constants.js.map +0 -1
- package/dist/custom-input/customInputMask/hooks.js +0 -159
- package/dist/custom-input/customInputMask/hooks.js.map +0 -1
- package/dist/custom-input/customInputMask/index.js +0 -184
- package/dist/custom-input/customInputMask/index.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/defer.js +0 -11
- package/dist/custom-input/customInputMask/utils/defer.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/helpers.js +0 -42
- package/dist/custom-input/customInputMask/utils/helpers.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/input.js +0 -25
- package/dist/custom-input/customInputMask/utils/input.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/mask.js +0 -220
- package/dist/custom-input/customInputMask/utils/mask.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/parse-mask.js +0 -72
- package/dist/custom-input/customInputMask/utils/parse-mask.js.map +0 -1
- package/dist/custom-input/customInputMask/validate-props.js +0 -35
- package/dist/custom-input/customInputMask/validate-props.js.map +0 -1
- package/dist/node_modules/invariant/browser.js +0 -39
- package/dist/node_modules/invariant/browser.js.map +0 -1
- package/dist/node_modules/warning/warning.js +0 -51
- package/dist/node_modules/warning/warning.js.map +0 -1
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, createElement } from "react";
|
|
3
|
-
import SlotWrapper from "./slot-wrapper.js";
|
|
4
|
-
import EditorLayer from "./editor-layer.js";
|
|
5
|
-
import { GRID_SIZES, LOCALHOST } from "./constants.js";
|
|
6
|
-
import ButtonEditor from "./button-editor.js";
|
|
7
|
-
import "./styles.css";
|
|
8
|
-
const ViewLayout = ({
|
|
9
|
-
slots = [],
|
|
10
|
-
size = "md",
|
|
11
|
-
alto = 80,
|
|
12
|
-
ancho = 90,
|
|
13
|
-
server = window?.location?.hostname,
|
|
14
|
-
...props
|
|
15
|
-
}) => {
|
|
16
|
-
const isLocalhost = LOCALHOST.includes(server);
|
|
17
|
-
const [isEditorActivo, setEditorActivo] = useState(false);
|
|
18
|
-
const gridCols = GRID_SIZES[size].cols;
|
|
19
|
-
const gridRows = GRID_SIZES[size].rows;
|
|
20
|
-
return /* @__PURE__ */ jsxs("div", { className: "visualizador-container", children: [
|
|
21
|
-
isLocalhost && /* @__PURE__ */ jsx(
|
|
22
|
-
ButtonEditor,
|
|
23
|
-
{
|
|
24
|
-
activo: isEditorActivo,
|
|
25
|
-
onClick: () => setEditorActivo((prev) => !prev)
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
/* @__PURE__ */ jsxs(
|
|
29
|
-
"div",
|
|
30
|
-
{
|
|
31
|
-
className: "visualizador-grid-css",
|
|
32
|
-
style: {
|
|
33
|
-
maxWidth: `${ancho}vw`,
|
|
34
|
-
height: `${alto}vh`,
|
|
35
|
-
gridTemplateColumns: `repeat(${gridCols}, 1fr)`,
|
|
36
|
-
gridTemplateRows: `repeat(${gridRows}, 1fr)`
|
|
37
|
-
},
|
|
38
|
-
...props,
|
|
39
|
-
children: [
|
|
40
|
-
isEditorActivo && /* @__PURE__ */ jsx(EditorLayer, { gridCols, gridRows }),
|
|
41
|
-
slots.map((slot) => {
|
|
42
|
-
const { x, y, w, h, legend } = slot;
|
|
43
|
-
return /* @__PURE__ */ createElement(SlotWrapper, { ...slot, legend, key: slot.slot });
|
|
44
|
-
})
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
] });
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
ViewLayout
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, createElement } from "react";
|
|
3
|
+
import SlotWrapper from "./slot-wrapper.js";
|
|
4
|
+
import EditorLayer from "./editor-layer.js";
|
|
5
|
+
import { GRID_SIZES, LOCALHOST } from "./constants.js";
|
|
6
|
+
import ButtonEditor from "./button-editor.js";
|
|
7
|
+
import "./styles.css";
|
|
8
|
+
const ViewLayout = ({
|
|
9
|
+
slots = [],
|
|
10
|
+
size = "md",
|
|
11
|
+
alto = 80,
|
|
12
|
+
ancho = 90,
|
|
13
|
+
server = window?.location?.hostname,
|
|
14
|
+
...props
|
|
15
|
+
}) => {
|
|
16
|
+
const isLocalhost = LOCALHOST.includes(server);
|
|
17
|
+
const [isEditorActivo, setEditorActivo] = useState(false);
|
|
18
|
+
const gridCols = GRID_SIZES[size].cols;
|
|
19
|
+
const gridRows = GRID_SIZES[size].rows;
|
|
20
|
+
return /* @__PURE__ */ jsxs("div", { className: "visualizador-container", children: [
|
|
21
|
+
isLocalhost && /* @__PURE__ */ jsx(
|
|
22
|
+
ButtonEditor,
|
|
23
|
+
{
|
|
24
|
+
activo: isEditorActivo,
|
|
25
|
+
onClick: () => setEditorActivo((prev) => !prev)
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsxs(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
className: "visualizador-grid-css",
|
|
32
|
+
style: {
|
|
33
|
+
maxWidth: `${ancho}vw`,
|
|
34
|
+
height: `${alto}vh`,
|
|
35
|
+
gridTemplateColumns: `repeat(${gridCols}, 1fr)`,
|
|
36
|
+
gridTemplateRows: `repeat(${gridRows}, 1fr)`
|
|
37
|
+
},
|
|
38
|
+
...props,
|
|
39
|
+
children: [
|
|
40
|
+
isEditorActivo && /* @__PURE__ */ jsx(EditorLayer, { gridCols, gridRows }),
|
|
41
|
+
slots.map((slot) => {
|
|
42
|
+
const { x, y, w, h, legend } = slot;
|
|
43
|
+
return /* @__PURE__ */ createElement(SlotWrapper, { ...slot, legend, key: slot.slot });
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
] });
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
ViewLayout
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
const SlotWrapper = ({
|
|
3
|
-
slot = 1,
|
|
4
|
-
component = null,
|
|
5
|
-
x = 0,
|
|
6
|
-
y = 0,
|
|
7
|
-
w = 2,
|
|
8
|
-
h = 2,
|
|
9
|
-
align = "stretch",
|
|
10
|
-
contentSize = "medium",
|
|
11
|
-
direction = "column",
|
|
12
|
-
justify = "flex-start",
|
|
13
|
-
legend,
|
|
14
|
-
showBorder = false
|
|
15
|
-
}) => {
|
|
16
|
-
return /* @__PURE__ */ jsxs(
|
|
17
|
-
"fieldset",
|
|
18
|
-
{
|
|
19
|
-
className: `visualizador-slot visualizador-slot-content--${contentSize} visualizador-slot--${direction} visualizador-slot-align--${align} visualizador-slot-justify--${justify} ` + (!showBorder ? "visualizador-slot--no-border" : ""),
|
|
20
|
-
style: {
|
|
21
|
-
position: "relative",
|
|
22
|
-
gridColumn: `${x + 1} / span ${w}`,
|
|
23
|
-
gridRow: `${y + 1} / span ${h}`,
|
|
24
|
-
display: "flex",
|
|
25
|
-
overflow: "hidden",
|
|
26
|
-
border: showBorder ? void 0 : "none"
|
|
27
|
-
},
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsx("legend", { className: "slot-legend", children: legend }),
|
|
30
|
-
/* @__PURE__ */ jsx("div", { className: "slot-content", children: component })
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
slot
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
export {
|
|
37
|
-
SlotWrapper as default
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=slot-wrapper.js.map
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SlotWrapper = ({
|
|
3
|
+
slot = 1,
|
|
4
|
+
component = null,
|
|
5
|
+
x = 0,
|
|
6
|
+
y = 0,
|
|
7
|
+
w = 2,
|
|
8
|
+
h = 2,
|
|
9
|
+
align = "stretch",
|
|
10
|
+
contentSize = "medium",
|
|
11
|
+
direction = "column",
|
|
12
|
+
justify = "flex-start",
|
|
13
|
+
legend,
|
|
14
|
+
showBorder = false
|
|
15
|
+
}) => {
|
|
16
|
+
return /* @__PURE__ */ jsxs(
|
|
17
|
+
"fieldset",
|
|
18
|
+
{
|
|
19
|
+
className: `visualizador-slot visualizador-slot-content--${contentSize} visualizador-slot--${direction} visualizador-slot-align--${align} visualizador-slot-justify--${justify} ` + (!showBorder ? "visualizador-slot--no-border" : ""),
|
|
20
|
+
style: {
|
|
21
|
+
position: "relative",
|
|
22
|
+
gridColumn: `${x + 1} / span ${w}`,
|
|
23
|
+
gridRow: `${y + 1} / span ${h}`,
|
|
24
|
+
display: "flex",
|
|
25
|
+
overflow: "hidden",
|
|
26
|
+
border: showBorder ? void 0 : "none"
|
|
27
|
+
},
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsx("legend", { className: "slot-legend", children: legend }),
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: "slot-content", children: component })
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
slot
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
SlotWrapper as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=slot-wrapper.js.map
|
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
.visualizador-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.visualizador-grid,
|
|
6
|
-
.visualizador-grid-css {
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
min-width: 90vh;
|
|
10
|
-
min-height: 80vh;
|
|
11
|
-
background: #ffffff;
|
|
12
|
-
border-radius: 12px;
|
|
13
|
-
display: grid;
|
|
14
|
-
border: solid 2px #900604;
|
|
15
|
-
position: relative;
|
|
16
|
-
gap: 1px;
|
|
17
|
-
box-sizing: content-box;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.visualizador-slot {
|
|
21
|
-
display: flex;
|
|
22
|
-
border: 1px solid #900604;
|
|
23
|
-
border-radius: 7px;
|
|
24
|
-
background: #fff;
|
|
25
|
-
}
|
|
26
|
-
.visualizador-slot--row, .visualizador-slot-row {
|
|
27
|
-
flex-direction: row;
|
|
28
|
-
}
|
|
29
|
-
.visualizador-slot--column, .visualizador-slot-column, .visualizador-slot-column-col {
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}
|
|
32
|
-
.visualizador-slot-content--small {
|
|
33
|
-
font-size: 0.85rem;
|
|
34
|
-
}
|
|
35
|
-
.visualizador-slot-content--medium {
|
|
36
|
-
font-size: 1rem;
|
|
37
|
-
}
|
|
38
|
-
.visualizador-slot-content--large {
|
|
39
|
-
font-size: 1.5rem;
|
|
40
|
-
}
|
|
41
|
-
.visualizador-slot-align--start {
|
|
42
|
-
align-items: flex-start;
|
|
43
|
-
}
|
|
44
|
-
.visualizador-slot-align--center {
|
|
45
|
-
align-items: center;
|
|
46
|
-
}
|
|
47
|
-
.visualizador-slot-align--end {
|
|
48
|
-
align-items: flex-end;
|
|
49
|
-
}
|
|
50
|
-
.visualizador-slot-align--stretch {
|
|
51
|
-
align-items: stretch;
|
|
52
|
-
}
|
|
53
|
-
.visualizador-slot-justify--start {
|
|
54
|
-
justify-content: flex-start;
|
|
55
|
-
}
|
|
56
|
-
.visualizador-slot-justify--center {
|
|
57
|
-
justify-content: center;
|
|
58
|
-
}
|
|
59
|
-
.visualizador-slot-justify--end {
|
|
60
|
-
justify-content: flex-end;
|
|
61
|
-
}
|
|
62
|
-
.visualizador-slot-justify--space-between {
|
|
63
|
-
justify-content: space-between;
|
|
64
|
-
}
|
|
65
|
-
.visualizador-slot-justify--space-around {
|
|
66
|
-
justify-content: space-around;
|
|
67
|
-
}
|
|
68
|
-
.visualizador-slot-justify--space-evenly {
|
|
69
|
-
justify-content: space-evenly;
|
|
70
|
-
}
|
|
71
|
-
.visualizador-slot--no-border {
|
|
72
|
-
border: none !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.slot-legend {
|
|
76
|
-
width: auto;
|
|
77
|
-
font-size: 0.75rem;
|
|
78
|
-
margin-bottom: 0px !important;
|
|
79
|
-
margin-left: -20px !important;
|
|
80
|
-
font-weight: 700;
|
|
81
|
-
color: #900604;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.editor-layer {
|
|
86
|
-
position: absolute;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
pointer-events: none;
|
|
90
|
-
z-index: 20;
|
|
91
|
-
display: grid;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.editor-layer-cell-coord {
|
|
95
|
-
font-size: 0.75rem;
|
|
96
|
-
justify-self: center;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.editor-layer-cell {
|
|
100
|
-
font-size: 0.7em;
|
|
101
|
-
color: #797979;
|
|
102
|
-
align-content: center;
|
|
103
|
-
padding: 2px;
|
|
104
|
-
text-align: left;
|
|
105
|
-
pointer-events: none;
|
|
106
|
-
box-sizing: border-box;
|
|
107
|
-
border: 1px dashed #bbb;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.visualizador-editor-btn {
|
|
111
|
-
position: absolute;
|
|
112
|
-
top: 8px;
|
|
113
|
-
right: 8px;
|
|
114
|
-
z-index: 100;
|
|
115
|
-
padding: 6px 12px;
|
|
116
|
-
font-size: 1em;
|
|
117
|
-
color: #fff;
|
|
118
|
-
border: none;
|
|
119
|
-
border-radius: 4px;
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
}
|
|
122
|
-
.visualizador-editor-btn--activo {
|
|
123
|
-
background: #900604;
|
|
124
|
-
}
|
|
125
|
-
.visualizador-editor-btn--inactivo {
|
|
126
|
-
background: #bbb;
|
|
1
|
+
.visualizador-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.visualizador-grid,
|
|
6
|
+
.visualizador-grid-css {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-width: 90vh;
|
|
10
|
+
min-height: 80vh;
|
|
11
|
+
background: #ffffff;
|
|
12
|
+
border-radius: 12px;
|
|
13
|
+
display: grid;
|
|
14
|
+
border: solid 2px #900604;
|
|
15
|
+
position: relative;
|
|
16
|
+
gap: 1px;
|
|
17
|
+
box-sizing: content-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.visualizador-slot {
|
|
21
|
+
display: flex;
|
|
22
|
+
border: 1px solid #900604;
|
|
23
|
+
border-radius: 7px;
|
|
24
|
+
background: #fff;
|
|
25
|
+
}
|
|
26
|
+
.visualizador-slot--row, .visualizador-slot-row {
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
}
|
|
29
|
+
.visualizador-slot--column, .visualizador-slot-column, .visualizador-slot-column-col {
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
.visualizador-slot-content--small {
|
|
33
|
+
font-size: 0.85rem;
|
|
34
|
+
}
|
|
35
|
+
.visualizador-slot-content--medium {
|
|
36
|
+
font-size: 1rem;
|
|
37
|
+
}
|
|
38
|
+
.visualizador-slot-content--large {
|
|
39
|
+
font-size: 1.5rem;
|
|
40
|
+
}
|
|
41
|
+
.visualizador-slot-align--start {
|
|
42
|
+
align-items: flex-start;
|
|
43
|
+
}
|
|
44
|
+
.visualizador-slot-align--center {
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
.visualizador-slot-align--end {
|
|
48
|
+
align-items: flex-end;
|
|
49
|
+
}
|
|
50
|
+
.visualizador-slot-align--stretch {
|
|
51
|
+
align-items: stretch;
|
|
52
|
+
}
|
|
53
|
+
.visualizador-slot-justify--start {
|
|
54
|
+
justify-content: flex-start;
|
|
55
|
+
}
|
|
56
|
+
.visualizador-slot-justify--center {
|
|
57
|
+
justify-content: center;
|
|
58
|
+
}
|
|
59
|
+
.visualizador-slot-justify--end {
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
}
|
|
62
|
+
.visualizador-slot-justify--space-between {
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
}
|
|
65
|
+
.visualizador-slot-justify--space-around {
|
|
66
|
+
justify-content: space-around;
|
|
67
|
+
}
|
|
68
|
+
.visualizador-slot-justify--space-evenly {
|
|
69
|
+
justify-content: space-evenly;
|
|
70
|
+
}
|
|
71
|
+
.visualizador-slot--no-border {
|
|
72
|
+
border: none !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.slot-legend {
|
|
76
|
+
width: auto;
|
|
77
|
+
font-size: 0.75rem;
|
|
78
|
+
margin-bottom: 0px !important;
|
|
79
|
+
margin-left: -20px !important;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
color: #900604;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.editor-layer {
|
|
86
|
+
position: absolute;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
z-index: 20;
|
|
91
|
+
display: grid;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.editor-layer-cell-coord {
|
|
95
|
+
font-size: 0.75rem;
|
|
96
|
+
justify-self: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.editor-layer-cell {
|
|
100
|
+
font-size: 0.7em;
|
|
101
|
+
color: #797979;
|
|
102
|
+
align-content: center;
|
|
103
|
+
padding: 2px;
|
|
104
|
+
text-align: left;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
border: 1px dashed #bbb;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.visualizador-editor-btn {
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 8px;
|
|
113
|
+
right: 8px;
|
|
114
|
+
z-index: 100;
|
|
115
|
+
padding: 6px 12px;
|
|
116
|
+
font-size: 1em;
|
|
117
|
+
color: #fff;
|
|
118
|
+
border: none;
|
|
119
|
+
border-radius: 4px;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
.visualizador-editor-btn--activo {
|
|
123
|
+
background: #900604;
|
|
124
|
+
}
|
|
125
|
+
.visualizador-editor-btn--inactivo {
|
|
126
|
+
background: #bbb;
|
|
127
127
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { WherebyProvider } from "@whereby.com/browser-sdk/react";
|
|
3
|
-
import "@whereby.com/browser-sdk/embed";
|
|
4
|
-
import { Room } from "./room.js";
|
|
5
|
-
const WhereByRoom = ({ src, onEvent, onActions, iframeClass }) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(WherebyProvider, { children: /* @__PURE__ */ jsx(
|
|
7
|
-
Room,
|
|
8
|
-
{
|
|
9
|
-
src,
|
|
10
|
-
onEvent,
|
|
11
|
-
onActions,
|
|
12
|
-
iframeClass
|
|
13
|
-
}
|
|
14
|
-
) });
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
WhereByRoom,
|
|
18
|
-
WhereByRoom as default
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { WherebyProvider } from "@whereby.com/browser-sdk/react";
|
|
3
|
+
import "@whereby.com/browser-sdk/embed";
|
|
4
|
+
import { Room } from "./room.js";
|
|
5
|
+
const WhereByRoom = ({ src, onEvent, onActions, iframeClass }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(WherebyProvider, { children: /* @__PURE__ */ jsx(
|
|
7
|
+
Room,
|
|
8
|
+
{
|
|
9
|
+
src,
|
|
10
|
+
onEvent,
|
|
11
|
+
onActions,
|
|
12
|
+
iframeClass
|
|
13
|
+
}
|
|
14
|
+
) });
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
WhereByRoom,
|
|
18
|
+
WhereByRoom as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useEffect } from "react";
|
|
3
|
-
import "@whereby.com/browser-sdk/embed";
|
|
4
|
-
const Room = ({ src, onEvent, onActions, iframeClass }) => {
|
|
5
|
-
const wherebyRef = useRef(null);
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
const elm = wherebyRef.current;
|
|
8
|
-
if (!elm) return;
|
|
9
|
-
if (onActions) {
|
|
10
|
-
onActions({
|
|
11
|
-
endMeeting: () => elm.endMeeting(),
|
|
12
|
-
knock: () => elm.knock(),
|
|
13
|
-
cancelKnock: () => elm.cancelKnock(),
|
|
14
|
-
leaveRoom: () => elm.leaveRoom(),
|
|
15
|
-
startRecording: () => elm.startRecording(),
|
|
16
|
-
stopRecording: () => elm.stopRecording(),
|
|
17
|
-
startStreaming: () => elm.startStreaming(),
|
|
18
|
-
stopStreaming: () => elm.stopStreaming(),
|
|
19
|
-
startLiveTranscription: () => elm.startLiveTranscription(),
|
|
20
|
-
stopLiveTranscription: () => elm.stopLiveTranscription(),
|
|
21
|
-
toggleCamera: (enabled) => elm.toggleCamera(enabled),
|
|
22
|
-
toggleMicrophone: (enabled) => elm.toggleMicrophone(enabled),
|
|
23
|
-
toggleScreenshare: (enabled) => elm.toggleScreenshare(enabled),
|
|
24
|
-
toggleChat: (enabled) => elm.toggleChat(enabled)
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
const events = [
|
|
28
|
-
"ready",
|
|
29
|
-
"grant_device_permission",
|
|
30
|
-
"deny_device_permission",
|
|
31
|
-
"precall_check_completed",
|
|
32
|
-
"precall_check_skipped",
|
|
33
|
-
"knock",
|
|
34
|
-
"cancel_knock",
|
|
35
|
-
"join",
|
|
36
|
-
"leave",
|
|
37
|
-
"meeting_end",
|
|
38
|
-
"participantupdate",
|
|
39
|
-
"participant_join",
|
|
40
|
-
"participant_leave",
|
|
41
|
-
"microphone_toggle",
|
|
42
|
-
"camera_toggle",
|
|
43
|
-
"screenshare_toggle",
|
|
44
|
-
"chat_toggle",
|
|
45
|
-
"people_toggle",
|
|
46
|
-
"pip_toggle",
|
|
47
|
-
"streaming_status_change",
|
|
48
|
-
"recording_status_change",
|
|
49
|
-
"transcription_status_change",
|
|
50
|
-
"connection_status_change"
|
|
51
|
-
];
|
|
52
|
-
function handleEvent(e) {
|
|
53
|
-
if (onEvent) onEvent(e.type, e.detail);
|
|
54
|
-
}
|
|
55
|
-
events.forEach((ev) => elm.addEventListener(ev, handleEvent));
|
|
56
|
-
return () => {
|
|
57
|
-
events.forEach((ev) => elm.removeEventListener(ev, handleEvent));
|
|
58
|
-
};
|
|
59
|
-
}, [onEvent, onActions]);
|
|
60
|
-
return /* @__PURE__ */ jsx("div", { className: iframeClass, children: /* @__PURE__ */ jsx(
|
|
61
|
-
"whereby-embed",
|
|
62
|
-
{
|
|
63
|
-
ref: wherebyRef,
|
|
64
|
-
class: iframeClass,
|
|
65
|
-
room: src,
|
|
66
|
-
chat: "on",
|
|
67
|
-
screenshare: "on",
|
|
68
|
-
audio: "on",
|
|
69
|
-
video: "on",
|
|
70
|
-
allow: "camera; microphone; fullscreen"
|
|
71
|
-
}
|
|
72
|
-
) });
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
Room,
|
|
76
|
-
Room as default
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=room.js.map
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect } from "react";
|
|
3
|
+
import "@whereby.com/browser-sdk/embed";
|
|
4
|
+
const Room = ({ src, onEvent, onActions, iframeClass }) => {
|
|
5
|
+
const wherebyRef = useRef(null);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
const elm = wherebyRef.current;
|
|
8
|
+
if (!elm) return;
|
|
9
|
+
if (onActions) {
|
|
10
|
+
onActions({
|
|
11
|
+
endMeeting: () => elm.endMeeting(),
|
|
12
|
+
knock: () => elm.knock(),
|
|
13
|
+
cancelKnock: () => elm.cancelKnock(),
|
|
14
|
+
leaveRoom: () => elm.leaveRoom(),
|
|
15
|
+
startRecording: () => elm.startRecording(),
|
|
16
|
+
stopRecording: () => elm.stopRecording(),
|
|
17
|
+
startStreaming: () => elm.startStreaming(),
|
|
18
|
+
stopStreaming: () => elm.stopStreaming(),
|
|
19
|
+
startLiveTranscription: () => elm.startLiveTranscription(),
|
|
20
|
+
stopLiveTranscription: () => elm.stopLiveTranscription(),
|
|
21
|
+
toggleCamera: (enabled) => elm.toggleCamera(enabled),
|
|
22
|
+
toggleMicrophone: (enabled) => elm.toggleMicrophone(enabled),
|
|
23
|
+
toggleScreenshare: (enabled) => elm.toggleScreenshare(enabled),
|
|
24
|
+
toggleChat: (enabled) => elm.toggleChat(enabled)
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const events = [
|
|
28
|
+
"ready",
|
|
29
|
+
"grant_device_permission",
|
|
30
|
+
"deny_device_permission",
|
|
31
|
+
"precall_check_completed",
|
|
32
|
+
"precall_check_skipped",
|
|
33
|
+
"knock",
|
|
34
|
+
"cancel_knock",
|
|
35
|
+
"join",
|
|
36
|
+
"leave",
|
|
37
|
+
"meeting_end",
|
|
38
|
+
"participantupdate",
|
|
39
|
+
"participant_join",
|
|
40
|
+
"participant_leave",
|
|
41
|
+
"microphone_toggle",
|
|
42
|
+
"camera_toggle",
|
|
43
|
+
"screenshare_toggle",
|
|
44
|
+
"chat_toggle",
|
|
45
|
+
"people_toggle",
|
|
46
|
+
"pip_toggle",
|
|
47
|
+
"streaming_status_change",
|
|
48
|
+
"recording_status_change",
|
|
49
|
+
"transcription_status_change",
|
|
50
|
+
"connection_status_change"
|
|
51
|
+
];
|
|
52
|
+
function handleEvent(e) {
|
|
53
|
+
if (onEvent) onEvent(e.type, e.detail);
|
|
54
|
+
}
|
|
55
|
+
events.forEach((ev) => elm.addEventListener(ev, handleEvent));
|
|
56
|
+
return () => {
|
|
57
|
+
events.forEach((ev) => elm.removeEventListener(ev, handleEvent));
|
|
58
|
+
};
|
|
59
|
+
}, [onEvent, onActions]);
|
|
60
|
+
return /* @__PURE__ */ jsx("div", { className: iframeClass, children: /* @__PURE__ */ jsx(
|
|
61
|
+
"whereby-embed",
|
|
62
|
+
{
|
|
63
|
+
ref: wherebyRef,
|
|
64
|
+
class: iframeClass,
|
|
65
|
+
room: src,
|
|
66
|
+
chat: "on",
|
|
67
|
+
screenshare: "on",
|
|
68
|
+
audio: "on",
|
|
69
|
+
video: "on",
|
|
70
|
+
allow: "camera; microphone; fullscreen"
|
|
71
|
+
}
|
|
72
|
+
) });
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
Room,
|
|
76
|
+
Room as default
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=room.js.map
|
package/package.json
CHANGED
package/dist/_virtual/browser.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as requireBrowser } from "../node_modules/invariant/browser.js";
|
|
3
|
-
var browserExports = requireBrowser();
|
|
4
|
-
const invariant = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
5
|
-
export {
|
|
6
|
-
invariant as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=browser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/warning.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as requireWarning } from "../node_modules/warning/warning.js";
|
|
3
|
-
var warningExports = requireWarning();
|
|
4
|
-
const warning = /* @__PURE__ */ getDefaultExportFromCjs(warningExports);
|
|
5
|
-
export {
|
|
6
|
-
warning as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=warning.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warning.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|