@beda.software/web-item-controls 0.1.23 → 0.1.24
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controls/GroupTabs/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAsC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controls/GroupTabs/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAsC,MAAM,SAAS,CAAC;AAI7E,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAwD9C"}
|
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Flex as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { useWatch as
|
|
5
|
-
import { getEnabledQuestions as
|
|
6
|
-
|
|
2
|
+
import { Flex as d, Tabs as f } from "antd";
|
|
3
|
+
import { useState as b, useMemo as h } from "react";
|
|
4
|
+
import { useWatch as I } from "react-hook-form";
|
|
5
|
+
import { getEnabledQuestions as x, QuestionItems as y } from "sdc-qrf";
|
|
6
|
+
import { GroupWizardBus as v } from "../GroupWizard/index.js";
|
|
7
|
+
function B(p) {
|
|
8
|
+
var c;
|
|
7
9
|
const {
|
|
8
|
-
parentPath:
|
|
9
|
-
questionItem:
|
|
10
|
-
context:
|
|
11
|
-
} =
|
|
12
|
-
|
|
13
|
-
const
|
|
10
|
+
parentPath: o,
|
|
11
|
+
questionItem: t,
|
|
12
|
+
context: i
|
|
13
|
+
} = p;
|
|
14
|
+
t.repeats && console.warn("GroupTabs does not support repeatable groups in the first level");
|
|
15
|
+
const a = I(), [l, u] = b(), m = h(() => {
|
|
14
16
|
const {
|
|
15
|
-
linkId:
|
|
16
|
-
} =
|
|
17
|
-
return
|
|
18
|
-
key:
|
|
19
|
-
label:
|
|
20
|
-
|
|
21
|
-
children: /* @__PURE__ */ n(u, { gap: 16, vertical: !0, children: /* @__PURE__ */ n(b, { questionItems: t.item, parentPath: [...r, p, "items", t.linkId, "items"], context: o }) })
|
|
17
|
+
linkId: r
|
|
18
|
+
} = t, s = i[0];
|
|
19
|
+
return s ? x(t.item ?? [], o, a, s).filter((e) => !e.hidden).map((e) => ({
|
|
20
|
+
key: e.linkId,
|
|
21
|
+
label: e.text,
|
|
22
|
+
children: /* @__PURE__ */ n(d, { gap: 16, vertical: !0, children: /* @__PURE__ */ n(y, { questionItems: e.item, parentPath: [...o, r, "items", e.linkId, "items"], context: s }) })
|
|
22
23
|
})) : [];
|
|
23
|
-
}, [
|
|
24
|
-
return
|
|
24
|
+
}, [i, a, o, t]);
|
|
25
|
+
return v.useBus("scrollTo", ({
|
|
26
|
+
groupLinkId: r
|
|
27
|
+
}) => {
|
|
28
|
+
u(r);
|
|
29
|
+
}, []), /* @__PURE__ */ n(f, { type: "card", items: m, activeKey: l ?? ((c = m[0]) == null ? void 0 : c.key), onChange: u, destroyInactiveTabPane: !0 });
|
|
25
30
|
}
|
|
26
31
|
export {
|
|
27
|
-
|
|
32
|
+
B as GroupTabs
|
|
28
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupWizard.stories.utils.d.ts","sourceRoot":"","sources":["../../../src/controls/GroupWizard/GroupWizard.stories.utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAa,WAAW,EAAqC,MAAM,SAAS,CAAC;AAW1G,eAAO,MAAM,WAAW,EAAE,oBAqEzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAI3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAGpC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WAAW,EAMhC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,SAsB9C,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"GroupWizard.stories.utils.d.ts","sourceRoot":"","sources":["../../../src/controls/GroupWizard/GroupWizard.stories.utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAa,WAAW,EAAqC,MAAM,SAAS,CAAC;AAW1G,eAAO,MAAM,WAAW,EAAE,oBAqEzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAI3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAGpC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WAAW,EAMhC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,SAsB9C,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,EAAE,oBAAoB,4FAkBpD"}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._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
|
+
.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}._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%}
|