@voicenter-team/voicenter-ui-plus 3.0.0 → 3.0.2
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/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcButton/VcButton.css +1 -1
- package/library/assets/components/VcButton/VcButtonIcon.css +1 -1
- package/library/assets/components/VcDelimitedList/VcDelimitedList.css +1 -1
- package/library/assets/components/VcExcelUploader/VcExcelFileUploadBlock.css +1 -1
- package/library/assets/components/VcModal/VcModal.css +1 -1
- package/library/assets/components/VcSoundplayer/VcSoundPlayer.css +1 -1
- package/library/assets/components/VcSplitButton/VcSplitButton.css +1 -1
- package/library/assets/components/VcTable/VcTable.css +1 -1
- package/library/assets/entity/components/Form/VcBaseVerticalForm.css +1 -1
- package/library/assets/entity/components/Table/VcEntityListTable.css +1 -1
- package/library/assets/entity/components/Tabs/VcEntityEditableTabs.css +1 -1
- package/library/components/VcButton/VcButton.vue.mjs +3 -2
- package/library/components/VcButton/VcButtonIcon.vue.mjs +92 -5
- package/library/components/VcButton/VcButtonIcon.vue3.mjs +5 -0
- package/library/components/VcButton/VcToggleButton.vue.mjs +20 -7
- package/library/components/VcDelimitedList/VcDelimitedList.vue.mjs +194 -5
- package/library/components/VcDelimitedList/VcDelimitedList.vue3.mjs +5 -0
- package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue.mjs +140 -5
- package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue3.mjs +5 -0
- package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +6 -5
- package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +5 -3
- package/library/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.mjs +21 -18
- package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.mjs +4 -3
- package/library/components/VcFileUploader/VcFileUploader.vue2.mjs +11 -9
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +10 -9
- package/library/components/VcIcon/VcIcon.vue.mjs +7 -3
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +8 -7
- package/library/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.mjs +10 -9
- package/library/components/VcMdEditor/ParameterNode.vue2.mjs +6 -5
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +8 -7
- package/library/components/VcPagination/VcPaginationButton.vue.mjs +3 -2
- package/library/components/VcSelect/VcSelect.vue.mjs +9 -5
- package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +274 -5
- package/library/components/VcSoundplayer/VcSoundPlayer.vue3.mjs +5 -0
- package/library/components/VcSplitButton/VcSplitButton.vue.mjs +4 -3
- package/library/components/VcTable/VcTable.vue.mjs +1072 -6
- package/library/components/VcTable/VcTable.vue4.mjs +6 -0
- package/library/components/VcTree/VcTreeSelect.vue.mjs +8 -7
- package/library/entity/components/Button/VcEntityDeleteIconButton.vue.mjs +3 -2
- package/library/entity/components/Button/VcEntityEditIconButton.vue.mjs +3 -2
- package/library/entity/components/Form/VcBaseVerticalForm.vue.mjs +95 -5
- package/library/entity/components/Form/VcBaseVerticalForm.vue3.mjs +5 -0
- package/library/entity/components/Form/VcEntityVerticalCreateForm.vue.mjs +3 -2
- package/library/entity/components/Form/VcEntityVerticalEditForm.vue.mjs +9 -8
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +414 -5
- package/library/entity/components/Table/VcEntityListTable.vue3.mjs +5 -0
- package/library/entity/components/Tabs/VcEntityEditableTabs.vue.mjs +287 -5
- package/library/entity/components/Tabs/VcEntityEditableTabs.vue3.mjs +5 -0
- package/library/index.mjs +8 -0
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/plugin.mjs +272 -264
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +12 -12
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/types/components/VcButton/VcButton.vue.d.ts +1 -1
- package/library/types/components/VcButton/VcToggleButton.vue.d.ts +4 -0
- package/library/types/components/VcDelimitedList/VcDelimitedList.vue.d.ts +1 -2
- package/library/types/components/VcIcon/VcIcon.vue.d.ts +1 -0
- package/library/types/components/VcLoading/VcLoading.vue.d.ts +1 -1
- package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +1 -1
- package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +2 -2
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +3 -3
- package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +4 -4
- package/library/types/components/VcSipFlow/VcSipFlow.vue.d.ts +1 -1
- package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +1 -1
- package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +3 -3
- package/library/types/components/VcTable/VcTable.vue.d.ts +17 -17
- package/library/types/components/VcTree/VcTree.vue.d.ts +3 -3
- package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +3 -3
- package/library/types/types/OptionAndConfig.types.d.ts +1 -1
- package/library/types/types/VcTable.types.d.ts +2 -2
- package/library/types/types/VcTree.types.d.ts +2 -2
- package/package.json +1 -1
- package/library/components/VcButton/VcButtonIcon.vue2.mjs +0 -92
- package/library/components/VcDelimitedList/VcDelimitedList.vue2.mjs +0 -195
- package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue2.mjs +0 -141
- package/library/components/VcSoundplayer/VcSoundPlayer.vue2.mjs +0 -275
- package/library/components/VcTable/VcTable.vue2.mjs +0 -1069
- package/library/entity/components/Form/VcBaseVerticalForm.vue2.mjs +0 -96
- package/library/entity/components/Table/VcEntityListTable.vue2.mjs +0 -413
- package/library/entity/components/Tabs/VcEntityEditableTabs.vue2.mjs +0 -288
|
@@ -2,14 +2,16 @@ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, c
|
|
|
2
2
|
import { useVModel } from "@vueuse/core";
|
|
3
3
|
import { tVU } from "../../localization/index.mjs";
|
|
4
4
|
import _sfc_main$1 from "../VcViewSwitcher/VcViewSwitcher.vue.mjs";
|
|
5
|
-
import '../../assets/components/VcSwitch/VcSwitch.css';import '../../assets/components/VcInputNumber/VcInputNumber.css';import '../../assets/components/VcSelect/VcSelect.css';import '../../assets/components/VcViewSwitcher/VcViewSwitcher.css';/* empty css */
|
|
5
|
+
import '../../assets/components/VcTable/VcTable2.css';import '../../assets/components/VcTable/VcTable.css';import '../../assets/components/VcSwitch/VcSwitch.css';import '../../assets/components/VcInputNumber/VcInputNumber.css';import '../../assets/components/VcSelect/VcSelect.css';import '../../assets/components/VcViewSwitcher/VcViewSwitcher.css';/* empty css */
|
|
6
6
|
import _sfc_main$2 from "../VcSelect/VcSelect.vue.mjs";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import _sfc_main$3 from "../VcInputNumber/VcInputNumber.vue.mjs";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import _sfc_main$4 from "../VcSwitch/VcSwitch.vue.mjs";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
12
|
+
import _sfc_main$5 from "../VcTable/VcTable.vue.mjs";
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
13
15
|
const _hoisted_1 = { class: "w-full file-import-parse-result-block" };
|
|
14
16
|
const _hoisted_2 = { class: "sheets-navigation-block flex flex-wrap lg:flex-nowrap justify-between gap-2 items-center" };
|
|
15
17
|
const _hoisted_3 = { class: "result-top-actions" };
|
|
@@ -208,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
208
210
|
])
|
|
209
211
|
]),
|
|
210
212
|
createElementVNode("div", null, [
|
|
211
|
-
createVNode(
|
|
213
|
+
createVNode(_sfc_main$5, {
|
|
212
214
|
columns: sheetColumns.value,
|
|
213
215
|
options: tableData.value,
|
|
214
216
|
"has-actions": false,
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import _sfc_main$
|
|
2
|
+
import _sfc_main$4 from "../VcForm/VcForm.vue.mjs";
|
|
3
3
|
import { tVU } from "../../localization/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
|
|
4
|
+
import _sfc_main$1 from "../VcTable/VcTable.vue.mjs";
|
|
5
|
+
import '../../assets/components/VcButton/VcButton.css';import '../../assets/components/VcInput/VcInput.css';import '../../assets/components/VcForm/VcFormItem.css';import '../../assets/components/VcModal/VcModal.css';import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/components/VcTable/VcTable2.css';import '../../assets/components/VcTable/VcTable.css';/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
import _sfc_main$2 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import _sfc_main$3 from "../VcModal/VcModal.vue.mjs";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import _sfc_main$5 from "../VcForm/VcFormItem.vue.mjs";
|
|
9
12
|
/* empty css */
|
|
10
|
-
import _sfc_main$
|
|
13
|
+
import _sfc_main$6 from "../VcInput/VcInput.vue.mjs";
|
|
11
14
|
/* empty css */
|
|
12
|
-
import _sfc_main$
|
|
15
|
+
import _sfc_main$7 from "../VcButton/VcButton.vue.mjs";
|
|
13
16
|
/* empty css */
|
|
14
17
|
const _hoisted_1 = { class: "w-full excel-bind-result-table" };
|
|
15
18
|
const _hoisted_2 = { class: "flex-center px-2" };
|
|
@@ -102,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
105
|
};
|
|
103
106
|
return (_ctx, _cache) => {
|
|
104
107
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
105
|
-
createVNode(
|
|
108
|
+
createVNode(_sfc_main$1, {
|
|
106
109
|
columns: __props.bindTableHeader,
|
|
107
110
|
options: __props.bindResult,
|
|
108
111
|
"empty-data-text": unref(tVU).t("voicenterUi.general.no.data"),
|
|
@@ -118,7 +121,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
121
|
}, {
|
|
119
122
|
"checked-tooltip": withCtx(() => [
|
|
120
123
|
createElementVNode("div", _hoisted_2, [
|
|
121
|
-
createVNode(
|
|
124
|
+
createVNode(_sfc_main$2, {
|
|
122
125
|
"data-test-name": "remove-all-button",
|
|
123
126
|
color: "destructive",
|
|
124
127
|
icon: "vc-icon-recycle-bin",
|
|
@@ -128,13 +131,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
131
|
]),
|
|
129
132
|
"actions-column": withCtx(({ row }) => [
|
|
130
133
|
createElementVNode("div", _hoisted_3, [
|
|
131
|
-
createVNode(
|
|
134
|
+
createVNode(_sfc_main$2, {
|
|
132
135
|
"data-test-name": "item-edit-button",
|
|
133
136
|
color: "primary",
|
|
134
137
|
icon: "vc-icon-edit-pencil",
|
|
135
138
|
onClick: ($event) => onItemEdit(row)
|
|
136
139
|
}, null, 8, ["onClick"]),
|
|
137
|
-
createVNode(
|
|
140
|
+
createVNode(_sfc_main$2, {
|
|
138
141
|
"data-test-name": "item-delete-button",
|
|
139
142
|
color: "destructive",
|
|
140
143
|
icon: "vc-icon-recycle-bin",
|
|
@@ -144,7 +147,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
147
|
]),
|
|
145
148
|
_: 1
|
|
146
149
|
}, 8, ["columns", "options", "empty-data-text"]),
|
|
147
|
-
createVNode(_sfc_main$
|
|
150
|
+
createVNode(_sfc_main$3, {
|
|
148
151
|
visible: editModalOpen.value,
|
|
149
152
|
header: unref(tVU).t("voicenterUi.general.edit"),
|
|
150
153
|
onClose: onCloseModal
|
|
@@ -152,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
155
|
footer: withCtx(() => [
|
|
153
156
|
createElementVNode("div", _hoisted_4, [
|
|
154
157
|
createElementVNode("div", _hoisted_5, [
|
|
155
|
-
createVNode(_sfc_main$
|
|
158
|
+
createVNode(_sfc_main$7, {
|
|
156
159
|
"data-test-name": "cancel-button",
|
|
157
160
|
size: "large",
|
|
158
161
|
icon: "vc-icon-cancel",
|
|
@@ -167,7 +170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
167
170
|
})
|
|
168
171
|
]),
|
|
169
172
|
createElementVNode("div", _hoisted_6, [
|
|
170
|
-
createVNode(_sfc_main$
|
|
173
|
+
createVNode(_sfc_main$7, {
|
|
171
174
|
"data-test-name": "save-button",
|
|
172
175
|
size: "large",
|
|
173
176
|
icon: "vc-icon-save",
|
|
@@ -182,7 +185,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
182
185
|
])
|
|
183
186
|
]),
|
|
184
187
|
default: withCtx(() => [
|
|
185
|
-
createVNode(_sfc_main$
|
|
188
|
+
createVNode(_sfc_main$4, {
|
|
186
189
|
ref_key: "formRef",
|
|
187
190
|
ref: formRef,
|
|
188
191
|
class: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",
|
|
@@ -191,7 +194,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
191
194
|
}, {
|
|
192
195
|
default: withCtx(() => [
|
|
193
196
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.bindTableHeader, (item, index) => {
|
|
194
|
-
return openBlock(), createBlock(_sfc_main$
|
|
197
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
195
198
|
key: index,
|
|
196
199
|
label: item.columnItemLabel,
|
|
197
200
|
prop: item.columnItemKey,
|
|
@@ -201,7 +204,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
201
204
|
}]
|
|
202
205
|
}, {
|
|
203
206
|
default: withCtx(() => [
|
|
204
|
-
createVNode(_sfc_main$
|
|
207
|
+
createVNode(_sfc_main$6, {
|
|
205
208
|
modelValue: editModel.value[item.columnItemKey],
|
|
206
209
|
"onUpdate:modelValue": ($event) => editModel.value[item.columnItemKey] = $event
|
|
207
210
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '../../assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.css';
|
|
2
2
|
import { defineComponent, ref, computed, openBlock, createBlock, withCtx, withDirectives, createElementBlock, normalizeClass, Fragment, renderList, toDisplayString, unref, createElementVNode, createVNode } from "vue";
|
|
3
3
|
import _sfc_main$1 from "../VcPopover/VcPopover.vue.mjs";
|
|
4
|
-
import '../../assets/components/VcPopover/VcPopover.css';/* empty css */
|
|
5
|
-
import
|
|
4
|
+
import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/components/VcPopover/VcPopover.css';/* empty css */
|
|
5
|
+
import _sfc_main$2 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
6
|
+
/* empty css */
|
|
6
7
|
import { ClickOutside } from "element-plus";
|
|
7
8
|
const _hoisted_1 = { class: "flex" };
|
|
8
9
|
const _hoisted_2 = ["onClick"];
|
|
@@ -70,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
71
|
}, {
|
|
71
72
|
reference: withCtx(() => [
|
|
72
73
|
createElementVNode("div", _hoisted_1, [
|
|
73
|
-
createVNode(
|
|
74
|
+
createVNode(_sfc_main$2, {
|
|
74
75
|
class: normalizeClass([{ "mr-1 rtl:mr-0 rtl:ml-1": __props.inline }, "flex-shrink-0"]),
|
|
75
76
|
disabled: __props.disabled,
|
|
76
77
|
icon: "vc-icon-date-range",
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, unref, createBlock, createCommentVNode, createElementVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, Fragment, renderList } from "vue";
|
|
2
2
|
import _sfc_main$2 from "../VcButton/VcButton.vue.mjs";
|
|
3
|
-
import '../../assets/components/VcForm/UiComponents/VcInputLabel.css';import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcButton/VcButton.css';/* empty css */
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/components/VcForm/UiComponents/VcInputLabel.css';import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcDelimitedList/VcDelimitedList.css';import '../../assets/components/VcButton/VcButton.css';/* empty css */
|
|
4
|
+
import _sfc_main$4 from "../VcDelimitedList/VcDelimitedList.vue.mjs";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import _sfc_main$5 from "../VcTag/VcTag.vue.mjs";
|
|
6
7
|
/* empty css */
|
|
7
8
|
import { getFileSize } from "../../utils/helpers.mjs";
|
|
8
9
|
import _sfc_main$1 from "../VcForm/UiComponents/VcInputLabel.vue.mjs";
|
|
9
10
|
/* empty css */
|
|
10
11
|
import useInputBase from "../../composables/input/useInputBase.mjs";
|
|
11
12
|
import { tVU } from "../../localization/index.mjs";
|
|
12
|
-
import
|
|
13
|
+
import _sfc_main$3 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
14
|
+
/* empty css */
|
|
13
15
|
const _hoisted_1 = { class: "vc-input___file-uploader-wrapper" };
|
|
14
16
|
const _hoisted_2 = { class: "vc-input__file-uploader-wrapper-label" };
|
|
15
17
|
const _hoisted_3 = { class: "flex items-center w-max gap-2" };
|
|
@@ -291,7 +293,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
291
293
|
]),
|
|
292
294
|
_: 1
|
|
293
295
|
}, 8, ["type", "color", "icon", "size"]),
|
|
294
|
-
!__props.showFileName && items.value.length && !__props.hideClearAction ? (openBlock(), createBlock(
|
|
296
|
+
!__props.showFileName && items.value.length && !__props.hideClearAction ? (openBlock(), createBlock(_sfc_main$3, {
|
|
295
297
|
key: 0,
|
|
296
298
|
color: "destructive",
|
|
297
299
|
icon: "vc-icon-recycle-bin",
|
|
@@ -323,7 +325,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
323
325
|
createElementVNode("span", _hoisted_8, toDisplayString(errorText.value), 1)
|
|
324
326
|
])) : createCommentVNode("", true),
|
|
325
327
|
__props.showFileName && items.value.length ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
326
|
-
createVNode(
|
|
328
|
+
createVNode(_sfc_main$4, {
|
|
327
329
|
list: items.value,
|
|
328
330
|
limit: __props.maxLength,
|
|
329
331
|
trigger: "hover",
|
|
@@ -335,7 +337,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
335
337
|
data: item,
|
|
336
338
|
close: onTagClose
|
|
337
339
|
}, () => [
|
|
338
|
-
createVNode(_sfc_main$
|
|
340
|
+
createVNode(_sfc_main$5, {
|
|
339
341
|
label: item.name,
|
|
340
342
|
"max-content": __props.tagMaxContentWidth,
|
|
341
343
|
icon: __props.tagIcon,
|
|
@@ -345,7 +347,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
345
347
|
], true)
|
|
346
348
|
]),
|
|
347
349
|
reference: withCtx(({ listLength }) => [
|
|
348
|
-
createVNode(_sfc_main$
|
|
350
|
+
createVNode(_sfc_main$5, {
|
|
349
351
|
label: `+ ${listLength}`
|
|
350
352
|
}, null, 8, ["label"])
|
|
351
353
|
]),
|
|
@@ -359,7 +361,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
359
361
|
data: item,
|
|
360
362
|
close: onTagClose
|
|
361
363
|
}, () => [
|
|
362
|
-
createVNode(_sfc_main$
|
|
364
|
+
createVNode(_sfc_main$5, {
|
|
363
365
|
label: item.name,
|
|
364
366
|
icon: __props.tagIcon,
|
|
365
367
|
"max-content": __props.tagMaxContentWidth,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, renderList, unref, toDisplayString, createBlock, createTextVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { ElTooltip } from "element-plus";
|
|
3
|
-
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButton.css';import '../../assets/components/VcPopover/VcPopover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';/* empty css */
|
|
3
|
+
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/components/VcButton/VcButton.css';import '../../assets/components/VcPopover/VcPopover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { htmlHeadingMenuItems, htmlInsertMenuItems, getParameterDisplayLabel } from "./htmlEditor.config.mjs";
|
|
@@ -9,7 +9,8 @@ import _sfc_main$1 from "../VcPopover/VcPopover.vue.mjs";
|
|
|
9
9
|
import _sfc_main$2 from "../VcButton/VcButton.vue.mjs";
|
|
10
10
|
/* empty css */
|
|
11
11
|
import { tVU } from "../../localization/index.mjs";
|
|
12
|
-
import
|
|
12
|
+
import _sfc_main$4 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
13
|
+
/* empty css */
|
|
13
14
|
import _sfc_main$3 from "../VcIcon/VcIcon.vue.mjs";
|
|
14
15
|
/* empty css */
|
|
15
16
|
import { Heading, FileCode2, Bold, Italic, Link, Square, AlignEndVertical, Braces, ChevronRight, Check, Copy, CodeXml, Eye } from "@lucide/vue";
|
|
@@ -181,7 +182,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
181
182
|
teleported: __props.isTeleported
|
|
182
183
|
}, {
|
|
183
184
|
default: withCtx(() => [
|
|
184
|
-
createVNode(
|
|
185
|
+
createVNode(_sfc_main$4, {
|
|
185
186
|
icon: unref(Bold),
|
|
186
187
|
disabled: toolbarDisabled.value,
|
|
187
188
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("wrap-selection", "<strong>", "</strong>"))
|
|
@@ -194,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
194
195
|
teleported: __props.isTeleported
|
|
195
196
|
}, {
|
|
196
197
|
default: withCtx(() => [
|
|
197
|
-
createVNode(
|
|
198
|
+
createVNode(_sfc_main$4, {
|
|
198
199
|
icon: unref(Italic),
|
|
199
200
|
disabled: toolbarDisabled.value,
|
|
200
201
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("wrap-selection", "<em>", "</em>"))
|
|
@@ -207,7 +208,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
207
208
|
teleported: __props.isTeleported
|
|
208
209
|
}, {
|
|
209
210
|
default: withCtx(() => [
|
|
210
|
-
createVNode(
|
|
211
|
+
createVNode(_sfc_main$4, {
|
|
211
212
|
icon: unref(Link),
|
|
212
213
|
disabled: toolbarDisabled.value,
|
|
213
214
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("insert-link"))
|
|
@@ -220,7 +221,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
221
|
teleported: __props.isTeleported
|
|
221
222
|
}, {
|
|
222
223
|
default: withCtx(() => [
|
|
223
|
-
createVNode(
|
|
224
|
+
createVNode(_sfc_main$4, {
|
|
224
225
|
icon: unref(Square),
|
|
225
226
|
disabled: toolbarDisabled.value,
|
|
226
227
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("wrap-selection", "<div>", "</div>"))
|
|
@@ -233,7 +234,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
233
234
|
teleported: __props.isTeleported
|
|
234
235
|
}, {
|
|
235
236
|
default: withCtx(() => [
|
|
236
|
-
createVNode(
|
|
237
|
+
createVNode(_sfc_main$4, {
|
|
237
238
|
icon: unref(AlignEndVertical),
|
|
238
239
|
disabled: toolbarDisabled.value,
|
|
239
240
|
onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("wrap-selection", '<div dir="rtl">', "</div>"))
|
|
@@ -375,7 +376,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
375
376
|
teleported: __props.isTeleported
|
|
376
377
|
}, {
|
|
377
378
|
default: withCtx(() => [
|
|
378
|
-
createVNode(
|
|
379
|
+
createVNode(_sfc_main$4, {
|
|
379
380
|
icon: __props.isCopied ? unref(Check) : unref(Copy),
|
|
380
381
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("copy-content"))
|
|
381
382
|
}, null, 8, ["icon"])
|
|
@@ -387,7 +388,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
387
388
|
teleported: __props.isTeleported
|
|
388
389
|
}, {
|
|
389
390
|
default: withCtx(() => [
|
|
390
|
-
createVNode(
|
|
391
|
+
createVNode(_sfc_main$4, {
|
|
391
392
|
icon: __props.isPreviewMode ? unref(CodeXml) : unref(Eye),
|
|
392
393
|
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("toggle-preview"))
|
|
393
394
|
}, null, 8, ["icon"])
|
|
@@ -7,8 +7,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
props: {
|
|
8
8
|
icon: { default: void 0 },
|
|
9
9
|
size: { default: void 0 },
|
|
10
|
-
strokeWidth: { default:
|
|
11
|
-
color: { default: void 0 }
|
|
10
|
+
strokeWidth: { default: 1.6 },
|
|
11
|
+
color: { default: void 0 },
|
|
12
|
+
loading: { type: Boolean }
|
|
12
13
|
},
|
|
13
14
|
setup(__props) {
|
|
14
15
|
const props = __props;
|
|
@@ -99,7 +100,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
100
|
return (_ctx, _cache) => {
|
|
100
101
|
return hasIcon.value && isRenderable.value ? (openBlock(), createBlock(resolveDynamicComponent(resolvedTag.value), {
|
|
101
102
|
key: 0,
|
|
102
|
-
class: normalizeClass(
|
|
103
|
+
class: normalizeClass([
|
|
104
|
+
iconClass.value,
|
|
105
|
+
{ "motion-safe:animate-spin": __props.loading }
|
|
106
|
+
]),
|
|
103
107
|
"stroke-width": lucideStrokeWidth.value,
|
|
104
108
|
size: lucideSize.value,
|
|
105
109
|
color: lucideColor.value,
|
|
@@ -2,16 +2,17 @@ import '../../../assets/components/VcJsonSchema/Components/JsonSchemaEditor.css'
|
|
|
2
2
|
import { defineComponent, useCssVars, ref, computed, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, createCommentVNode, createBlock, Fragment, renderList } from "vue";
|
|
3
3
|
import { useVModel } from "@vueuse/core";
|
|
4
4
|
import { schemaTypeOptions } from "../helpers/jsonSchema.enum.mjs";
|
|
5
|
-
import _sfc_main$
|
|
5
|
+
import _sfc_main$6 from "../PropertySetup/JsonSchemaPropertyModal.vue.mjs";
|
|
6
6
|
import { renamePropertyAndKeepKeyPrecedence } from "../helpers/jsonSchema.helper.mjs";
|
|
7
7
|
import { tVU } from "../../../localization/index.mjs";
|
|
8
8
|
import _sfc_main$2 from "../../VcInput/VcInput.vue.mjs";
|
|
9
|
-
import '../../../assets/components/VcIcon/VcIcon.css';import '../../../assets/components/VcCheckbox/VcCheckbox.css';import '../../../assets/components/VcSelect/VcSelect.css';import '../../../assets/components/VcInput/VcInput.css';/* empty css */
|
|
9
|
+
import '../../../assets/components/VcIcon/VcIcon.css';import '../../../assets/components/VcButton/VcButtonIcon.css';import '../../../assets/components/VcCheckbox/VcCheckbox.css';import '../../../assets/components/VcSelect/VcSelect.css';import '../../../assets/components/VcInput/VcInput.css';/* empty css */
|
|
10
10
|
import _sfc_main$3 from "../../VcSelect/VcSelect.vue.mjs";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import _sfc_main$4 from "../../VcCheckbox/VcCheckbox.vue.mjs";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import
|
|
14
|
+
import _sfc_main$5 from "../../VcButton/VcButtonIcon.vue.mjs";
|
|
15
|
+
/* empty css */
|
|
15
16
|
import _sfc_main$1 from "../../VcIcon/VcIcon.vue.mjs";
|
|
16
17
|
/* empty css */
|
|
17
18
|
import { ChevronDown, ChevronRight, Settings, Plus, X } from "@lucide/vue";
|
|
@@ -350,17 +351,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
350
351
|
}, null, 8, ["model-value", "title"])
|
|
351
352
|
])),
|
|
352
353
|
createElementVNode("div", _hoisted_14, [
|
|
353
|
-
createVNode(
|
|
354
|
+
createVNode(_sfc_main$5, {
|
|
354
355
|
color: "primary-alternative",
|
|
355
356
|
icon: unref(Settings),
|
|
356
357
|
onClick: openPropertyEditModal
|
|
357
358
|
}, null, 8, ["icon"]),
|
|
358
|
-
isObject.value ? (openBlock(), createBlock(
|
|
359
|
+
isObject.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
359
360
|
key: 0,
|
|
360
361
|
icon: unref(Plus),
|
|
361
362
|
onClick: addNewProperty
|
|
362
363
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
363
|
-
!__props.root && !__props.isItem ? (openBlock(), createBlock(
|
|
364
|
+
!__props.root && !__props.isItem ? (openBlock(), createBlock(_sfc_main$5, {
|
|
364
365
|
key: 1,
|
|
365
366
|
color: "destructive",
|
|
366
367
|
icon: unref(X),
|
|
@@ -403,7 +404,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
403
404
|
"onUpdate:modelValue": onUpdateItemsProperty
|
|
404
405
|
}, null, 8, ["model-value", "deep", "custom", "modal-append-to"])
|
|
405
406
|
])) : createCommentVNode("", true),
|
|
406
|
-
createVNode(_sfc_main$
|
|
407
|
+
createVNode(_sfc_main$6, {
|
|
407
408
|
ref_key: "jsonSchemaPropertyModalRef",
|
|
408
409
|
ref: jsonSchemaPropertyModalRef,
|
|
409
410
|
"modal-append-to": __props.modalAppendTo,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, computed, openBlock, createBlock, unref, withCtx, createElementVNode, toDisplayString, createVNode, createElementBlock, createCommentVNode, Fragment, renderList, normalizeClass, resolveDynamicComponent, mergeProps, createTextVNode, nextTick } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../VcModal/VcModal.vue.mjs";
|
|
3
|
-
import '../../../assets/components/VcButton/VcButton.css';import '../../../assets/components/VcInput/VcInput.css';import '../../../assets/components/VcForm/VcFormItem.css';import '../../../assets/components/VcModal/VcModal.css';/* empty css */
|
|
3
|
+
import '../../../assets/components/VcButton/VcButton.css';import '../../../assets/components/VcButton/VcButtonIcon.css';import '../../../assets/components/VcInput/VcInput.css';import '../../../assets/components/VcForm/VcFormItem.css';import '../../../assets/components/VcModal/VcModal.css';/* empty css */
|
|
4
4
|
import { schemaTypeSetupData, getMainProperties } from "../helpers/jsonSchema.enum.mjs";
|
|
5
5
|
import { getPropertyData } from "../helpers/jsonSchema.helper.mjs";
|
|
6
6
|
import { tVU } from "../../../localization/index.mjs";
|
|
@@ -9,8 +9,9 @@ import _sfc_main$3 from "../../VcForm/VcFormItem.vue.mjs";
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
import _sfc_main$4 from "../../VcInput/VcInput.vue.mjs";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
|
|
12
|
+
import _sfc_main$5 from "../../VcButton/VcButtonIcon.vue.mjs";
|
|
13
|
+
/* empty css */
|
|
14
|
+
import _sfc_main$6 from "../../VcButton/VcButton.vue.mjs";
|
|
14
15
|
/* empty css */
|
|
15
16
|
import { X, Plus, Check } from "@lucide/vue";
|
|
16
17
|
const _hoisted_1 = { class: "w-full text-sm direction-ltr" };
|
|
@@ -142,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
143
|
}, {
|
|
143
144
|
footer: withCtx(() => [
|
|
144
145
|
createElementVNode("div", _hoisted_15, [
|
|
145
|
-
createVNode(_sfc_main$
|
|
146
|
+
createVNode(_sfc_main$6, {
|
|
146
147
|
icon: "vc-icon-cancel",
|
|
147
148
|
type: "outline",
|
|
148
149
|
color: "secondary",
|
|
@@ -153,7 +154,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
153
154
|
]),
|
|
154
155
|
_: 1
|
|
155
156
|
}),
|
|
156
|
-
createVNode(_sfc_main$
|
|
157
|
+
createVNode(_sfc_main$6, {
|
|
157
158
|
icon: "vc-icon-save",
|
|
158
159
|
color: "primary",
|
|
159
160
|
onClick: saveModal
|
|
@@ -270,7 +271,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
270
271
|
"onUpdate:modelValue": ($event) => setCustomFieldValue(field, $event)
|
|
271
272
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
272
273
|
]),
|
|
273
|
-
createVNode(
|
|
274
|
+
createVNode(_sfc_main$5, {
|
|
274
275
|
icon: unref(X),
|
|
275
276
|
small: "",
|
|
276
277
|
color: "destructive",
|
|
@@ -279,7 +280,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
279
280
|
]);
|
|
280
281
|
}), 128))
|
|
281
282
|
]),
|
|
282
|
-
!addPropertyState.value ? (openBlock(), createBlock(
|
|
283
|
+
!addPropertyState.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
283
284
|
key: 0,
|
|
284
285
|
icon: unref(Plus),
|
|
285
286
|
small: "",
|
|
@@ -303,13 +304,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
303
304
|
}, null, 8, ["modelValue"])
|
|
304
305
|
]),
|
|
305
306
|
createElementVNode("div", _hoisted_12, [
|
|
306
|
-
createVNode(
|
|
307
|
+
createVNode(_sfc_main$5, {
|
|
307
308
|
icon: unref(Check),
|
|
308
309
|
small: "",
|
|
309
310
|
color: "success",
|
|
310
311
|
onClick: addCustomPropertyConfirm
|
|
311
312
|
}, null, 8, ["icon"]),
|
|
312
|
-
createVNode(
|
|
313
|
+
createVNode(_sfc_main$5, {
|
|
313
314
|
icon: unref(X),
|
|
314
315
|
small: "",
|
|
315
316
|
color: "destructive",
|
|
@@ -2,8 +2,9 @@ import { defineComponent, toRef, ref, computed, watch, openBlock, createElementB
|
|
|
2
2
|
import { useWidgetViewContext } from "@prosemirror-adapter/vue";
|
|
3
3
|
import { NodeParameterIcons } from "./mdEditor.config.mjs";
|
|
4
4
|
import _sfc_main$2 from "../VcInput/VcInput.vue.mjs";
|
|
5
|
-
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcInput/VcInput.css';/* empty css */
|
|
6
|
-
import
|
|
5
|
+
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/components/VcInput/VcInput.css';/* empty css */
|
|
6
|
+
import _sfc_main$3 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
7
|
+
/* empty css */
|
|
7
8
|
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
8
9
|
/* empty css */
|
|
9
10
|
import { Check, X } from "@lucide/vue";
|
|
@@ -69,18 +70,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
70
|
}, null, 8, ["modelValue"])
|
|
70
71
|
]),
|
|
71
72
|
createElementVNode("div", _hoisted_3, [
|
|
72
|
-
createVNode(
|
|
73
|
+
createVNode(_sfc_main$3, {
|
|
73
74
|
icon: unref(Check),
|
|
74
75
|
onClick: withModifiers(confirm, ["stop"])
|
|
75
76
|
}, null, 8, ["icon"]),
|
|
76
|
-
createVNode(
|
|
77
|
+
createVNode(_sfc_main$3, {
|
|
77
78
|
color: "secondary",
|
|
78
79
|
icon: unref(X),
|
|
79
80
|
onClick: withModifiers(cancel, ["stop"])
|
|
80
81
|
}, null, 8, ["icon"])
|
|
81
82
|
])
|
|
82
83
|
])) : createCommentVNode("", true),
|
|
83
|
-
createVNode(
|
|
84
|
+
createVNode(_sfc_main$3, {
|
|
84
85
|
color: "secondary",
|
|
85
86
|
icon: unref(X),
|
|
86
87
|
onClick: withModifiers(clear, ["stop"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useAttrs, ref, computed, onMounted, nextTick, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, normalizeStyle, normalizeClass, createElementBlock, createCommentVNode, mergeProps, isRef } from "vue";
|
|
2
2
|
import { MilkdownProvider } from "@milkdown/vue";
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';import '../../assets/components/VcMdEditor/VcMdEditorContent.css';/* empty css */
|
|
3
|
+
import _sfc_main$3 from "./VcMdEditorContent.vue.mjs";
|
|
4
|
+
import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';import '../../assets/components/VcMdEditor/VcMdEditorContent.css';/* empty css */
|
|
5
5
|
import { useVModel } from "@vueuse/core";
|
|
6
6
|
import { convertToUnit } from "../../utils/helpers.mjs";
|
|
7
7
|
import { markdown } from "@codemirror/lang-markdown";
|
|
@@ -14,7 +14,8 @@ import { ElTooltip } from "element-plus";
|
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
import { tVU } from "../../localization/index.mjs";
|
|
17
|
-
import
|
|
17
|
+
import _sfc_main$2 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
18
|
+
/* empty css */
|
|
18
19
|
import { Check, Copy, CodeXml, TextQuote, AlignStartVertical, AlignEndVertical } from "@lucide/vue";
|
|
19
20
|
const _hoisted_1 = {
|
|
20
21
|
key: 0,
|
|
@@ -193,7 +194,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
194
|
teleported: __props.isTeleported
|
|
194
195
|
}, {
|
|
195
196
|
default: withCtx(() => [
|
|
196
|
-
createVNode(
|
|
197
|
+
createVNode(_sfc_main$2, {
|
|
197
198
|
icon: isCopied.value ? unref(Check) : unref(Copy),
|
|
198
199
|
onClick: onCopyContent
|
|
199
200
|
}, null, 8, ["icon"])
|
|
@@ -205,7 +206,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
206
|
teleported: __props.isTeleported
|
|
206
207
|
}, {
|
|
207
208
|
default: withCtx(() => [
|
|
208
|
-
createVNode(
|
|
209
|
+
createVNode(_sfc_main$2, {
|
|
209
210
|
icon: editorMode.value ? unref(CodeXml) : unref(TextQuote),
|
|
210
211
|
onClick: _cache[0] || (_cache[0] = ($event) => editorMode.value = !editorMode.value)
|
|
211
212
|
}, null, 8, ["icon"])
|
|
@@ -217,7 +218,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
217
218
|
teleported: __props.isTeleported
|
|
218
219
|
}, {
|
|
219
220
|
default: withCtx(() => [
|
|
220
|
-
createVNode(
|
|
221
|
+
createVNode(_sfc_main$2, {
|
|
221
222
|
icon: alignMode.value === "rtl" ? unref(AlignStartVertical) : unref(AlignEndVertical),
|
|
222
223
|
onClick: changeDirection
|
|
223
224
|
}, null, 8, ["icon"])
|
|
@@ -227,7 +228,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
227
228
|
])
|
|
228
229
|
])) : createCommentVNode("", true),
|
|
229
230
|
createElementVNode("div", _hoisted_4, [
|
|
230
|
-
editorMode.value ? (openBlock(), createBlock(_sfc_main$
|
|
231
|
+
editorMode.value ? (openBlock(), createBlock(_sfc_main$3, mergeProps({
|
|
231
232
|
key: 0,
|
|
232
233
|
ref_key: "milkdownEditorContentRef",
|
|
233
234
|
ref: milkdownEditorContentRef,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import _sfc_main$1 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
3
|
+
import '../../assets/components/VcButton/VcButtonIcon.css';/* empty css */
|
|
3
4
|
const DEFAULT_TYPE = "default";
|
|
4
5
|
const DEFAULT_COLOR = "primary";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -12,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
},
|
|
13
14
|
setup(__props) {
|
|
14
15
|
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createBlock(
|
|
16
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
16
17
|
icon: __props.icon,
|
|
17
18
|
type: __props.type,
|
|
18
19
|
color: __props.color,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, markRaw, h, watch, openBlock, createBlock, unref, mergeProps, isRef, createSlots, withCtx, renderSlot, createElementBlock, Fragment, createVNode, createTextVNode, toDisplayString, createCommentVNode, renderList, normalizeStyle, normalizeClass } from "vue";
|
|
1
|
+
import { defineComponent, computed, markRaw, h, watch, openBlock, createBlock, unref, mergeProps, isRef, createSlots, withCtx, renderSlot, createElementBlock, Fragment, createVNode, createTextVNode, toDisplayString, createCommentVNode, renderList, createElementVNode, normalizeStyle, normalizeClass } from "vue";
|
|
2
2
|
import { ElSelect } from "element-plus";
|
|
3
3
|
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcForm/VcFormItem.css';import '../../assets/components/VcCheckbox/VcCheckbox.css';import '../../assets/components/VcSelect/VcSelectOption.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/select.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tag.css';import '../../assets/node_modules/element-plus/theme-chalk/src/autocomplete.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form-item.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
|
|
4
4
|
import '../../assets/components/VcSelect/VcSelect.css';/* empty css */
|
|
@@ -42,6 +42,7 @@ import { useVModel } from "@vueuse/core";
|
|
|
42
42
|
import useOptionMethods from "../../composables/option/useOptionMethods.mjs";
|
|
43
43
|
import { tVU } from "../../localization/index.mjs";
|
|
44
44
|
import { Loader } from "@lucide/vue";
|
|
45
|
+
const _hoisted_1 = { class: "flex-center overflow-hidden" };
|
|
45
46
|
const COLOR_CLASS = "vc-select--";
|
|
46
47
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
48
|
...{
|
|
@@ -312,10 +313,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
312
313
|
__props.loading && !_ctx.$slots["prefix-icon"] ? {
|
|
313
314
|
name: "prefix",
|
|
314
315
|
fn: withCtx(() => [
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
createElementVNode("span", _hoisted_1, [
|
|
317
|
+
createVNode(_sfc_main$1, {
|
|
318
|
+
icon: unref(Loader),
|
|
319
|
+
size: __props.size === "small" ? 14 : 16,
|
|
320
|
+
loading: ""
|
|
321
|
+
}, null, 8, ["icon", "size"])
|
|
322
|
+
])
|
|
319
323
|
]),
|
|
320
324
|
key: "0"
|
|
321
325
|
} : __props.prefixIcon || _ctx.$slots["prefix-icon"] ? {
|