@koi-design/uxd-ui 14.0.4 → 14.0.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/es/components/Calendar/Calendar.vue.d.ts +15 -0
- package/es/components/Calendar/Header.vue.d.ts +15 -0
- package/es/components/Calendar/index.d.ts +30 -0
- package/es/components/Radio/Radio.mjs +5 -4
- package/es/components/Radio/Radio.mjs.map +1 -1
- package/es/components/Radio/Radio.type.d.ts +4 -0
- package/es/components/Radio/Radio.type.mjs +4 -0
- package/es/components/Radio/Radio.type.mjs.map +1 -1
- package/es/components/Radio/Radio.vue.d.ts +9 -0
- package/es/components/Radio/index.d.ts +15 -0
- package/es/components/Table/BaseTable.mjs +20 -6
- package/es/components/Table/BaseTable.mjs.map +1 -1
- package/es/components/Table/BaseTable.vue.d.ts +44 -9
- package/es/components/Table/BodyTable.vue.d.ts +44 -9
- package/es/components/Table/HeadTable.vue.d.ts +44 -9
- package/es/components/Table/Table.mjs +8 -9
- package/es/components/Table/Table.mjs.map +1 -1
- package/es/components/Table/Table.type.d.ts +7 -5
- package/es/components/Table/Table.type.mjs.map +1 -1
- package/es/components/Table/Table.vue.d.ts +88 -18
- package/es/components/Table/TableBox.vue.d.ts +88 -18
- package/es/components/Table/hooks/useTableResize.d.ts +1 -1
- package/es/components/Table/hooks/useTableResize.mjs +13 -71
- package/es/components/Table/hooks/useTableResize.mjs.map +1 -1
- package/es/components/Table/tableUnits/ColGroup.mjs +8 -5
- package/es/components/Table/tableUnits/ColGroup.mjs.map +1 -1
- package/es/components/Table/tableUnits/ExpandIcon.mjs +2 -2
- package/es/components/Table/tableUnits/ExpandIcon.mjs.map +1 -1
- package/es/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
- package/es/components/Table/tableUnits/ExpandRows.mjs.map +1 -1
- package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
- package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
- package/es/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
- package/es/components/Table/tableUnits/TableCell.mjs +108 -95
- package/es/components/Table/tableUnits/TableCell.mjs.map +1 -1
- package/es/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
- package/es/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
- package/es/components/Tabs/TabNav.mjs +4 -5
- package/es/components/Tabs/TabNav.mjs.map +1 -1
- package/es/components/Tabs/TabNav.vue.d.ts +1 -1
- package/es/components/Tabs/Tabs.d.ts +1 -1
- package/es/components/Tabs/index.d.ts +3 -3
- package/es/components/base/ResizeObserver.mjs +1 -1
- package/es/components/base/ResizeObserver.mjs.map +1 -1
- package/lib/components/Calendar/Calendar.vue.d.ts +15 -0
- package/lib/components/Calendar/Header.vue.d.ts +15 -0
- package/lib/components/Calendar/index.d.ts +30 -0
- package/lib/components/Radio/Radio.js +4 -3
- package/lib/components/Radio/Radio.js.map +1 -1
- package/lib/components/Radio/Radio.type.d.ts +4 -0
- package/lib/components/Radio/Radio.type.js +4 -0
- package/lib/components/Radio/Radio.type.js.map +1 -1
- package/lib/components/Radio/Radio.vue.d.ts +9 -0
- package/lib/components/Radio/index.d.ts +15 -0
- package/lib/components/Table/BaseTable.js +20 -6
- package/lib/components/Table/BaseTable.js.map +1 -1
- package/lib/components/Table/BaseTable.vue.d.ts +44 -9
- package/lib/components/Table/BodyTable.vue.d.ts +44 -9
- package/lib/components/Table/HeadTable.vue.d.ts +44 -9
- package/lib/components/Table/Table.js +7 -8
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Table.type.d.ts +7 -5
- package/lib/components/Table/Table.type.js.map +1 -1
- package/lib/components/Table/Table.vue.d.ts +88 -18
- package/lib/components/Table/TableBox.vue.d.ts +88 -18
- package/lib/components/Table/hooks/useTableResize.d.ts +1 -1
- package/lib/components/Table/hooks/useTableResize.js +11 -69
- package/lib/components/Table/hooks/useTableResize.js.map +1 -1
- package/lib/components/Table/tableUnits/ColGroup.js +8 -5
- package/lib/components/Table/tableUnits/ColGroup.js.map +1 -1
- package/lib/components/Table/tableUnits/ExpandIcon.js +1 -1
- package/lib/components/Table/tableUnits/ExpandIcon.js.map +1 -1
- package/lib/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
- package/lib/components/Table/tableUnits/ExpandRows.js.map +1 -1
- package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
- package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
- package/lib/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
- package/lib/components/Table/tableUnits/TableCell.js +107 -94
- package/lib/components/Table/tableUnits/TableCell.js.map +1 -1
- package/lib/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
- package/lib/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
- package/lib/components/Tabs/TabNav.js +3 -4
- package/lib/components/Tabs/TabNav.js.map +1 -1
- package/lib/components/Tabs/TabNav.vue.d.ts +1 -1
- package/lib/components/Tabs/Tabs.d.ts +1 -1
- package/lib/components/Tabs/index.d.ts +3 -3
- package/lib/components/base/ResizeObserver.js +1 -1
- package/lib/components/base/ResizeObserver.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/alert/index.css +1 -1
- package/styles/components/autoComplete/index.css +1 -1
- package/styles/components/avatar/index.css +1 -1
- package/styles/components/button/index.css +1 -1
- package/styles/components/carousel/index.css +1 -1
- package/styles/components/cascader/index.css +1 -1
- package/styles/components/datePicker/index.css +1 -1
- package/styles/components/dropdown/index.css +1 -1
- package/styles/components/dropdown/index.less +2 -3
- package/styles/components/form/index.css +1 -1
- package/styles/components/icon/index.css +1 -1
- package/styles/components/input/index.css +1 -1
- package/styles/components/inputNumber/index.css +1 -1
- package/styles/components/link/index.css +1 -1
- package/styles/components/mentions/index.css +1 -1
- package/styles/components/modal/index.css +1 -1
- package/styles/components/select/index.css +1 -1
- package/styles/components/spin/index.css +1 -1
- package/styles/components/table/index.css +1 -1
- package/styles/components/table/index.less +106 -242
- package/styles/components/table/var.less +16 -31
- package/styles/components/tabs/borderCard.less +23 -27
- package/styles/components/tabs/card.less +18 -37
- package/styles/components/tabs/index.css +1 -1
- package/styles/components/tabs/index.less +103 -72
- package/styles/components/tabs/var.less +16 -71
- package/styles/components/timePicker/index.css +1 -1
- package/styles/cssVariable.css +1 -1
- package/styles/cssVariable.less +1 -1
- package/styles/index.css +1 -1
- package/types/components/Calendar/Calendar.vue.d.ts +15 -0
- package/types/components/Calendar/Header.vue.d.ts +15 -0
- package/types/components/Calendar/index.d.ts +30 -0
- package/types/components/Radio/Radio.type.d.ts +4 -0
- package/types/components/Radio/Radio.vue.d.ts +9 -0
- package/types/components/Radio/index.d.ts +15 -0
- package/types/components/Table/BaseTable.vue.d.ts +44 -9
- package/types/components/Table/BodyTable.vue.d.ts +44 -9
- package/types/components/Table/HeadTable.vue.d.ts +44 -9
- package/types/components/Table/Table.type.d.ts +7 -5
- package/types/components/Table/Table.vue.d.ts +88 -18
- package/types/components/Table/TableBox.vue.d.ts +88 -18
- package/types/components/Table/hooks/useTableResize.d.ts +1 -1
- package/types/components/Table/tableUnits/ExpandIcon.vue.d.ts +3 -3
- package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +21 -3
- package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +15 -0
- package/types/components/Table/tableUnits/TableBody.vue.d.ts +42 -6
- package/types/components/Table/tableUnits/TableCell.vue.d.ts +21 -3
- package/types/components/Table/tableUnits/TableRow.vue.d.ts +21 -3
- package/types/components/Tabs/TabNav.vue.d.ts +1 -1
- package/types/components/Tabs/Tabs.d.ts +1 -1
- package/types/components/Tabs/index.d.ts +3 -3
- package/uxd-ui.css +1 -1
- package/uxd-ui.esm.min.mjs +6 -6
- package/uxd-ui.esm.mjs +164 -191
- package/uxd-ui.umd.js +164 -191
- package/uxd-ui.umd.min.js +6 -6
|
@@ -583,7 +583,7 @@ export declare const UTabs: {
|
|
|
583
583
|
color: string;
|
|
584
584
|
spin: boolean;
|
|
585
585
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Record<string, any>;
|
|
586
|
-
|
|
586
|
+
X: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
587
587
|
ChevronLeft: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
588
588
|
ChevronRight: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
589
589
|
Plus: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
@@ -1279,7 +1279,7 @@ export declare const UTabs: {
|
|
|
1279
1279
|
color: string;
|
|
1280
1280
|
spin: boolean;
|
|
1281
1281
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Record<string, any>;
|
|
1282
|
-
|
|
1282
|
+
X: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
1283
1283
|
ChevronLeft: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
1284
1284
|
ChevronRight: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
1285
1285
|
Plus: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
@@ -1853,7 +1853,7 @@ export declare const UTabs: {
|
|
|
1853
1853
|
color: string;
|
|
1854
1854
|
spin: boolean;
|
|
1855
1855
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Record<string, any>;
|
|
1856
|
-
|
|
1856
|
+
X: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
1857
1857
|
ChevronLeft: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
1858
1858
|
ChevronRight: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
1859
1859
|
Plus: import("vue").FunctionalComponent<import("lucide-vue-next").LucideProps, {}, any, {}>;
|
|
@@ -25,7 +25,7 @@ var ResizeObserver$1 = defineComponent({
|
|
|
25
25
|
if (stateWidth !== _width || stateHeight !== _height) {
|
|
26
26
|
stateWidth = _width;
|
|
27
27
|
stateHeight = _height;
|
|
28
|
-
emit("resize", {
|
|
28
|
+
emit("resize", { target, width: _width, height: _height });
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
const destroyObserver = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResizeObserver.mjs","sources":["../../../../src/components/base/ResizeObserver.ts"],"sourcesContent":["import 'resize-observer-polyfill';\nimport { ref, onMounted, onUpdated, onBeforeUnmount, defineComponent } from 'vue';\nimport { cloneVNode, findDOMNode } from '../../utils/slots';\n\nexport default defineComponent({\n name: 'ResizeObserver',\n props: {\n disabled: {\n type: Boolean,\n default: false\n }\n },\n emits: ['resize'],\n setup(props, { emit, slots }) {\n const root = ref(null);\n let resizeObserver: ResizeObserver | null = null;\n let currentElement: HTMLElement | null = null;\n let stateWidth = 0;\n let stateHeight = 0;\n\n const handleResize = (elems: ResizeObserverEntry[]) => {\n const [{ target }] = elems;\n const { width, height } = target.getBoundingClientRect();\n const _width = Math.floor(width);\n const _height = Math.floor(height);\n if (stateWidth !== _width || stateHeight !== _height) {\n stateWidth = _width;\n stateHeight = _height;\n emit('resize', {
|
|
1
|
+
{"version":3,"file":"ResizeObserver.mjs","sources":["../../../../src/components/base/ResizeObserver.ts"],"sourcesContent":["import 'resize-observer-polyfill';\nimport { ref, onMounted, onUpdated, onBeforeUnmount, defineComponent } from 'vue';\nimport { cloneVNode, findDOMNode } from '../../utils/slots';\n\nexport default defineComponent({\n name: 'ResizeObserver',\n props: {\n disabled: {\n type: Boolean,\n default: false\n }\n },\n emits: ['resize'],\n setup(props, { emit, slots }) {\n const root = ref(null);\n let resizeObserver: ResizeObserver | null = null;\n let currentElement: HTMLElement | null = null;\n let stateWidth = 0;\n let stateHeight = 0;\n\n const handleResize = (elems: ResizeObserverEntry[]) => {\n const [{ target }] = elems;\n const { width, height } = target.getBoundingClientRect();\n const _width = Math.floor(width);\n const _height = Math.floor(height);\n if (stateWidth !== _width || stateHeight !== _height) {\n stateWidth = _width;\n stateHeight = _height;\n emit('resize', { target, width: _width, height: _height });\n }\n };\n\n const destroyObserver = () => {\n if (resizeObserver) {\n resizeObserver.disconnect();\n resizeObserver = null;\n }\n };\n\n const onCompontentUpdated = () => {\n if (props.disabled) {\n destroyObserver();\n return;\n }\n const element = findDOMNode(root.value);\n if (currentElement !== element) {\n destroyObserver();\n currentElement = element;\n }\n if (!resizeObserver && element && ResizeObserver) {\n resizeObserver = new ResizeObserver(handleResize);\n resizeObserver.observe(element);\n }\n };\n\n onMounted(() => {\n onCompontentUpdated();\n });\n\n onUpdated(() => {\n onCompontentUpdated();\n });\n\n onBeforeUnmount(() => {\n destroyObserver();\n });\n\n const getRenderChild = () => {\n const chidlren = slots.default?.();\n if (chidlren && chidlren?.length > 0) {\n return cloneVNode(chidlren[0], {\n ref: root\n });\n }\n return null;\n };\n return () => getRenderChild();\n }\n});\n"],"names":[],"mappings":";;;;AAIA,uBAAe,gBAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,OAAO;AAAA,IACL,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA;AACX;AACF,EACA,OAAO,CAAC,QAAQ;AAAA,EAChB,MAAM,OAAO,EAAE,MAAM,SAAS;AAC5B,UAAM,OAAO,IAAI,IAAI;AACrB,QAAI,iBAAwC;AAC5C,QAAI,iBAAqC;AACzC,QAAI,aAAa;AACjB,QAAI,cAAc;AAElB,UAAM,eAAe,CAAC,UAAiC;AACrD,YAAM,CAAC,EAAE,QAAQ,IAAI;AACrB,YAAM,EAAE,OAAO,WAAW,OAAO;AACjC,YAAM,SAAS,KAAK,MAAM,KAAK;AAC/B,YAAM,UAAU,KAAK,MAAM,MAAM;AACjC,UAAI,eAAe,UAAU,gBAAgB,SAAS;AACpD,qBAAa;AACb,sBAAc;AACd,aAAK,UAAU,EAAE,QAAQ,OAAO,QAAQ,QAAQ,SAAS;AAAA;AAC3D;AAGF,UAAM,kBAAkB,MAAM;AAC5B,UAAI,gBAAgB;AAClB,uBAAe;AACf,yBAAiB;AAAA;AACnB;AAGF,UAAM,sBAAsB,MAAM;AAChC,UAAI,MAAM,UAAU;AAClB;AACA;AAAA;AAEF,YAAM,UAAU,YAAY,KAAK,KAAK;AACtC,UAAI,mBAAmB,SAAS;AAC9B;AACA,yBAAiB;AAAA;AAEnB,UAAI,CAAC,kBAAkB,WAAW,gBAAgB;AAChD,yBAAiB,IAAI,eAAe,YAAY;AAChD,uBAAe,QAAQ,OAAO;AAAA;AAChC;AAGF,cAAU,MAAM;AACd;AAAoB,KACrB;AAED,cAAU,MAAM;AACd;AAAoB,KACrB;AAED,oBAAgB,MAAM;AACpB;AAAgB,KACjB;AAED,UAAM,iBAAiB,MAAM;AAnEjC;AAoEM,YAAM,YAAW,WAAM,YAAN;AACjB,UAAI,aAAY,qCAAU,UAAS,GAAG;AACpC,eAAO,WAAW,SAAS,IAAI;AAAA,UAC7B,KAAK;AAAA,SACN;AAAA;AAEH,aAAO;AAAA;AAET,WAAO,MAAM;AAAe;AAEhC,CAAC;;;;"}
|
|
@@ -1240,6 +1240,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1240
1240
|
type: (StringConstructor | NumberConstructor)[];
|
|
1241
1241
|
default: string;
|
|
1242
1242
|
};
|
|
1243
|
+
label: {
|
|
1244
|
+
type: StringConstructor;
|
|
1245
|
+
default: string;
|
|
1246
|
+
};
|
|
1243
1247
|
disabled: {
|
|
1244
1248
|
type: BooleanConstructor;
|
|
1245
1249
|
default: boolean;
|
|
@@ -1276,6 +1280,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1276
1280
|
size: "small" | "default" | "large";
|
|
1277
1281
|
disabled: boolean;
|
|
1278
1282
|
modelValue: import("..").RadioValueType;
|
|
1283
|
+
label: string;
|
|
1279
1284
|
value: string | number;
|
|
1280
1285
|
trueValue: import("..").RadioValueType;
|
|
1281
1286
|
falseValue: import("..").RadioValueType;
|
|
@@ -1303,6 +1308,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1303
1308
|
type: (StringConstructor | NumberConstructor)[];
|
|
1304
1309
|
default: string;
|
|
1305
1310
|
};
|
|
1311
|
+
label: {
|
|
1312
|
+
type: StringConstructor;
|
|
1313
|
+
default: string;
|
|
1314
|
+
};
|
|
1306
1315
|
disabled: {
|
|
1307
1316
|
type: BooleanConstructor;
|
|
1308
1317
|
default: boolean;
|
|
@@ -1336,6 +1345,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1336
1345
|
size: "small" | "default" | "large";
|
|
1337
1346
|
disabled: boolean;
|
|
1338
1347
|
modelValue: import("..").RadioValueType;
|
|
1348
|
+
label: string;
|
|
1339
1349
|
value: string | number;
|
|
1340
1350
|
trueValue: import("..").RadioValueType;
|
|
1341
1351
|
falseValue: import("..").RadioValueType;
|
|
@@ -1360,6 +1370,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1360
1370
|
type: (StringConstructor | NumberConstructor)[];
|
|
1361
1371
|
default: string;
|
|
1362
1372
|
};
|
|
1373
|
+
label: {
|
|
1374
|
+
type: StringConstructor;
|
|
1375
|
+
default: string;
|
|
1376
|
+
};
|
|
1363
1377
|
disabled: {
|
|
1364
1378
|
type: BooleanConstructor;
|
|
1365
1379
|
default: boolean;
|
|
@@ -1396,6 +1410,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1396
1410
|
size: "small" | "default" | "large";
|
|
1397
1411
|
disabled: boolean;
|
|
1398
1412
|
modelValue: import("..").RadioValueType;
|
|
1413
|
+
label: string;
|
|
1399
1414
|
value: string | number;
|
|
1400
1415
|
trueValue: import("..").RadioValueType;
|
|
1401
1416
|
falseValue: import("..").RadioValueType;
|
|
@@ -968,6 +968,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
968
968
|
type: (StringConstructor | NumberConstructor)[];
|
|
969
969
|
default: string;
|
|
970
970
|
};
|
|
971
|
+
label: {
|
|
972
|
+
type: StringConstructor;
|
|
973
|
+
default: string;
|
|
974
|
+
};
|
|
971
975
|
disabled: {
|
|
972
976
|
type: BooleanConstructor;
|
|
973
977
|
default: boolean;
|
|
@@ -1004,6 +1008,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1004
1008
|
size: "small" | "default" | "large";
|
|
1005
1009
|
disabled: boolean;
|
|
1006
1010
|
modelValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
1011
|
+
label: string;
|
|
1007
1012
|
value: string | number;
|
|
1008
1013
|
trueValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
1009
1014
|
falseValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
@@ -1031,6 +1036,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1031
1036
|
type: (StringConstructor | NumberConstructor)[];
|
|
1032
1037
|
default: string;
|
|
1033
1038
|
};
|
|
1039
|
+
label: {
|
|
1040
|
+
type: StringConstructor;
|
|
1041
|
+
default: string;
|
|
1042
|
+
};
|
|
1034
1043
|
disabled: {
|
|
1035
1044
|
type: BooleanConstructor;
|
|
1036
1045
|
default: boolean;
|
|
@@ -1064,6 +1073,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1064
1073
|
size: "small" | "default" | "large";
|
|
1065
1074
|
disabled: boolean;
|
|
1066
1075
|
modelValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
1076
|
+
label: string;
|
|
1067
1077
|
value: string | number;
|
|
1068
1078
|
trueValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
1069
1079
|
falseValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
@@ -1088,6 +1098,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1088
1098
|
type: (StringConstructor | NumberConstructor)[];
|
|
1089
1099
|
default: string;
|
|
1090
1100
|
};
|
|
1101
|
+
label: {
|
|
1102
|
+
type: StringConstructor;
|
|
1103
|
+
default: string;
|
|
1104
|
+
};
|
|
1091
1105
|
disabled: {
|
|
1092
1106
|
type: BooleanConstructor;
|
|
1093
1107
|
default: boolean;
|
|
@@ -1124,6 +1138,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1124
1138
|
size: "small" | "default" | "large";
|
|
1125
1139
|
disabled: boolean;
|
|
1126
1140
|
modelValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
1141
|
+
label: string;
|
|
1127
1142
|
value: string | number;
|
|
1128
1143
|
trueValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
1129
1144
|
falseValue: import("@koi-design/uxd-ui/es/components/Radio").RadioValueType;
|
|
@@ -1205,6 +1205,10 @@ export declare const UCalendar: {
|
|
|
1205
1205
|
type: (StringConstructor | NumberConstructor)[];
|
|
1206
1206
|
default: string;
|
|
1207
1207
|
};
|
|
1208
|
+
label: {
|
|
1209
|
+
type: StringConstructor;
|
|
1210
|
+
default: string;
|
|
1211
|
+
};
|
|
1208
1212
|
disabled: {
|
|
1209
1213
|
type: BooleanConstructor;
|
|
1210
1214
|
default: boolean;
|
|
@@ -1241,6 +1245,7 @@ export declare const UCalendar: {
|
|
|
1241
1245
|
size: "small" | "default" | "large";
|
|
1242
1246
|
disabled: boolean;
|
|
1243
1247
|
modelValue: import("..").RadioValueType;
|
|
1248
|
+
label: string;
|
|
1244
1249
|
value: string | number;
|
|
1245
1250
|
trueValue: import("..").RadioValueType;
|
|
1246
1251
|
falseValue: import("..").RadioValueType;
|
|
@@ -1268,6 +1273,10 @@ export declare const UCalendar: {
|
|
|
1268
1273
|
type: (StringConstructor | NumberConstructor)[];
|
|
1269
1274
|
default: string;
|
|
1270
1275
|
};
|
|
1276
|
+
label: {
|
|
1277
|
+
type: StringConstructor;
|
|
1278
|
+
default: string;
|
|
1279
|
+
};
|
|
1271
1280
|
disabled: {
|
|
1272
1281
|
type: BooleanConstructor;
|
|
1273
1282
|
default: boolean;
|
|
@@ -1301,6 +1310,7 @@ export declare const UCalendar: {
|
|
|
1301
1310
|
size: "small" | "default" | "large";
|
|
1302
1311
|
disabled: boolean;
|
|
1303
1312
|
modelValue: import("..").RadioValueType;
|
|
1313
|
+
label: string;
|
|
1304
1314
|
value: string | number;
|
|
1305
1315
|
trueValue: import("..").RadioValueType;
|
|
1306
1316
|
falseValue: import("..").RadioValueType;
|
|
@@ -1325,6 +1335,10 @@ export declare const UCalendar: {
|
|
|
1325
1335
|
type: (StringConstructor | NumberConstructor)[];
|
|
1326
1336
|
default: string;
|
|
1327
1337
|
};
|
|
1338
|
+
label: {
|
|
1339
|
+
type: StringConstructor;
|
|
1340
|
+
default: string;
|
|
1341
|
+
};
|
|
1328
1342
|
disabled: {
|
|
1329
1343
|
type: BooleanConstructor;
|
|
1330
1344
|
default: boolean;
|
|
@@ -1361,6 +1375,7 @@ export declare const UCalendar: {
|
|
|
1361
1375
|
size: "small" | "default" | "large";
|
|
1362
1376
|
disabled: boolean;
|
|
1363
1377
|
modelValue: import("..").RadioValueType;
|
|
1378
|
+
label: string;
|
|
1364
1379
|
value: string | number;
|
|
1365
1380
|
trueValue: import("..").RadioValueType;
|
|
1366
1381
|
falseValue: import("..").RadioValueType;
|
|
@@ -3169,6 +3184,10 @@ export declare const UCalendar: {
|
|
|
3169
3184
|
type: (StringConstructor | NumberConstructor)[];
|
|
3170
3185
|
default: string;
|
|
3171
3186
|
};
|
|
3187
|
+
label: {
|
|
3188
|
+
type: StringConstructor;
|
|
3189
|
+
default: string;
|
|
3190
|
+
};
|
|
3172
3191
|
disabled: {
|
|
3173
3192
|
type: BooleanConstructor;
|
|
3174
3193
|
default: boolean;
|
|
@@ -3205,6 +3224,7 @@ export declare const UCalendar: {
|
|
|
3205
3224
|
size: "small" | "default" | "large";
|
|
3206
3225
|
disabled: boolean;
|
|
3207
3226
|
modelValue: import("..").RadioValueType;
|
|
3227
|
+
label: string;
|
|
3208
3228
|
value: string | number;
|
|
3209
3229
|
trueValue: import("..").RadioValueType;
|
|
3210
3230
|
falseValue: import("..").RadioValueType;
|
|
@@ -3232,6 +3252,10 @@ export declare const UCalendar: {
|
|
|
3232
3252
|
type: (StringConstructor | NumberConstructor)[];
|
|
3233
3253
|
default: string;
|
|
3234
3254
|
};
|
|
3255
|
+
label: {
|
|
3256
|
+
type: StringConstructor;
|
|
3257
|
+
default: string;
|
|
3258
|
+
};
|
|
3235
3259
|
disabled: {
|
|
3236
3260
|
type: BooleanConstructor;
|
|
3237
3261
|
default: boolean;
|
|
@@ -3265,6 +3289,7 @@ export declare const UCalendar: {
|
|
|
3265
3289
|
size: "small" | "default" | "large";
|
|
3266
3290
|
disabled: boolean;
|
|
3267
3291
|
modelValue: import("..").RadioValueType;
|
|
3292
|
+
label: string;
|
|
3268
3293
|
value: string | number;
|
|
3269
3294
|
trueValue: import("..").RadioValueType;
|
|
3270
3295
|
falseValue: import("..").RadioValueType;
|
|
@@ -3289,6 +3314,10 @@ export declare const UCalendar: {
|
|
|
3289
3314
|
type: (StringConstructor | NumberConstructor)[];
|
|
3290
3315
|
default: string;
|
|
3291
3316
|
};
|
|
3317
|
+
label: {
|
|
3318
|
+
type: StringConstructor;
|
|
3319
|
+
default: string;
|
|
3320
|
+
};
|
|
3292
3321
|
disabled: {
|
|
3293
3322
|
type: BooleanConstructor;
|
|
3294
3323
|
default: boolean;
|
|
@@ -3325,6 +3354,7 @@ export declare const UCalendar: {
|
|
|
3325
3354
|
size: "small" | "default" | "large";
|
|
3326
3355
|
disabled: boolean;
|
|
3327
3356
|
modelValue: import("..").RadioValueType;
|
|
3357
|
+
label: string;
|
|
3328
3358
|
value: string | number;
|
|
3329
3359
|
trueValue: import("..").RadioValueType;
|
|
3330
3360
|
falseValue: import("..").RadioValueType;
|
|
@@ -140,13 +140,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
140
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleOnBlur && _ctx.handleOnBlur(...args))
|
|
141
141
|
}, null, 42, _hoisted_1)
|
|
142
142
|
], 2),
|
|
143
|
-
vue.
|
|
143
|
+
_ctx.label || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
144
|
+
key: 0,
|
|
144
145
|
class: vue.normalizeClass([`${_ctx.prefixCls}-label`])
|
|
145
146
|
}, [
|
|
146
147
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
147
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.
|
|
148
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
148
149
|
])
|
|
149
|
-
], 2)
|
|
150
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
150
151
|
], 2);
|
|
151
152
|
}
|
|
152
153
|
var Radio = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "/Users/admin/Documents/uxd/uxd-ui/src/components/Radio/Radio.vue"]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n `${prefixCls}-wrap-${computedSize}`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled\n }\n ]\"\n >\n <span v-show=\"showInput\" :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\" />\n <input\n type=\"radio\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"groupName\"\n @change=\"change\"\n @focus=\"handleOnFocus\"\n @blur=\"handleOnBlur\"\n />\n </span>\n <span :class=\"[`${prefixCls}-label`]\">\n <slot>{{
|
|
1
|
+
{"version":3,"file":"Radio.js","sources":["../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n `${prefixCls}-wrap`,\n `${prefixCls}-wrap-${computedSize}`,\n {\n [`${prefixCls}-wrap-checked`]: computedChecked,\n [`${prefixCls}-wrap-disabled`]: computedDisabled,\n [`${prefixCls}-focus`]: focusWrap\n }\n ]\"\n >\n <span\n :class=\"[\n prefixCls,\n {\n [`${prefixCls}-checked`]: computedChecked,\n [`${prefixCls}-disabled`]: computedDisabled\n }\n ]\"\n >\n <span v-show=\"showInput\" :class=\"[`${prefixCls}-inner`, { [`${prefixCls}-focus`]: focusInner }]\" />\n <input\n type=\"radio\"\n :class=\"`${prefixCls}-input`\"\n :disabled=\"computedDisabled\"\n :checked=\"computedChecked\"\n :name=\"groupName\"\n @change=\"change\"\n @focus=\"handleOnFocus\"\n @blur=\"handleOnBlur\"\n />\n </span>\n\n <span v-if=\"label || $slots.default\" :class=\"[`${prefixCls}-label`]\">\n <slot>{{ label }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, inject, computed, ref, watch } from 'vue';\nimport useGlobalConfig from '../base/hooks/useGlobalConfig';\nimport { FormItemKey } from '../Form';\nimport type { FormItemContext } from '../Form/Form.type';\nimport { type RadioGroupContext, radioProps, radioEmits } from './Radio.type';\n\nexport default defineComponent({\n name: 'URadio',\n props: radioProps,\n emits: radioEmits,\n setup(props, { emit }) {\n // prefixCls\n const { prefixCls } = useGlobalConfig('radio');\n const radioGroupContext = inject<RadioGroupContext | null>('radioGroupContext', null);\n // data\n const focusWrap = ref(false);\n const focusInner = ref(false);\n const stateValue = ref(props.modelValue || false);\n // computed\n const computedChecked = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.stateValue.value === props.value;\n }\n return !!stateValue.value;\n });\n const groupName = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.name.value;\n }\n return props.name;\n });\n\n const computedSize = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.size.value || props.size;\n }\n return props.size;\n });\n const computedDisabled = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.disabled.value || props.disabled;\n }\n return props.disabled;\n });\n\n const showInput = computed(() => {\n if (radioGroupContext) {\n return radioGroupContext.computedType?.value === 'default';\n }\n return true;\n });\n // watch\n watch(\n () => props.modelValue,\n (nv) => {\n stateValue.value = nv === props.trueValue;\n },\n { immediate: true }\n );\n // methods\n const { onFieldChange } = inject<FormItemContext>(FormItemKey, {} as FormItemContext);\n const change = (event: any) => {\n if (props.disabled) {\n return false;\n }\n stateValue.value = event.target.checked;\n const value = stateValue.value ? props.trueValue : props.falseValue;\n if (radioGroupContext) {\n if (props.value !== undefined) {\n radioGroupContext.change(props.value);\n }\n } else {\n emit('update:modelValue', value);\n emit('change', value, event);\n if (onFieldChange) {\n onFieldChange(value);\n }\n }\n };\n const handleOnFocus = () => {\n if (radioGroupContext && radioGroupContext.computedType && radioGroupContext.computedType.value === 'default') {\n focusInner.value = true;\n } else {\n focusWrap.value = true;\n }\n };\n const handleOnBlur = () => {\n focusWrap.value = false;\n focusInner.value = false;\n };\n return {\n prefixCls,\n computedSize,\n computedDisabled,\n focusWrap,\n focusInner,\n computedChecked,\n showInput,\n groupName,\n change,\n handleOnFocus,\n handleOnBlur\n };\n }\n});\n</script>\n\n<style></style>\n"],"names":["defineComponent","radioProps","radioEmits","useGlobalConfig","inject","ref","computed","FormItemKey","_createElementBlock","_normalizeClass","_createElementVNode","_renderSlot"],"mappings":";;;;;;;;;;;AA+CA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,OAAOC;AAAA,EACP,OAAOC;AAAA,EACP,MAAM,OAAO,EAAE,QAAQ;UAEf,EAAE,cAAcC,2BAAgB,OAAO;UACvC,oBAAoBC,WAAiC,qBAAqB,IAAI;UAE9E,YAAYC,QAAI,KAAK;UACrB,aAAaA,QAAI,KAAK;UACtB,aAAaA,QAAI,MAAM,cAAc,KAAK;UAE1C,kBAAkBC,aAAS,MAAM;UACjC,mBAAmB;eACd,kBAAkB,WAAW,UAAU,MAAM;AAAA;aAE/C,CAAC,CAAC,WAAW;AAAA,KACrB;UACK,YAAYA,aAAS,MAAM;UAC3B,mBAAmB;eACd,kBAAkB,KAAK;AAAA;aAEzB,MAAM;AAAA,KACd;UAEK,eAAeA,aAAS,MAAM;UAC9B,mBAAmB;eACd,kBAAkB,KAAK,SAAS,MAAM;AAAA;aAExC,MAAM;AAAA,KACd;UACK,mBAAmBA,aAAS,MAAM;UAClC,mBAAmB;eACd,kBAAkB,SAAS,SAAS,MAAM;AAAA;aAE5C,MAAM;AAAA,KACd;UAEK,YAAYA,aAAS,MAAM;AA7CrC;UA8CU,mBAAmB;iBACd,uBAAkB,iBAAlB,mBAAgC,WAAU;AAAA;aAE5C;AAAA,KACR;;MAGC,MAAM,MAAM;AAAA,MACZ,CAAC,OAAO;mBACK,QAAQ,OAAO,MAAM;AAAA;AAClC,MACA,EAAE,WAAW;AAAK;UAGd,EAAE,kBAAkBF,WAAwBG,mBAAa,EAAqB;UAC9E,SAAS,CAAC,UAAe;UACzB,MAAM,UAAU;eACX;AAAA;iBAEE,QAAQ,MAAM,OAAO;YAC1B,QAAQ,WAAW,QAAQ,MAAM,YAAY,MAAM;UACrD,mBAAmB;YACjB,MAAM,UAAU,QAAW;4BACX,OAAO,MAAM,KAAK;AAAA;AACtC,aACK;aACA,qBAAqB,KAAK;aAC1B,UAAU,OAAO,KAAK;YACvB,eAAe;wBACH,KAAK;AAAA;AACrB;AACF;UAEI,gBAAgB,MAAM;UACtB,qBAAqB,kBAAkB,gBAAgB,kBAAkB,aAAa,UAAU,WAAW;mBAClG,QAAQ;AAAA,aACd;kBACK,QAAQ;AAAA;AACpB;UAEI,eAAe,MAAM;gBACf,QAAQ;iBACP,QAAQ;AAAA;WAEd;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;0BAhJCC,uBAoCQ;IAnCL,OAAKC;SAAa;SAA2B,uBAAkB;;YAAoC,gCAA2B;YAA6B,iCAA4B;YAA8B,yBAAoB;;;;IAU1OC,uBAoBO;MAnBJ,OAAKD;QAAY;;cAAmC,2BAAsB;cAA+B,4BAAuB;;;;yBAQjIC,uBAAmG;QAAzE,OAAKD,uBAAM,wBAAS,MAAgB,yBAAoB;;oBAApE,cAAS;AAAA;MACvBC,uBASE;QARA,MAAK;AAAA,QACJ,OAAKD,sBAAK,sBAAS;AAAA,QACnB,UAAU;QACV,SAAS;QACT,MAAM;QACN,UAAM,uCAAE;QACR,SAAK,uCAAE;QACP,QAAI,uCAAE;;;IAIC,cAAS,YAAO,4BAA5BD,uBAEO;;MAF+B,OAAKC,uBAAM,sBAAS;;MACxDE,eAAwB,4BAAxB,MAAwB;AAAA,gDAAf,UAAK;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.type.js","sources":["../../../../src/components/Radio/Radio.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\n\nexport type RadioValueType = string | number | boolean;\nexport type RadioGroupValueType = string | number;\nexport const radioGroupType = ['default', 'button'] as const;\nexport type RaidoGroupType = (typeof radioGroupType)[number];\nexport const radioButtonType = ['border', 'fill', 'line', 'segment', 'card'] as const;\nexport type RadioButtonType = (typeof radioButtonType)[number];\nexport interface RadioGroupOption {\n value: RadioGroupValueType;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const radioProps = {\n modelValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n trueValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n name: {\n type: String,\n default: ''\n }\n};\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>;\n\nexport const radioEmits = {\n change: (v: RadioValueType, e: Event) => (typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number') && e instanceof Event,\n 'update:modelValue': (v: RadioValueType) => typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number'\n};\n\nexport type RadioEmits = typeof radioEmits;\n\nlet seed = -1;\nconst getUuid = () => {\n const now = Date.now();\n seed += 1;\n return `uuiRadioGroup_${now}_${seed}`;\n};\n\nexport const radioGroupProps = {\n modelValue: {\n type: [String, Number] as PropType<RadioGroupValueType>,\n default: ''\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n type: {\n type: String as PropType<RaidoGroupType>,\n default: 'default',\n validator: oneOf(radioGroupType)\n },\n vertical: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: getUuid\n },\n options: {\n type: Array as PropType<RadioGroupOption[]>,\n default: () => [] as RadioGroupOption[]\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n buttonType: {\n type: String as PropType<RadioButtonType>,\n default: 'border',\n validator: oneOf(radioButtonType)\n },\n disabled: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;\n\nexport const radioGroupEmits = {\n change: (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number',\n 'update:modelValue': (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number'\n};\n\nexport interface RadioGroupContext {\n stateValue: Ref<RadioGroupValueType>;\n name: Ref<string>;\n computedType: Ref<RadioButtonType & 'default'>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n change: (state: RadioGroupValueType) => void;\n}\n"],"names":["oneOf","normalSizeMap"],"mappings":";;;;;;;MAOa,iBAAiB,CAAC,WAAW,QAAQ;MAErC,kBAAkB,CAAC,UAAU,QAAQ,QAAQ,WAAW,MAAM;MAS9D,aAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,aAAa;AAAA,EACxB,QAAQ,CAAC,GAAmB,OAAc,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM,aAAa,aAAa;AAAA,EACpI,qBAAqB,CAAC,MAAsB,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM;AAC9G;AAIA,IAAI,OAAO;AACX,MAAM,UAAU,MAAM;AACpB,QAAM,MAAM,KAAK;AACjB,UAAQ;AACR,SAAO,iBAAiB,OAAO;AACjC;MAEa,kBAAkB;AAAA,EAC7B,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAM,cAAc;AAAA;AACjC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAM,eAAe;AAAA;AAClC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AAAA,EAC1E,qBAAqB,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AACzF;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"Radio.type.js","sources":["../../../../src/components/Radio/Radio.type.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, Ref } from 'vue';\nimport { normalSizeMap } from '../../utils/globalType';\nimport type { NormalSizeMap } from '../../utils/globalType';\nimport { oneOf } from '../../utils/propsValidators';\n\nexport type RadioValueType = string | number | boolean;\nexport type RadioGroupValueType = string | number;\nexport const radioGroupType = ['default', 'button'] as const;\nexport type RaidoGroupType = (typeof radioGroupType)[number];\nexport const radioButtonType = ['border', 'fill', 'line', 'segment', 'card'] as const;\nexport type RadioButtonType = (typeof radioButtonType)[number];\nexport interface RadioGroupOption {\n value: RadioGroupValueType;\n label: string;\n disabled?: boolean;\n border?: boolean;\n}\n\nexport const radioProps = {\n modelValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n trueValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean] as PropType<RadioValueType>,\n default: false\n },\n value: {\n type: [String, Number],\n default: ''\n },\n label: {\n type: String,\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n name: {\n type: String,\n default: ''\n }\n};\n\nexport type RadioProps = ExtractPropTypes<typeof radioProps>;\n\nexport const radioEmits = {\n change: (v: RadioValueType, e: Event) => (typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number') && e instanceof Event,\n 'update:modelValue': (v: RadioValueType) => typeof v === 'boolean' || typeof v === 'string' || typeof v === 'number'\n};\n\nexport type RadioEmits = typeof radioEmits;\n\nlet seed = -1;\nconst getUuid = () => {\n const now = Date.now();\n seed += 1;\n return `uuiRadioGroup_${now}_${seed}`;\n};\n\nexport const radioGroupProps = {\n modelValue: {\n type: [String, Number] as PropType<RadioGroupValueType>,\n default: ''\n },\n size: {\n type: String as PropType<NormalSizeMap>,\n default: 'default',\n validator: oneOf(normalSizeMap)\n },\n type: {\n type: String as PropType<RaidoGroupType>,\n default: 'default',\n validator: oneOf(radioGroupType)\n },\n vertical: {\n type: Boolean,\n default: false\n },\n name: {\n type: String,\n default: getUuid\n },\n options: {\n type: Array as PropType<RadioGroupOption[]>,\n default: () => [] as RadioGroupOption[]\n },\n buttonFill: {\n type: Boolean,\n default: false\n },\n buttonType: {\n type: String as PropType<RadioButtonType>,\n default: 'border',\n validator: oneOf(radioButtonType)\n },\n disabled: {\n type: Boolean,\n default: false\n },\n direction: {\n type: String as PropType<'ltr' | 'rtl'>\n }\n};\n\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;\n\nexport const radioGroupEmits = {\n change: (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number',\n 'update:modelValue': (v: RadioGroupValueType) => typeof v === 'string' || typeof v === 'number'\n};\n\nexport interface RadioGroupContext {\n stateValue: Ref<RadioGroupValueType>;\n name: Ref<string>;\n computedType: Ref<RadioButtonType & 'default'>;\n size: Ref<NormalSizeMap>;\n disabled: Ref<boolean>;\n change: (state: RadioGroupValueType) => void;\n}\n"],"names":["oneOf","normalSizeMap"],"mappings":";;;;;;;MAOa,iBAAiB,CAAC,WAAW,QAAQ;MAErC,kBAAkB,CAAC,UAAU,QAAQ,QAAQ,WAAW,MAAM;MAS9D,aAAa;AAAA,EACxB,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAEb;MAIa,aAAa;AAAA,EACxB,QAAQ,CAAC,GAAmB,OAAc,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM,aAAa,aAAa;AAAA,EACpI,qBAAqB,CAAC,MAAsB,OAAO,MAAM,aAAa,OAAO,MAAM,YAAY,OAAO,MAAM;AAC9G;AAIA,IAAI,OAAO;AACX,MAAM,UAAU,MAAM;AACpB,QAAM,MAAM,KAAK;AACjB,UAAQ;AACR,SAAO,iBAAiB,OAAO;AACjC;MAEa,kBAAkB;AAAA,EAC7B,YAAY;AAAA,IACV,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAMC,wBAAa;AAAA;AAChC,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWD,sBAAM,cAAc;AAAA;AACjC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,SAAS,MAAM;AAAC;AAClB,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAWA,sBAAM,eAAe;AAAA;AAClC,EACA,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AACX,EACA,WAAW;AAAA,IACT,MAAM;AAAA;AAEV;MAIa,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AAAA,EAC1E,qBAAqB,CAAC,MAA2B,OAAO,MAAM,YAAY,OAAO,MAAM;AACzF;;;;;;;;;"}
|
|
@@ -15,6 +15,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
15
15
|
type: (StringConstructor | NumberConstructor)[];
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
+
label: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
18
22
|
disabled: {
|
|
19
23
|
type: BooleanConstructor;
|
|
20
24
|
default: boolean;
|
|
@@ -60,6 +64,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
60
64
|
type: (StringConstructor | NumberConstructor)[];
|
|
61
65
|
default: string;
|
|
62
66
|
};
|
|
67
|
+
label: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
63
71
|
disabled: {
|
|
64
72
|
type: BooleanConstructor;
|
|
65
73
|
default: boolean;
|
|
@@ -81,6 +89,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
89
|
size: "small" | "default" | "large";
|
|
82
90
|
disabled: boolean;
|
|
83
91
|
modelValue: import("./Radio.type").RadioValueType;
|
|
92
|
+
label: string;
|
|
84
93
|
value: string | number;
|
|
85
94
|
trueValue: import("./Radio.type").RadioValueType;
|
|
86
95
|
falseValue: import("./Radio.type").RadioValueType;
|
|
@@ -17,6 +17,10 @@ export declare const URadio: {
|
|
|
17
17
|
type: (StringConstructor | NumberConstructor)[];
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
+
label: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
20
24
|
disabled: {
|
|
21
25
|
type: BooleanConstructor;
|
|
22
26
|
default: boolean;
|
|
@@ -53,6 +57,7 @@ export declare const URadio: {
|
|
|
53
57
|
size: "small" | "default" | "large";
|
|
54
58
|
disabled: boolean;
|
|
55
59
|
modelValue: import("./Radio.type").RadioValueType;
|
|
60
|
+
label: string;
|
|
56
61
|
value: string | number;
|
|
57
62
|
trueValue: import("./Radio.type").RadioValueType;
|
|
58
63
|
falseValue: import("./Radio.type").RadioValueType;
|
|
@@ -80,6 +85,10 @@ export declare const URadio: {
|
|
|
80
85
|
type: (StringConstructor | NumberConstructor)[];
|
|
81
86
|
default: string;
|
|
82
87
|
};
|
|
88
|
+
label: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
83
92
|
disabled: {
|
|
84
93
|
type: BooleanConstructor;
|
|
85
94
|
default: boolean;
|
|
@@ -113,6 +122,7 @@ export declare const URadio: {
|
|
|
113
122
|
size: "small" | "default" | "large";
|
|
114
123
|
disabled: boolean;
|
|
115
124
|
modelValue: import("./Radio.type").RadioValueType;
|
|
125
|
+
label: string;
|
|
116
126
|
value: string | number;
|
|
117
127
|
trueValue: import("./Radio.type").RadioValueType;
|
|
118
128
|
falseValue: import("./Radio.type").RadioValueType;
|
|
@@ -137,6 +147,10 @@ export declare const URadio: {
|
|
|
137
147
|
type: (StringConstructor | NumberConstructor)[];
|
|
138
148
|
default: string;
|
|
139
149
|
};
|
|
150
|
+
label: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
140
154
|
disabled: {
|
|
141
155
|
type: BooleanConstructor;
|
|
142
156
|
default: boolean;
|
|
@@ -173,6 +187,7 @@ export declare const URadio: {
|
|
|
173
187
|
size: "small" | "default" | "large";
|
|
174
188
|
disabled: boolean;
|
|
175
189
|
modelValue: import("./Radio.type").RadioValueType;
|
|
190
|
+
label: string;
|
|
176
191
|
value: string | number;
|
|
177
192
|
trueValue: import("./Radio.type").RadioValueType;
|
|
178
193
|
falseValue: import("./Radio.type").RadioValueType;
|
|
@@ -6,6 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var ColGroup = require('./tableUnits/ColGroup.js');
|
|
7
7
|
var TableHeader = require('./tableUnits/TableHeader.js');
|
|
8
8
|
var TableBody = require('./tableUnits/TableBody.js');
|
|
9
|
+
var useTableResize = require('./hooks/useTableResize.js');
|
|
9
10
|
var pluginVue_exportHelper = require('../../_virtual/plugin-vue_export-helper.js');
|
|
10
11
|
|
|
11
12
|
const _sfc_main = vue.defineComponent({
|
|
@@ -32,35 +33,48 @@ const _sfc_main = vue.defineComponent({
|
|
|
32
33
|
setup(props) {
|
|
33
34
|
const {
|
|
34
35
|
prefixCls,
|
|
35
|
-
|
|
36
|
+
props: { width },
|
|
37
|
+
size: { tableWidth }
|
|
36
38
|
} = vue.inject("tableContext", {});
|
|
37
39
|
const tableRef = vue.ref(null);
|
|
38
40
|
const tableStyle = vue.computed(() => {
|
|
39
41
|
const style = {};
|
|
40
|
-
|
|
42
|
+
if (width.value) {
|
|
43
|
+
style.width = typeof width.value === "number" ? `${width.value}px` : width.value;
|
|
44
|
+
} else if (props.columns.some((x) => x.fixed)) {
|
|
45
|
+
style.width = "max-content";
|
|
46
|
+
style.minWidth = "100%";
|
|
47
|
+
}
|
|
48
|
+
if (props.columns.some((x) => x.ellipsis) || props.columns.some((x) => x.resizable)) {
|
|
49
|
+
style.tableLayout = "fixed";
|
|
50
|
+
} else {
|
|
51
|
+
style.tableLayout = "auto";
|
|
52
|
+
}
|
|
41
53
|
return style;
|
|
42
54
|
});
|
|
43
55
|
const getColumns = () => {
|
|
44
56
|
let left = 0;
|
|
45
|
-
let right = props.columns.filter((x) => x.fixed === "right").reduce((sum,
|
|
46
|
-
|
|
57
|
+
let right = props.columns.filter((x) => x.fixed === "right").reduce((sum, column) => {
|
|
58
|
+
var _a;
|
|
59
|
+
const w = useTableResize.getWidth((_a = column.width) != null ? _a : column.minWidth, tableWidth.value);
|
|
47
60
|
return sum + w;
|
|
48
61
|
}, 0);
|
|
49
62
|
return props.columns.map((column) => {
|
|
63
|
+
var _a, _b;
|
|
50
64
|
const rst = {
|
|
51
65
|
...column,
|
|
52
66
|
className: column.fixed ? `${column.className || ""} ${prefixCls.value}-fixed-column ${prefixCls.value}-fixed-column-${column.fixed}` : column.className
|
|
53
67
|
};
|
|
54
68
|
if (column.fixed === "left") {
|
|
55
69
|
rst.left = left;
|
|
56
|
-
const w =
|
|
70
|
+
const w = useTableResize.getWidth((_a = column.width) != null ? _a : column.minWidth, tableWidth.value);
|
|
57
71
|
left += w;
|
|
58
72
|
if (column.lastLeft) {
|
|
59
73
|
rst.className = `${rst.className || ""} ${prefixCls.value}-fixed-column-${column.fixed}-last`;
|
|
60
74
|
}
|
|
61
75
|
}
|
|
62
76
|
if (column.fixed === "right") {
|
|
63
|
-
const w =
|
|
77
|
+
const w = useTableResize.getWidth((_b = column.width) != null ? _b : column.minWidth, tableWidth.value);
|
|
64
78
|
right -= w;
|
|
65
79
|
rst.right = right;
|
|
66
80
|
if (column.firstRight) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTable.js","sources":["../../../../src/components/Table/BaseTable.vue"],"sourcesContent":["<template>\n <table ref=\"tableRef\" :style=\"tableStyle\">\n <ColGroup :columns=\"columns\" />\n <TableHeader v-if=\"showHeader\" :columns=\"getColumns()\" />\n <TableBody v-if=\"showBody\" :columns=\"getColumns()\" />\n </table>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed, inject, ref } from 'vue';\nimport type { PropType, CSSProperties } from 'vue';\nimport ColGroup from './tableUnits/ColGroup.vue';\nimport TableHeader from './tableUnits/TableHeader.vue';\nimport TableBody from './tableUnits/TableBody.vue';\n// import useResizeObserver from '../base/hooks/useResizeObserver';\nimport type { InnerColumn, TableContext } from './Table.type';\n// import { debounce } from '../../utils/tools';\n\nexport default defineComponent({\n name: 'BaseTable',\n components: {\n ColGroup,\n TableHeader,\n TableBody\n },\n props: {\n showHeader: {\n type: Boolean,\n default: false\n },\n showBody: {\n type: Boolean,\n default: false\n },\n columns: {\n type: Array as PropType<InnerColumn[]>,\n default: () => [] as InnerColumn[]\n }\n },\n setup(props) {\n const {\n prefixCls,\n size: { tableWidth
|
|
1
|
+
{"version":3,"file":"BaseTable.js","sources":["../../../../src/components/Table/BaseTable.vue"],"sourcesContent":["<template>\n <table ref=\"tableRef\" :style=\"tableStyle\">\n <ColGroup :columns=\"columns\" />\n <TableHeader v-if=\"showHeader\" :columns=\"getColumns()\" />\n <TableBody v-if=\"showBody\" :columns=\"getColumns()\" />\n </table>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent, computed, inject, ref } from 'vue';\nimport type { PropType, CSSProperties } from 'vue';\nimport ColGroup from './tableUnits/ColGroup.vue';\nimport TableHeader from './tableUnits/TableHeader.vue';\nimport TableBody from './tableUnits/TableBody.vue';\n// import useResizeObserver from '../base/hooks/useResizeObserver';\nimport type { InnerColumn, TableContext } from './Table.type';\nimport { getWidth } from './hooks/useTableResize';\n// import { debounce } from '../../utils/tools';\n\nexport default defineComponent({\n name: 'BaseTable',\n components: {\n ColGroup,\n TableHeader,\n TableBody\n },\n props: {\n showHeader: {\n type: Boolean,\n default: false\n },\n showBody: {\n type: Boolean,\n default: false\n },\n columns: {\n type: Array as PropType<InnerColumn[]>,\n default: () => [] as InnerColumn[]\n }\n },\n setup(props) {\n const {\n prefixCls,\n props: { width },\n size: { tableWidth }\n } = inject<TableContext>('tableContext', {} as TableContext);\n const tableRef = ref<HTMLElement | null>(null);\n\n const tableStyle = computed(() => {\n const style = {} as CSSProperties;\n if (width.value) {\n style.width = typeof width.value === 'number' ? `${width.value}px` : width.value;\n } else if (props.columns.some((x) => x.fixed)) {\n style.width = 'max-content';\n style.minWidth = '100%';\n }\n if (props.columns.some((x) => x.ellipsis) || props.columns.some((x) => x.resizable)) {\n style.tableLayout = 'fixed';\n } else {\n style.tableLayout = 'auto';\n }\n\n return style;\n });\n\n const getColumns = () => {\n let left = 0;\n let right = props.columns\n .filter((x) => x.fixed === 'right')\n .reduce((sum, column) => {\n const w = getWidth(column.width ?? column.minWidth, tableWidth.value);\n return sum + w;\n }, 0);\n return props.columns.map((column) => {\n const rst = {\n ...column,\n className: column.fixed\n ? `${column.className || ''} ${prefixCls.value}-fixed-column ${prefixCls.value}-fixed-column-${column.fixed}`\n : column.className\n };\n if (column.fixed === 'left') {\n rst.left = left;\n const w = getWidth(column.width ?? column.minWidth, tableWidth.value);\n left += w;\n if (column.lastLeft) {\n rst.className = `${rst.className || ''} ${prefixCls.value}-fixed-column-${column.fixed}-last`;\n }\n }\n if (column.fixed === 'right') {\n const w = getWidth(column.width ?? column.minWidth, tableWidth.value);\n right -= w;\n rst.right = right;\n if (column.firstRight) {\n rst.className = `${rst.className || ''} ${prefixCls.value}-fixed-column-${column.fixed}-first`;\n }\n }\n\n return rst;\n });\n };\n\n // const debouncedHandleResize = debounce(syncFixedTableRowHeight, 150);\n // useResizeObserver(tableRef, debouncedHandleResize);\n\n return {\n tableRef,\n prefixCls,\n tableStyle,\n getColumns\n };\n }\n});\n</script>\n"],"names":["defineComponent","ColGroup","TableHeader","TableBody","inject","ref","computed","getWidth","_createElementBlock","_normalizeStyle","_createVNode","_createBlock"],"mappings":";;;;;;;;;;;AAmBA,MAAK,YAAaA,oBAAa;AAAA,EAC7B,MAAM;AAAA,EACN,YAAY;AAAA,cACVC;AAAA,iBACAC;AAAA,eACAC;AAAA;AACF,EACA,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA;AACX,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA;AACX,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS,MAAM;AAAC;AAClB;AACF,EACA,MAAM,OAAO;UACL;AAAA,MACJ;AAAA,MACA,OAAO,EAAE;AAAM,MACf,MAAM,EAAE;AAAW,QACjBC,WAAqB,gBAAgB,EAAkB;UACrD,WAAWC,QAAwB,IAAI;UAEvC,aAAaC,aAAS,MAAM;YAC1B,QAAQ;UACV,MAAM,OAAO;cACT,QAAQ,OAAO,MAAM,UAAU,WAAW,GAAG,MAAM,YAAY,MAAM;AAAA,iBAClE,MAAM,QAAQ,KAAK,CAAC,MAAM,EAAE,KAAK,GAAG;cACvC,QAAQ;cACR,WAAW;AAAA;UAEf,MAAM,QAAQ,KAAK,CAAC,MAAM,EAAE,QAAQ,KAAK,MAAM,QAAQ,KAAK,CAAC,MAAM,EAAE,SAAS,GAAG;cAC7E,cAAc;AAAA,aACf;cACC,cAAc;AAAA;aAGf;AAAA,KACR;UAEK,aAAa,MAAM;UACnB,OAAO;UACP,QAAQ,MAAM,QACf,OAAO,CAAC,MAAM,EAAE,UAAU,OAAO,EACjC,OAAO,CAAC,KAAK,WAAW;AA5DjC;cA6DgB,IAAIC,yBAAS,YAAO,UAAP,YAAgB,OAAO,UAAU,WAAW,KAAK;eAC7D,MAAM;AAAA,SACZ,CAAC;aACC,MAAM,QAAQ,IAAI,CAAC,WAAW;AAhE3C;cAiEc,MAAM;AAAA,UACV,GAAG;AAAA,UACH,WAAW,OAAO,QACd,GAAG,OAAO,aAAa,MAAM,UAAU,sBAAsB,UAAU,sBAAsB,OAAO,UACpG,OAAO;AAAA;YAET,OAAO,UAAU,QAAQ;cACvB,OAAO;gBACL,IAAIA,yBAAS,YAAO,UAAP,YAAgB,OAAO,UAAU,WAAW,KAAK;kBAC5D;cACJ,OAAO,UAAU;gBACf,YAAY,GAAG,IAAI,aAAa,MAAM,UAAU,sBAAsB,OAAO;AAAA;AACnF;YAEE,OAAO,UAAU,SAAS;gBACtB,IAAIA,yBAAS,YAAO,UAAP,YAAgB,OAAO,UAAU,WAAW,KAAK;mBAC3D;cACL,QAAQ;cACR,OAAO,YAAY;gBACjB,YAAY,GAAG,IAAI,aAAa,MAAM,UAAU,sBAAsB,OAAO;AAAA;AACnF;eAGK;AAAA,OACR;AAAA;WAMI;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AACF;AAEJ,CAAC;;;;;0BA9GCC,uBAIQ;IAJD,KAAI;AAAA,IAAY,OAAKC,mBAAE,eAAU;AAAA;IACtCC,gBAA+B,uBAApB,SAAS;IACD,oCAAnBC,gBAAyD;;MAAzB,SAAS;AAAU;IAClC,kCAAjBA,gBAAqD;;MAAzB,SAAS;AAAU;;;;;;;"}
|