yc-agent-ui 1.0.0 → 1.1.0
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 +22 -0
- package/es/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
- package/es/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
- package/es/components/data-table/src/data-table.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +4 -4
- package/es/components/dialog-form/src/index.vue.d.ts +4 -4
- package/es/components/display-item/index.d.ts +12 -12
- package/es/components/display-item/src/index.vue.d.ts +12 -12
- package/es/components/drawer-form/index.d.ts +10 -10
- package/es/components/drawer-form/src/index.vue.d.ts +6 -6
- package/es/components/form/index.d.ts +36 -36
- package/es/components/form/src/form-content.vue.d.ts +15 -15
- package/es/components/form/src/index.vue.d.ts +18 -18
- package/es/components/form-item/index.d.ts +37 -37
- package/es/components/form-item/src/index.vue.d.ts +16 -16
- package/es/components/index.d.ts +4 -0
- package/es/components/page/index.d.ts +897 -897
- package/es/components/page/src/index.vue.d.ts +302 -302
- package/es/components/search/index.d.ts +242 -242
- package/es/components/search/src/index.vue.d.ts +84 -84
- package/es/components/table/index.d.ts +18 -18
- package/es/components/table/src/index.vue.d.ts +2 -2
- package/es/components/table/src/table-column.vue.d.ts +24 -24
- package/es/components/virtual-table/index.d.ts +10 -10
- package/es/components/virtual-table/src/index.vue.d.ts +3 -3
- package/es/components/yc-controls/capability.d.ts +4 -0
- package/es/components/yc-controls/index.d.ts +17 -0
- package/es/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
- package/es/components/yc-controls/src/segmented.vue.d.ts +16 -0
- package/es/components/yc-controls/src/switch-row.vue.d.ts +13 -0
- package/es/components/yc-controls/src/type.d.ts +39 -0
- package/es/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
- package/es/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
- package/es/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/es/components/yc-feedback/capability.d.ts +4 -0
- package/es/components/yc-feedback/index.d.ts +21 -0
- package/es/components/yc-feedback/src/banner.vue.d.ts +22 -0
- package/es/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
- package/es/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
- package/es/components/yc-feedback/src/timeline.vue.d.ts +7 -0
- package/es/components/yc-feedback/src/type.d.ts +46 -0
- package/es/components/yc-input/capability.d.ts +4 -0
- package/es/components/yc-input/index.d.ts +21 -0
- package/es/components/yc-input/src/input.vue.d.ts +50 -0
- package/es/components/yc-input/src/money-input.vue.d.ts +26 -0
- package/es/components/yc-input/src/stepper-input.vue.d.ts +18 -0
- package/es/components/yc-input/src/textarea.vue.d.ts +35 -0
- package/es/components/yc-input/src/type.d.ts +82 -0
- package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
- package/es/components/yc-plus-page/src/index.vue.d.ts +917 -917
- package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/es/components/yc-property-table/capability.d.ts +4 -0
- package/es/components/yc-property-table/index.d.ts +30 -0
- package/es/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
- package/es/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
- package/es/components/yc-property-table/src/device-table.vue.d.ts +17 -0
- package/es/components/yc-property-table/src/order-table.vue.d.ts +18 -0
- package/es/components/yc-property-table/src/property-table.vue.d.ts +91 -0
- package/es/components/yc-property-table/src/type.d.ts +214 -0
- package/es/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/es/hooks/usePlusFormReset.d.ts +66 -66
- package/es/index.css +9 -9
- package/es/index.mjs +4 -0
- package/es/packages/components/index.mjs +4 -0
- package/es/packages/components/table/capability.mjs +10 -29
- package/es/packages/components/yc-card/capability.mjs +53 -13
- package/es/packages/components/yc-controls/capability.mjs +100 -0
- package/es/packages/components/yc-controls/index.mjs +13 -0
- package/es/packages/components/yc-controls/src/choice-cards.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/choice-cards2.vue.mjs +157 -0
- package/es/packages/components/yc-controls/src/segmented.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/segmented2.vue.mjs +78 -0
- package/es/packages/components/yc-controls/src/switch-row.vue.mjs +5 -0
- package/es/packages/components/yc-controls/src/switch-row2.vue.mjs +95 -0
- package/es/packages/components/yc-controls/src/type.mjs +1 -0
- package/es/packages/components/yc-feedback/capability.mjs +109 -0
- package/es/packages/components/yc-feedback/index.mjs +16 -0
- package/es/packages/components/yc-feedback/src/banner.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/banner2.vue.mjs +230 -0
- package/es/packages/components/yc-feedback/src/empty-state.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/empty-state2.vue.mjs +97 -0
- package/es/packages/components/yc-feedback/src/key-value-list.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/key-value-list2.vue.mjs +194 -0
- package/es/packages/components/yc-feedback/src/timeline.vue.mjs +5 -0
- package/es/packages/components/yc-feedback/src/timeline2.vue.mjs +134 -0
- package/es/packages/components/yc-feedback/src/type.mjs +1 -0
- package/es/packages/components/yc-input/capability.mjs +112 -0
- package/es/packages/components/yc-input/index.mjs +16 -0
- package/es/packages/components/yc-input/src/input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/input2.vue.mjs +427 -0
- package/es/packages/components/yc-input/src/money-input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/money-input2.vue.mjs +242 -0
- package/es/packages/components/yc-input/src/stepper-input.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +211 -0
- package/es/packages/components/yc-input/src/textarea.vue.mjs +5 -0
- package/es/packages/components/yc-input/src/textarea2.vue.mjs +158 -0
- package/es/packages/components/yc-input/src/type.mjs +1 -0
- package/es/packages/components/yc-property-table/capability.mjs +350 -0
- package/es/packages/components/yc-property-table/index.mjs +24 -0
- package/es/packages/components/yc-property-table/src/asset-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/asset-table2.vue.mjs +405 -0
- package/es/packages/components/yc-property-table/src/bill-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/bill-table2.vue.mjs +654 -0
- package/es/packages/components/yc-property-table/src/device-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/device-table2.vue.mjs +324 -0
- package/es/packages/components/yc-property-table/src/order-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/order-table2.vue.mjs +363 -0
- package/es/packages/components/yc-property-table/src/property-table.vue.mjs +5 -0
- package/es/packages/components/yc-property-table/src/property-table2.vue.mjs +1228 -0
- package/es/packages/components/yc-property-table/src/type.mjs +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +6385 -1362
- package/index.min.js +24 -24
- package/index.min.mjs +26 -26
- package/index.mjs +6341 -1355
- package/lib/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
- package/lib/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
- package/lib/components/data-table/src/data-table.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +4 -4
- package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
- package/lib/components/display-item/index.d.ts +12 -12
- package/lib/components/display-item/src/index.vue.d.ts +12 -12
- package/lib/components/drawer-form/index.d.ts +10 -10
- package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
- package/lib/components/form/index.d.ts +36 -36
- package/lib/components/form/src/form-content.vue.d.ts +15 -15
- package/lib/components/form/src/index.vue.d.ts +18 -18
- package/lib/components/form-item/index.d.ts +37 -37
- package/lib/components/form-item/src/index.vue.d.ts +16 -16
- package/lib/components/index.d.ts +4 -0
- package/lib/components/page/index.d.ts +897 -897
- package/lib/components/page/src/index.vue.d.ts +302 -302
- package/lib/components/search/index.d.ts +242 -242
- package/lib/components/search/src/index.vue.d.ts +84 -84
- package/lib/components/table/index.d.ts +18 -18
- package/lib/components/table/src/index.vue.d.ts +2 -2
- package/lib/components/table/src/table-column.vue.d.ts +24 -24
- package/lib/components/virtual-table/index.d.ts +10 -10
- package/lib/components/virtual-table/src/index.vue.d.ts +3 -3
- package/lib/components/yc-controls/capability.d.ts +4 -0
- package/lib/components/yc-controls/index.d.ts +17 -0
- package/lib/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
- package/lib/components/yc-controls/src/segmented.vue.d.ts +16 -0
- package/lib/components/yc-controls/src/switch-row.vue.d.ts +13 -0
- package/lib/components/yc-controls/src/type.d.ts +39 -0
- package/lib/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
- package/lib/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
- package/lib/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
- package/lib/components/yc-feedback/capability.d.ts +4 -0
- package/lib/components/yc-feedback/index.d.ts +21 -0
- package/lib/components/yc-feedback/src/banner.vue.d.ts +22 -0
- package/lib/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
- package/lib/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
- package/lib/components/yc-feedback/src/timeline.vue.d.ts +7 -0
- package/lib/components/yc-feedback/src/type.d.ts +46 -0
- package/lib/components/yc-input/capability.d.ts +4 -0
- package/lib/components/yc-input/index.d.ts +21 -0
- package/lib/components/yc-input/src/input.vue.d.ts +50 -0
- package/lib/components/yc-input/src/money-input.vue.d.ts +26 -0
- package/lib/components/yc-input/src/stepper-input.vue.d.ts +18 -0
- package/lib/components/yc-input/src/textarea.vue.d.ts +35 -0
- package/lib/components/yc-input/src/type.d.ts +82 -0
- package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
- package/lib/components/yc-plus-page/src/index.vue.d.ts +917 -917
- package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
- package/lib/components/yc-property-table/capability.d.ts +4 -0
- package/lib/components/yc-property-table/index.d.ts +30 -0
- package/lib/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
- package/lib/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
- package/lib/components/yc-property-table/src/device-table.vue.d.ts +17 -0
- package/lib/components/yc-property-table/src/order-table.vue.d.ts +18 -0
- package/lib/components/yc-property-table/src/property-table.vue.d.ts +91 -0
- package/lib/components/yc-property-table/src/type.d.ts +214 -0
- package/lib/components/yc-questionnaire/src/index.vue.d.ts +1 -1
- package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
- package/lib/hooks/usePlusFormReset.d.ts +66 -66
- package/lib/index.css +11 -11
- package/lib/index.js +176 -135
- package/lib/packages/components/index.js +172 -131
- package/lib/packages/components/table/capability.js +10 -29
- package/lib/packages/components/yc-card/capability.js +53 -13
- package/lib/packages/components/yc-controls/capability.js +104 -0
- package/lib/packages/components/yc-controls/index.js +23 -0
- package/lib/packages/components/yc-controls/src/choice-cards.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/choice-cards2.vue.js +161 -0
- package/lib/packages/components/yc-controls/src/segmented.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/segmented2.vue.js +82 -0
- package/lib/packages/components/yc-controls/src/switch-row.vue.js +9 -0
- package/lib/packages/components/yc-controls/src/switch-row2.vue.js +99 -0
- package/lib/packages/components/yc-controls/src/type.js +2 -0
- package/lib/packages/components/yc-feedback/capability.js +113 -0
- package/lib/packages/components/yc-feedback/index.js +28 -0
- package/lib/packages/components/yc-feedback/src/banner.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/banner2.vue.js +234 -0
- package/lib/packages/components/yc-feedback/src/empty-state.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/empty-state2.vue.js +101 -0
- package/lib/packages/components/yc-feedback/src/key-value-list.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/key-value-list2.vue.js +198 -0
- package/lib/packages/components/yc-feedback/src/timeline.vue.js +9 -0
- package/lib/packages/components/yc-feedback/src/timeline2.vue.js +138 -0
- package/lib/packages/components/yc-feedback/src/type.js +2 -0
- package/lib/packages/components/yc-input/capability.js +116 -0
- package/lib/packages/components/yc-input/index.js +28 -0
- package/lib/packages/components/yc-input/src/input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/input2.vue.js +431 -0
- package/lib/packages/components/yc-input/src/money-input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/money-input2.vue.js +246 -0
- package/lib/packages/components/yc-input/src/stepper-input.vue.js +9 -0
- package/lib/packages/components/yc-input/src/stepper-input2.vue.js +215 -0
- package/lib/packages/components/yc-input/src/textarea.vue.js +9 -0
- package/lib/packages/components/yc-input/src/textarea2.vue.js +162 -0
- package/lib/packages/components/yc-input/src/type.js +2 -0
- package/lib/packages/components/yc-property-table/capability.js +354 -0
- package/lib/packages/components/yc-property-table/index.js +43 -0
- package/lib/packages/components/yc-property-table/src/asset-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/asset-table2.vue.js +409 -0
- package/lib/packages/components/yc-property-table/src/bill-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/bill-table2.vue.js +658 -0
- package/lib/packages/components/yc-property-table/src/device-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/device-table2.vue.js +328 -0
- package/lib/packages/components/yc-property-table/src/order-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/order-table2.vue.js +367 -0
- package/lib/packages/components/yc-property-table/src/property-table.vue.js +9 -0
- package/lib/packages/components/yc-property-table/src/property-table2.vue.js +1232 -0
- package/lib/packages/components/yc-property-table/src/type.js +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-yc-controls.css +1 -0
- package/theme-chalk/plus-yc-feedback.css +1 -0
- package/theme-chalk/plus-yc-input.css +1 -0
- package/theme-chalk/plus-yc-property-table.css +1 -0
- package/theme-chalk/src/index.scss +4 -0
- package/theme-chalk/src/yc-controls.scss +316 -0
- package/theme-chalk/src/yc-feedback.scss +452 -0
- package/theme-chalk/src/yc-input.scss +473 -0
- package/theme-chalk/src/yc-property-table.scss +1700 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "yc-choice-cards__label"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_2 = ["role"];
|
|
12
|
+
const _hoisted_3 = ["role", "aria-checked", "disabled", "onClick"];
|
|
13
|
+
const _hoisted_4 = { class: "yc-choice-card__top" };
|
|
14
|
+
const _hoisted_5 = { class: "yc-choice-card__title" };
|
|
15
|
+
const _hoisted_6 = { class: "yc-choice-card__right" };
|
|
16
|
+
const _hoisted_7 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "yc-choice-card__meta"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_8 = {
|
|
21
|
+
key: 0,
|
|
22
|
+
viewBox: "0 0 24 24",
|
|
23
|
+
width: "10",
|
|
24
|
+
height: "10",
|
|
25
|
+
fill: "none",
|
|
26
|
+
stroke: "currentColor",
|
|
27
|
+
"stroke-width": "3",
|
|
28
|
+
"stroke-linecap": "round",
|
|
29
|
+
"stroke-linejoin": "round"
|
|
30
|
+
};
|
|
31
|
+
const _hoisted_9 = {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: "yc-choice-card__desc"
|
|
34
|
+
};
|
|
35
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
36
|
+
...{
|
|
37
|
+
name: "YcChoiceCards"
|
|
38
|
+
},
|
|
39
|
+
__name: "choice-cards",
|
|
40
|
+
props: {
|
|
41
|
+
modelValue: {},
|
|
42
|
+
options: { default: () => [] },
|
|
43
|
+
multiple: { type: Boolean, default: false },
|
|
44
|
+
columns: { default: 1 },
|
|
45
|
+
label: {},
|
|
46
|
+
disabled: { type: Boolean, default: false }
|
|
47
|
+
},
|
|
48
|
+
emits: ["update:modelValue", "change"],
|
|
49
|
+
setup(__props, { emit: __emit }) {
|
|
50
|
+
const props = __props;
|
|
51
|
+
const emit = __emit;
|
|
52
|
+
const isSelected = (val) => {
|
|
53
|
+
if (props.multiple) {
|
|
54
|
+
return Array.isArray(props.modelValue) && props.modelValue.includes(val);
|
|
55
|
+
}
|
|
56
|
+
return props.modelValue === val;
|
|
57
|
+
};
|
|
58
|
+
const select = (opt) => {
|
|
59
|
+
if (props.disabled || opt.disabled) return;
|
|
60
|
+
if (props.multiple) {
|
|
61
|
+
const cur = Array.isArray(props.modelValue) ? [...props.modelValue] : [];
|
|
62
|
+
const idx = cur.indexOf(opt.value);
|
|
63
|
+
if (idx >= 0) cur.splice(idx, 1);
|
|
64
|
+
else cur.push(opt.value);
|
|
65
|
+
emit("update:modelValue", cur);
|
|
66
|
+
emit("change", cur);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
emit("update:modelValue", opt.value);
|
|
70
|
+
emit("change", opt.value);
|
|
71
|
+
};
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
class: vue.normalizeClass(["yc-choice-cards", { "is-disabled": __props.disabled }])
|
|
77
|
+
},
|
|
78
|
+
[
|
|
79
|
+
__props.label ? (vue.openBlock(), vue.createElementBlock(
|
|
80
|
+
"div",
|
|
81
|
+
_hoisted_1,
|
|
82
|
+
vue.toDisplayString(__props.label),
|
|
83
|
+
1
|
|
84
|
+
/* TEXT */
|
|
85
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
86
|
+
vue.createElementVNode("div", {
|
|
87
|
+
class: vue.normalizeClass(["yc-choice-cards__grid", `cols-${__props.columns}`]),
|
|
88
|
+
role: __props.multiple ? "group" : "radiogroup"
|
|
89
|
+
}, [
|
|
90
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
91
|
+
vue.Fragment,
|
|
92
|
+
null,
|
|
93
|
+
vue.renderList(__props.options, (opt) => {
|
|
94
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
95
|
+
key: String(opt.value),
|
|
96
|
+
type: "button",
|
|
97
|
+
class: vue.normalizeClass(["yc-choice-card", { "is-selected": isSelected(opt.value), "is-disabled": __props.disabled || opt.disabled }]),
|
|
98
|
+
role: __props.multiple ? "checkbox" : "radio",
|
|
99
|
+
"aria-checked": isSelected(opt.value),
|
|
100
|
+
disabled: __props.disabled || opt.disabled,
|
|
101
|
+
onClick: ($event) => select(opt)
|
|
102
|
+
}, [
|
|
103
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
104
|
+
vue.createElementVNode(
|
|
105
|
+
"span",
|
|
106
|
+
_hoisted_5,
|
|
107
|
+
vue.toDisplayString(opt.title),
|
|
108
|
+
1
|
|
109
|
+
/* TEXT */
|
|
110
|
+
),
|
|
111
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
112
|
+
opt.meta ? (vue.openBlock(), vue.createElementBlock(
|
|
113
|
+
"span",
|
|
114
|
+
_hoisted_7,
|
|
115
|
+
vue.toDisplayString(opt.meta),
|
|
116
|
+
1
|
|
117
|
+
/* TEXT */
|
|
118
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
119
|
+
vue.createElementVNode(
|
|
120
|
+
"span",
|
|
121
|
+
{
|
|
122
|
+
class: vue.normalizeClass(["yc-choice-card__indicator", { "is-checkbox": __props.multiple }])
|
|
123
|
+
},
|
|
124
|
+
[
|
|
125
|
+
isSelected(opt.value) ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_8, [..._cache[0] || (_cache[0] = [
|
|
126
|
+
vue.createElementVNode(
|
|
127
|
+
"path",
|
|
128
|
+
{ d: "M20 6 9 17l-5-5" },
|
|
129
|
+
null,
|
|
130
|
+
-1
|
|
131
|
+
/* CACHED */
|
|
132
|
+
)
|
|
133
|
+
])])) : vue.createCommentVNode("v-if", true)
|
|
134
|
+
],
|
|
135
|
+
2
|
|
136
|
+
/* CLASS */
|
|
137
|
+
)
|
|
138
|
+
])
|
|
139
|
+
]),
|
|
140
|
+
opt.description ? (vue.openBlock(), vue.createElementBlock(
|
|
141
|
+
"p",
|
|
142
|
+
_hoisted_9,
|
|
143
|
+
vue.toDisplayString(opt.description),
|
|
144
|
+
1
|
|
145
|
+
/* TEXT */
|
|
146
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
147
|
+
], 10, _hoisted_3);
|
|
148
|
+
}),
|
|
149
|
+
128
|
|
150
|
+
/* KEYED_FRAGMENT */
|
|
151
|
+
))
|
|
152
|
+
], 10, _hoisted_2)
|
|
153
|
+
],
|
|
154
|
+
2
|
|
155
|
+
/* CLASS */
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = ["aria-selected", "disabled", "onClick"];
|
|
8
|
+
const _hoisted_2 = { class: "yc-segmented__label" };
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "yc-segmented__count"
|
|
12
|
+
};
|
|
13
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
...{
|
|
15
|
+
name: "YcSegmented"
|
|
16
|
+
},
|
|
17
|
+
__name: "segmented",
|
|
18
|
+
props: {
|
|
19
|
+
modelValue: {},
|
|
20
|
+
options: { default: () => [] },
|
|
21
|
+
size: { default: "default" },
|
|
22
|
+
block: { type: Boolean, default: false },
|
|
23
|
+
disabled: { type: Boolean, default: false }
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue", "change"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const emit = __emit;
|
|
29
|
+
const select = (opt) => {
|
|
30
|
+
if (props.disabled || opt.disabled || opt.value === props.modelValue) return;
|
|
31
|
+
emit("update:modelValue", opt.value);
|
|
32
|
+
emit("change", opt.value);
|
|
33
|
+
};
|
|
34
|
+
return (_ctx, _cache) => {
|
|
35
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
class: vue.normalizeClass(["yc-segmented", [`is-size-${__props.size}`, { "is-block": __props.block, "is-disabled": __props.disabled }]]),
|
|
39
|
+
role: "tablist"
|
|
40
|
+
},
|
|
41
|
+
[
|
|
42
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
43
|
+
vue.Fragment,
|
|
44
|
+
null,
|
|
45
|
+
vue.renderList(__props.options, (opt) => {
|
|
46
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
47
|
+
key: String(opt.value),
|
|
48
|
+
type: "button",
|
|
49
|
+
role: "tab",
|
|
50
|
+
class: vue.normalizeClass(["yc-segmented__item", { "is-active": __props.modelValue === opt.value }]),
|
|
51
|
+
"aria-selected": __props.modelValue === opt.value,
|
|
52
|
+
disabled: __props.disabled || opt.disabled,
|
|
53
|
+
onClick: ($event) => select(opt)
|
|
54
|
+
}, [
|
|
55
|
+
vue.createElementVNode(
|
|
56
|
+
"span",
|
|
57
|
+
_hoisted_2,
|
|
58
|
+
vue.toDisplayString(opt.label),
|
|
59
|
+
1
|
|
60
|
+
/* TEXT */
|
|
61
|
+
),
|
|
62
|
+
opt.count !== void 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
63
|
+
"span",
|
|
64
|
+
_hoisted_3,
|
|
65
|
+
vue.toDisplayString(opt.count),
|
|
66
|
+
1
|
|
67
|
+
/* TEXT */
|
|
68
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
69
|
+
], 10, _hoisted_1);
|
|
70
|
+
}),
|
|
71
|
+
128
|
|
72
|
+
/* KEYED_FRAGMENT */
|
|
73
|
+
))
|
|
74
|
+
],
|
|
75
|
+
2
|
|
76
|
+
/* CLASS */
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = { class: "yc-switch-row__body" };
|
|
8
|
+
const _hoisted_2 = { class: "yc-switch-row__head" };
|
|
9
|
+
const _hoisted_3 = { class: "yc-switch-row__title" };
|
|
10
|
+
const _hoisted_4 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "yc-switch-row__badge"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_5 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "yc-switch-row__desc"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_6 = ["aria-checked", "disabled"];
|
|
19
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
20
|
+
...{
|
|
21
|
+
name: "YcSwitchRow"
|
|
22
|
+
},
|
|
23
|
+
__name: "switch-row",
|
|
24
|
+
props: {
|
|
25
|
+
modelValue: { type: Boolean, default: false },
|
|
26
|
+
title: {},
|
|
27
|
+
description: {},
|
|
28
|
+
badge: {},
|
|
29
|
+
disabled: { type: Boolean, default: false },
|
|
30
|
+
bordered: { type: Boolean, default: true }
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:modelValue", "change"],
|
|
33
|
+
setup(__props, { emit: __emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const toggle = () => {
|
|
37
|
+
if (props.disabled) return;
|
|
38
|
+
const next = !props.modelValue;
|
|
39
|
+
emit("update:modelValue", next);
|
|
40
|
+
emit("change", next);
|
|
41
|
+
};
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
class: vue.normalizeClass(["yc-switch-row", { "is-bordered": __props.bordered, "is-disabled": __props.disabled, "is-checked": !!__props.modelValue }]),
|
|
47
|
+
onClick: toggle
|
|
48
|
+
},
|
|
49
|
+
[
|
|
50
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
51
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
52
|
+
vue.createElementVNode(
|
|
53
|
+
"span",
|
|
54
|
+
_hoisted_3,
|
|
55
|
+
vue.toDisplayString(__props.title),
|
|
56
|
+
1
|
|
57
|
+
/* TEXT */
|
|
58
|
+
),
|
|
59
|
+
__props.badge ? (vue.openBlock(), vue.createElementBlock(
|
|
60
|
+
"span",
|
|
61
|
+
_hoisted_4,
|
|
62
|
+
vue.toDisplayString(__props.badge),
|
|
63
|
+
1
|
|
64
|
+
/* TEXT */
|
|
65
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
66
|
+
]),
|
|
67
|
+
__props.description ? (vue.openBlock(), vue.createElementBlock(
|
|
68
|
+
"p",
|
|
69
|
+
_hoisted_5,
|
|
70
|
+
vue.toDisplayString(__props.description),
|
|
71
|
+
1
|
|
72
|
+
/* TEXT */
|
|
73
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
74
|
+
]),
|
|
75
|
+
vue.createElementVNode("button", {
|
|
76
|
+
type: "button",
|
|
77
|
+
role: "switch",
|
|
78
|
+
class: vue.normalizeClass(["yc-switch-track", { "is-checked": !!__props.modelValue }]),
|
|
79
|
+
"aria-checked": !!__props.modelValue,
|
|
80
|
+
disabled: __props.disabled,
|
|
81
|
+
onClick: vue.withModifiers(toggle, ["stop"])
|
|
82
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
83
|
+
vue.createElementVNode(
|
|
84
|
+
"span",
|
|
85
|
+
{ class: "yc-switch-thumb" },
|
|
86
|
+
null,
|
|
87
|
+
-1
|
|
88
|
+
/* CACHED */
|
|
89
|
+
)
|
|
90
|
+
])], 10, _hoisted_6)
|
|
91
|
+
],
|
|
92
|
+
2
|
|
93
|
+
/* CLASS */
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index = require('./index.js');
|
|
7
|
+
|
|
8
|
+
const YcBannerGalleryDemo = vue.defineComponent({
|
|
9
|
+
name: "YcBannerGalleryDemo",
|
|
10
|
+
setup() {
|
|
11
|
+
return () => vue.h("div", { class: "yc-feedback-demo-stack" }, [
|
|
12
|
+
vue.h(index.YcBanner, {
|
|
13
|
+
tone: "warning",
|
|
14
|
+
title: "\u6708\u672B\u8D22\u52A1\u624E\u8D26\u7A97\u53E3\u5373\u5C06\u5173\u95ED",
|
|
15
|
+
description: "\u4ECA\u65E5 22:00 \u540E\u6536\u94F6\u6D41\u6C34\u5C06\u81EA\u52A8\u8BA1\u5165\u4E0B\u6708\u8D26\u671F",
|
|
16
|
+
actionText: "\u6838\u5BF9\u672A\u9500\u6D41\u6C34"
|
|
17
|
+
}),
|
|
18
|
+
vue.h(index.YcBanner, {
|
|
19
|
+
tone: "neutral",
|
|
20
|
+
title: "\u4F01\u5FAE\u50AC\u7F34\u56DE\u6267\u5DF2\u540C\u6B65",
|
|
21
|
+
description: "\u672C\u6279\u6B21\u5171\u89E6\u8FBE 142 \u6237\uFF0C\u5DF2\u8BFB 118 \u6237",
|
|
22
|
+
closable: true
|
|
23
|
+
})
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const YcTimelineGalleryDemo = vue.defineComponent({
|
|
28
|
+
name: "YcTimelineGalleryDemo",
|
|
29
|
+
setup() {
|
|
30
|
+
return () => vue.h(index.YcTimeline, {
|
|
31
|
+
items: [
|
|
32
|
+
{
|
|
33
|
+
id: 1,
|
|
34
|
+
title: "\u73B0\u573A\u7EF4\u4FEE\u5B8C\u6BD5\uFF0C\u5F85\u4E1A\u4E3B\u9A8C\u6536\u7B7E\u5B57",
|
|
35
|
+
time: "14:28",
|
|
36
|
+
actor: "\u5DE5\u7A0B\u90E8 \u5468\u5E08\u5085",
|
|
37
|
+
note: "\u5DF2\u66F4\u6362 DN25 \u51CF\u538B\u9600\u5E76\u8BD5\u538B 30 \u5206\u949F",
|
|
38
|
+
state: "current"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 2,
|
|
42
|
+
title: "\u7EF4\u4FEE\u5DE5\u5355\u5DF2\u63A5\u5355\u6D3E\u5DE5",
|
|
43
|
+
time: "11:05",
|
|
44
|
+
actor: "\u5BA2\u670D\u53F0 \u6797\u654F",
|
|
45
|
+
state: "done"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 3,
|
|
49
|
+
title: "\u4E1A\u4E3B\u63D0\u4EA4\u62A5\u4FEE\u7533\u8BF7",
|
|
50
|
+
time: "10:52",
|
|
51
|
+
actor: "3\u680B1\u5355\u5143 802\u5BA4",
|
|
52
|
+
state: "done"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
const YcEmptyStateGalleryDemo = vue.defineComponent({
|
|
59
|
+
name: "YcEmptyStateGalleryDemo",
|
|
60
|
+
setup() {
|
|
61
|
+
return () => vue.h(index.YcEmptyState, {
|
|
62
|
+
title: "\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u4E0B\u6682\u65E0\u6B20\u8D39\u8D26\u5355",
|
|
63
|
+
description: "\u53EF\u5207\u6362\u8D26\u671F\u8303\u56F4\uFF0C\u6216\u624B\u52A8\u5F55\u5165\u4E34\u65F6\u5E94\u6536\u8D39\u7528",
|
|
64
|
+
actionText: "\u65B0\u5EFA\u5E94\u6536\u5355"
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
const YcKeyValueListGalleryDemo = vue.defineComponent({
|
|
69
|
+
name: "YcKeyValueListGalleryDemo",
|
|
70
|
+
setup() {
|
|
71
|
+
return () => vue.h(index.YcKeyValueList, {
|
|
72
|
+
title: "\u6536\u6B3E\u6838\u9500\u51ED\u8BC1",
|
|
73
|
+
subtitle: "\u94F6\u884C\u94F6\u4F01\u76F4\u8FDE\u81EA\u52A8\u5BF9\u8D26",
|
|
74
|
+
items: [
|
|
75
|
+
{ label: "\u51ED\u8BC1\u5355\u53F7", value: "RCV-20261125-0084", mono: true, copyable: true },
|
|
76
|
+
{ label: "\u5173\u8054\u623F\u53F7", value: "1\u680B2\u5355\u5143 1202\u5BA4" },
|
|
77
|
+
{ label: "\u5B9E\u6536\u91D1\u989D", value: "\xA5 1,354.50", mono: true },
|
|
78
|
+
{ label: "\u5165\u8D26\u72B6\u6001", value: "\u5DF2\u6838\u9500\u5165\u8D26", tone: "success" }
|
|
79
|
+
]
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
const capability = {
|
|
84
|
+
install: [index.YcBanner, index.YcTimeline, index.YcEmptyState, index.YcKeyValueList],
|
|
85
|
+
gallery: [
|
|
86
|
+
{
|
|
87
|
+
id: "yc-banner",
|
|
88
|
+
title: "YcBanner \u5355\u636E\u63D0\u793A\u6761",
|
|
89
|
+
categories: ["\u64CD\u4F5C\u4E0E\u53CD\u9988"],
|
|
90
|
+
component: YcBannerGalleryDemo
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "yc-timeline",
|
|
94
|
+
title: "YcTimeline \u8282\u70B9\u6D41\u8F6C\u8F74",
|
|
95
|
+
categories: ["\u64CD\u4F5C\u4E0E\u53CD\u9988"],
|
|
96
|
+
component: YcTimelineGalleryDemo
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "yc-empty-state",
|
|
100
|
+
title: "YcEmptyState \u7EBF\u6846\u7A7A\u72B6\u6001",
|
|
101
|
+
categories: ["\u64CD\u4F5C\u4E0E\u53CD\u9988"],
|
|
102
|
+
component: YcEmptyStateGalleryDemo
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "yc-key-value-list",
|
|
106
|
+
title: "YcKeyValueList \u51ED\u8BC1\u952E\u503C\u5361",
|
|
107
|
+
categories: ["\u5361\u7247\u4E0E\u5C55\u793A"],
|
|
108
|
+
component: YcKeyValueListGalleryDemo
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
exports.default = capability;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var component = require('../../utils/src/component.js');
|
|
6
|
+
var banner_vue_vue_type_script_setup_true_lang = require('./src/banner2.vue.js');
|
|
7
|
+
var timeline_vue_vue_type_script_setup_true_lang = require('./src/timeline2.vue.js');
|
|
8
|
+
var emptyState_vue_vue_type_script_setup_true_lang = require('./src/empty-state2.vue.js');
|
|
9
|
+
var keyValueList_vue_vue_type_script_setup_true_lang = require('./src/key-value-list2.vue.js');
|
|
10
|
+
|
|
11
|
+
const YcBanner = component.withInstall(banner_vue_vue_type_script_setup_true_lang.default);
|
|
12
|
+
const ReBanner = YcBanner;
|
|
13
|
+
const YcTimeline = component.withInstall(timeline_vue_vue_type_script_setup_true_lang.default);
|
|
14
|
+
const ReTimeline = YcTimeline;
|
|
15
|
+
const YcEmptyState = component.withInstall(emptyState_vue_vue_type_script_setup_true_lang.default);
|
|
16
|
+
const ReEmptyState = YcEmptyState;
|
|
17
|
+
const YcKeyValueList = component.withInstall(keyValueList_vue_vue_type_script_setup_true_lang.default);
|
|
18
|
+
const ReKeyValueList = YcKeyValueList;
|
|
19
|
+
|
|
20
|
+
exports.ReBanner = ReBanner;
|
|
21
|
+
exports.ReEmptyState = ReEmptyState;
|
|
22
|
+
exports.ReKeyValueList = ReKeyValueList;
|
|
23
|
+
exports.ReTimeline = ReTimeline;
|
|
24
|
+
exports.YcBanner = YcBanner;
|
|
25
|
+
exports.YcEmptyState = YcEmptyState;
|
|
26
|
+
exports.YcKeyValueList = YcKeyValueList;
|
|
27
|
+
exports.YcTimeline = YcTimeline;
|
|
28
|
+
exports.default = YcBanner;
|