@turquoisehealth/pit-viper 2.44.0 → 2.45.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/package.json
CHANGED
|
@@ -175,6 +175,13 @@ declare enum MenuItemType {
|
|
|
175
175
|
icon = "icon"
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
declare enum MenuItemType_2 {
|
|
179
|
+
simple = "simple",
|
|
180
|
+
company = "company",
|
|
181
|
+
radio = "radio",
|
|
182
|
+
icon = "icon"
|
|
183
|
+
}
|
|
184
|
+
|
|
178
185
|
declare interface MenuOption {
|
|
179
186
|
id: string;
|
|
180
187
|
text: string;
|
|
@@ -183,8 +190,18 @@ declare interface MenuOption {
|
|
|
183
190
|
companyName?: string;
|
|
184
191
|
}
|
|
185
192
|
|
|
193
|
+
declare interface MenuOption_2 {
|
|
194
|
+
id: string;
|
|
195
|
+
text: string;
|
|
196
|
+
secondaryText?: string | number;
|
|
197
|
+
icon?: string;
|
|
198
|
+
companyName?: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
186
201
|
declare type MenuOptionsVariant = `${MenuItemType}`;
|
|
187
202
|
|
|
203
|
+
declare type MenuOptionsVariant_2 = `${MenuItemType_2}`;
|
|
204
|
+
|
|
188
205
|
declare interface ModalProps {
|
|
189
206
|
header: string;
|
|
190
207
|
subheader?: string;
|
|
@@ -1121,8 +1138,230 @@ default?(_: {}): any;
|
|
|
1121
1138
|
}) | null;
|
|
1122
1139
|
}, HTMLDivElement>;
|
|
1123
1140
|
|
|
1141
|
+
export declare const PvSelectButton: DefineComponent< {
|
|
1142
|
+
modelValue?: MenuOption_2;
|
|
1143
|
+
searchInput?: string;
|
|
1144
|
+
} & PvSelectButton_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1145
|
+
"update:modelValue": (value: MenuOption_2) => any;
|
|
1146
|
+
"update:searchInput": (value: string) => any;
|
|
1147
|
+
} & {
|
|
1148
|
+
"dropdown-open": () => any;
|
|
1149
|
+
"dropdown-closed": () => any;
|
|
1150
|
+
}, string, PublicProps, Readonly<{
|
|
1151
|
+
modelValue?: MenuOption_2;
|
|
1152
|
+
searchInput?: string;
|
|
1153
|
+
} & PvSelectButton_2> & Readonly<{
|
|
1154
|
+
"onDropdown-open"?: (() => any) | undefined;
|
|
1155
|
+
"onDropdown-closed"?: (() => any) | undefined;
|
|
1156
|
+
"onUpdate:modelValue"?: ((value: MenuOption_2) => any) | undefined;
|
|
1157
|
+
"onUpdate:searchInput"?: ((value: string) => any) | undefined;
|
|
1158
|
+
}>, {
|
|
1159
|
+
size: PvSelectButtonSize_2;
|
|
1160
|
+
label: string;
|
|
1161
|
+
variant: PvSelectButtonVariant_2;
|
|
1162
|
+
useTeleport: boolean;
|
|
1163
|
+
teleportLocation: string;
|
|
1164
|
+
showSearchInput: boolean;
|
|
1165
|
+
optionsVariant: MenuOptionsVariant_2;
|
|
1166
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1167
|
+
'select-button-trigger-ref': CreateComponentPublicInstanceWithMixins<Readonly<PvSelectButtonTrigger> & Readonly<{
|
|
1168
|
+
"onHandle-toggle-dropdown"?: (() => any) | undefined;
|
|
1169
|
+
"onHandle-clear"?: (() => any) | undefined;
|
|
1170
|
+
}>, {
|
|
1171
|
+
triggerRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
1172
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1173
|
+
"handle-toggle-dropdown": () => any;
|
|
1174
|
+
"handle-clear": () => any;
|
|
1175
|
+
}, PublicProps, {
|
|
1176
|
+
size: PvSelectButtonSize;
|
|
1177
|
+
variant: PvSelectButtonVariant;
|
|
1178
|
+
showDropdown: boolean;
|
|
1179
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1180
|
+
triggerRef: HTMLButtonElement;
|
|
1181
|
+
}, HTMLButtonElement, ComponentProvideOptions, {
|
|
1182
|
+
P: {};
|
|
1183
|
+
B: {};
|
|
1184
|
+
D: {};
|
|
1185
|
+
C: {};
|
|
1186
|
+
M: {};
|
|
1187
|
+
Defaults: {};
|
|
1188
|
+
}, Readonly<PvSelectButtonTrigger> & Readonly<{
|
|
1189
|
+
"onHandle-toggle-dropdown"?: (() => any) | undefined;
|
|
1190
|
+
"onHandle-clear"?: (() => any) | undefined;
|
|
1191
|
+
}>, {
|
|
1192
|
+
triggerRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
1193
|
+
}, {}, {}, {}, {
|
|
1194
|
+
size: PvSelectButtonSize;
|
|
1195
|
+
variant: PvSelectButtonVariant;
|
|
1196
|
+
showDropdown: boolean;
|
|
1197
|
+
}> | null;
|
|
1198
|
+
'select-menu-ref': ({
|
|
1199
|
+
$: ComponentInternalInstance;
|
|
1200
|
+
$data: {};
|
|
1201
|
+
$props: {
|
|
1202
|
+
readonly teleportLocation: string;
|
|
1203
|
+
readonly open: boolean;
|
|
1204
|
+
readonly popoverPositionStyle?: CSSProperties | undefined;
|
|
1205
|
+
readonly cssCustomListProperties?: CSSProperties | undefined;
|
|
1206
|
+
readonly useTeleport?: boolean | undefined;
|
|
1207
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1208
|
+
$attrs: {
|
|
1209
|
+
[x: string]: unknown;
|
|
1210
|
+
};
|
|
1211
|
+
$refs: {
|
|
1212
|
+
[x: string]: unknown;
|
|
1213
|
+
} & {
|
|
1214
|
+
popoverRef: ({
|
|
1215
|
+
$: ComponentInternalInstance;
|
|
1216
|
+
$data: {};
|
|
1217
|
+
$props: {
|
|
1218
|
+
readonly alignment?: "top" | "right" | "top right" | undefined | undefined;
|
|
1219
|
+
readonly cssCustomProperties?: CSSProperties | undefined;
|
|
1220
|
+
readonly cssCustomListProperties?: CSSProperties | undefined;
|
|
1221
|
+
readonly isList?: boolean | undefined;
|
|
1222
|
+
readonly isSortable?: boolean | undefined;
|
|
1223
|
+
readonly "onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
1224
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1225
|
+
$attrs: {
|
|
1226
|
+
[x: string]: unknown;
|
|
1227
|
+
};
|
|
1228
|
+
$refs: {
|
|
1229
|
+
[x: string]: unknown;
|
|
1230
|
+
} & {
|
|
1231
|
+
popoverRoot: HTMLDivElement;
|
|
1232
|
+
popoverList: HTMLUListElement;
|
|
1233
|
+
};
|
|
1234
|
+
$slots: Readonly<{
|
|
1235
|
+
[name: string]: Slot<any> | undefined;
|
|
1236
|
+
}>;
|
|
1237
|
+
$root: ComponentPublicInstance | null;
|
|
1238
|
+
$parent: ComponentPublicInstance | null;
|
|
1239
|
+
$host: Element | null;
|
|
1240
|
+
$emit: (event: "list-order-updated", value: string[]) => void;
|
|
1241
|
+
$el: HTMLDivElement;
|
|
1242
|
+
$options: ComponentOptionsBase<Readonly<PvPopoverProps> & Readonly<{
|
|
1243
|
+
"onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
1244
|
+
}>, {
|
|
1245
|
+
popoverRoot: Ref<HTMLElement | null, HTMLElement | null>;
|
|
1246
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1247
|
+
"list-order-updated": (value: string[]) => any;
|
|
1248
|
+
}, string, {
|
|
1249
|
+
alignment: "top" | "right" | "top right";
|
|
1250
|
+
cssCustomProperties: CSSProperties;
|
|
1251
|
+
isList: boolean;
|
|
1252
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1253
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1254
|
+
created?: (() => void) | (() => void)[];
|
|
1255
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1256
|
+
mounted?: (() => void) | (() => void)[];
|
|
1257
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1258
|
+
updated?: (() => void) | (() => void)[];
|
|
1259
|
+
activated?: (() => void) | (() => void)[];
|
|
1260
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1261
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1262
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1263
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1264
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1265
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1266
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1267
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1268
|
+
};
|
|
1269
|
+
$forceUpdate: () => void;
|
|
1270
|
+
$nextTick: typeof nextTick;
|
|
1271
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1272
|
+
} & Readonly<{
|
|
1273
|
+
alignment: "top" | "right" | "top right";
|
|
1274
|
+
cssCustomProperties: CSSProperties;
|
|
1275
|
+
isList: boolean;
|
|
1276
|
+
}> & Omit<Readonly<PvPopoverProps> & Readonly<{
|
|
1277
|
+
"onList-order-updated"?: ((value: string[]) => any) | undefined;
|
|
1278
|
+
}>, "popoverRoot" | ("alignment" | "cssCustomProperties" | "isList")> & ShallowUnwrapRef< {
|
|
1279
|
+
popoverRoot: Ref<HTMLElement | null, HTMLElement | null>;
|
|
1280
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1281
|
+
$slots: {
|
|
1282
|
+
default?(_: {}): any;
|
|
1283
|
+
default?(_: {}): any;
|
|
1284
|
+
};
|
|
1285
|
+
}) | null;
|
|
1286
|
+
};
|
|
1287
|
+
$slots: Readonly<{
|
|
1288
|
+
[name: string]: Slot<any> | undefined;
|
|
1289
|
+
}>;
|
|
1290
|
+
$root: ComponentPublicInstance | null;
|
|
1291
|
+
$parent: ComponentPublicInstance | null;
|
|
1292
|
+
$host: Element | null;
|
|
1293
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
1294
|
+
$el: any;
|
|
1295
|
+
$options: ComponentOptionsBase<Readonly<PvSelectMenu> & Readonly<{}>, {
|
|
1296
|
+
popoverRef: Ref< {
|
|
1297
|
+
popoverRoot: HTMLElement | null;
|
|
1298
|
+
} | null, {
|
|
1299
|
+
popoverRoot: HTMLElement | null;
|
|
1300
|
+
} | {
|
|
1301
|
+
popoverRoot: HTMLElement | null;
|
|
1302
|
+
} | null>;
|
|
1303
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1304
|
+
useTeleport: boolean;
|
|
1305
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1306
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1307
|
+
created?: (() => void) | (() => void)[];
|
|
1308
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1309
|
+
mounted?: (() => void) | (() => void)[];
|
|
1310
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1311
|
+
updated?: (() => void) | (() => void)[];
|
|
1312
|
+
activated?: (() => void) | (() => void)[];
|
|
1313
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1314
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1315
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1316
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1317
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1318
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1319
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1320
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1321
|
+
};
|
|
1322
|
+
$forceUpdate: () => void;
|
|
1323
|
+
$nextTick: typeof nextTick;
|
|
1324
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1325
|
+
} & Readonly<{
|
|
1326
|
+
useTeleport: boolean;
|
|
1327
|
+
}> & Omit<Readonly<PvSelectMenu> & Readonly<{}>, "useTeleport" | "popoverRef"> & ShallowUnwrapRef< {
|
|
1328
|
+
popoverRef: Ref< {
|
|
1329
|
+
popoverRoot: HTMLElement | null;
|
|
1330
|
+
} | null, {
|
|
1331
|
+
popoverRoot: HTMLElement | null;
|
|
1332
|
+
} | {
|
|
1333
|
+
popoverRoot: HTMLElement | null;
|
|
1334
|
+
} | null>;
|
|
1335
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1336
|
+
$slots: {
|
|
1337
|
+
default?(_: {}): any;
|
|
1338
|
+
};
|
|
1339
|
+
}) | null;
|
|
1340
|
+
}, HTMLDivElement>;
|
|
1341
|
+
|
|
1342
|
+
declare interface PvSelectButton_2 {
|
|
1343
|
+
defaultOpen?: boolean;
|
|
1344
|
+
disabled?: boolean;
|
|
1345
|
+
teleportLocation?: string;
|
|
1346
|
+
isLoading?: boolean;
|
|
1347
|
+
variant?: PvSelectButtonVariant_2;
|
|
1348
|
+
size?: PvSelectButtonSize_2;
|
|
1349
|
+
alignment?: "top" | "right" | "top right" | undefined;
|
|
1350
|
+
popoverCssProperties?: CSSProperties;
|
|
1351
|
+
label?: string;
|
|
1352
|
+
icon?: string;
|
|
1353
|
+
companyLogo?: string;
|
|
1354
|
+
showMenuAction?: boolean;
|
|
1355
|
+
showSearchInput?: boolean;
|
|
1356
|
+
optionsVariant?: MenuOptionsVariant_2;
|
|
1357
|
+
options: MenuOption_2[];
|
|
1358
|
+
useTeleport?: boolean;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1124
1361
|
declare type PvSelectButtonSize = Extract<PvSize, "lg" | "xl">;
|
|
1125
1362
|
|
|
1363
|
+
declare type PvSelectButtonSize_2 = Extract<PvSize, "lg" | "xl">;
|
|
1364
|
+
|
|
1126
1365
|
declare interface PvSelectButtonTrigger {
|
|
1127
1366
|
variant?: PvSelectButtonVariant;
|
|
1128
1367
|
size?: PvSelectButtonSize;
|
|
@@ -1139,6 +1378,8 @@ declare interface PvSelectButtonTrigger {
|
|
|
1139
1378
|
|
|
1140
1379
|
declare type PvSelectButtonVariant = Extract<PvVariants, "secondary" | "ghost">;
|
|
1141
1380
|
|
|
1381
|
+
declare type PvSelectButtonVariant_2 = Extract<PvVariants, "secondary" | "ghost">;
|
|
1382
|
+
|
|
1142
1383
|
declare interface PvSelectMenu {
|
|
1143
1384
|
teleportLocation: string;
|
|
1144
1385
|
open: boolean;
|