@cocoar/vue-ui 2.2.1 → 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.
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"CoarSidebarDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/CoarSidebarDivider.vue"],"names":[],"mappings":";AA2EA,wBAMG"}
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":"AA6zBA,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;CACvB,CAAC;AAqPJ,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+IT,OAAO,IAA6B;;yBAXpB,GAAG;;;;;;EAgBhC;AA2BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;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