@beda.software/web-item-controls 0.1.12-0 → 0.1.14-1
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/README.md +0 -12
- package/dist/components/BaseQuestionnaireResponseForm/utils.d.ts.map +1 -1
- package/dist/components/SearchBar/SearchBarMobile/index.js +36 -0
- package/dist/components/SearchBar/SearchBarMobile/styles.js +49 -37
- package/dist/components/SearchBar/hooks.js +70 -0
- package/dist/components/SearchBar/index.js +27 -0
- package/dist/components/SearchBar/styles.js +23 -16
- package/dist/components/SearchBar/utils.js +10 -0
- package/dist/components/SearchBar/validate.js +46 -0
- package/dist/components/Table/TableCards/index.js +60 -0
- package/dist/components/Table/TableCards/styles.js +43 -31
- package/dist/components/Table/index.js +17 -0
- package/dist/components/Table/styles.js +18 -12
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +26 -0
- package/dist/controls/EditableGroup/index.d.ts +1 -0
- package/dist/controls/EditableGroup/index.d.ts.map +1 -1
- package/dist/controls/EditableGroup/index.js +2 -1
- package/dist/controls/GroupTable/GroupTableChart/index.d.ts +2 -0
- package/dist/controls/GroupTable/GroupTableChart/index.d.ts.map +1 -1
- package/dist/controls/GroupTable/GroupTableChart/index.js +2 -1
- package/dist/controls/GroupTable/index.d.ts +3 -0
- package/dist/controls/GroupTable/index.d.ts.map +1 -1
- package/dist/controls/GroupTable/index.js +31 -27
- package/dist/controls/index.d.ts +0 -1
- package/dist/controls/index.d.ts.map +1 -1
- package/dist/controls/index.js +57 -48
- package/dist/style.css +1 -1
- package/dist/theme/palette.d.ts +2 -2
- package/dist/utils/theme.d.ts +1 -1
- package/package.json +21 -3
- package/src/locale/de/messages.po +8 -8
- package/src/locale/en/messages.po +8 -8
- package/src/locale/es/messages.po +8 -8
- package/src/locale/ru/messages.po +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controls/GroupTable/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAC;AAEzD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,kDAqGhD"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controls/GroupTable/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAC;AAEzD,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,kDAqGhD"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, Fragment as H, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { i18n as r } from "@lingui/core";
|
|
3
|
-
import { ExpandAltOutlined as
|
|
4
|
-
import { Flex as
|
|
5
|
-
import { ModalQuestionnaireGroupItem as
|
|
6
|
-
import { useGroupTable as
|
|
7
|
-
import { GroupTableChart as
|
|
3
|
+
import { ExpandAltOutlined as O, PlusOutlined as V } from "@ant-design/icons";
|
|
4
|
+
import { Flex as j, Typography as s, Space as m, Switch as z, Button as u, Table as L, Alert as g } from "antd";
|
|
5
|
+
import { ModalQuestionnaireGroupItem as M } from "../../components/ModalQuestionnaireGroupItem/index.js";
|
|
6
|
+
import { useGroupTable as P } from "./hooks.js";
|
|
7
|
+
import { GroupTableChart as Y } from "./GroupTableChart/index.js";
|
|
8
8
|
import { S as x } from "./styles.js";
|
|
9
|
+
import { getValueFromAnswerValue as Z, isFormAnswerItems as ee } from "./utils.js";
|
|
9
10
|
function J(a) {
|
|
10
11
|
const {
|
|
11
|
-
chartHeight:
|
|
12
|
+
chartHeight: f
|
|
12
13
|
} = a, {
|
|
13
|
-
repeats:
|
|
14
|
-
hidden:
|
|
15
|
-
title:
|
|
16
|
-
handleAdd:
|
|
14
|
+
repeats: y,
|
|
15
|
+
hidden: b,
|
|
16
|
+
title: i,
|
|
17
|
+
handleAdd: A,
|
|
17
18
|
dataSource: n,
|
|
18
|
-
columns:
|
|
19
|
-
expandable:
|
|
19
|
+
columns: T,
|
|
20
|
+
expandable: w,
|
|
20
21
|
isModalVisible: I,
|
|
21
|
-
editIndex:
|
|
22
|
-
handleCancel:
|
|
22
|
+
editIndex: k,
|
|
23
|
+
handleCancel: S,
|
|
23
24
|
handleSave: C,
|
|
24
25
|
snapshotDataSource: t,
|
|
25
26
|
renderAsTable: d,
|
|
@@ -32,13 +33,13 @@ function J(a) {
|
|
|
32
33
|
chartLinkIdY: p,
|
|
33
34
|
chartYRange: G,
|
|
34
35
|
chartHighlightAreas: v
|
|
35
|
-
} =
|
|
36
|
-
return
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */ e(s.Title, { level: 4, children:
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
o && /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */ e(
|
|
36
|
+
} = P(a);
|
|
37
|
+
return b ? null : /* @__PURE__ */ l(H, { children: [
|
|
38
|
+
/* @__PURE__ */ l(j, { justify: "space-between", children: [
|
|
39
|
+
/* @__PURE__ */ e(s.Title, { level: 4, children: i }),
|
|
40
|
+
/* @__PURE__ */ l(m, { size: 16, children: [
|
|
41
|
+
o && /* @__PURE__ */ l(m, { size: "small", children: [
|
|
42
|
+
/* @__PURE__ */ e(z, { checked: d, onChange: o }),
|
|
42
43
|
/* @__PURE__ */ e(s.Text, { children: r._(
|
|
43
44
|
/*i18n*/
|
|
44
45
|
{
|
|
@@ -46,7 +47,7 @@ function J(a) {
|
|
|
46
47
|
}
|
|
47
48
|
) })
|
|
48
49
|
] }),
|
|
49
|
-
E && /* @__PURE__ */ e(u, { type: "primary", icon: /* @__PURE__ */ e(
|
|
50
|
+
E && /* @__PURE__ */ e(u, { type: "primary", icon: /* @__PURE__ */ e(O, {}), onClick: h ? _ : R, children: h ? r._(
|
|
50
51
|
/*i18n*/
|
|
51
52
|
{
|
|
52
53
|
id: "qvWGzP"
|
|
@@ -57,7 +58,7 @@ function J(a) {
|
|
|
57
58
|
id: "OlAl5i"
|
|
58
59
|
}
|
|
59
60
|
) }),
|
|
60
|
-
/* @__PURE__ */ e(u, { type: "primary", icon: /* @__PURE__ */ e(
|
|
61
|
+
/* @__PURE__ */ e(u, { type: "primary", icon: /* @__PURE__ */ e(V, {}), onClick: A, children: r._(
|
|
61
62
|
/*i18n*/
|
|
62
63
|
{
|
|
63
64
|
id: "Rd7v4h"
|
|
@@ -65,7 +66,7 @@ function J(a) {
|
|
|
65
66
|
) })
|
|
66
67
|
] })
|
|
67
68
|
] }),
|
|
68
|
-
|
|
69
|
+
y ? d ? /* @__PURE__ */ e(x.TableWrapper, { children: /* @__PURE__ */ e(L, { columns: T, dataSource: t ?? n, rowKey: (F) => F.key, pagination: !1, bordered: !0, expandable: w }) }) : c && p ? /* @__PURE__ */ e(x.ChartItem, { $chartHeight: f, children: /* @__PURE__ */ e(Y, { dataSource: t ?? n, linkIdX: c, linkIdY: p, chartYRange: G, chartHighlightAreas: v, ...a }) }) : /* @__PURE__ */ e(g, { type: "error", message: r._(
|
|
69
70
|
/*i18n*/
|
|
70
71
|
{
|
|
71
72
|
id: "hHcMdO"
|
|
@@ -76,9 +77,12 @@ function J(a) {
|
|
|
76
77
|
id: "VP0gyL"
|
|
77
78
|
}
|
|
78
79
|
) }),
|
|
79
|
-
/* @__PURE__ */ e(
|
|
80
|
+
/* @__PURE__ */ e(M, { open: I, index: k, groupItem: a, title: i, handleCancel: S, handleSave: C })
|
|
80
81
|
] });
|
|
81
82
|
}
|
|
82
83
|
export {
|
|
83
|
-
J as GroupTable
|
|
84
|
+
J as GroupTable,
|
|
85
|
+
Z as getValueFromAnswerValue,
|
|
86
|
+
ee as isFormAnswerItems,
|
|
87
|
+
P as useGroupTable
|
|
84
88
|
};
|
package/dist/controls/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export * from './Group/GTable';
|
|
|
14
14
|
export * from './Group/RepeatableGroups';
|
|
15
15
|
export * from './Group/RepeatableGroups/RepeatableGroupCard';
|
|
16
16
|
export * from './GroupTable';
|
|
17
|
-
export * from './GroupTable/types';
|
|
18
17
|
export * from './GroupTable/GroupTableChart';
|
|
19
18
|
export * from './GroupTable/GroupTableChart/HighlightArea';
|
|
20
19
|
export * from './GroupTable/GroupTableChart/Tooltip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,YAAY,CAAC;AAE3B,cAAc,oDAAoD,CAAC"}
|
package/dist/controls/index.js
CHANGED
|
@@ -2,16 +2,16 @@ import "../style.css";
|
|
|
2
2
|
import { AudioRecorderUploader as r } from "./AudioRecorderUploader/index.js";
|
|
3
3
|
import { Barcode as p } from "./Barcode/index.js";
|
|
4
4
|
import { BloodPressure as m } from "./BloodPressure/index.js";
|
|
5
|
-
import { QuestionBoolean as
|
|
6
|
-
import { ChoiceQuestionSelect as x, ChoiceQuestionValueSet as f, QuestionChoice as
|
|
5
|
+
import { QuestionBoolean as u } from "./Boolean/index.js";
|
|
6
|
+
import { ChoiceQuestionSelect as x, ChoiceQuestionValueSet as f, QuestionChoice as s } from "./Choice/index.js";
|
|
7
7
|
import { DateTimeSlotPicker as d, usePractitionerRoleId as G } from "./DateTimeSlotPicker/index.js";
|
|
8
8
|
import { Display as c, TextWithLink as Q } from "./Display/index.js";
|
|
9
|
-
import { EditableGroup as
|
|
10
|
-
import { Col as
|
|
11
|
-
import { GroupContext as
|
|
12
|
-
import { GridGroup as
|
|
13
|
-
import { GroupCard as
|
|
14
|
-
import { GTable as
|
|
9
|
+
import { EditableGroup as T } from "./EditableGroup/index.js";
|
|
10
|
+
import { Col as h, Grid as b, Group as I, Gtable as S, MainCard as W, Row as P, Section as w, SectionWithDivider as D, SubCard as E } from "./Group/index.js";
|
|
11
|
+
import { GroupContext as M } from "./Group/context.js";
|
|
12
|
+
import { GridGroup as z } from "./Group/GridGroup/index.js";
|
|
13
|
+
import { GroupCard as B, GroupMainCard as V, GroupSubCard as y } from "./Group/GroupCard/index.js";
|
|
14
|
+
import { GTable as H } from "./Group/GTable/index.js";
|
|
15
15
|
import { RepeatableGroups as v } from "./Group/RepeatableGroups/index.js";
|
|
16
16
|
import { RepeatableGroupCard as O } from "./Group/RepeatableGroups/RepeatableGroupCard/index.js";
|
|
17
17
|
import { GroupTable as j } from "./GroupTable/index.js";
|
|
@@ -21,19 +21,19 @@ import { getHighlightYParams as _ } from "./GroupTable/GroupTableChart/Highlight
|
|
|
21
21
|
import { Tooltip as oo } from "./GroupTable/GroupTableChart/Tooltip/index.js";
|
|
22
22
|
import { RenderFormItemReadOnly as ro } from "./GroupTable/RenderFormItemReadOnly/index.js";
|
|
23
23
|
import { GroupTabs as po } from "./GroupTabs/index.js";
|
|
24
|
-
import { GroupWizard as mo, GroupWizardBus as no, GroupWizardVertical as
|
|
25
|
-
import { InlineChoice as
|
|
24
|
+
import { GroupWizard as mo, GroupWizardBus as no, GroupWizardVertical as uo, GroupWizardWithTooltips as ao, getGroupStats as xo } from "./GroupWizard/index.js";
|
|
25
|
+
import { InlineChoice as so } from "./InlineChoice/index.js";
|
|
26
26
|
import { InlineReference as Go } from "./InlineReference/index.js";
|
|
27
27
|
import { QuestionInputInsideText as co } from "./InsideText/index.js";
|
|
28
28
|
import { MDEditorControl as Ro } from "./MDEditorControl/index.js";
|
|
29
|
-
import { MarkDownEditor as
|
|
30
|
-
import { ImageEditModal as
|
|
29
|
+
import { MarkDownEditor as go } from "./MDEditorControl/MarkDownEditor/index.js";
|
|
30
|
+
import { ImageEditModal as bo } from "./MDEditorControl/MarkDownEditor/ImageEdit/index.js";
|
|
31
31
|
import { QuestionDecimal as So, QuestionInteger as Wo, QuestionQuantity as Po } from "./Number/index.js";
|
|
32
|
-
import { PasswordInput as
|
|
33
|
-
import { QuestionPhone as
|
|
34
|
-
import { QuestionDateTime as
|
|
35
|
-
import { QuestionSolidRadio as
|
|
36
|
-
import { QuestionReference as
|
|
32
|
+
import { PasswordInput as Do } from "./PasswordInput/index.js";
|
|
33
|
+
import { QuestionPhone as Fo } from "./PhoneInput/index.js";
|
|
34
|
+
import { QuestionDateTime as ko } from "./QuestionDateTime/index.js";
|
|
35
|
+
import { QuestionSolidRadio as Ao } from "./Radio/index.js";
|
|
36
|
+
import { QuestionReference as Vo, useAnswerReference as yo, useFieldReference as Uo } from "./Reference/index.js";
|
|
37
37
|
import { QuestionSlider as qo } from "./Slider/index.js";
|
|
38
38
|
import { QuestionEmail as Lo, QuestionString as Oo, QuestionText as Yo } from "./String/index.js";
|
|
39
39
|
import { TextWithMacroFill as Jo } from "./TextWithMacroFill/index.js";
|
|
@@ -42,79 +42,88 @@ import { useTimeRangePickerControl as Zo } from "./TimeRangePickerControl/hooks.
|
|
|
42
42
|
import { UploadFileControl as $o } from "./UploadFileControl/index.js";
|
|
43
43
|
import { useUploader as ee } from "./UploadFileControl/hooks.js";
|
|
44
44
|
import { groupItemComponent as te, itemControlGroupItemComponents as pe, itemControlQuestionItemComponents as ie, questionItemComponents as me } from "./controls.js";
|
|
45
|
-
import { getFieldErrorMessage as
|
|
46
|
-
import {
|
|
45
|
+
import { getFieldErrorMessage as ue, isGroupWizard as ae } from "../components/BaseQuestionnaireResponseForm/utils.js";
|
|
46
|
+
import { useEditableGroup as fe } from "./EditableGroup/hooks.js";
|
|
47
|
+
import { RepeatableGroupRow as le } from "./Group/RepeatableGroups/RepeatableGroupRow.js";
|
|
48
|
+
import { getValueFromAnswerValue as Ge, isFormAnswerItems as Ce } from "./GroupTable/utils.js";
|
|
49
|
+
import { useGroupTable as Qe } from "./GroupTable/hooks.js";
|
|
50
|
+
import { useGroupTableChart as Te } from "./GroupTable/GroupTableChart/hooks.js";
|
|
47
51
|
export {
|
|
48
52
|
r as AudioRecorderUploader,
|
|
49
53
|
p as Barcode,
|
|
50
54
|
m as BloodPressure,
|
|
51
55
|
x as ChoiceQuestionSelect,
|
|
52
56
|
f as ChoiceQuestionValueSet,
|
|
53
|
-
|
|
57
|
+
h as Col,
|
|
54
58
|
d as DateTimeSlotPicker,
|
|
55
59
|
c as Display,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
T as EditableGroup,
|
|
61
|
+
H as GTable,
|
|
62
|
+
b as Grid,
|
|
63
|
+
z as GridGroup,
|
|
64
|
+
I as Group,
|
|
65
|
+
B as GroupCard,
|
|
66
|
+
M as GroupContext,
|
|
67
|
+
V as GroupMainCard,
|
|
68
|
+
y as GroupSubCard,
|
|
65
69
|
j as GroupTable,
|
|
66
70
|
K as GroupTableChart,
|
|
67
71
|
po as GroupTabs,
|
|
68
72
|
mo as GroupWizard,
|
|
69
73
|
no as GroupWizardBus,
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
uo as GroupWizardVertical,
|
|
75
|
+
ao as GroupWizardWithTooltips,
|
|
72
76
|
S as Gtable,
|
|
73
77
|
X as HighlightArea,
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
bo as ImageEditModal,
|
|
79
|
+
so as InlineChoice,
|
|
76
80
|
Go as InlineReference,
|
|
77
81
|
Ro as MDEditorControl,
|
|
78
82
|
W as MainCard,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
go as MarkDownEditor,
|
|
84
|
+
Do as PasswordInput,
|
|
85
|
+
u as QuestionBoolean,
|
|
86
|
+
s as QuestionChoice,
|
|
87
|
+
ko as QuestionDateTime,
|
|
84
88
|
So as QuestionDecimal,
|
|
85
89
|
Lo as QuestionEmail,
|
|
86
90
|
co as QuestionInputInsideText,
|
|
87
91
|
Wo as QuestionInteger,
|
|
88
|
-
|
|
92
|
+
Fo as QuestionPhone,
|
|
89
93
|
Po as QuestionQuantity,
|
|
90
|
-
|
|
94
|
+
Vo as QuestionReference,
|
|
91
95
|
qo as QuestionSlider,
|
|
92
|
-
|
|
96
|
+
Ao as QuestionSolidRadio,
|
|
93
97
|
Oo as QuestionString,
|
|
94
98
|
Yo as QuestionText,
|
|
95
99
|
ro as RenderFormItemReadOnly,
|
|
96
100
|
O as RepeatableGroupCard,
|
|
97
|
-
|
|
101
|
+
le as RepeatableGroupRow,
|
|
98
102
|
v as RepeatableGroups,
|
|
99
103
|
P as Row,
|
|
100
|
-
|
|
101
|
-
|
|
104
|
+
w as Section,
|
|
105
|
+
D as SectionWithDivider,
|
|
102
106
|
E as SubCard,
|
|
103
107
|
Q as TextWithLink,
|
|
104
108
|
Jo as TextWithMacroFill,
|
|
105
109
|
No as TimeRangePickerControl,
|
|
106
110
|
oo as Tooltip,
|
|
107
111
|
$o as UploadFileControl,
|
|
108
|
-
|
|
112
|
+
ue as getFieldErrorMessage,
|
|
109
113
|
xo as getGroupStats,
|
|
110
114
|
_ as getHighlightYParams,
|
|
115
|
+
Ge as getValueFromAnswerValue,
|
|
111
116
|
te as groupItemComponent,
|
|
112
|
-
|
|
117
|
+
Ce as isFormAnswerItems,
|
|
118
|
+
ae as isGroupWizard,
|
|
113
119
|
pe as itemControlGroupItemComponents,
|
|
114
120
|
ie as itemControlQuestionItemComponents,
|
|
115
121
|
me as questionItemComponents,
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
yo as useAnswerReference,
|
|
123
|
+
fe as useEditableGroup,
|
|
124
|
+
Uo as useFieldReference,
|
|
125
|
+
Qe as useGroupTable,
|
|
126
|
+
Te as useGroupTableChart,
|
|
118
127
|
G as usePractitionerRoleId,
|
|
119
128
|
Zo as useTimeRangePickerControl,
|
|
120
129
|
ee as useUploader
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._column_14bfg_1{display:flex;flex-direction:column}._row_14bfg_6{display:flex;flex-direction:row;justify-content:space-between;align-items:center}._questionText_14bfg_13{font-weight:700;margin:0}._answer_14bfg_18{display:block;min-width:40%;max-width:40%}._row_dy31e_1{display:flex}._inputWrapper_dy31e_5{flex:auto}._splitterWrapper_dy31e_9{display:flex;flex-direction:column;justify-content:flex-end}._splitter_dy31e_9{position:relative;bottom:22px;margin:0 8px;font-weight:400;font-size:20px;line-height:22px}.
|
|
1
|
+
._column_14bfg_1{display:flex;flex-direction:column}._row_14bfg_6{display:flex;flex-direction:row;justify-content:space-between;align-items:center}._questionText_14bfg_13{font-weight:700;margin:0}._answer_14bfg_18{display:block;min-width:40%;max-width:40%}.ant-dropdown .ant-table-filter-dropdown{border:0;background:none;box-shadow:none;position:relative;overflow:visible}._row_dy31e_1{display:flex}._inputWrapper_dy31e_5{flex:auto}._splitterWrapper_dy31e_9{display:flex;flex-direction:column;justify-content:flex-end}._splitter_dy31e_9{position:relative;bottom:22px;margin:0 8px;font-weight:400;font-size:20px;line-height:22px}._form_1v4sy_1 .ant-form-item-label{font-weight:700}._form_1v4sy_1 .ant-form-item-row{flex:1;flex-direction:column;justify-content:space-between;gap:12px}._form_1v4sy_1 .ant-form-item-label{text-align:start;white-space:normal}._form_1v4sy_1 .ant-form-item-label label{display:flex;height:auto}._form_1v4sy_1 .ant-form-item-label label:after{display:none}._form_1v4sy_1 .ant-form-item-control{flex-grow:0}._content_1v4sy_25{display:flex;flex-direction:column;gap:24px}._field_1v4sy_31{width:100%;margin-bottom:0;display:flex}._field_1v4sy_31.__hidden_1v4sy_36{display:none}._group_1ndd9_1{display:flex;flex-direction:column;gap:16px;width:100%}._groupTitle_1ndd9_8{font-weight:700;font-size:16px;line-height:24px}._row_1ndd9_14{display:flex;flex-direction:row;justify-content:space-between;gap:16px;width:100%}._col_1ndd9_22{display:flex;flex-direction:column;gap:16px}._inputContainer_gs0vq_1{display:flex;flex-direction:column}._inputHeader_gs0vq_6{display:flex;margin-bottom:12px;align-items:center;justify-content:space-between}._label_gs0vq_13{font-weight:700;font-size:14px;line-height:22px}
|
package/dist/theme/palette.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
2
|
export declare const brandColors: Pick<DefaultTheme, 'primary' | 'secondary'>;
|
|
3
3
|
export declare const colors: {
|
|
4
|
+
warning: string;
|
|
4
5
|
error: string;
|
|
5
|
-
link: string;
|
|
6
6
|
success: string;
|
|
7
|
-
|
|
7
|
+
link: string;
|
|
8
8
|
primary: string;
|
|
9
9
|
secondary: string;
|
|
10
10
|
};
|
package/dist/utils/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beda.software/web-item-controls",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14-1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"start": "storybook dev -p 6006",
|
|
14
14
|
"build:lib": "vite build --config vite.lib.config.ts && node ./scripts/inject-style-imports.mjs",
|
|
15
|
-
"check:package": "node ./scripts/check-package-output.mjs",
|
|
16
|
-
"smoke:package": "node ./scripts/smoke-package-tarball.mjs",
|
|
17
15
|
"test": "vitest --no-threads",
|
|
18
16
|
"test-storybook": "test-storybook",
|
|
19
17
|
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
@@ -151,13 +149,33 @@
|
|
|
151
149
|
"types": "./dist/controls/index.d.ts",
|
|
152
150
|
"import": "./dist/controls/index.js"
|
|
153
151
|
},
|
|
152
|
+
"./controls/*": {
|
|
153
|
+
"types": "./dist/controls/*/index.d.ts",
|
|
154
|
+
"import": "./dist/controls/*/index.js"
|
|
155
|
+
},
|
|
154
156
|
"./readonly-controls": {
|
|
155
157
|
"types": "./dist/readonly-controls/index.d.ts",
|
|
156
158
|
"import": "./dist/readonly-controls/index.js"
|
|
157
159
|
},
|
|
160
|
+
"./readonly-controls/*": {
|
|
161
|
+
"types": "./dist/readonly-controls/*/index.d.ts",
|
|
162
|
+
"import": "./dist/readonly-controls/*/index.js"
|
|
163
|
+
},
|
|
158
164
|
"./contexts": {
|
|
159
165
|
"types": "./dist/contexts/index.d.ts",
|
|
160
166
|
"import": "./dist/contexts/index.js"
|
|
167
|
+
},
|
|
168
|
+
"./contexts/*": {
|
|
169
|
+
"types": "./dist/contexts/*/index.d.ts",
|
|
170
|
+
"import": "./dist/contexts/*/index.js"
|
|
171
|
+
},
|
|
172
|
+
"./components": {
|
|
173
|
+
"types": "./dist/components/index.d.ts",
|
|
174
|
+
"import": "./dist/components/index.js"
|
|
175
|
+
},
|
|
176
|
+
"./components/*": {
|
|
177
|
+
"types": "./dist/components/*/index.d.ts",
|
|
178
|
+
"import": "./dist/components/*/index.js"
|
|
161
179
|
}
|
|
162
180
|
}
|
|
163
181
|
}
|
|
@@ -227,7 +227,7 @@ msgstr ""
|
|
|
227
227
|
#~ msgid "Add break"
|
|
228
228
|
#~ msgstr ""
|
|
229
229
|
|
|
230
|
-
#: src/controls/GroupTable/index.tsx:
|
|
230
|
+
#: src/controls/GroupTable/index.tsx:68
|
|
231
231
|
msgid "Add entry"
|
|
232
232
|
msgstr ""
|
|
233
233
|
|
|
@@ -450,7 +450,7 @@ msgstr ""
|
|
|
450
450
|
#~ msgid "Col (default)"
|
|
451
451
|
#~ msgstr ""
|
|
452
452
|
|
|
453
|
-
#: src/controls/GroupTable/index.tsx:
|
|
453
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
454
454
|
msgid "Collapse all"
|
|
455
455
|
msgstr ""
|
|
456
456
|
|
|
@@ -739,7 +739,7 @@ msgstr ""
|
|
|
739
739
|
#~ msgid "Error while amending the document"
|
|
740
740
|
#~ msgstr ""
|
|
741
741
|
|
|
742
|
-
#: src/controls/GroupTable/index.tsx:
|
|
742
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
743
743
|
msgid "Expand all"
|
|
744
744
|
msgstr ""
|
|
745
745
|
|
|
@@ -960,7 +960,7 @@ msgstr ""
|
|
|
960
960
|
#~ msgid "Last name"
|
|
961
961
|
#~ msgstr ""
|
|
962
962
|
|
|
963
|
-
#: src/controls/GroupTable/index.tsx:
|
|
963
|
+
#: src/controls/GroupTable/index.tsx:98
|
|
964
964
|
msgid "linkIdX or linkIdY not defined"
|
|
965
965
|
msgstr ""
|
|
966
966
|
|
|
@@ -1562,7 +1562,7 @@ msgstr ""
|
|
|
1562
1562
|
#~ msgid "System"
|
|
1563
1563
|
#~ msgstr ""
|
|
1564
1564
|
|
|
1565
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1565
|
+
#: src/controls/GroupTable/index.tsx:56
|
|
1566
1566
|
msgid "Table View"
|
|
1567
1567
|
msgstr ""
|
|
1568
1568
|
|
|
@@ -1620,11 +1620,11 @@ msgstr ""
|
|
|
1620
1620
|
msgid "This audio cannot be played in Safari, please download the audio or use the Chrome browser"
|
|
1621
1621
|
msgstr ""
|
|
1622
1622
|
|
|
1623
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1623
|
+
#: src/controls/EditableGroup/index.tsx:52
|
|
1624
1624
|
msgid "This itemControl is designed for non-repeatable groups"
|
|
1625
1625
|
msgstr ""
|
|
1626
1626
|
|
|
1627
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1627
|
+
#: src/controls/GroupTable/index.tsx:103
|
|
1628
1628
|
msgid "This itemControl is designed for repeatable groups, but this group is not repeatable"
|
|
1629
1629
|
msgstr ""
|
|
1630
1630
|
|
|
@@ -1692,7 +1692,7 @@ msgstr ""
|
|
|
1692
1692
|
#~ msgid "Upcoming appointment"
|
|
1693
1693
|
#~ msgstr ""
|
|
1694
1694
|
|
|
1695
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1695
|
+
#: src/controls/EditableGroup/index.tsx:36
|
|
1696
1696
|
msgid "Update"
|
|
1697
1697
|
msgstr ""
|
|
1698
1698
|
|
|
@@ -236,7 +236,7 @@ msgstr ""
|
|
|
236
236
|
#~ msgid "Add break"
|
|
237
237
|
#~ msgstr ""
|
|
238
238
|
|
|
239
|
-
#: src/controls/GroupTable/index.tsx:
|
|
239
|
+
#: src/controls/GroupTable/index.tsx:68
|
|
240
240
|
msgid "Add entry"
|
|
241
241
|
msgstr ""
|
|
242
242
|
|
|
@@ -491,7 +491,7 @@ msgstr ""
|
|
|
491
491
|
#~ msgid "Col (default)"
|
|
492
492
|
#~ msgstr ""
|
|
493
493
|
|
|
494
|
-
#: src/controls/GroupTable/index.tsx:
|
|
494
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
495
495
|
msgid "Collapse all"
|
|
496
496
|
msgstr ""
|
|
497
497
|
|
|
@@ -841,7 +841,7 @@ msgstr ""
|
|
|
841
841
|
#~ msgid "Error while extracting"
|
|
842
842
|
#~ msgstr ""
|
|
843
843
|
|
|
844
|
-
#: src/controls/GroupTable/index.tsx:
|
|
844
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
845
845
|
msgid "Expand all"
|
|
846
846
|
msgstr ""
|
|
847
847
|
|
|
@@ -1103,7 +1103,7 @@ msgstr ""
|
|
|
1103
1103
|
#~ msgid "Last name"
|
|
1104
1104
|
#~ msgstr ""
|
|
1105
1105
|
|
|
1106
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1106
|
+
#: src/controls/GroupTable/index.tsx:98
|
|
1107
1107
|
msgid "linkIdX or linkIdY not defined"
|
|
1108
1108
|
msgstr ""
|
|
1109
1109
|
|
|
@@ -1787,7 +1787,7 @@ msgstr ""
|
|
|
1787
1787
|
#~ msgid "System"
|
|
1788
1788
|
#~ msgstr ""
|
|
1789
1789
|
|
|
1790
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1790
|
+
#: src/controls/GroupTable/index.tsx:56
|
|
1791
1791
|
msgid "Table View"
|
|
1792
1792
|
msgstr ""
|
|
1793
1793
|
|
|
@@ -1845,11 +1845,11 @@ msgstr ""
|
|
|
1845
1845
|
msgid "This audio cannot be played in Safari, please download the audio or use the Chrome browser"
|
|
1846
1846
|
msgstr ""
|
|
1847
1847
|
|
|
1848
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1848
|
+
#: src/controls/EditableGroup/index.tsx:52
|
|
1849
1849
|
msgid "This itemControl is designed for non-repeatable groups"
|
|
1850
1850
|
msgstr ""
|
|
1851
1851
|
|
|
1852
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1852
|
+
#: src/controls/GroupTable/index.tsx:103
|
|
1853
1853
|
msgid "This itemControl is designed for repeatable groups, but this group is not repeatable"
|
|
1854
1854
|
msgstr ""
|
|
1855
1855
|
|
|
@@ -1921,7 +1921,7 @@ msgstr ""
|
|
|
1921
1921
|
#~ msgid "Upcoming appointment"
|
|
1922
1922
|
#~ msgstr ""
|
|
1923
1923
|
|
|
1924
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1924
|
+
#: src/controls/EditableGroup/index.tsx:36
|
|
1925
1925
|
msgid "Update"
|
|
1926
1926
|
msgstr ""
|
|
1927
1927
|
|
|
@@ -236,7 +236,7 @@ msgstr "Añadir otra respuesta"
|
|
|
236
236
|
#~ msgid "Add break"
|
|
237
237
|
#~ msgstr "Añadir pausa"
|
|
238
238
|
|
|
239
|
-
#: src/controls/GroupTable/index.tsx:
|
|
239
|
+
#: src/controls/GroupTable/index.tsx:68
|
|
240
240
|
msgid "Add entry"
|
|
241
241
|
msgstr ""
|
|
242
242
|
|
|
@@ -491,7 +491,7 @@ msgstr "Haz click o arrastra el archivo hasta esta área para cargar"
|
|
|
491
491
|
#~ msgid "Col (default)"
|
|
492
492
|
#~ msgstr "Columna (predeterminado)"
|
|
493
493
|
|
|
494
|
-
#: src/controls/GroupTable/index.tsx:
|
|
494
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
495
495
|
msgid "Collapse all"
|
|
496
496
|
msgstr ""
|
|
497
497
|
|
|
@@ -837,7 +837,7 @@ msgstr "Editar"
|
|
|
837
837
|
#~ msgid "Error while extracting"
|
|
838
838
|
#~ msgstr "Error durante la extracción"
|
|
839
839
|
|
|
840
|
-
#: src/controls/GroupTable/index.tsx:
|
|
840
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
841
841
|
msgid "Expand all"
|
|
842
842
|
msgstr ""
|
|
843
843
|
|
|
@@ -1099,7 +1099,7 @@ msgstr "Ítem"
|
|
|
1099
1099
|
#~ msgid "Last name"
|
|
1100
1100
|
#~ msgstr "Apellido"
|
|
1101
1101
|
|
|
1102
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1102
|
+
#: src/controls/GroupTable/index.tsx:98
|
|
1103
1103
|
msgid "linkIdX or linkIdY not defined"
|
|
1104
1104
|
msgstr ""
|
|
1105
1105
|
|
|
@@ -1771,7 +1771,7 @@ msgstr "Iniciar escritura"
|
|
|
1771
1771
|
#~ msgid "System"
|
|
1772
1772
|
#~ msgstr "Sistema"
|
|
1773
1773
|
|
|
1774
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1774
|
+
#: src/controls/GroupTable/index.tsx:56
|
|
1775
1775
|
msgid "Table View"
|
|
1776
1776
|
msgstr ""
|
|
1777
1777
|
|
|
@@ -1829,11 +1829,11 @@ msgstr ""
|
|
|
1829
1829
|
msgid "This audio cannot be played in Safari, please download the audio or use the Chrome browser"
|
|
1830
1830
|
msgstr "Este audio no se puede reproducir en Safari, por favor descarga el audio o usa el navegador Chrome"
|
|
1831
1831
|
|
|
1832
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1832
|
+
#: src/controls/EditableGroup/index.tsx:52
|
|
1833
1833
|
msgid "This itemControl is designed for non-repeatable groups"
|
|
1834
1834
|
msgstr ""
|
|
1835
1835
|
|
|
1836
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1836
|
+
#: src/controls/GroupTable/index.tsx:103
|
|
1837
1837
|
msgid "This itemControl is designed for repeatable groups, but this group is not repeatable"
|
|
1838
1838
|
msgstr ""
|
|
1839
1839
|
|
|
@@ -1905,7 +1905,7 @@ msgstr ""
|
|
|
1905
1905
|
#~ msgid "Upcoming appointment"
|
|
1906
1906
|
#~ msgstr "Próxima cita"
|
|
1907
1907
|
|
|
1908
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1908
|
+
#: src/controls/EditableGroup/index.tsx:36
|
|
1909
1909
|
msgid "Update"
|
|
1910
1910
|
msgstr ""
|
|
1911
1911
|
|
|
@@ -236,7 +236,7 @@ msgstr ""
|
|
|
236
236
|
#~ msgid "Add break"
|
|
237
237
|
#~ msgstr ""
|
|
238
238
|
|
|
239
|
-
#: src/controls/GroupTable/index.tsx:
|
|
239
|
+
#: src/controls/GroupTable/index.tsx:68
|
|
240
240
|
msgid "Add entry"
|
|
241
241
|
msgstr ""
|
|
242
242
|
|
|
@@ -491,7 +491,7 @@ msgstr ""
|
|
|
491
491
|
#~ msgid "Col (default)"
|
|
492
492
|
#~ msgstr ""
|
|
493
493
|
|
|
494
|
-
#: src/controls/GroupTable/index.tsx:
|
|
494
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
495
495
|
msgid "Collapse all"
|
|
496
496
|
msgstr ""
|
|
497
497
|
|
|
@@ -841,7 +841,7 @@ msgstr "Редактировать"
|
|
|
841
841
|
#~ msgid "Error while extracting"
|
|
842
842
|
#~ msgstr ""
|
|
843
843
|
|
|
844
|
-
#: src/controls/GroupTable/index.tsx:
|
|
844
|
+
#: src/controls/GroupTable/index.tsx:65
|
|
845
845
|
msgid "Expand all"
|
|
846
846
|
msgstr ""
|
|
847
847
|
|
|
@@ -1103,7 +1103,7 @@ msgstr ""
|
|
|
1103
1103
|
#~ msgid "Last name"
|
|
1104
1104
|
#~ msgstr ""
|
|
1105
1105
|
|
|
1106
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1106
|
+
#: src/controls/GroupTable/index.tsx:98
|
|
1107
1107
|
msgid "linkIdX or linkIdY not defined"
|
|
1108
1108
|
msgstr ""
|
|
1109
1109
|
|
|
@@ -1787,7 +1787,7 @@ msgstr ""
|
|
|
1787
1787
|
#~ msgid "System"
|
|
1788
1788
|
#~ msgstr ""
|
|
1789
1789
|
|
|
1790
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1790
|
+
#: src/controls/GroupTable/index.tsx:56
|
|
1791
1791
|
msgid "Table View"
|
|
1792
1792
|
msgstr ""
|
|
1793
1793
|
|
|
@@ -1845,11 +1845,11 @@ msgstr ""
|
|
|
1845
1845
|
msgid "This audio cannot be played in Safari, please download the audio or use the Chrome browser"
|
|
1846
1846
|
msgstr ""
|
|
1847
1847
|
|
|
1848
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1848
|
+
#: src/controls/EditableGroup/index.tsx:52
|
|
1849
1849
|
msgid "This itemControl is designed for non-repeatable groups"
|
|
1850
1850
|
msgstr ""
|
|
1851
1851
|
|
|
1852
|
-
#: src/controls/GroupTable/index.tsx:
|
|
1852
|
+
#: src/controls/GroupTable/index.tsx:103
|
|
1853
1853
|
msgid "This itemControl is designed for repeatable groups, but this group is not repeatable"
|
|
1854
1854
|
msgstr ""
|
|
1855
1855
|
|
|
@@ -1921,7 +1921,7 @@ msgstr ""
|
|
|
1921
1921
|
#~ msgid "Upcoming appointment"
|
|
1922
1922
|
#~ msgstr ""
|
|
1923
1923
|
|
|
1924
|
-
#: src/controls/EditableGroup/index.tsx:
|
|
1924
|
+
#: src/controls/EditableGroup/index.tsx:36
|
|
1925
1925
|
msgid "Update"
|
|
1926
1926
|
msgstr ""
|
|
1927
1927
|
|