@searchcraft/vue-sdk 0.12.2 → 0.13.1
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/index.d.ts +91 -1
- package/dist/index.es.js +4765 -4673
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +63 -67
- package/dist/index.umd.js.map +1 -1
- package/dist/themes/hologram.css +1 -1
- package/dist/themes/hologram.css.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -582,8 +582,9 @@ declare class MeasureClient {
|
|
|
582
582
|
private config;
|
|
583
583
|
private sdkInfo;
|
|
584
584
|
private userId;
|
|
585
|
+
private userType;
|
|
585
586
|
sessionId: string;
|
|
586
|
-
constructor(config: SearchcraftConfig, sdkInfo: SearchcraftSDKInfo, userId: string);
|
|
587
|
+
constructor(config: SearchcraftConfig, sdkInfo: SearchcraftSDKInfo, userId: string, userType: "authenticated" | "anonymous");
|
|
587
588
|
/**
|
|
588
589
|
* Getter for the base url used by the /measure endpoints.
|
|
589
590
|
*/
|
|
@@ -654,6 +655,7 @@ export interface SearchcraftStateFunctions {
|
|
|
654
655
|
search: (options?: {
|
|
655
656
|
skipSummary?: boolean;
|
|
656
657
|
}) => Promise<void>;
|
|
658
|
+
setFilterPanelVisibility: (isVisible: boolean) => void;
|
|
657
659
|
setPopoverVisibility: (isVisible: boolean) => void;
|
|
658
660
|
setSearchResultsCount: (count: number) => void;
|
|
659
661
|
setSearchResultsPage: (page: number) => void;
|
|
@@ -676,6 +678,7 @@ export interface SearchcraftStateValues {
|
|
|
676
678
|
hotkey: string;
|
|
677
679
|
hotkeyModifier: "ctrl" | "meta" | "alt" | "option";
|
|
678
680
|
facetPathsForIndexFields: Record<string, FacetPathsForIndexField>;
|
|
681
|
+
isFilterPanelVisible: boolean;
|
|
679
682
|
isPopoverVisible: boolean;
|
|
680
683
|
isSearchInProgress: boolean;
|
|
681
684
|
rangeValueForIndexFields: Record<string, RangeValueForIndexField>;
|
|
@@ -717,6 +720,7 @@ export declare class SearchcraftCore {
|
|
|
717
720
|
searchClient: SearchClient | undefined;
|
|
718
721
|
adClient: AdClient | undefined;
|
|
719
722
|
userId: string;
|
|
723
|
+
userType: "authenticated" | "anonymous";
|
|
720
724
|
private requestTimeout;
|
|
721
725
|
private subscriptionEvents;
|
|
722
726
|
/**
|
|
@@ -764,9 +768,13 @@ export namespace Components {
|
|
|
764
768
|
*/
|
|
765
769
|
interface SearchcraftAd {
|
|
766
770
|
"adClientResponseItem"?: AdClientResponseItem;
|
|
771
|
+
/**
|
|
772
|
+
* @default 'Custom'
|
|
773
|
+
*/
|
|
767
774
|
"adSource": "Custom" | "Nativo" | "adMarketplace";
|
|
768
775
|
/**
|
|
769
776
|
* Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
|
|
777
|
+
* @default 'interstitial'
|
|
770
778
|
*/
|
|
771
779
|
"renderPosition": "interstitial" | "top" | "bottom";
|
|
772
780
|
/**
|
|
@@ -781,10 +789,12 @@ export namespace Components {
|
|
|
781
789
|
interface SearchcraftButton {
|
|
782
790
|
/**
|
|
783
791
|
* Whether the button is disabled.
|
|
792
|
+
* @default false
|
|
784
793
|
*/
|
|
785
794
|
"disabled"?: boolean;
|
|
786
795
|
/**
|
|
787
796
|
* Controls the visual representation of the button.
|
|
797
|
+
* @default 'primary'
|
|
788
798
|
*/
|
|
789
799
|
"hierarchy"?: "primary" | "tertiary";
|
|
790
800
|
/**
|
|
@@ -793,18 +803,22 @@ export namespace Components {
|
|
|
793
803
|
"icon"?: Element;
|
|
794
804
|
/**
|
|
795
805
|
* Should the button only display an icon.
|
|
806
|
+
* @default false
|
|
796
807
|
*/
|
|
797
808
|
"iconOnly"?: boolean;
|
|
798
809
|
/**
|
|
799
810
|
* The position of the icon.
|
|
811
|
+
* @default 'left'
|
|
800
812
|
*/
|
|
801
813
|
"iconPosition"?: "left" | "right";
|
|
802
814
|
/**
|
|
803
815
|
* The label for the button.
|
|
816
|
+
* @default 'Search'
|
|
804
817
|
*/
|
|
805
818
|
"label": string;
|
|
806
819
|
/**
|
|
807
820
|
* The type of the button.
|
|
821
|
+
* @default 'button'
|
|
808
822
|
*/
|
|
809
823
|
"type"?: "submit" | "reset" | "button";
|
|
810
824
|
}
|
|
@@ -840,6 +854,7 @@ export namespace Components {
|
|
|
840
854
|
"exclude"?: string[];
|
|
841
855
|
/**
|
|
842
856
|
* The name of the field where facets are applied.
|
|
857
|
+
* @default ''
|
|
843
858
|
*/
|
|
844
859
|
"fieldName": string;
|
|
845
860
|
/**
|
|
@@ -876,8 +891,19 @@ export namespace Components {
|
|
|
876
891
|
interface SearchcraftFilterPanel {
|
|
877
892
|
/**
|
|
878
893
|
* The items to filter.
|
|
894
|
+
* @default []
|
|
879
895
|
*/
|
|
880
896
|
"items": FilterItem[];
|
|
897
|
+
/**
|
|
898
|
+
* Controls whether the filter panel automatically hides/shows based on window size. - 'auto': Automatically hide/show based on window width - 'manual': User controls visibility manually
|
|
899
|
+
* @default 'auto'
|
|
900
|
+
*/
|
|
901
|
+
"responsiveBehavior"?: "auto" | "manual";
|
|
902
|
+
/**
|
|
903
|
+
* The breakpoint (in pixels) below which the filter panel will be hidden. Defaults to 768px (--sc-breakpoint-md).
|
|
904
|
+
* @default 768
|
|
905
|
+
*/
|
|
906
|
+
"responsiveBreakpoint"?: number;
|
|
881
907
|
/**
|
|
882
908
|
* The id of the Searchcraft instance that this component should use.
|
|
883
909
|
*/
|
|
@@ -905,6 +931,7 @@ export namespace Components {
|
|
|
905
931
|
interface SearchcraftInputForm {
|
|
906
932
|
/**
|
|
907
933
|
* Whether or not to automatically submit the search term when the input changes.
|
|
934
|
+
* @default true
|
|
908
935
|
*/
|
|
909
936
|
"autoSearch"?: boolean;
|
|
910
937
|
/**
|
|
@@ -913,6 +940,7 @@ export namespace Components {
|
|
|
913
940
|
"buttonLabel"?: string;
|
|
914
941
|
/**
|
|
915
942
|
* Where to place the search button.
|
|
943
|
+
* @default 'none'
|
|
916
944
|
*/
|
|
917
945
|
"buttonPlacement"?: "left" | "right" | "none";
|
|
918
946
|
/**
|
|
@@ -925,6 +953,7 @@ export namespace Components {
|
|
|
925
953
|
"placeholderBehavior"?: "hide-on-focus" | "hide-on-text-entered";
|
|
926
954
|
/**
|
|
927
955
|
* The input element's placeholder value.
|
|
956
|
+
* @default 'Enter Search'
|
|
928
957
|
*/
|
|
929
958
|
"placeholderValue"?: string;
|
|
930
959
|
/**
|
|
@@ -945,8 +974,12 @@ export namespace Components {
|
|
|
945
974
|
interface SearchcraftInputLabel {
|
|
946
975
|
/**
|
|
947
976
|
* The classname applied to the label element.
|
|
977
|
+
* @default ''
|
|
948
978
|
*/
|
|
949
979
|
"inputLabelClassName"?: string | undefined;
|
|
980
|
+
/**
|
|
981
|
+
* @default ''
|
|
982
|
+
*/
|
|
950
983
|
"label": string;
|
|
951
984
|
}
|
|
952
985
|
/**
|
|
@@ -1069,10 +1102,12 @@ export namespace Components {
|
|
|
1069
1102
|
interface SearchcraftPopoverForm {
|
|
1070
1103
|
/**
|
|
1071
1104
|
* The hotkey that activates the popover.
|
|
1105
|
+
* @default 'k'
|
|
1072
1106
|
*/
|
|
1073
1107
|
"hotkey"?: string;
|
|
1074
1108
|
/**
|
|
1075
1109
|
* The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
|
|
1110
|
+
* @default 'meta'
|
|
1076
1111
|
*/
|
|
1077
1112
|
"hotkeyModifier"?: "ctrl" | "meta" | "alt" | "option";
|
|
1078
1113
|
/**
|
|
@@ -1081,6 +1116,7 @@ export namespace Components {
|
|
|
1081
1116
|
"placeholderBehavior"?: "hide-on-focus" | "hide-on-text-entered";
|
|
1082
1117
|
/**
|
|
1083
1118
|
* The input element's placeholder value.
|
|
1119
|
+
* @default 'Enter Search'
|
|
1084
1120
|
*/
|
|
1085
1121
|
"placeholderValue"?: string;
|
|
1086
1122
|
/**
|
|
@@ -1093,6 +1129,7 @@ export namespace Components {
|
|
|
1093
1129
|
"searchcraftId"?: string;
|
|
1094
1130
|
/**
|
|
1095
1131
|
* The type of popover form to render. - `inline` - Renders inline with the rest of the content on the page. The search results pop over the page content. - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component. - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
|
|
1132
|
+
* @default 'inline'
|
|
1096
1133
|
*/
|
|
1097
1134
|
"type"?: "inline" | "fullscreen" | "modal";
|
|
1098
1135
|
}
|
|
@@ -1102,6 +1139,7 @@ export namespace Components {
|
|
|
1102
1139
|
interface SearchcraftPopoverListItem {
|
|
1103
1140
|
/**
|
|
1104
1141
|
* The document position relative to the search results (For Measure)
|
|
1142
|
+
* @default 0
|
|
1105
1143
|
*/
|
|
1106
1144
|
"documentPosition": number;
|
|
1107
1145
|
"item": SearchClientResponseItem | undefined;
|
|
@@ -1185,6 +1223,7 @@ export namespace Components {
|
|
|
1185
1223
|
interface SearchcraftSearchResult {
|
|
1186
1224
|
/**
|
|
1187
1225
|
* The position in the document. Used with the "document_clicked" measure event.
|
|
1226
|
+
* @default 0
|
|
1188
1227
|
*/
|
|
1189
1228
|
"documentPosition": number;
|
|
1190
1229
|
/**
|
|
@@ -1278,6 +1317,7 @@ export namespace Components {
|
|
|
1278
1317
|
interface SearchcraftSearchResultsPerPage {
|
|
1279
1318
|
/**
|
|
1280
1319
|
* The amount the options will increase (e.g. 20 = [20, 40, 60, 80, 100]). The base value is defined by the `searchResultsPerPage` option in the configuration.
|
|
1320
|
+
* @default 20
|
|
1281
1321
|
*/
|
|
1282
1322
|
"increment": string | number;
|
|
1283
1323
|
/**
|
|
@@ -1303,6 +1343,7 @@ export namespace Components {
|
|
|
1303
1343
|
"caption"?: string;
|
|
1304
1344
|
/**
|
|
1305
1345
|
* Whether the select input is disabled.
|
|
1346
|
+
* @default false
|
|
1306
1347
|
*/
|
|
1307
1348
|
"disabled"?: boolean;
|
|
1308
1349
|
/**
|
|
@@ -1323,6 +1364,7 @@ export namespace Components {
|
|
|
1323
1364
|
"name": string;
|
|
1324
1365
|
/**
|
|
1325
1366
|
* The options for the select input.
|
|
1367
|
+
* @default []
|
|
1326
1368
|
*/
|
|
1327
1369
|
"options": SearchcraftSelectOption[] | string;
|
|
1328
1370
|
}
|
|
@@ -1332,6 +1374,7 @@ export namespace Components {
|
|
|
1332
1374
|
interface SearchcraftSlider {
|
|
1333
1375
|
/**
|
|
1334
1376
|
* The type of data the sliders are using.
|
|
1377
|
+
* @default 'number'
|
|
1335
1378
|
*/
|
|
1336
1379
|
"dataType": "number" | "date";
|
|
1337
1380
|
/**
|
|
@@ -1340,14 +1383,17 @@ export namespace Components {
|
|
|
1340
1383
|
"dateGranularity"?: "year" | "month" | "day" | "hour";
|
|
1341
1384
|
/**
|
|
1342
1385
|
* The maximum value allowed.
|
|
1386
|
+
* @default 100
|
|
1343
1387
|
*/
|
|
1344
1388
|
"max": number;
|
|
1345
1389
|
/**
|
|
1346
1390
|
* The minimum value allowed.
|
|
1391
|
+
* @default 0
|
|
1347
1392
|
*/
|
|
1348
1393
|
"min": number;
|
|
1349
1394
|
/**
|
|
1350
1395
|
* The step amount for the slider inputs.
|
|
1396
|
+
* @default 1
|
|
1351
1397
|
*/
|
|
1352
1398
|
"step": number;
|
|
1353
1399
|
}
|
|
@@ -1404,6 +1450,7 @@ export namespace Components {
|
|
|
1404
1450
|
interface SearchcraftToggleButton {
|
|
1405
1451
|
/**
|
|
1406
1452
|
* The label.
|
|
1453
|
+
* @default 'Toggle'
|
|
1407
1454
|
*/
|
|
1408
1455
|
"label": string;
|
|
1409
1456
|
/**
|
|
@@ -2013,9 +2060,13 @@ declare namespace LocalJSX {
|
|
|
2013
2060
|
*/
|
|
2014
2061
|
interface SearchcraftAd {
|
|
2015
2062
|
"adClientResponseItem"?: AdClientResponseItem;
|
|
2063
|
+
/**
|
|
2064
|
+
* @default 'Custom'
|
|
2065
|
+
*/
|
|
2016
2066
|
"adSource"?: "Custom" | "Nativo" | "adMarketplace";
|
|
2017
2067
|
/**
|
|
2018
2068
|
* Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
|
|
2069
|
+
* @default 'interstitial'
|
|
2019
2070
|
*/
|
|
2020
2071
|
"renderPosition"?: "interstitial" | "top" | "bottom";
|
|
2021
2072
|
/**
|
|
@@ -2030,10 +2081,12 @@ declare namespace LocalJSX {
|
|
|
2030
2081
|
interface SearchcraftButton {
|
|
2031
2082
|
/**
|
|
2032
2083
|
* Whether the button is disabled.
|
|
2084
|
+
* @default false
|
|
2033
2085
|
*/
|
|
2034
2086
|
"disabled"?: boolean;
|
|
2035
2087
|
/**
|
|
2036
2088
|
* Controls the visual representation of the button.
|
|
2089
|
+
* @default 'primary'
|
|
2037
2090
|
*/
|
|
2038
2091
|
"hierarchy"?: "primary" | "tertiary";
|
|
2039
2092
|
/**
|
|
@@ -2042,14 +2095,17 @@ declare namespace LocalJSX {
|
|
|
2042
2095
|
"icon"?: Element;
|
|
2043
2096
|
/**
|
|
2044
2097
|
* Should the button only display an icon.
|
|
2098
|
+
* @default false
|
|
2045
2099
|
*/
|
|
2046
2100
|
"iconOnly"?: boolean;
|
|
2047
2101
|
/**
|
|
2048
2102
|
* The position of the icon.
|
|
2103
|
+
* @default 'left'
|
|
2049
2104
|
*/
|
|
2050
2105
|
"iconPosition"?: "left" | "right";
|
|
2051
2106
|
/**
|
|
2052
2107
|
* The label for the button.
|
|
2108
|
+
* @default 'Search'
|
|
2053
2109
|
*/
|
|
2054
2110
|
"label"?: string;
|
|
2055
2111
|
/**
|
|
@@ -2058,6 +2114,7 @@ declare namespace LocalJSX {
|
|
|
2058
2114
|
"onButtonClick"?: (event: SearchcraftButtonCustomEvent<void>) => void;
|
|
2059
2115
|
/**
|
|
2060
2116
|
* The type of the button.
|
|
2117
|
+
* @default 'button'
|
|
2061
2118
|
*/
|
|
2062
2119
|
"type"?: "submit" | "reset" | "button";
|
|
2063
2120
|
}
|
|
@@ -2093,6 +2150,7 @@ declare namespace LocalJSX {
|
|
|
2093
2150
|
"exclude"?: string[];
|
|
2094
2151
|
/**
|
|
2095
2152
|
* The name of the field where facets are applied.
|
|
2153
|
+
* @default ''
|
|
2096
2154
|
*/
|
|
2097
2155
|
"fieldName"?: string;
|
|
2098
2156
|
/**
|
|
@@ -2135,8 +2193,19 @@ declare namespace LocalJSX {
|
|
|
2135
2193
|
interface SearchcraftFilterPanel {
|
|
2136
2194
|
/**
|
|
2137
2195
|
* The items to filter.
|
|
2196
|
+
* @default []
|
|
2138
2197
|
*/
|
|
2139
2198
|
"items"?: FilterItem[];
|
|
2199
|
+
/**
|
|
2200
|
+
* Controls whether the filter panel automatically hides/shows based on window size. - 'auto': Automatically hide/show based on window width - 'manual': User controls visibility manually
|
|
2201
|
+
* @default 'auto'
|
|
2202
|
+
*/
|
|
2203
|
+
"responsiveBehavior"?: "auto" | "manual";
|
|
2204
|
+
/**
|
|
2205
|
+
* The breakpoint (in pixels) below which the filter panel will be hidden. Defaults to 768px (--sc-breakpoint-md).
|
|
2206
|
+
* @default 768
|
|
2207
|
+
*/
|
|
2208
|
+
"responsiveBreakpoint"?: number;
|
|
2140
2209
|
/**
|
|
2141
2210
|
* The id of the Searchcraft instance that this component should use.
|
|
2142
2211
|
*/
|
|
@@ -2164,6 +2233,7 @@ declare namespace LocalJSX {
|
|
|
2164
2233
|
interface SearchcraftInputForm {
|
|
2165
2234
|
/**
|
|
2166
2235
|
* Whether or not to automatically submit the search term when the input changes.
|
|
2236
|
+
* @default true
|
|
2167
2237
|
*/
|
|
2168
2238
|
"autoSearch"?: boolean;
|
|
2169
2239
|
/**
|
|
@@ -2172,6 +2242,7 @@ declare namespace LocalJSX {
|
|
|
2172
2242
|
"buttonLabel"?: string;
|
|
2173
2243
|
/**
|
|
2174
2244
|
* Where to place the search button.
|
|
2245
|
+
* @default 'none'
|
|
2175
2246
|
*/
|
|
2176
2247
|
"buttonPlacement"?: "left" | "right" | "none";
|
|
2177
2248
|
/**
|
|
@@ -2196,6 +2267,7 @@ declare namespace LocalJSX {
|
|
|
2196
2267
|
"placeholderBehavior"?: "hide-on-focus" | "hide-on-text-entered";
|
|
2197
2268
|
/**
|
|
2198
2269
|
* The input element's placeholder value.
|
|
2270
|
+
* @default 'Enter Search'
|
|
2199
2271
|
*/
|
|
2200
2272
|
"placeholderValue"?: string;
|
|
2201
2273
|
/**
|
|
@@ -2216,8 +2288,12 @@ declare namespace LocalJSX {
|
|
|
2216
2288
|
interface SearchcraftInputLabel {
|
|
2217
2289
|
/**
|
|
2218
2290
|
* The classname applied to the label element.
|
|
2291
|
+
* @default ''
|
|
2219
2292
|
*/
|
|
2220
2293
|
"inputLabelClassName"?: string | undefined;
|
|
2294
|
+
/**
|
|
2295
|
+
* @default ''
|
|
2296
|
+
*/
|
|
2221
2297
|
"label"?: string;
|
|
2222
2298
|
}
|
|
2223
2299
|
/**
|
|
@@ -2340,10 +2416,12 @@ declare namespace LocalJSX {
|
|
|
2340
2416
|
interface SearchcraftPopoverForm {
|
|
2341
2417
|
/**
|
|
2342
2418
|
* The hotkey that activates the popover.
|
|
2419
|
+
* @default 'k'
|
|
2343
2420
|
*/
|
|
2344
2421
|
"hotkey"?: string;
|
|
2345
2422
|
/**
|
|
2346
2423
|
* The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
|
|
2424
|
+
* @default 'meta'
|
|
2347
2425
|
*/
|
|
2348
2426
|
"hotkeyModifier"?: "ctrl" | "meta" | "alt" | "option";
|
|
2349
2427
|
/**
|
|
@@ -2352,6 +2430,7 @@ declare namespace LocalJSX {
|
|
|
2352
2430
|
"placeholderBehavior"?: "hide-on-focus" | "hide-on-text-entered";
|
|
2353
2431
|
/**
|
|
2354
2432
|
* The input element's placeholder value.
|
|
2433
|
+
* @default 'Enter Search'
|
|
2355
2434
|
*/
|
|
2356
2435
|
"placeholderValue"?: string;
|
|
2357
2436
|
/**
|
|
@@ -2364,6 +2443,7 @@ declare namespace LocalJSX {
|
|
|
2364
2443
|
"searchcraftId"?: string;
|
|
2365
2444
|
/**
|
|
2366
2445
|
* The type of popover form to render. - `inline` - Renders inline with the rest of the content on the page. The search results pop over the page content. - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component. - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
|
|
2446
|
+
* @default 'inline'
|
|
2367
2447
|
*/
|
|
2368
2448
|
"type"?: "inline" | "fullscreen" | "modal";
|
|
2369
2449
|
}
|
|
@@ -2373,6 +2453,7 @@ declare namespace LocalJSX {
|
|
|
2373
2453
|
interface SearchcraftPopoverListItem {
|
|
2374
2454
|
/**
|
|
2375
2455
|
* The document position relative to the search results (For Measure)
|
|
2456
|
+
* @default 0
|
|
2376
2457
|
*/
|
|
2377
2458
|
"documentPosition"?: number;
|
|
2378
2459
|
"item"?: SearchClientResponseItem | undefined;
|
|
@@ -2456,6 +2537,7 @@ declare namespace LocalJSX {
|
|
|
2456
2537
|
interface SearchcraftSearchResult {
|
|
2457
2538
|
/**
|
|
2458
2539
|
* The position in the document. Used with the "document_clicked" measure event.
|
|
2540
|
+
* @default 0
|
|
2459
2541
|
*/
|
|
2460
2542
|
"documentPosition"?: number;
|
|
2461
2543
|
/**
|
|
@@ -2549,6 +2631,7 @@ declare namespace LocalJSX {
|
|
|
2549
2631
|
interface SearchcraftSearchResultsPerPage {
|
|
2550
2632
|
/**
|
|
2551
2633
|
* The amount the options will increase (e.g. 20 = [20, 40, 60, 80, 100]). The base value is defined by the `searchResultsPerPage` option in the configuration.
|
|
2634
|
+
* @default 20
|
|
2552
2635
|
*/
|
|
2553
2636
|
"increment"?: string | number;
|
|
2554
2637
|
/**
|
|
@@ -2574,6 +2657,7 @@ declare namespace LocalJSX {
|
|
|
2574
2657
|
"caption"?: string;
|
|
2575
2658
|
/**
|
|
2576
2659
|
* Whether the select input is disabled.
|
|
2660
|
+
* @default false
|
|
2577
2661
|
*/
|
|
2578
2662
|
"disabled"?: boolean;
|
|
2579
2663
|
/**
|
|
@@ -2598,6 +2682,7 @@ declare namespace LocalJSX {
|
|
|
2598
2682
|
"onSelectChange"?: (event: SearchcraftSelectCustomEvent<string>) => void;
|
|
2599
2683
|
/**
|
|
2600
2684
|
* The options for the select input.
|
|
2685
|
+
* @default []
|
|
2601
2686
|
*/
|
|
2602
2687
|
"options"?: SearchcraftSelectOption[] | string;
|
|
2603
2688
|
}
|
|
@@ -2607,6 +2692,7 @@ declare namespace LocalJSX {
|
|
|
2607
2692
|
interface SearchcraftSlider {
|
|
2608
2693
|
/**
|
|
2609
2694
|
* The type of data the sliders are using.
|
|
2695
|
+
* @default 'number'
|
|
2610
2696
|
*/
|
|
2611
2697
|
"dataType"?: "number" | "date";
|
|
2612
2698
|
/**
|
|
@@ -2615,10 +2701,12 @@ declare namespace LocalJSX {
|
|
|
2615
2701
|
"dateGranularity"?: "year" | "month" | "day" | "hour";
|
|
2616
2702
|
/**
|
|
2617
2703
|
* The maximum value allowed.
|
|
2704
|
+
* @default 100
|
|
2618
2705
|
*/
|
|
2619
2706
|
"max"?: number;
|
|
2620
2707
|
/**
|
|
2621
2708
|
* The minimum value allowed.
|
|
2709
|
+
* @default 0
|
|
2622
2710
|
*/
|
|
2623
2711
|
"min"?: number;
|
|
2624
2712
|
/**
|
|
@@ -2627,6 +2715,7 @@ declare namespace LocalJSX {
|
|
|
2627
2715
|
"onRangeChanged"?: (event: SearchcraftSliderCustomEvent<any>) => void;
|
|
2628
2716
|
/**
|
|
2629
2717
|
* The step amount for the slider inputs.
|
|
2718
|
+
* @default 1
|
|
2630
2719
|
*/
|
|
2631
2720
|
"step"?: number;
|
|
2632
2721
|
}
|
|
@@ -2683,6 +2772,7 @@ declare namespace LocalJSX {
|
|
|
2683
2772
|
interface SearchcraftToggleButton {
|
|
2684
2773
|
/**
|
|
2685
2774
|
* The label.
|
|
2775
|
+
* @default 'Toggle'
|
|
2686
2776
|
*/
|
|
2687
2777
|
"label"?: string;
|
|
2688
2778
|
/**
|