@knime/jsonforms 0.1.7 → 1.0.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/CHANGELOG.md +14 -0
- package/README.md +71 -70
- package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
- package/dist/BaseButton-arvXMjXG.js +112 -0
- package/dist/Button-Bc51Uur8.js +83 -0
- package/dist/Checkbox-BxPISyW3.js +75 -0
- package/dist/CheckboxControl-B-RyvD0K.js +42 -0
- package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
- package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
- package/dist/ColumnFilter-bO-fKaHD.js +22 -0
- package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
- package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
- package/dist/DateControl-v0qHckKz.js +27 -0
- package/dist/DateTimeControl-COnMFfMd.js +47 -0
- package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
- package/dist/Dropdown-By1NMrXZ.js +691 -0
- package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
- package/dist/ErrorMessage-fuIcc8xw.js +23 -0
- package/dist/FunctionButton-DBec3TQi.js +75 -0
- package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
- package/dist/InputField-BKH5rtn3.js +148 -0
- package/dist/IntegerControl-CBuOHc4B.js +18 -0
- package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
- package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
- package/dist/NameFilter-oHBcHQTY.js +22 -0
- package/dist/NumberControl-Cwf50Oe-.js +18 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
- package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
- package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
- package/dist/RadioControl-DsVkQLSI.js +22 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
- package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
- package/dist/SectionLayout-BDgtf57K.js +43 -0
- package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
- package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
- package/dist/SortListControl-On9GHu_U.js +356 -0
- package/dist/TextAreaControl-DF_pLD80.js +108 -0
- package/dist/TextControl-BTZ4ONmV.js +4 -0
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
- package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
- package/dist/TwinlistControl-DcFpZrni.js +553 -0
- package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
- package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
- package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
- package/dist/VerticalLayout-D1KXulG4.js +30 -0
- package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
- package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
- package/dist/_baseAssignValue-C56BMUo_.js +19 -0
- package/dist/_baseEach-1sO8_8tT.js +31 -0
- package/dist/_baseIsEqual-d71B2UwX.js +248 -0
- package/dist/_baseIteratee-BgB8cpN8.js +104 -0
- package/dist/_getTag-BiNJdVyP.js +314 -0
- package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
- package/dist/close-h7XT0ja0.js +17 -0
- package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
- package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
- package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
- package/dist/index-C1PjXAJX.js +17 -0
- package/dist/index-Cp7Xre_V.js +331 -0
- package/dist/isObject-B53jY8Qg.js +7 -0
- package/dist/isSymbol-DLKDpjGl.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.d.ts +2 -0
- package/dist/knime-jsonforms.js +119 -3
- package/dist/magic-string.es-DFyz70Kz.js +860 -0
- package/dist/popper-1JCni0RT.js +907 -0
- package/dist/reload-BhzcZRFp.js +17 -0
- package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
- package/dist/src/constants/index.d.ts +2 -0
- package/dist/src/constants/inputFormats.d.ts +25 -0
- package/dist/src/constants/priorityRanks.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
- package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
- package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
- package/dist/src/higherOrderComponents/index.d.ts +3 -0
- package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
- package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
- package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
- package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
- package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
- package/dist/src/higherOrderComponents/types.d.ts +25 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
- package/dist/src/layoutComponents/index.d.ts +3 -0
- package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
- package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
- package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
- package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
- package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
- package/dist/src/renderers/index.d.ts +1 -0
- package/dist/src/renderers/integerRenderer.d.ts +5 -0
- package/dist/src/renderers/intervalRenderer.d.ts +5 -0
- package/dist/src/renderers/localDateRenderer.d.ts +5 -0
- package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
- package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
- package/dist/src/renderers/numberRenderer.d.ts +5 -0
- package/dist/src/renderers/radioRenderer.d.ts +5 -0
- package/dist/src/renderers/richTextRenderer.d.ts +5 -0
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
- package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
- package/dist/src/renderers/sortListRenderer.d.ts +288 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
- package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
- package/dist/src/renderers/textRenderer.d.ts +193 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
- package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
- package/dist/src/types/Control.d.ts +2 -0
- package/dist/src/types/alert.d.ts +5 -0
- package/dist/src/types/provided.d.ts +25 -0
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
- package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
- package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
- package/dist/src/uiComponents/index.d.ts +4 -0
- package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
- package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
- package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
- package/dist/src/utils/index.d.ts +15 -0
- package/dist/src/utils/inject.d.ts +3 -0
- package/dist/src/utils/localTimeUtils.d.ts +16 -0
- package/dist/svgWithTitle-zrGi2kyc.js +18 -0
- package/dist/testUtils/component.d.ts +190 -0
- package/dist/testUtils/index.d.ts +2 -0
- package/dist/testUtils/renderer.d.ts +6 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +18889 -0
- package/dist/toString-C9vll-oa.js +26 -0
- package/dist/useSearch-hpyYQ_6y.js +74 -0
- package/package.json +11 -7
- package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
- package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
- package/dist/ButtonControl-yAb2GdQI.js +0 -127
- package/dist/CheckboxControl-Ck45Jycu.js +0 -50
- package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
- package/dist/ColumnFilter-u7yVpuFC.js +0 -17
- package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
- package/dist/CredentialsControl-D1Te47JG.js +0 -20
- package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
- package/dist/DateControl-CuV2lKvs.js +0 -30
- package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
- package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
- package/dist/FileChooserControl-HX_GjlNB.js +0 -605
- package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
- package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
- package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
- package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
- package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
- package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
- package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
- package/dist/NameFilter-CsfBC6e2.js +0 -17
- package/dist/NodeDialog.vue.d.ts +0 -8
- package/dist/NumberControl-BJCFqjn3.js +0 -13
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
- package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
- package/dist/RadioControl-BZEV6NYx.js +0 -13
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
- package/dist/SectionLayout-DtVREvcv.js +0 -54
- package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
- package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
- package/dist/SortListControl-DcW5Ofs5.js +0 -316
- package/dist/TextAreaControl-DTw_oBDS.js +0 -111
- package/dist/TextControl-BlfySQDC.js +0 -49
- package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
- package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
- package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
- package/dist/VerticalLayout-CTFSrGS8.js +0 -39
- package/dist/arrow-up-Dsq3EgtE.js +0 -30
- package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
- package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
- package/dist/index-1mTLieVA.js +0 -32714
- package/dist/index.d.ts +0 -3
- package/dist/layoutComponents/Form.vue.d.ts +0 -2
- package/dist/link-BA69Hfx6.js +0 -17
- package/dist/loading/LoadingDialog.vue.d.ts +0 -2
|
@@ -1,587 +0,0 @@
|
|
|
1
|
-
import { openBlock as S, createElementBlock as z, createElementVNode as Q, toRef as X, resolveComponent as b, normalizeClass as Y, createBlock as _, withCtx as C, createVNode as w, createCommentVNode as M, mergeProps as N, ref as x, watch as k, defineComponent as Z, computed as m, markRaw as $, unref as h } from "vue";
|
|
2
|
-
import { g as ee, aK as B, _ as q, aL as D, aM as te, r as ae, a as le, V as se, p as ne, q as ie, L as oe, W as de, a1 as ue } from "./index-1mTLieVA.js";
|
|
3
|
-
import { S as re, a as ce, u as pe, T as me } from "./TwinlistLoadingInfo-DHKwC-WM.js";
|
|
4
|
-
import { C as he } from "./Checkboxes-C6FkTqJJ.js";
|
|
5
|
-
import { V as ve } from "./ValueSwitch-DXmeJXda.js";
|
|
6
|
-
const ye = {
|
|
7
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
-
fill: "none",
|
|
9
|
-
stroke: "#000",
|
|
10
|
-
"stroke-linejoin": "round",
|
|
11
|
-
viewBox: "0 0 32 32"
|
|
12
|
-
}, fe = /* @__PURE__ */ Q("path", { d: "m13.31 27.81 5.11-3.19v-9.15L28.95 4.19H3.05l10.26 11.28z" }, null, -1), be = [
|
|
13
|
-
fe
|
|
14
|
-
];
|
|
15
|
-
function we(t, s) {
|
|
16
|
-
return S(), z("svg", ye, [...be]);
|
|
17
|
-
}
|
|
18
|
-
const Se = { render: we }, ge = {
|
|
19
|
-
manual: "Manual",
|
|
20
|
-
wildcard: "Wildcard",
|
|
21
|
-
regex: "Regex",
|
|
22
|
-
type: "Type"
|
|
23
|
-
}, Te = {
|
|
24
|
-
name: "MultiModeTwinlist",
|
|
25
|
-
components: {
|
|
26
|
-
Label: ee,
|
|
27
|
-
FilterIcon: Se,
|
|
28
|
-
SearchInput: re,
|
|
29
|
-
Checkboxes: he,
|
|
30
|
-
ValueSwitch: ve,
|
|
31
|
-
Twinlist: ce
|
|
32
|
-
},
|
|
33
|
-
props: {
|
|
34
|
-
/**
|
|
35
|
-
* initial values
|
|
36
|
-
*/
|
|
37
|
-
mode: {
|
|
38
|
-
type: String,
|
|
39
|
-
required: !1,
|
|
40
|
-
default: "manual"
|
|
41
|
-
},
|
|
42
|
-
manualSelection: {
|
|
43
|
-
type: [Object, Array, null],
|
|
44
|
-
default: () => []
|
|
45
|
-
},
|
|
46
|
-
pattern: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: ""
|
|
49
|
-
},
|
|
50
|
-
caseSensitivePattern: {
|
|
51
|
-
default: !1,
|
|
52
|
-
type: Boolean
|
|
53
|
-
},
|
|
54
|
-
inversePattern: {
|
|
55
|
-
default: !1,
|
|
56
|
-
type: Boolean
|
|
57
|
-
},
|
|
58
|
-
withTypes: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !0
|
|
61
|
-
},
|
|
62
|
-
selectedTypes: {
|
|
63
|
-
type: Array,
|
|
64
|
-
default: () => []
|
|
65
|
-
},
|
|
66
|
-
/**
|
|
67
|
-
* Hiding and disabling
|
|
68
|
-
*/
|
|
69
|
-
showMode: {
|
|
70
|
-
default: !1,
|
|
71
|
-
type: Boolean
|
|
72
|
-
},
|
|
73
|
-
// enable search in case of manual selection
|
|
74
|
-
showSearch: {
|
|
75
|
-
default: !0,
|
|
76
|
-
type: Boolean
|
|
77
|
-
},
|
|
78
|
-
disabled: {
|
|
79
|
-
default: !1,
|
|
80
|
-
type: Boolean
|
|
81
|
-
},
|
|
82
|
-
/**
|
|
83
|
-
* Labels
|
|
84
|
-
*/
|
|
85
|
-
withModeLabel: {
|
|
86
|
-
default: !1,
|
|
87
|
-
type: Boolean
|
|
88
|
-
},
|
|
89
|
-
modeLabel: {
|
|
90
|
-
type: String,
|
|
91
|
-
required: !1,
|
|
92
|
-
default: "Selection mode"
|
|
93
|
-
},
|
|
94
|
-
withPatternLabel: {
|
|
95
|
-
default: !1,
|
|
96
|
-
type: Boolean
|
|
97
|
-
},
|
|
98
|
-
patternLabel: {
|
|
99
|
-
type: String,
|
|
100
|
-
required: !1,
|
|
101
|
-
default: "Pattern"
|
|
102
|
-
},
|
|
103
|
-
withTypesLabel: {
|
|
104
|
-
default: !1,
|
|
105
|
-
type: Boolean
|
|
106
|
-
},
|
|
107
|
-
typesLabel: {
|
|
108
|
-
type: String,
|
|
109
|
-
required: !1,
|
|
110
|
-
default: "Selected types"
|
|
111
|
-
},
|
|
112
|
-
/**
|
|
113
|
-
* List of possible values. Each item must have an `id` and a `text` property
|
|
114
|
-
* @example
|
|
115
|
-
* [{
|
|
116
|
-
* id: 'pdf',
|
|
117
|
-
* text: 'PDF'
|
|
118
|
-
* }, {
|
|
119
|
-
* id: 'XLS',
|
|
120
|
-
* text: 'Excel',
|
|
121
|
-
* }]
|
|
122
|
-
* For type selection, additionally, an element has to have a property `type` wich itself has properties
|
|
123
|
-
* `id` and `text`, e.g.
|
|
124
|
-
* [{
|
|
125
|
-
* id: 'pdf',
|
|
126
|
-
* text: 'PDF',
|
|
127
|
-
* type: {
|
|
128
|
-
* id: 'StringValue',
|
|
129
|
-
* text: 'String'
|
|
130
|
-
* }]
|
|
131
|
-
*/
|
|
132
|
-
possibleValues: {
|
|
133
|
-
type: Array,
|
|
134
|
-
default: () => []
|
|
135
|
-
},
|
|
136
|
-
/**
|
|
137
|
-
* List of possible types which should be selectable but are not necessarily present in the possible values.
|
|
138
|
-
*/
|
|
139
|
-
additionalPossibleTypes: {
|
|
140
|
-
type: Array,
|
|
141
|
-
default: () => []
|
|
142
|
-
},
|
|
143
|
-
compact: {
|
|
144
|
-
type: Boolean,
|
|
145
|
-
default: !1
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
emits: [
|
|
149
|
-
// Prop updates
|
|
150
|
-
"update:manualSelection",
|
|
151
|
-
"update:pattern",
|
|
152
|
-
"update:selectedTypes",
|
|
153
|
-
"update:mode",
|
|
154
|
-
"update:caseSensitivePattern",
|
|
155
|
-
"update:inversePattern",
|
|
156
|
-
// Non-prop update
|
|
157
|
-
"update:selected"
|
|
158
|
-
],
|
|
159
|
-
setup(t) {
|
|
160
|
-
const { includedValues: s } = pe(
|
|
161
|
-
X(t, "manualSelection")
|
|
162
|
-
);
|
|
163
|
-
return { manuallySelected: s };
|
|
164
|
-
},
|
|
165
|
-
data() {
|
|
166
|
-
return {
|
|
167
|
-
invalidPossibleValueIds: /* @__PURE__ */ new Set()
|
|
168
|
-
};
|
|
169
|
-
},
|
|
170
|
-
computed: {
|
|
171
|
-
possibleValueIds() {
|
|
172
|
-
return this.possibleValues.map(({ id: t }) => t);
|
|
173
|
-
},
|
|
174
|
-
possibleTypes() {
|
|
175
|
-
const t = this.possibleValues.map(({ type: o }) => o).filter(Boolean), s = t.map((o) => o.id);
|
|
176
|
-
return [...this.additionalPossibleTypes.filter(
|
|
177
|
-
(o) => o && !s.includes(o.id)
|
|
178
|
-
), ...t].filter((o) => o && o.id !== "").filter(
|
|
179
|
-
// remove duplicates
|
|
180
|
-
(o, i, l) => i === l.findIndex((u) => u.id === o.id && u.text === o.text)
|
|
181
|
-
);
|
|
182
|
-
},
|
|
183
|
-
matchingValueIds() {
|
|
184
|
-
return this.possibleValues.filter((t) => this.itemMatches(t)).map((t) => t.id);
|
|
185
|
-
},
|
|
186
|
-
twinlistModelValue() {
|
|
187
|
-
return this.mode === "manual" ? this.manualSelection : this.matchingValueIds;
|
|
188
|
-
},
|
|
189
|
-
selectedValues() {
|
|
190
|
-
return this.mode === "manual" ? this.manuallySelected : this.matchingValueIds;
|
|
191
|
-
},
|
|
192
|
-
selectionDisabled() {
|
|
193
|
-
return this.disabled || this.mode !== "manual";
|
|
194
|
-
},
|
|
195
|
-
normalizedSearchTerm() {
|
|
196
|
-
return this.mode === "manual" ? null : B[this.mode].normalize(
|
|
197
|
-
this.mode === "type" ? this.selectedTypes : this.pattern,
|
|
198
|
-
this.caseSensitivePattern
|
|
199
|
-
);
|
|
200
|
-
},
|
|
201
|
-
possibleModes() {
|
|
202
|
-
let t = Object.entries(ge).map(([s, a]) => ({ id: s, text: a }));
|
|
203
|
-
return this.withTypes || (t = t.filter((s) => s.id !== "type")), t;
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
watch: {
|
|
207
|
-
selectedValues: {
|
|
208
|
-
immediate: !0,
|
|
209
|
-
handler(t, s) {
|
|
210
|
-
!s || t === null || (t.length !== s.length || s.some((a, d) => a !== t[d])) && this.$emit("update:selected", this.selectedValues);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
methods: {
|
|
215
|
-
onManualInput(t) {
|
|
216
|
-
this.mode === "manual" && this.$emit("update:manualSelection", t);
|
|
217
|
-
},
|
|
218
|
-
onPatternInput(t) {
|
|
219
|
-
this.$emit("update:pattern", t);
|
|
220
|
-
},
|
|
221
|
-
onTypeInput(t) {
|
|
222
|
-
this.$emit("update:selectedTypes", t, this.possibleTypes);
|
|
223
|
-
},
|
|
224
|
-
onModeChange(t) {
|
|
225
|
-
this.$emit("update:mode", t);
|
|
226
|
-
},
|
|
227
|
-
onToggleCaseSensitivePattern(t) {
|
|
228
|
-
this.$emit("update:caseSensitivePattern", t);
|
|
229
|
-
},
|
|
230
|
-
onToggleInversePattern(t) {
|
|
231
|
-
this.$emit("update:inversePattern", t);
|
|
232
|
-
},
|
|
233
|
-
validate() {
|
|
234
|
-
return this.$refs.twinlist.validate();
|
|
235
|
-
},
|
|
236
|
-
hasSelection() {
|
|
237
|
-
var t;
|
|
238
|
-
return !!((t = this.selectedValues) != null && t.length);
|
|
239
|
-
},
|
|
240
|
-
itemMatches(t) {
|
|
241
|
-
var a;
|
|
242
|
-
return B[this.mode].test(
|
|
243
|
-
this.mode === "type" ? (a = t.type) == null ? void 0 : a.id : t.text,
|
|
244
|
-
this.normalizedSearchTerm,
|
|
245
|
-
this.caseSensitivePattern,
|
|
246
|
-
this.inversePattern
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
function Ce(t, s, a, d, o, i) {
|
|
252
|
-
const l = b("ValueSwitch"), u = b("Label"), r = b("FilterIcon"), g = b("SearchInput"), y = b("Checkboxes"), f = b("Twinlist");
|
|
253
|
-
return S(), z("div", {
|
|
254
|
-
class: Y(["multi-mode-twinlist", { disabled: a.disabled }])
|
|
255
|
-
}, [
|
|
256
|
-
a.showMode ? (S(), _(u, {
|
|
257
|
-
key: 0,
|
|
258
|
-
active: a.withModeLabel,
|
|
259
|
-
text: a.modeLabel,
|
|
260
|
-
class: "label"
|
|
261
|
-
}, {
|
|
262
|
-
default: C(({ labelForId: v }) => [
|
|
263
|
-
w(l, {
|
|
264
|
-
id: v,
|
|
265
|
-
ref: "mode",
|
|
266
|
-
compact: a.compact,
|
|
267
|
-
"model-value": a.mode,
|
|
268
|
-
disabled: a.disabled,
|
|
269
|
-
"possible-values": i.possibleModes,
|
|
270
|
-
"onUpdate:modelValue": i.onModeChange
|
|
271
|
-
}, null, 8, ["id", "compact", "model-value", "disabled", "possible-values", "onUpdate:modelValue"])
|
|
272
|
-
]),
|
|
273
|
-
_: 1
|
|
274
|
-
}, 8, ["active", "text"])) : M("", !0),
|
|
275
|
-
a.mode === "regex" || a.mode === "wildcard" ? (S(), _(u, {
|
|
276
|
-
key: 1,
|
|
277
|
-
active: a.withPatternLabel,
|
|
278
|
-
text: a.patternLabel,
|
|
279
|
-
class: "label"
|
|
280
|
-
}, {
|
|
281
|
-
default: C(({ labelForId: v }) => [
|
|
282
|
-
w(g, {
|
|
283
|
-
id: v,
|
|
284
|
-
ref: "search",
|
|
285
|
-
"model-value": a.pattern,
|
|
286
|
-
label: a.patternLabel,
|
|
287
|
-
"initial-case-sensitive-search": a.caseSensitivePattern,
|
|
288
|
-
"initial-inverse-search": a.inversePattern,
|
|
289
|
-
placeholder: "Pattern",
|
|
290
|
-
"show-case-sensitive-search-button": "",
|
|
291
|
-
"show-inverse-search-button": "",
|
|
292
|
-
disabled: a.disabled,
|
|
293
|
-
tooltips: {
|
|
294
|
-
inverseSearch: "Move matching to other side"
|
|
295
|
-
},
|
|
296
|
-
compact: a.compact,
|
|
297
|
-
"onUpdate:modelValue": i.onPatternInput,
|
|
298
|
-
onToggleCaseSensitiveSearch: i.onToggleCaseSensitivePattern,
|
|
299
|
-
onToggleInverseSearch: i.onToggleInversePattern
|
|
300
|
-
}, {
|
|
301
|
-
icon: C(() => [
|
|
302
|
-
w(r)
|
|
303
|
-
]),
|
|
304
|
-
_: 2
|
|
305
|
-
}, 1032, ["id", "model-value", "label", "initial-case-sensitive-search", "initial-inverse-search", "disabled", "compact", "onUpdate:modelValue", "onToggleCaseSensitiveSearch", "onToggleInverseSearch"])
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
}, 8, ["active", "text"])) : M("", !0),
|
|
309
|
-
a.mode === "type" && i.possibleTypes.length > 0 ? (S(), _(u, {
|
|
310
|
-
key: 2,
|
|
311
|
-
active: a.withTypesLabel,
|
|
312
|
-
text: a.typesLabel,
|
|
313
|
-
class: "label"
|
|
314
|
-
}, {
|
|
315
|
-
default: C(() => [
|
|
316
|
-
w(y, {
|
|
317
|
-
"model-value": a.selectedTypes,
|
|
318
|
-
"possible-values": i.possibleTypes,
|
|
319
|
-
disabled: a.disabled,
|
|
320
|
-
"onUpdate:modelValue": i.onTypeInput
|
|
321
|
-
}, null, 8, ["model-value", "possible-values", "disabled", "onUpdate:modelValue"])
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
}, 8, ["active", "text"])) : M("", !0),
|
|
325
|
-
w(f, N(t.$attrs, {
|
|
326
|
-
ref: "twinlist",
|
|
327
|
-
disabled: i.selectionDisabled,
|
|
328
|
-
"show-search": a.mode === "manual" && a.showSearch,
|
|
329
|
-
"model-value": i.twinlistModelValue,
|
|
330
|
-
"possible-values": a.possibleValues,
|
|
331
|
-
compact: a.compact,
|
|
332
|
-
"onUpdate:modelValue": i.onManualInput
|
|
333
|
-
}), null, 16, ["disabled", "show-search", "model-value", "possible-values", "compact", "onUpdate:modelValue"])
|
|
334
|
-
], 2);
|
|
335
|
-
}
|
|
336
|
-
const Ve = /* @__PURE__ */ q(Te, [["render", Ce], ["__scopeId", "data-v-06592f92"]]), _e = ({
|
|
337
|
-
knownValuesSide: t,
|
|
338
|
-
possibleValueIds: s,
|
|
339
|
-
unknownValuesSide: a
|
|
340
|
-
}) => {
|
|
341
|
-
const d = new Set(t.previous), o = new Set(s), i = (l) => D(l, o);
|
|
342
|
-
a.setNext([
|
|
343
|
-
...i(a.previous),
|
|
344
|
-
...D(s, d)
|
|
345
|
-
]), t.setNext([
|
|
346
|
-
...i(t.previous),
|
|
347
|
-
...te(s, d)
|
|
348
|
-
]);
|
|
349
|
-
}, Pe = ({
|
|
350
|
-
data: t,
|
|
351
|
-
possibleValueIds: s
|
|
352
|
-
}) => {
|
|
353
|
-
const a = x({
|
|
354
|
-
selected: null,
|
|
355
|
-
deselected: null
|
|
356
|
-
}), d = x(null), o = (l) => {
|
|
357
|
-
d.value = l;
|
|
358
|
-
}, i = () => {
|
|
359
|
-
if (!d.value || !s.value)
|
|
360
|
-
return;
|
|
361
|
-
let l, u;
|
|
362
|
-
const { manuallyDeselected: r, manuallySelected: g, includeUnknownColumns: y } = d.value, f = {
|
|
363
|
-
previous: r,
|
|
364
|
-
setNext: (T) => {
|
|
365
|
-
l = T;
|
|
366
|
-
}
|
|
367
|
-
}, v = {
|
|
368
|
-
previous: g,
|
|
369
|
-
setNext: (T) => {
|
|
370
|
-
u = T;
|
|
371
|
-
}
|
|
372
|
-
}, P = y ? f : v, I = y ? v : f;
|
|
373
|
-
_e({
|
|
374
|
-
possibleValueIds: s.value,
|
|
375
|
-
knownValuesSide: P,
|
|
376
|
-
unknownValuesSide: I
|
|
377
|
-
}), a.value = {
|
|
378
|
-
selected: u,
|
|
379
|
-
deselected: l
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
return k(
|
|
383
|
-
() => t.value.manualFilter,
|
|
384
|
-
(l) => {
|
|
385
|
-
Object.is(d.value, l) ? a.value = {
|
|
386
|
-
selected: l.manuallySelected,
|
|
387
|
-
deselected: l.manuallyDeselected
|
|
388
|
-
} : (d.value = l, i());
|
|
389
|
-
},
|
|
390
|
-
{ immediate: !0 }
|
|
391
|
-
), k(() => s.value, i, {
|
|
392
|
-
immediate: !0
|
|
393
|
-
}), { selectedAndDeselected: a, setCurrentManualFilter: o };
|
|
394
|
-
}, Ie = /* @__PURE__ */ Z({
|
|
395
|
-
__name: "TwinlistControl",
|
|
396
|
-
props: {
|
|
397
|
-
...ae(),
|
|
398
|
-
twinlistSize: {
|
|
399
|
-
type: Number,
|
|
400
|
-
required: !1,
|
|
401
|
-
default: 10
|
|
402
|
-
},
|
|
403
|
-
twinlistLeftLabel: {
|
|
404
|
-
type: String,
|
|
405
|
-
required: !1,
|
|
406
|
-
default: "Excludes"
|
|
407
|
-
},
|
|
408
|
-
showUnknownValues: {
|
|
409
|
-
type: Boolean,
|
|
410
|
-
default: !1
|
|
411
|
-
},
|
|
412
|
-
twinlistRightLabel: {
|
|
413
|
-
type: String,
|
|
414
|
-
required: !1,
|
|
415
|
-
default: "Includes"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
setup(t) {
|
|
419
|
-
const s = t;
|
|
420
|
-
class a extends de {
|
|
421
|
-
toInternalState(n) {
|
|
422
|
-
return JSON.stringify(
|
|
423
|
-
n,
|
|
424
|
-
(c, p) => c === "selected" ? void 0 : p
|
|
425
|
-
);
|
|
426
|
-
}
|
|
427
|
-
equals(n, c) {
|
|
428
|
-
return n === c;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
const {
|
|
432
|
-
control: d,
|
|
433
|
-
disabled: o,
|
|
434
|
-
onChange: i
|
|
435
|
-
} = le({
|
|
436
|
-
props: s,
|
|
437
|
-
valueComparator: new a()
|
|
438
|
-
}), l = d;
|
|
439
|
-
let u;
|
|
440
|
-
const r = (e) => {
|
|
441
|
-
const n = ue(l.value.data, e);
|
|
442
|
-
i(n), u == null || u(n.manualFilter);
|
|
443
|
-
}, g = (e) => {
|
|
444
|
-
r({ selected: e });
|
|
445
|
-
}, y = (e) => {
|
|
446
|
-
if (e !== null)
|
|
447
|
-
if ("includedValues" in e) {
|
|
448
|
-
const { includedValues: n, excludedValues: c, includeUnknownValues: p } = e;
|
|
449
|
-
if (!n || !c)
|
|
450
|
-
return;
|
|
451
|
-
r({
|
|
452
|
-
manualFilter: {
|
|
453
|
-
manuallySelected: n,
|
|
454
|
-
manuallyDeselected: c,
|
|
455
|
-
includeUnknownColumns: p
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
} else
|
|
459
|
-
r({ manualFilter: { manuallySelected: e } });
|
|
460
|
-
}, f = (e) => {
|
|
461
|
-
r({ patternFilter: { pattern: e } });
|
|
462
|
-
}, v = (e) => {
|
|
463
|
-
r({ mode: e.toUpperCase() });
|
|
464
|
-
}, P = (e, n) => {
|
|
465
|
-
r({ typeFilter: { selectedTypes: e, typeDisplays: n } });
|
|
466
|
-
}, I = (e) => {
|
|
467
|
-
r({ patternFilter: { isInverted: e } });
|
|
468
|
-
}, T = (e) => {
|
|
469
|
-
r({ patternFilter: { isCaseSensitive: e } });
|
|
470
|
-
}, L = m(
|
|
471
|
-
() => {
|
|
472
|
-
var e;
|
|
473
|
-
return (e = l.value.uischema.options) == null ? void 0 : e.choicesProvider;
|
|
474
|
-
}
|
|
475
|
-
), V = se(
|
|
476
|
-
ne(L, null),
|
|
477
|
-
l.value
|
|
478
|
-
), U = x([]), { selectedAndDeselected: F, setCurrentManualFilter: j } = Pe({
|
|
479
|
-
data: m(() => l.value.data),
|
|
480
|
-
possibleValueIds: m(
|
|
481
|
-
() => {
|
|
482
|
-
var e;
|
|
483
|
-
return ((e = V.value) == null ? void 0 : e.map(({ id: n }) => n)) ?? null;
|
|
484
|
-
}
|
|
485
|
-
)
|
|
486
|
-
});
|
|
487
|
-
u = j;
|
|
488
|
-
const A = m(() => {
|
|
489
|
-
const { selected: e, deselected: n } = F.value;
|
|
490
|
-
return s.showUnknownValues ? {
|
|
491
|
-
includedValues: e,
|
|
492
|
-
excludedValues: n,
|
|
493
|
-
includeUnknownValues: l.value.data.manualFilter.includeUnknownColumns
|
|
494
|
-
} : e;
|
|
495
|
-
}), R = m(
|
|
496
|
-
() => F.value.selected === null ? $(me) : null
|
|
497
|
-
), O = (e) => typeof e > "u" ? {} : e.reduce(
|
|
498
|
-
(n, { id: c, text: p }) => ({ ...n, [c]: p }),
|
|
499
|
-
{}
|
|
500
|
-
), E = () => {
|
|
501
|
-
const e = l.value.data.typeFilter;
|
|
502
|
-
if (!e)
|
|
503
|
-
return [];
|
|
504
|
-
const n = e.selectedTypes, c = O(
|
|
505
|
-
e.typeDisplays
|
|
506
|
-
);
|
|
507
|
-
return n.map((p) => ({
|
|
508
|
-
id: p,
|
|
509
|
-
text: c[p] || p
|
|
510
|
-
}));
|
|
511
|
-
};
|
|
512
|
-
U.value = E(), L.value || ie("getPossibleValuesFromUiSchema")(l.value).then((e) => {
|
|
513
|
-
V.value = e;
|
|
514
|
-
});
|
|
515
|
-
const K = m(
|
|
516
|
-
() => {
|
|
517
|
-
var e, n;
|
|
518
|
-
return !!((n = (e = V.value) == null ? void 0 : e[0]) != null && n.hasOwnProperty("type"));
|
|
519
|
-
}
|
|
520
|
-
), W = m(
|
|
521
|
-
() => {
|
|
522
|
-
var e;
|
|
523
|
-
return ((e = l.value.uischema.options) == null ? void 0 : e.showMode) ?? !0;
|
|
524
|
-
}
|
|
525
|
-
), H = m(
|
|
526
|
-
() => {
|
|
527
|
-
var e;
|
|
528
|
-
return ((e = l.value.uischema.options) == null ? void 0 : e.showSearch) ?? !0;
|
|
529
|
-
}
|
|
530
|
-
), J = m(
|
|
531
|
-
() => {
|
|
532
|
-
var e;
|
|
533
|
-
return ((e = l.value.uischema.options) == null ? void 0 : e.excludedLabel) ?? s.twinlistLeftLabel;
|
|
534
|
-
}
|
|
535
|
-
), G = m(
|
|
536
|
-
() => {
|
|
537
|
-
var e;
|
|
538
|
-
return ((e = l.value.uischema.options) == null ? void 0 : e.includedLabel) ?? s.twinlistRightLabel;
|
|
539
|
-
}
|
|
540
|
-
);
|
|
541
|
-
return (e, n) => (S(), _(oe, {
|
|
542
|
-
control: h(l),
|
|
543
|
-
onControllingFlowVariableSet: r
|
|
544
|
-
}, {
|
|
545
|
-
default: C(({ labelForId: c }) => {
|
|
546
|
-
var p;
|
|
547
|
-
return [
|
|
548
|
-
w(h(Ve), N(e.$attrs, {
|
|
549
|
-
id: c,
|
|
550
|
-
"show-mode": W.value,
|
|
551
|
-
"show-search": H.value,
|
|
552
|
-
disabled: h(o),
|
|
553
|
-
"with-types": K.value,
|
|
554
|
-
"selected-types": (p = h(l).data.typeFilter) == null ? void 0 : p.selectedTypes,
|
|
555
|
-
"additional-possible-types": U.value,
|
|
556
|
-
pattern: h(l).data.patternFilter.pattern,
|
|
557
|
-
mode: h(l).data.mode.toLowerCase(),
|
|
558
|
-
"case-sensitive-pattern": h(l).data.patternFilter.isCaseSensitive,
|
|
559
|
-
"empty-state-component": R.value,
|
|
560
|
-
"inverse-pattern": h(l).data.patternFilter.isInverted,
|
|
561
|
-
"manual-selection": A.value,
|
|
562
|
-
"include-unknown-values": h(l).data.manualFilter.includeUnknownColumns,
|
|
563
|
-
"filter-chosen-values-on-possible-values-change": !1,
|
|
564
|
-
"mode-label": "Selection mode",
|
|
565
|
-
"possible-values": h(V) ?? [],
|
|
566
|
-
size: t.twinlistSize,
|
|
567
|
-
"left-label": J.value,
|
|
568
|
-
"right-label": G.value,
|
|
569
|
-
compact: "",
|
|
570
|
-
"show-resize-handle": "",
|
|
571
|
-
"onUpdate:selected": g,
|
|
572
|
-
"onUpdate:manualSelection": y,
|
|
573
|
-
"onUpdate:pattern": f,
|
|
574
|
-
"onUpdate:mode": v,
|
|
575
|
-
"onUpdate:selectedTypes": P,
|
|
576
|
-
"onUpdate:inversePattern": I,
|
|
577
|
-
"onUpdate:caseSensitivePattern": T
|
|
578
|
-
}), null, 16, ["id", "show-mode", "show-search", "disabled", "with-types", "selected-types", "additional-possible-types", "pattern", "mode", "case-sensitive-pattern", "empty-state-component", "inverse-pattern", "manual-selection", "include-unknown-values", "possible-values", "size", "left-label", "right-label"])
|
|
579
|
-
];
|
|
580
|
-
}),
|
|
581
|
-
_: 1
|
|
582
|
-
}, 8, ["control"]));
|
|
583
|
-
}
|
|
584
|
-
}), ke = /* @__PURE__ */ q(Ie, [["__scopeId", "data-v-968c3096"]]);
|
|
585
|
-
export {
|
|
586
|
-
ke as default
|
|
587
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, openBlock as o, createBlock as p, mergeProps as t } from "vue";
|
|
2
|
-
import { r as n } from "./index-1mTLieVA.js";
|
|
3
|
-
import { _ as s } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js";
|
|
4
|
-
const l = /* @__PURE__ */ e({
|
|
5
|
-
__name: "ValueSwitchControl",
|
|
6
|
-
props: n(),
|
|
7
|
-
setup(a) {
|
|
8
|
-
return (r, m) => (o(), p(s, t(r.$props, { type: "valueSwitch" }), null, 16));
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
l as default
|
|
13
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { computed as x, defineComponent as l, useAttrs as y, openBlock as i, createBlock as h, resolveDynamicComponent as D, mergeProps as a, unref as n, createElementBlock as g, createVNode as c, normalizeProps as d, guardReactiveProps as f, withCtx as w } from "vue";
|
|
2
|
-
import { a as L, r as u, _ as v, s as E } from "./index-1mTLieVA.js";
|
|
3
|
-
import { V } from "./VerticalLayoutBase-CI2PQj0c.js";
|
|
4
|
-
const $ = (t) => {
|
|
5
|
-
const { control: e, onChange: o, disabled: s } = L({ props: t }), r = () => s.value || o(!e.value.data), p = "#FFD800", _ = "#D9D9D9", m = "#FFEC80", k = "#ECECEC";
|
|
6
|
-
return {
|
|
7
|
-
fillColor: x(() => e.value.data ? s.value ? m : p : s.value ? k : _),
|
|
8
|
-
onClick: r,
|
|
9
|
-
disabled: s
|
|
10
|
-
};
|
|
11
|
-
}, b = /* @__PURE__ */ l({
|
|
12
|
-
__name: "Part",
|
|
13
|
-
props: {
|
|
14
|
-
...u(),
|
|
15
|
-
shape: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: !0
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(t) {
|
|
21
|
-
const e = t, o = y(), { fillColor: s, onClick: r, disabled: p } = $(e);
|
|
22
|
-
return (_, m) => (i(), h(D(t.shape), a(n(o), {
|
|
23
|
-
fill: n(s),
|
|
24
|
-
class: ["clickable", { disabled: n(p) }],
|
|
25
|
-
onClick: n(r)
|
|
26
|
-
}), null, 16, ["fill", "class", "onClick"]));
|
|
27
|
-
}
|
|
28
|
-
}), C = /* @__PURE__ */ v(b, [["__scopeId", "data-v-52c1596a"]]), B = /* @__PURE__ */ l({
|
|
29
|
-
__name: "Inner",
|
|
30
|
-
props: u(),
|
|
31
|
-
setup(t) {
|
|
32
|
-
const e = t;
|
|
33
|
-
return (o, s) => (i(), h(C, a(e, {
|
|
34
|
-
shape: "path",
|
|
35
|
-
d: "M47.2186 51.6276L47.5469 51.9134L47.8752 51.6276C53.7717 46.495 57.5 38.9326 57.5 30.5C57.5 22.0674 53.7717 14.505 47.8752 9.37237L47.5469 9.08662L47.2186 9.37237C41.3221 14.505 37.5938 22.0674 37.5938 30.5C37.5938 38.9326 41.3221 46.495 47.2186 51.6276Z",
|
|
36
|
-
stroke: "#201E1E"
|
|
37
|
-
}), null, 16));
|
|
38
|
-
}
|
|
39
|
-
}), P = /* @__PURE__ */ l({
|
|
40
|
-
__name: "Left",
|
|
41
|
-
props: u(),
|
|
42
|
-
setup(t) {
|
|
43
|
-
const e = t;
|
|
44
|
-
return (o, s) => (i(), h(C, a(e, {
|
|
45
|
-
shape: "circle",
|
|
46
|
-
cx: "29.5",
|
|
47
|
-
cy: "30.5",
|
|
48
|
-
r: "28",
|
|
49
|
-
stroke: "black"
|
|
50
|
-
}), null, 16));
|
|
51
|
-
}
|
|
52
|
-
}), F = /* @__PURE__ */ l({
|
|
53
|
-
__name: "Right",
|
|
54
|
-
props: u(),
|
|
55
|
-
setup(t) {
|
|
56
|
-
const e = t;
|
|
57
|
-
return (o, s) => (i(), h(C, a(e, {
|
|
58
|
-
shape: "circle",
|
|
59
|
-
cx: "65.5938",
|
|
60
|
-
cy: "30.5",
|
|
61
|
-
r: "28",
|
|
62
|
-
stroke: "black"
|
|
63
|
-
}), null, 16));
|
|
64
|
-
}
|
|
65
|
-
}), I = {
|
|
66
|
-
width: "95",
|
|
67
|
-
height: "60",
|
|
68
|
-
viewBox: "0 0 95 60",
|
|
69
|
-
fill: "none",
|
|
70
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
71
|
-
}, z = /* @__PURE__ */ l({
|
|
72
|
-
__name: "VennDiagram",
|
|
73
|
-
props: u(),
|
|
74
|
-
setup(t) {
|
|
75
|
-
const e = t, [o, s, r] = e.uischema.elements;
|
|
76
|
-
return (p, _) => (i(), g("svg", I, [
|
|
77
|
-
c(P, d(f({ ...e, uischema: n(s) })), null, 16),
|
|
78
|
-
c(F, d(f({ ...e, uischema: n(r) })), null, 16),
|
|
79
|
-
c(B, d(f({ ...e, uischema: n(o) })), null, 16)
|
|
80
|
-
]));
|
|
81
|
-
}
|
|
82
|
-
}), R = { class: "horizontal" }, q = /* @__PURE__ */ l({
|
|
83
|
-
__name: "VennDiagramLayout",
|
|
84
|
-
props: u(),
|
|
85
|
-
setup(t) {
|
|
86
|
-
const e = t, [o, s, r] = e.uischema.elements;
|
|
87
|
-
return (p, _) => (i(), g("div", R, [
|
|
88
|
-
c(V, {
|
|
89
|
-
elements: [n(o), n(s), n(r)]
|
|
90
|
-
}, {
|
|
91
|
-
default: w(({ element: m }) => [
|
|
92
|
-
c(n(E), a(e, {
|
|
93
|
-
uischema: m
|
|
94
|
-
}), null, 16, ["uischema"])
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}, 8, ["elements"]),
|
|
98
|
-
c(z, a(e, { class: "venn-diagram" }), null, 16)
|
|
99
|
-
]));
|
|
100
|
-
}
|
|
101
|
-
}), S = /* @__PURE__ */ v(q, [["__scopeId", "data-v-56846c14"]]);
|
|
102
|
-
export {
|
|
103
|
-
S as default
|
|
104
|
-
};
|