@opentiny/tiny-robot 0.2.2 → 0.2.3
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/flow-layout-buttons/index.js +1 -1
- package/dist/index.d.ts +46 -0
- package/dist/index6.js +1 -1
- package/dist/sender/index.js +705 -695
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +104 -98
- package/dist/suggestion-popover/index.js +246 -122
- package/package.json +3 -3
|
@@ -112,7 +112,7 @@ const K = ["onClick"], P = {
|
|
|
112
112
|
])
|
|
113
113
|
], 512));
|
|
114
114
|
}
|
|
115
|
-
}), p = /* @__PURE__ */ J(ee, [["__scopeId", "data-v-
|
|
115
|
+
}), p = /* @__PURE__ */ J(ee, [["__scopeId", "data-v-8d510691"]]);
|
|
116
116
|
p.name = "TrFlowLayout";
|
|
117
117
|
const te = function(d) {
|
|
118
118
|
d.component(p.name, p);
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { Slot } from 'vue';
|
|
|
32
32
|
import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
|
|
33
33
|
import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
|
|
34
34
|
import { ThemeType as ThemeType_2 } from './index.type';
|
|
35
|
+
import { TooltipContentProps } from './components/Tooltip.vue';
|
|
35
36
|
import { VNode } from 'vue';
|
|
36
37
|
import { VNodeProps } from 'vue';
|
|
37
38
|
import { WatchOptions } from 'vue';
|
|
@@ -89,6 +90,25 @@ popoverHeight: string | number;
|
|
|
89
90
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
90
91
|
popoverTriggerRef: HTMLDivElement;
|
|
91
92
|
popoverRef: HTMLDivElement;
|
|
93
|
+
listRef: HTMLUListElement;
|
|
94
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
95
|
+
show?: TooltipContentProps["show"];
|
|
96
|
+
} & TooltipContentProps> & Readonly<{
|
|
97
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
98
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
99
|
+
"update:show": (value: boolean | undefined) => any;
|
|
100
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
101
|
+
P: {};
|
|
102
|
+
B: {};
|
|
103
|
+
D: {};
|
|
104
|
+
C: {};
|
|
105
|
+
M: {};
|
|
106
|
+
Defaults: {};
|
|
107
|
+
}, Readonly<{
|
|
108
|
+
show?: TooltipContentProps["show"];
|
|
109
|
+
} & TooltipContentProps> & Readonly<{
|
|
110
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
111
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
92
112
|
}, any>;
|
|
93
113
|
|
|
94
114
|
declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -150,6 +170,7 @@ submitType: SubmitTrigger_2;
|
|
|
150
170
|
autoSize: AutoSize_2;
|
|
151
171
|
maxLength: number;
|
|
152
172
|
suggestions: string[];
|
|
173
|
+
suggestionPopupWidth: string | number;
|
|
153
174
|
templateInitialValues: Record<string, string>;
|
|
154
175
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
155
176
|
senderRef: HTMLDivElement;
|
|
@@ -838,10 +859,13 @@ declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_2, {}, {}, {}
|
|
|
838
859
|
"update:showAll": (value: boolean | undefined) => any;
|
|
839
860
|
} & {
|
|
840
861
|
"item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
|
|
862
|
+
"click-outside": () => any;
|
|
841
863
|
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
842
864
|
"onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
|
|
865
|
+
"onClick-outside"?: (() => any) | undefined;
|
|
843
866
|
"onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
|
|
844
867
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
868
|
+
containerWrapperRef: HTMLDivElement;
|
|
845
869
|
containerRef: HTMLDivElement;
|
|
846
870
|
}, HTMLDivElement>;
|
|
847
871
|
|
|
@@ -894,6 +918,25 @@ declare function __VLS_template_11(): {
|
|
|
894
918
|
refs: {
|
|
895
919
|
popoverTriggerRef: HTMLDivElement;
|
|
896
920
|
popoverRef: HTMLDivElement;
|
|
921
|
+
listRef: HTMLUListElement;
|
|
922
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
923
|
+
show?: TooltipContentProps["show"];
|
|
924
|
+
} & TooltipContentProps> & Readonly<{
|
|
925
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
926
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
927
|
+
"update:show": (value: boolean | undefined) => any;
|
|
928
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
929
|
+
P: {};
|
|
930
|
+
B: {};
|
|
931
|
+
D: {};
|
|
932
|
+
C: {};
|
|
933
|
+
M: {};
|
|
934
|
+
Defaults: {};
|
|
935
|
+
}, Readonly<{
|
|
936
|
+
show?: TooltipContentProps["show"];
|
|
937
|
+
} & TooltipContentProps> & Readonly<{
|
|
938
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
939
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
897
940
|
};
|
|
898
941
|
rootEl: any;
|
|
899
942
|
};
|
|
@@ -1615,6 +1658,7 @@ declare function __VLS_template_8(): {
|
|
|
1615
1658
|
attrs: Partial<{}>;
|
|
1616
1659
|
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1617
1660
|
refs: {
|
|
1661
|
+
containerWrapperRef: HTMLDivElement;
|
|
1618
1662
|
containerRef: HTMLDivElement;
|
|
1619
1663
|
};
|
|
1620
1664
|
rootEl: HTMLDivElement;
|
|
@@ -2263,6 +2307,7 @@ export declare interface SenderProps {
|
|
|
2263
2307
|
placeholder?: string;
|
|
2264
2308
|
showWordLimit?: boolean;
|
|
2265
2309
|
suggestions?: string[];
|
|
2310
|
+
suggestionPopupWidth?: string | number;
|
|
2266
2311
|
theme?: ThemeType;
|
|
2267
2312
|
template?: string;
|
|
2268
2313
|
hasContent?: boolean;
|
|
@@ -2412,6 +2457,7 @@ export declare type SuggestionPillItem<T = Record<string, unknown>> = Suggestion
|
|
|
2412
2457
|
|
|
2413
2458
|
export declare interface SuggestionPillsEmits {
|
|
2414
2459
|
(e: 'item-click', item: SuggestionPillItem): void;
|
|
2460
|
+
(e: 'click-outside'): void;
|
|
2415
2461
|
}
|
|
2416
2462
|
|
|
2417
2463
|
export declare interface SuggestionPillsProps {
|
package/dist/index6.js
CHANGED
|
@@ -1268,7 +1268,7 @@ jn.forEach((r) => {
|
|
|
1268
1268
|
});
|
|
1269
1269
|
const ui = (r, e, ...n) => {
|
|
1270
1270
|
let o = !1;
|
|
1271
|
-
if (typeof r == "function") {
|
|
1271
|
+
if (typeof r == "function" && typeof e == "string") {
|
|
1272
1272
|
const i = document.createEvent("HTMLEvents");
|
|
1273
1273
|
i.initEvent(e, !1, !0), i.preventDefault = () => {
|
|
1274
1274
|
o = !0;
|