@cocoar/vue-ui 2.2.0 → 2.3.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/dist/components/icon/core-icons.d.ts +7 -0
- package/dist/components/icon/core-icons.d.ts.map +1 -1
- package/dist/components/menu/CoarMenuItem.vue.d.ts +16 -0
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarDivider.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts +19 -0
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +400 -351
- package/package.json +2 -2
|
@@ -56,9 +56,11 @@ export declare const CORE_ICONS: {
|
|
|
56
56
|
folder: string;
|
|
57
57
|
globe: string;
|
|
58
58
|
'grip-vertical': string;
|
|
59
|
+
hand: string;
|
|
59
60
|
hash: string;
|
|
60
61
|
heading: string;
|
|
61
62
|
heart: string;
|
|
63
|
+
highlighter: string;
|
|
62
64
|
home: string;
|
|
63
65
|
image: string;
|
|
64
66
|
'indent-decrease': string;
|
|
@@ -85,6 +87,8 @@ export declare const CORE_ICONS: {
|
|
|
85
87
|
moon: string;
|
|
86
88
|
'more-horizontal': string;
|
|
87
89
|
'more-vertical': string;
|
|
90
|
+
'mouse-pointer-2': string;
|
|
91
|
+
'move-horizontal': string;
|
|
88
92
|
'move-left': string;
|
|
89
93
|
'move-right': string;
|
|
90
94
|
palette: string;
|
|
@@ -97,6 +101,8 @@ export declare const CORE_ICONS: {
|
|
|
97
101
|
'qr-code': string;
|
|
98
102
|
'redo-2': string;
|
|
99
103
|
'refresh-cw': string;
|
|
104
|
+
'rotate-ccw': string;
|
|
105
|
+
'rotate-cw': string;
|
|
100
106
|
rows: string;
|
|
101
107
|
save: string;
|
|
102
108
|
'scan-line': string;
|
|
@@ -120,6 +126,7 @@ export declare const CORE_ICONS: {
|
|
|
120
126
|
'text-quote': string;
|
|
121
127
|
'trash-2': string;
|
|
122
128
|
'triangle-alert': string;
|
|
129
|
+
type: string;
|
|
123
130
|
'undo-2': string;
|
|
124
131
|
unlink: string;
|
|
125
132
|
unlock: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-icons.d.ts","sourceRoot":"","sources":["../../../src/components/icon/core-icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"core-icons.d.ts","sourceRoot":"","sources":["../../../src/components/icon/core-icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+HtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -27,6 +27,21 @@ type __VLS_Props = {
|
|
|
27
27
|
* the user can fire several link items in a row.
|
|
28
28
|
*/
|
|
29
29
|
to?: RouteLocationRaw | string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this item is currently active. Used for menu items that
|
|
32
|
+
* represent a current selection (e.g. view-mode toggle: "✓ List view",
|
|
33
|
+
* settings sub-menu: "✓ Light theme", context-menu sort indicators).
|
|
34
|
+
*
|
|
35
|
+
* If `to` is set and `active` is left undefined, the active state is
|
|
36
|
+
* inferred from `RouterLink`'s `isActive` — drift between consumer-
|
|
37
|
+
* computed `route.path === '/x'` and the router's own matching is
|
|
38
|
+
* eliminated. Setting `active` explicitly always wins (use for non-route
|
|
39
|
+
* active states like "current selection").
|
|
40
|
+
*
|
|
41
|
+
* The menu still auto-closes when an active item is clicked (the active
|
|
42
|
+
* state is visible WHILE the menu is open — that's when it matters).
|
|
43
|
+
*/
|
|
44
|
+
active?: boolean;
|
|
30
45
|
/** Disabled state */
|
|
31
46
|
disabled?: boolean;
|
|
32
47
|
};
|
|
@@ -52,6 +67,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
52
67
|
disabled: boolean;
|
|
53
68
|
to: RouteLocationRaw | string;
|
|
54
69
|
icon: string;
|
|
70
|
+
active: boolean;
|
|
55
71
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
56
72
|
itemRef: HTMLDivElement;
|
|
57
73
|
}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/menu/CoarMenuItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarMenuItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/menu/CoarMenuItem.vue"],"names":[],"mappings":"AA6ZA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,YAAY,IAAI,IAAI,CAAC;IACrB,2BAA2B;IAC3B,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;;;;OAeG;IACH,EAAE,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA0LJ,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBAbpB,GAAG;yBACH,GAAG;yBACH,GAAG;;;;;;EAgBhC;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;WAnaT,MAAM;cAoCH,OAAO;QAjBb,gBAAgB,GAAG,MAAM;UAjBvB,MAAM;YAgCJ,OAAO;;;OA0YlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarSidebarDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/CoarSidebarDivider.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CoarSidebarDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/CoarSidebarDivider.vue"],"names":[],"mappings":";AA+HA,wBAMG"}
|
|
@@ -11,6 +11,21 @@ type __VLS_Props = {
|
|
|
11
11
|
iconOnly?: boolean;
|
|
12
12
|
/** Open flyout on hover instead of click. Only applies to mode="flyout". */
|
|
13
13
|
openOnHover?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Split-trigger mode: clicking the trigger emits `triggerClick` instead
|
|
16
|
+
* of toggling the panel. The flyout opens only via hover (`openOnHover`)
|
|
17
|
+
* or programmatically via `v-model:open`. Use when the trigger represents
|
|
18
|
+
* a primary action (e.g. "activate marker tool") and the panel offers
|
|
19
|
+
* secondary configuration (stroke width, color). Only meaningful with
|
|
20
|
+
* `mode="flyout"`; ignored for `mode="expand"`.
|
|
21
|
+
*/
|
|
22
|
+
splitTrigger?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Visual "selected" state for the trigger — matches `CoarSidebarItem`'s
|
|
25
|
+
* `active` prop styling. Typically driven by the consumer to indicate
|
|
26
|
+
* that the tool this group represents is currently the active one.
|
|
27
|
+
*/
|
|
28
|
+
active?: boolean;
|
|
14
29
|
};
|
|
15
30
|
type __VLS_PublicProps = {
|
|
16
31
|
'open'?: boolean;
|
|
@@ -28,14 +43,18 @@ declare function __VLS_template(): {
|
|
|
28
43
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
44
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
45
|
"update:open": (value: boolean) => any;
|
|
46
|
+
triggerClick: (event: MouseEvent) => any;
|
|
31
47
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
48
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
49
|
+
onTriggerClick?: ((event: MouseEvent) => any) | undefined;
|
|
33
50
|
}>, {
|
|
34
51
|
disabled: boolean;
|
|
35
52
|
mode: "expand" | "flyout";
|
|
36
53
|
icon: string;
|
|
54
|
+
active: boolean;
|
|
37
55
|
iconOnly: boolean;
|
|
38
56
|
openOnHover: boolean;
|
|
57
|
+
splitTrigger: boolean;
|
|
39
58
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
59
|
triggerRef: HTMLDivElement;
|
|
41
60
|
}, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/CoarSidebarGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/CoarSidebarGroup.vue"],"names":[],"mappings":"AA+4BA,KAAK,WAAW,GAAG;IACf,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAuRJ,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAuJT,OAAO,IAA6B;;yBAXpB,GAAG;;;;;;EAgBhC;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;cA7eN,OAAO;UAEX,QAAQ,GAAG,QAAQ;UAJnB,MAAM;YAuBJ,OAAO;cAjBL,OAAO;iBAEJ,OAAO;kBASN,OAAO;;;kBAwexB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|