@voicenter-team/voicenter-ui-plus 4.0.0-beta.4 → 4.0.0-beta.6
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 +116 -57
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunRow.css +1 -1
- package/library/assets/components/VcAgentRun/VcAgentRunCard.css +1 -1
- package/library/assets/components/VcAgentRun/VcAgentRunGroup.css +1 -1
- package/library/assets/components/VcApprovalCard/VcApprovalCard.css +1 -1
- package/library/assets/components/VcAskUserCard/VcAskUserCard.css +1 -1
- package/library/assets/components/VcAutocomplete/VcAutocomplete.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/VcButton/VcToggleButton.css +1 -1
- package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -1
- package/library/assets/components/VcCheckbox/VcCheckbox.css +1 -1
- package/library/assets/components/VcCodeBlock/VcCodeBlock.css +1 -1
- package/library/assets/components/VcCollapse/VcCollapseItem.css +1 -1
- package/library/assets/components/VcColorPicker/VcColorPicker.css +1 -1
- package/library/assets/components/VcDatePicker/VcDatePicker.css +1 -1
- package/library/assets/components/VcDatePickerPanel/VcDatePickerPanel.css +1 -1
- package/library/assets/components/VcDropdown/VcDropdownItem.css +1 -1
- package/library/assets/components/VcEmojiPicker/VcEmojiPicker.css +1 -1
- package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.css +1 -1
- package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileItem.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderArea.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcForm/UiComponents/VcInputLabel.css +1 -1
- package/library/assets/components/VcHyperLink/VcHyperLink.css +1 -1
- package/library/assets/components/VcImageUploader/VcImageUploader.css +1 -1
- package/library/assets/components/VcInput/VcInput.css +1 -1
- package/library/assets/components/VcInputNumber/VcInputNumber.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonCodeMirror.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerCards.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerKey.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerState.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerValue.css +1 -1
- package/library/assets/components/VcJsonViewer/VcJsonViewer.css +1 -1
- package/library/assets/components/VcLightbox/VcLightbox.css +1 -1
- package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
- package/library/assets/components/VcMdEditor/VcMdEditorContent.css +1 -1
- package/library/assets/components/VcMessage/VcMessage.css +1 -1
- package/library/assets/components/VcMessage/reactions/VcMessageReactionBar.css +1 -1
- package/library/assets/components/VcOtpInput/VcOtpInput.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfDocumentViewerFooter.css +1 -1
- package/library/assets/components/VcRadio/VcRadio.css +1 -1
- package/library/assets/components/VcRadioButtons/VcRadioButtonsGroup.css +1 -1
- package/library/assets/components/VcRadioTabs/UiComponents/VcRadioTabsNav.css +1 -1
- package/library/assets/components/VcRadioTabs/VcRadioTabs.css +1 -1
- package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
- package/library/assets/components/VcSelect/VcSelect.css +1 -1
- package/library/assets/components/VcSelect/VcSelectOption.css +1 -1
- package/library/assets/components/VcSipFlow/VcSipFlow.css +1 -1
- package/library/assets/components/VcSoundplayer/VcPlayerPlaybackRate.css +1 -1
- package/library/assets/components/VcSoundplayer/VcSoundPlayerMarker.css +1 -1
- package/library/assets/components/VcSplitButton/VcSplitButton.css +1 -1
- package/library/assets/components/VcSwitch/VcSwitch.css +1 -1
- package/library/assets/components/VcTable/VcTable.css +1 -1
- package/library/assets/components/VcTabs/VcTabNav.css +1 -1
- package/library/assets/components/VcTag/VcTag.css +1 -1
- package/library/assets/components/VcTagInput/VcTagInput.css +1 -1
- package/library/assets/components/VcToolCall/VcToolCall.css +1 -1
- package/library/assets/components/VcTour/VcTour.css +1 -1
- package/library/assets/components/VcTransfer/VcTransfer.css +1 -1
- package/library/assets/components/VcTree/VcTreeSelect.css +1 -1
- package/library/assets/components/VcVerticalTabs/VcVerticalTabs.css +1 -1
- package/library/assets/components/VcVerticalTabs/VerticalTabNav.css +1 -1
- package/library/assets/entity/components/Tabs/VcEntityEditableTabs.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/tree.css +1 -1
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcExcelFileProcessLoader.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcFileImportErrorsCard.vue.mjs +2 -2
- package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +4 -4
- package/library/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.mjs +0 -1
- package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.mjs +2 -2
- package/library/components/VcHtmlEditor/VcHtmlEditor.vue.mjs +1 -1
- package/library/components/VcIconPicker/VcIconPicker.vue.mjs +2 -2
- package/library/components/VcImageUploader/VcImageUploader.vue.mjs +4 -4
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.mjs +9 -4
- package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue2.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
- package/library/components/VcPdfViewer/VcPdfDocumentCard.vue.mjs +3 -3
- package/library/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.mjs +2 -2
- package/library/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.mjs +4 -4
- package/library/components/VcSegmented/VcSegmented.vue.mjs +88 -41
- package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +1 -1
- package/library/components/VcSipFlow/VcSipFlow.vue.mjs +1 -3
- package/library/components/VcSoundplayer/VcPlayerPlayStopButton.vue.mjs +4 -4
- package/library/components/VcSoundplayer/VcPlayerPlaybackRate.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcPlayerSkipButtons.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcSoundPlayerMarker.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundVolume.vue.mjs +2 -2
- package/library/components/VcSoundplayer/player.options.mjs +2 -2
- package/library/components/VcTable/VcTable.vue.mjs +5 -8
- package/library/components/VcTabs/VcTabNav.vue.mjs +45 -32
- package/library/components/VcTabs/VcTabPane.vue.mjs +12 -3
- package/library/components/VcTour/VcTour.vue.mjs +104 -16
- package/library/components/VcTree/VcTree.vue.mjs +1 -1
- package/library/components/VcTree/VcTreeSelect.vue.mjs +1 -1
- package/library/components/VcWizard/VcSummaryProgress.vue.mjs +1 -1
- package/library/components/VcWizard/VcSummaryStep.vue.mjs +3 -3
- package/library/components/VcWizard/VcWizard.vue.mjs +2 -16
- package/library/entity/components/Form/VcEntityVerticalEditForm.vue.mjs +6 -10
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +1 -2
- package/library/entity/components/Tabs/VcEntityEditableTabs.vue.mjs +51 -7
- package/library/font/index.mjs +1 -1
- package/library/index.mjs +49 -52
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/plugin-components.gen.mjs +133 -136
- package/library/plugin.mjs +49 -52
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +67 -71
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs +1 -1
- package/library/theme/index.mjs.br +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/theme/themeMerge.mjs +2 -0
- package/library/theme/themes.json.mjs +33 -144
- package/library/types/components/VcApprovalCard/VcApprovalCard.vue.d.ts +1 -1
- package/library/types/components/VcButton/VcToggleButton.vue.d.ts +1 -1
- package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +3 -3
- package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +3 -3
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +1 -1
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +1 -1
- package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +25 -16
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +3 -3
- package/library/types/components/VcTable/VcTable.vue.d.ts +22 -22
- package/library/types/components/VcTabs/VcTabPane.vue.d.ts +8 -0
- package/library/types/components/VcTabs/VcTabs.vue.d.ts +2 -0
- package/library/types/components/VcTag/VcTag.vue.d.ts +1 -1
- package/library/types/components/VcToolCall/VcToolCall.vue.d.ts +1 -1
- package/library/types/components/exports.d.ts +3 -5
- package/library/types/components.gen.d.ts +1 -2
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +14 -8
- package/library/types/theme/themes.json.d.ts +31 -136
- package/library/types/types/ExcelParser.types.d.ts +0 -7
- package/library/types/types/Tabs.d.ts +16 -0
- package/library/types/types/VcDatetimeRangePicker.types.d.ts +0 -19
- package/library/types/types/VcTable.types.d.ts +5 -0
- package/library/types/types/VcTabs.types.d.ts +1 -0
- package/library/types/types/VcWizard.types.d.ts +0 -4
- package/library/utils/jsonSchema/jsonSchemaHelpers.mjs +1 -1
- package/library/utils/lucideIcon.mjs +1 -1
- package/package.json +2 -2
- package/src/theme/index.ts +101 -101
- package/src/theme/tailwindScheme.js +10 -2
- package/src/theme/theme.types.ts +31 -31
- package/src/theme/themeMerge.ts +2 -0
- package/src/theme/themes.json +31 -136
- package/tailwind.config.d.ts +5 -5
- package/tailwind.config.js +2 -0
- package/library/assets/components/VcDatetimeRangePicker/VcDatetimeRangePicker.css +0 -1
- package/library/assets/components/VcViewSwitcher/VcViewSwitcher.css +0 -1
- package/library/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue.mjs +0 -24
- package/library/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue3.mjs +0 -5
- package/library/components/VcViewSwitcher/VcViewSwitcher.vue.mjs +0 -86
- package/library/components/VcViewSwitcher/VcViewSwitcher.vue3.mjs +0 -5
- package/library/types/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue.d.ts +0 -2
- package/library/types/components/VcViewSwitcher/VcViewSwitcher.vue.d.ts +0 -74
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ParameterNode.vue2.mjs";
|
|
2
2
|
import '../../assets/components/VcMdEditor/ParameterNode.css';/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const ParameterNode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ParameterNode = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-de324ab7"]]);
|
|
5
5
|
export {
|
|
6
6
|
ParameterNode as default
|
|
7
7
|
};
|
|
@@ -58,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
58
|
localIcon.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
59
59
|
key: 0,
|
|
60
60
|
icon: localIcon.value,
|
|
61
|
-
class: "text-
|
|
61
|
+
class: "text-content-brand"
|
|
62
62
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
63
63
|
createElementVNode("span", null, toDisplayString(unref(parameterName)), 1)
|
|
64
64
|
]),
|
|
@@ -284,7 +284,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
284
284
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(localModel) ? localModel.value = $event : null),
|
|
285
285
|
lang: markdownLanguage.value,
|
|
286
286
|
disabled: __props.disabled,
|
|
287
|
-
class: normalizeClass([{ "pointer-events-none
|
|
287
|
+
class: normalizeClass([{ "pointer-events-none text-content-disabled": __props.disabled }, "h-full w-full text-sm vc-markdown-editor__text-editor"]),
|
|
288
288
|
readonly: __props.readonly,
|
|
289
289
|
basic: ""
|
|
290
290
|
}, null, 8, ["modelValue", "lang", "disabled", "class", "readonly"]))
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
renderSlot(_ctx.$slots, "default"),
|
|
36
36
|
createElementVNode("div", _hoisted_4, [
|
|
37
37
|
createElementVNode("div", {
|
|
38
|
-
class: "cursor-pointer focus:outline-none text-
|
|
38
|
+
class: "cursor-pointer focus:outline-none text-content-brand mx-3 hover:text-content-brand-hover",
|
|
39
39
|
onClick: onDownloadFile
|
|
40
40
|
}, [
|
|
41
41
|
createVNode(_sfc_main$1, {
|
|
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
}, null, 8, ["icon"])
|
|
45
45
|
]),
|
|
46
46
|
createElementVNode("div", {
|
|
47
|
-
class: "cursor-pointer focus:outline-none text-
|
|
47
|
+
class: "cursor-pointer focus:outline-none text-content-brand mx-3 hover:text-content-brand-hover",
|
|
48
48
|
onClick: onOpen
|
|
49
49
|
}, [
|
|
50
50
|
createVNode(_sfc_main$1, {
|
|
@@ -60,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
createElementVNode("div", _hoisted_7, [
|
|
61
61
|
createVNode(_sfc_main$1, {
|
|
62
62
|
icon: unref(Paperclip),
|
|
63
|
-
class: "text-
|
|
63
|
+
class: "text-content-brand icon-base"
|
|
64
64
|
}, null, 8, ["icon"])
|
|
65
65
|
]),
|
|
66
66
|
createElementVNode("div", _hoisted_8, toDisplayString(__props.documentName), 1)
|
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
}, [
|
|
47
47
|
createVNode(_sfc_main$1, {
|
|
48
48
|
icon: unref(ChevronLeft),
|
|
49
|
-
class: "icon-
|
|
49
|
+
class: "icon-xl"
|
|
50
50
|
}, null, 8, ["icon"])
|
|
51
51
|
], 2)
|
|
52
52
|
]),
|
|
@@ -84,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
}, [
|
|
85
85
|
createVNode(_sfc_main$1, {
|
|
86
86
|
icon: unref(ChevronRight),
|
|
87
|
-
class: "icon-
|
|
87
|
+
class: "icon-xl"
|
|
88
88
|
}, null, 8, ["icon"])
|
|
89
89
|
], 2)
|
|
90
90
|
])
|
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
33
33
|
createElementVNode("div", _hoisted_2, [
|
|
34
34
|
createElementVNode("div", {
|
|
35
|
-
class: "cursor-pointer mx-3 hover:text-
|
|
35
|
+
class: "cursor-pointer mx-3 hover:text-content-secondary-hover",
|
|
36
36
|
onClick: onPrint
|
|
37
37
|
}, [
|
|
38
38
|
createVNode(_sfc_main$1, {
|
|
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
}, null, 8, ["icon"])
|
|
42
42
|
]),
|
|
43
43
|
createElementVNode("div", {
|
|
44
|
-
class: "cursor-pointer mx-3 hover:text-
|
|
44
|
+
class: "cursor-pointer mx-3 hover:text-content-secondary-hover",
|
|
45
45
|
onClick: withModifiers(onDownload, ["stop"])
|
|
46
46
|
}, [
|
|
47
47
|
createVNode(_sfc_main$1, {
|
|
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
}, null, 8, ["icon"])
|
|
51
51
|
]),
|
|
52
52
|
createElementVNode("div", {
|
|
53
|
-
class: "cursor-pointer mx-3 hover:text-
|
|
53
|
+
class: "cursor-pointer mx-3 hover:text-content-secondary-hover",
|
|
54
54
|
onClick: onOpen
|
|
55
55
|
}, [
|
|
56
56
|
createVNode(_sfc_main$1, {
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
renderSlot(_ctx.$slots, "default")
|
|
64
64
|
]),
|
|
65
65
|
createElementVNode("div", {
|
|
66
|
-
class: "cursor-pointer px-2 hover:text-
|
|
66
|
+
class: "cursor-pointer px-2 hover:text-content-secondary-hover",
|
|
67
67
|
onClick: onClose
|
|
68
68
|
}, [
|
|
69
69
|
createVNode(_sfc_main$1, {
|
|
@@ -1,54 +1,82 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass, isRef,
|
|
1
|
+
import { defineComponent, useCssVars, ref, watch, computed, openBlock, createBlock, unref, normalizeClass, isRef, withCtx, renderSlot, createElementBlock, normalizeStyle, createCommentVNode, createElementVNode, toDisplayString, Fragment, createTextVNode } from "vue";
|
|
2
2
|
import { ElSegmented } from "element-plus";
|
|
3
|
-
import '../../assets/node_modules/element-plus/theme-chalk/src/segmented.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
|
|
3
|
+
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/node_modules/element-plus/theme-chalk/src/segmented.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
|
|
4
4
|
import '../../assets/components/VcSegmented/VcSegmented.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { useVModel } from "@vueuse/core";
|
|
6
|
+
import { useVModel, useTimeoutFn } from "@vueuse/core";
|
|
7
|
+
import useOptionMethods from "../../composables/option/useOptionMethods.mjs";
|
|
8
|
+
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
9
|
+
/* empty css */
|
|
10
|
+
const _hoisted_1 = ["title"];
|
|
11
|
+
const SLIDE_DURATION_MS = 300;
|
|
12
|
+
const SLIDE_END_MARGIN_MS = 50;
|
|
7
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
14
|
__name: "VcSegmented",
|
|
9
15
|
props: {
|
|
10
|
-
modelValue: {},
|
|
16
|
+
modelValue: { default: void 0 },
|
|
11
17
|
options: {},
|
|
12
|
-
config: {},
|
|
13
|
-
size: {},
|
|
18
|
+
config: { default: void 0 },
|
|
19
|
+
size: { default: void 0 },
|
|
14
20
|
block: { type: Boolean },
|
|
15
21
|
disabled: { type: Boolean },
|
|
16
22
|
validateEvent: { type: Boolean },
|
|
17
|
-
name: {},
|
|
18
|
-
id: {},
|
|
19
|
-
ariaLabel: {},
|
|
20
|
-
direction: {},
|
|
23
|
+
name: { default: void 0 },
|
|
24
|
+
id: { default: void 0 },
|
|
25
|
+
ariaLabel: { default: void 0 },
|
|
26
|
+
direction: { default: void 0 },
|
|
27
|
+
variant: { default: "solid" },
|
|
21
28
|
bordered: { type: Boolean },
|
|
22
|
-
rounded: { type: Boolean }
|
|
23
|
-
color: {}
|
|
29
|
+
rounded: { type: Boolean }
|
|
24
30
|
},
|
|
25
31
|
emits: ["update:modelValue", "change"],
|
|
26
32
|
setup(__props, { emit: __emit }) {
|
|
33
|
+
useCssVars((_ctx) => ({
|
|
34
|
+
"f90f18b8": slideDuration
|
|
35
|
+
}));
|
|
36
|
+
const MAPPED_OPTION_KEYS = {
|
|
37
|
+
value: "value",
|
|
38
|
+
label: "label",
|
|
39
|
+
disabled: "disabled"
|
|
40
|
+
};
|
|
41
|
+
const slideDuration = `${SLIDE_DURATION_MS}ms`;
|
|
42
|
+
const DEFAULT_OPTION_KEYS = {
|
|
43
|
+
labelKey: "label",
|
|
44
|
+
valueKey: "value",
|
|
45
|
+
disabledKey: "disabled"
|
|
46
|
+
};
|
|
27
47
|
const props = __props;
|
|
28
48
|
const emit = __emit;
|
|
49
|
+
const { optionListMap } = useOptionMethods();
|
|
29
50
|
const localModel = useVModel(props, "modelValue", emit);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
51
|
+
const sliding = ref(false);
|
|
52
|
+
const { start: endSlideLater } = useTimeoutFn(() => {
|
|
53
|
+
sliding.value = false;
|
|
54
|
+
}, SLIDE_DURATION_MS + SLIDE_END_MARGIN_MS, { immediate: false });
|
|
55
|
+
watch(() => props.modelValue, () => {
|
|
56
|
+
sliding.value = true;
|
|
57
|
+
endSlideLater();
|
|
37
58
|
});
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
59
|
+
const optionConfig = computed(() => {
|
|
60
|
+
const keys = {
|
|
61
|
+
...DEFAULT_OPTION_KEYS,
|
|
62
|
+
...props.config
|
|
63
|
+
};
|
|
64
|
+
return keys;
|
|
41
65
|
});
|
|
42
|
-
|
|
43
|
-
|
|
66
|
+
const mappedOptions = computed(() => optionListMap(props.options, optionConfig.value));
|
|
67
|
+
function onChange(value) {
|
|
68
|
+
const picked = mappedOptions.value.find((option) => option.value === value);
|
|
69
|
+
if (picked) {
|
|
70
|
+
emit("change", value, picked.originalItem);
|
|
71
|
+
}
|
|
44
72
|
}
|
|
45
73
|
return (_ctx, _cache) => {
|
|
46
74
|
return openBlock(), createBlock(unref(ElSegmented), {
|
|
47
75
|
id: __props.id,
|
|
48
76
|
modelValue: unref(localModel),
|
|
49
77
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModel) ? localModel.value = $event : null),
|
|
50
|
-
options:
|
|
51
|
-
props:
|
|
78
|
+
options: mappedOptions.value,
|
|
79
|
+
props: MAPPED_OPTION_KEYS,
|
|
52
80
|
size: __props.size,
|
|
53
81
|
block: __props.block,
|
|
54
82
|
disabled: __props.disabled,
|
|
@@ -56,22 +84,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
84
|
name: __props.name,
|
|
57
85
|
"aria-label": __props.ariaLabel,
|
|
58
86
|
direction: __props.direction,
|
|
59
|
-
class: normalizeClass([[
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
87
|
+
class: normalizeClass([[
|
|
88
|
+
`vc-segmented--${__props.variant}`,
|
|
89
|
+
{
|
|
90
|
+
"vc-segmented--bordered": __props.bordered,
|
|
91
|
+
"vc-segmented--rounded": __props.rounded,
|
|
92
|
+
"is-sliding": sliding.value
|
|
93
|
+
}
|
|
94
|
+
], "vc-segmented"]),
|
|
63
95
|
onChange
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(({ item }) => [
|
|
98
|
+
renderSlot(_ctx.$slots, "default", {
|
|
99
|
+
item: item.originalItem,
|
|
100
|
+
option: item,
|
|
101
|
+
isActive: item.value === unref(localModel)
|
|
102
|
+
}, () => [
|
|
103
|
+
item.icon || item.disabledHint ? (openBlock(), createElementBlock("span", {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "vc-segmented__content",
|
|
106
|
+
title: item.disabledHint
|
|
107
|
+
}, [
|
|
108
|
+
item.icon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
109
|
+
key: 0,
|
|
110
|
+
icon: item.icon,
|
|
111
|
+
style: normalizeStyle(item.iconStyle),
|
|
112
|
+
class: "vc-segmented__icon"
|
|
113
|
+
}, null, 8, ["icon", "style"])) : createCommentVNode("", true),
|
|
114
|
+
createElementVNode("span", null, toDisplayString(item.label), 1)
|
|
115
|
+
], 8, _hoisted_1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
116
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
117
|
+
], 64))
|
|
118
|
+
])
|
|
119
|
+
]),
|
|
120
|
+
_: 3
|
|
121
|
+
}, 8, ["id", "modelValue", "options", "size", "block", "disabled", "validate-event", "name", "aria-label", "direction", "class"]);
|
|
75
122
|
};
|
|
76
123
|
}
|
|
77
124
|
});
|
|
@@ -194,7 +194,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
194
194
|
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
195
195
|
createVNode(_sfc_main$2, {
|
|
196
196
|
icon: unref(Loader),
|
|
197
|
-
class: "text-
|
|
197
|
+
class: "text-content-brand animate-spin"
|
|
198
198
|
}, null, 8, ["icon"])
|
|
199
199
|
])) : createCommentVNode("", true)
|
|
200
200
|
]),
|
|
@@ -308,8 +308,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
308
308
|
dx: message.x1 < message.x2 ? "10" : "-10",
|
|
309
309
|
color: getColorMessage(message),
|
|
310
310
|
style: { "font-size": "max(11px,1vw)" },
|
|
311
|
-
"font-family": "Vc-icon",
|
|
312
|
-
class: "vc-icon-",
|
|
313
311
|
"alignment-baseline": "auto",
|
|
314
312
|
innerHTML: getMessage(message)
|
|
315
313
|
}, null, 8, _hoisted_14),
|
|
@@ -320,7 +318,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
320
318
|
dx: message.x1 < message.x2 ? "20" : "-20",
|
|
321
319
|
"alignment-baseline": "auto",
|
|
322
320
|
class: "flow-offset-label",
|
|
323
|
-
style: { "font-size": "max(10px, 0.6vw)"
|
|
321
|
+
style: { "font-size": "max(10px, 0.6vw)" }
|
|
324
322
|
}, toDisplayString(message.label), 9, _hoisted_15)
|
|
325
323
|
], 10, _hoisted_12);
|
|
326
324
|
}), 128))
|
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
__name: "VcPlayerPlayStopButton",
|
|
9
9
|
props: {
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
-
iconClass: { default: "icon-
|
|
11
|
+
iconClass: { default: "icon-2r" },
|
|
12
12
|
showStop: { type: Boolean, default: true },
|
|
13
13
|
playIcon: { default: () => CirclePlay },
|
|
14
14
|
pauseIcon: { default: () => CirclePause },
|
|
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
}, [
|
|
46
46
|
createVNode(_sfc_main$1, {
|
|
47
47
|
icon: __props.playIcon,
|
|
48
|
-
class: normalizeClass([__props.iconClass, __props.disabled ? "text-content-disabled" : "text-
|
|
48
|
+
class: normalizeClass([__props.iconClass, __props.disabled ? "text-content-disabled" : "text-content-brand"])
|
|
49
49
|
}, null, 8, ["icon", "class"])
|
|
50
50
|
])) : (openBlock(), createElementBlock("div", {
|
|
51
51
|
key: 1,
|
|
@@ -54,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
}, [
|
|
55
55
|
createVNode(_sfc_main$1, {
|
|
56
56
|
icon: __props.pauseIcon,
|
|
57
|
-
class: normalizeClass(["text-
|
|
57
|
+
class: normalizeClass(["text-content-brand", [__props.iconClass]])
|
|
58
58
|
}, null, 8, ["icon", "class"])
|
|
59
59
|
])),
|
|
60
60
|
__props.showStop && unref(showReset) ? (openBlock(), createElementBlock("div", {
|
|
@@ -64,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
}, [
|
|
65
65
|
createVNode(_sfc_main$1, {
|
|
66
66
|
icon: __props.stopIcon,
|
|
67
|
-
class: normalizeClass(["text-
|
|
67
|
+
class: normalizeClass(["text-content-brand", [__props.iconClass]])
|
|
68
68
|
}, null, 8, ["icon", "class"])
|
|
69
69
|
])) : createCommentVNode("", true)
|
|
70
70
|
]);
|
|
@@ -9,7 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
__name: "VcPlayerPlaybackRate",
|
|
10
10
|
props: {
|
|
11
11
|
icon: { default: () => Gauge },
|
|
12
|
-
iconClasses: { default: "icon-
|
|
12
|
+
iconClasses: { default: "icon-xl !font-semibold" }
|
|
13
13
|
},
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const { speed, setPlaybackRate, isInitSound } = useSoundPlayerInject();
|
|
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
props: {
|
|
14
14
|
rates: { default: () => [] },
|
|
15
15
|
icon: { default: () => Gauge },
|
|
16
|
-
iconClasses: { default: "icon-
|
|
16
|
+
iconClasses: { default: "icon-xl !font-semibold" }
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const { speed, setPlaybackRate, isInitSound } = useSoundPlayerInject();
|
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
}, {
|
|
39
39
|
reference: withCtx(() => [
|
|
40
40
|
createElementVNode("div", {
|
|
41
|
-
class: normalizeClass([isDisabled.value ? "cursor-not-allowed text-content-disabled" : "cursor-pointer text-
|
|
41
|
+
class: normalizeClass([isDisabled.value ? "cursor-not-allowed text-content-disabled" : "cursor-pointer text-content-brand", "inline-flex items-center leading-none justify-center gap-1 font-medium"]),
|
|
42
42
|
onClick: _cache[0] || (_cache[0] = ($event) => popover.value = !popover.value)
|
|
43
43
|
}, [
|
|
44
44
|
createElementVNode("span", null, toDisplayString(`${unref(speed)}X`), 1),
|
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
renderSlot(_ctx.$slots, "prev", {}, () => [
|
|
39
39
|
createVNode(_sfc_main$1, {
|
|
40
40
|
icon: __props.iconBack,
|
|
41
|
-
class: normalizeClass(["text-
|
|
41
|
+
class: normalizeClass(["text-content-brand", [__props.iconClass]])
|
|
42
42
|
}, null, 8, ["icon", "class"])
|
|
43
43
|
])
|
|
44
44
|
]),
|
|
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
renderSlot(_ctx.$slots, "next", {}, () => [
|
|
50
50
|
createVNode(_sfc_main$1, {
|
|
51
51
|
icon: __props.iconForward,
|
|
52
|
-
class: normalizeClass(["text-
|
|
52
|
+
class: normalizeClass(["text-content-brand", [__props.iconClass]])
|
|
53
53
|
}, null, 8, ["icon", "class"])
|
|
54
54
|
])
|
|
55
55
|
])
|
|
@@ -29,7 +29,7 @@ const _hoisted_3 = {
|
|
|
29
29
|
class: "flex items-center px-1"
|
|
30
30
|
};
|
|
31
31
|
const _hoisted_4 = { key: 5 };
|
|
32
|
-
const _hoisted_5 = { class: "cursor-pointer text-content-disabled hover:text-
|
|
32
|
+
const _hoisted_5 = { class: "cursor-pointer text-content-disabled hover:text-content-brand duration-200" };
|
|
33
33
|
const _hoisted_6 = { class: "p-2" };
|
|
34
34
|
const _hoisted_7 = ["onClick"];
|
|
35
35
|
const _hoisted_8 = {
|
|
@@ -289,7 +289,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
289
289
|
onClick: withModifiers(($event) => download(item), ["stop"])
|
|
290
290
|
}, [
|
|
291
291
|
createVNode(_sfc_main$5, {
|
|
292
|
-
class: "text-
|
|
292
|
+
class: "text-content-brand icon-xl",
|
|
293
293
|
icon: downloadIconType(item)
|
|
294
294
|
}, null, 8, ["icon"]),
|
|
295
295
|
fileType(item) ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(fileType(item)), 1)) : createCommentVNode("", true)
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
icon: unref(volume) ? __props.icon : __props.iconOff,
|
|
53
53
|
class: normalizeClass([[
|
|
54
54
|
__props.iconClass,
|
|
55
|
-
__props.disabled ? "text-content-disabled" : "text-
|
|
55
|
+
__props.disabled ? "text-content-disabled" : "text-content-brand"
|
|
56
56
|
], "cursor-pointer"])
|
|
57
57
|
}, null, 8, ["icon", "class"])
|
|
58
58
|
]),
|
|
@@ -78,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
icon: unref(volume) ? __props.icon : __props.iconOff,
|
|
79
79
|
class: normalizeClass([[
|
|
80
80
|
__props.iconClass,
|
|
81
|
-
__props.disabled ? "text-content-disabled" : "text-
|
|
81
|
+
__props.disabled ? "text-content-disabled" : "text-content-brand"
|
|
82
82
|
], "cursor-pointer"])
|
|
83
83
|
}, null, 8, ["icon", "class"])
|
|
84
84
|
])
|
|
@@ -92,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
expandableRow: { type: Boolean },
|
|
93
93
|
rowSelectable: { type: Boolean },
|
|
94
94
|
loading: { type: Boolean },
|
|
95
|
-
|
|
95
|
+
density: { default: "default" },
|
|
96
96
|
stripe: { type: Boolean },
|
|
97
97
|
rowUnselect: { type: Boolean },
|
|
98
98
|
isServerData: { type: Boolean },
|
|
@@ -344,7 +344,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
344
344
|
if (valueToLabel.has(value)) return;
|
|
345
345
|
let label;
|
|
346
346
|
if (column.format) {
|
|
347
|
-
const formatted = column.format(
|
|
347
|
+
const formatted = column.format(option);
|
|
348
348
|
label = String(formatted ?? value);
|
|
349
349
|
} else {
|
|
350
350
|
label = String(value);
|
|
@@ -442,7 +442,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
442
442
|
return "";
|
|
443
443
|
}
|
|
444
444
|
if (column.sortBy === sortBy.value) {
|
|
445
|
-
return "text-
|
|
445
|
+
return "text-content-brand";
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
function isSortableColumn(column) {
|
|
@@ -604,12 +604,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
604
604
|
function gettingColumnItemData(column) {
|
|
605
605
|
return column.columnItemLabel;
|
|
606
606
|
}
|
|
607
|
-
function rowAsRecord(option) {
|
|
608
|
-
return option;
|
|
609
|
-
}
|
|
610
607
|
function gettingRowItemData(option, rowColumn) {
|
|
611
608
|
if (rowColumn.format) {
|
|
612
|
-
return rowColumn.format(
|
|
609
|
+
return rowColumn.format(option);
|
|
613
610
|
}
|
|
614
611
|
const labelKey = rowColumn.rowItemLabelKey ? rowColumn.rowItemLabelKey : rowColumn.columnItemLabel;
|
|
615
612
|
return get(option, labelKey, "");
|
|
@@ -810,7 +807,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
810
807
|
class: normalizeClass(["vc-table", [
|
|
811
808
|
hasFooter.value ? "vc-table--with-footer" : "vc-table--without-footer",
|
|
812
809
|
{ "w-full": __props.withPagination },
|
|
813
|
-
|
|
810
|
+
`vc-table--density-${__props.density}`,
|
|
814
811
|
{ "vc-table--striped": __props.stripe },
|
|
815
812
|
__props.tableClass
|
|
816
813
|
]])
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import '../../assets/components/VcTabs/VcTabNav.css';
|
|
2
|
-
import { defineComponent, ref, computed, watch, onMounted, onUpdated, onBeforeUnmount, openBlock, createElementBlock, withModifiers, createVNode, unref, createCommentVNode, createElementVNode, normalizeClass, Fragment, renderList,
|
|
2
|
+
import { defineComponent, ref, computed, watch, onMounted, onUpdated, onBeforeUnmount, openBlock, createElementBlock, withModifiers, createVNode, unref, createCommentVNode, createElementVNode, normalizeClass, Fragment, renderList, createBlock, withCtx, renderSlot, resolveDynamicComponent, toDisplayString, nextTick } from "vue";
|
|
3
3
|
import { ChevronLeft, X, ChevronRight } from "@lucide/vue";
|
|
4
4
|
import DomHandler from "../../utils/DomHandler.mjs";
|
|
5
5
|
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
6
6
|
import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
|
|
7
|
+
import _sfc_main$2 from "../VcRadioTabs/UiComponents/VcRadioTabsNavHint.vue.mjs";
|
|
7
8
|
const _hoisted_1 = { class: "vc-tabs__nav-wrap relative" };
|
|
8
9
|
const _hoisted_2 = ["tabindex", "data-test-name", "onClick"];
|
|
9
10
|
const _hoisted_3 = {
|
|
@@ -68,6 +69,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
69
|
tabList[nextIndex].focus();
|
|
69
70
|
tabList[nextIndex].click();
|
|
70
71
|
}
|
|
72
|
+
function getDisabledHint(tab) {
|
|
73
|
+
return tab.props.disabled && tab.props.disabledHint ? tab.props.disabledHint : void 0;
|
|
74
|
+
}
|
|
71
75
|
function isActiveTab(tab) {
|
|
72
76
|
return props.activeTab === tab.paneName;
|
|
73
77
|
}
|
|
@@ -225,38 +229,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
229
|
onKeydown: changeTab
|
|
226
230
|
}, [
|
|
227
231
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabItems, (tabItem, index) => {
|
|
228
|
-
|
|
229
|
-
return openBlock(), createElementBlock("div", {
|
|
232
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
|
230
233
|
key: tabItem.props.name || `tab-${index}`,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
234
|
+
hint: getDisabledHint(tabItem)
|
|
235
|
+
}, {
|
|
236
|
+
default: withCtx(() => {
|
|
237
|
+
var _a;
|
|
238
|
+
return [
|
|
239
|
+
createElementVNode("div", {
|
|
240
|
+
class: normalizeClass([[{
|
|
241
|
+
"is--active": isActiveTab(tabItem),
|
|
242
|
+
"is--disabled": tabItem.props.disabled
|
|
243
|
+
}, tabItem.navClass], "vc-tabs__item"]),
|
|
244
|
+
tabindex: isActiveTab(tabItem) ? 0 : -1,
|
|
245
|
+
role: "tab",
|
|
246
|
+
"data-test-name": `tab-${tabItem.paneName}`,
|
|
247
|
+
onClick: withModifiers(($event) => setActiveTab(tabItem, index), ["stop"])
|
|
248
|
+
}, [
|
|
249
|
+
((_a = tabItem.slots) == null ? void 0 : _a.label) ? renderSlot(_ctx.$slots, "tabs-nav-item", {
|
|
250
|
+
key: 0,
|
|
251
|
+
tab: tabItem
|
|
252
|
+
}, () => [
|
|
253
|
+
(openBlock(), createBlock(resolveDynamicComponent(tabItem.slots.label)))
|
|
254
|
+
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
255
|
+
tabItem.icon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
256
|
+
key: 0,
|
|
257
|
+
icon: tabItem.icon,
|
|
258
|
+
class: "tabs-nav-icon"
|
|
259
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
260
|
+
tabItem.label ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(tabItem.label), 1)) : createCommentVNode("", true),
|
|
261
|
+
tabItem.props.closable && !tabItem.props.disabled ? (openBlock(), createBlock(_sfc_main$1, {
|
|
262
|
+
key: 2,
|
|
263
|
+
icon: unref(X),
|
|
264
|
+
class: "icon-xxs icon-closable",
|
|
265
|
+
onClick: withModifiers(($event) => closeTab(tabItem, index), ["stop"])
|
|
266
|
+
}, null, 8, ["icon", "onClick"])) : createCommentVNode("", true)
|
|
267
|
+
], 64))
|
|
268
|
+
], 10, _hoisted_2)
|
|
269
|
+
];
|
|
270
|
+
}),
|
|
271
|
+
_: 2
|
|
272
|
+
}, 1032, ["hint"]);
|
|
260
273
|
}), 128)),
|
|
261
274
|
createElementVNode("div", {
|
|
262
275
|
ref_key: "activeBar",
|