@crystaldesign/quick-config 26.3.0-beta.2 → 26.3.0-beta.21
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/build/cjs/index.js +2016 -0
- package/build/esm/index.js +1999 -0
- package/build/types/quick-config/src/Components/ConditionEvaluator/index.d.ts +47 -0
- package/build/types/quick-config/src/Components/ConditionEvaluator/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/FeatureRenderer/index.d.ts +10 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/FeatureRenderer/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/Header/index.d.ts +12 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/Header/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/Navigation/index.d.ts +18 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/Navigation/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/ButtonGroupLayout.d.ts +18 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/ButtonGroupLayout.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/DropdownLayout.d.ts +16 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/DropdownLayout.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/RangeLayout.d.ts +11 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/RangeLayout.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/SelectionListLayout.d.ts +18 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/Layouts/SelectionListLayout.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/index.d.ts +10 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ProgressBar/index.d.ts +7 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ProgressBar/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ContentItem.d.ts +8 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ContentItem.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ResultItemsRenderer.d.ts +12 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/ResultItemsRenderer.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/Speedometer.d.ts +17 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/Speedometer.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/index.d.ts +10 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/TextResult.d.ts +10 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/components/TextResult.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/index.d.ts +13 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/utils/index.d.ts +3 -0
- package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/utils/index.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useOptionRenderer.d.ts +19 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useOptionRenderer.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfig.d.ts +30 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfig.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigCalculations.d.ts +7 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigCalculations.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigFeatures.d.ts +6 -0
- package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigFeatures.d.ts.map +1 -0
- package/build/types/quick-config/src/Components/QuickConfig/index.d.ts +10 -0
- package/build/types/quick-config/src/Components/QuickConfig/index.d.ts.map +1 -0
- package/build/types/quick-config/src/calculators/variantValueCalculator.d.ts +8 -0
- package/build/types/quick-config/src/calculators/variantValueCalculator.d.ts.map +1 -0
- package/build/types/quick-config/src/index.d.ts +8 -0
- package/build/types/quick-config/src/index.d.ts.map +1 -0
- package/build/types/quick-config/src/stories/QuickConfig.stories.d.ts +17 -0
- package/build/types/quick-config/src/stories/QuickConfig.stories.d.ts.map +1 -0
- package/build/types/quick-config/src/types.d.ts +210 -0
- package/build/types/quick-config/src/types.d.ts.map +1 -0
- package/build/types/quick-config/src/utils/index.d.ts +14 -0
- package/build/types/quick-config/src/utils/index.d.ts.map +1 -0
- package/build/umd/124.quick-config.umd.min.js +2 -0
- package/build/umd/124.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/145.quick-config.umd.min.js +2 -0
- package/build/umd/145.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/338.quick-config.umd.min.js +2 -0
- package/build/umd/338.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/433.quick-config.umd.min.js +2 -0
- package/build/umd/433.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/610.quick-config.umd.min.js +2 -0
- package/build/umd/610.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/662.quick-config.umd.min.js +2 -0
- package/build/umd/662.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/721.quick-config.umd.min.js +408 -0
- package/build/umd/721.quick-config.umd.min.js.LICENSE.txt +92 -0
- package/build/umd/74.quick-config.umd.min.js +2 -0
- package/build/umd/74.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/871.quick-config.umd.min.js +2 -0
- package/build/umd/871.quick-config.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/944.quick-config.umd.min.js +2 -0
- package/build/umd/944.quick-config.umd.min.js.LICENSE.txt +10 -0
- package/build/umd/quick-config.umd.min.js +102 -0
- package/build/umd/quick-config.umd.min.js.LICENSE.txt +135 -0
- package/build/umd/report.html +38 -0
- package/package.json +3 -3
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CombinedCondition, UserSelection } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Evaluates a condition against the current user selections
|
|
4
|
+
*/
|
|
5
|
+
export declare class ConditionEvaluator {
|
|
6
|
+
private selections;
|
|
7
|
+
constructor(selections: UserSelection[]);
|
|
8
|
+
/**
|
|
9
|
+
* Main evaluation method
|
|
10
|
+
*/
|
|
11
|
+
evaluate(condition: CombinedCondition): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Type guards
|
|
14
|
+
*/
|
|
15
|
+
private isAndCondition;
|
|
16
|
+
private isOrCondition;
|
|
17
|
+
private isNotCondition;
|
|
18
|
+
/**
|
|
19
|
+
* Evaluate logical operators
|
|
20
|
+
*/
|
|
21
|
+
private evaluateAnd;
|
|
22
|
+
private evaluateOr;
|
|
23
|
+
private evaluateNot;
|
|
24
|
+
/**
|
|
25
|
+
* Evaluate a single condition
|
|
26
|
+
*/
|
|
27
|
+
private evaluateSingleCondition;
|
|
28
|
+
/**
|
|
29
|
+
* Utility method to check if a feature should be visible
|
|
30
|
+
*/
|
|
31
|
+
static shouldShowFeature(feature: {
|
|
32
|
+
condition?: CombinedCondition;
|
|
33
|
+
}, selections: UserSelection[]): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Utility method to check if an option should be visible
|
|
36
|
+
*/
|
|
37
|
+
static shouldShowOption(option: {
|
|
38
|
+
condition?: CombinedCondition;
|
|
39
|
+
}, selections: UserSelection[]): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Utility method to check if an instance should be visible
|
|
42
|
+
*/
|
|
43
|
+
static shouldShowInstance(instance: {
|
|
44
|
+
condition?: CombinedCondition;
|
|
45
|
+
}, selections: UserSelection[]): boolean;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Components/ConditionEvaluator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAsD,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnH;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,UAAU,CAAwB;gBAE9B,UAAU,EAAE,aAAa,EAAE;IAIvC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO;IAa/C;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAInB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IA0B/B;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE;QAAE,SAAS,CAAC,EAAE,iBAAiB,CAAA;KAAE,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,OAAO;IAQ1G;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE;QAAE,SAAS,CAAC,EAAE,iBAAiB,CAAA;KAAE,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,OAAO;IAQxG;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE;QAAE,SAAS,CAAC,EAAE,iBAAiB,CAAA;KAAE,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,OAAO;CAO7G"}
|
package/build/types/quick-config/src/Components/QuickConfig/components/FeatureRenderer/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Feature, UserSelection } from '../../../../types';
|
|
3
|
+
export interface FeatureRendererProps {
|
|
4
|
+
feature: Feature;
|
|
5
|
+
selection?: UserSelection;
|
|
6
|
+
onSelect: (featureCodex: string, selectedOptions: string[]) => void;
|
|
7
|
+
selections: UserSelection[];
|
|
8
|
+
}
|
|
9
|
+
export declare const FeatureRenderer: React.FC<FeatureRendererProps>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/Components/QuickConfig/components/FeatureRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAK3D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpE,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqB1D,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Feature, QuickConfigInstance } from '../../../../types';
|
|
3
|
+
export interface HeaderProps {
|
|
4
|
+
instances?: QuickConfigInstance[];
|
|
5
|
+
activeInstanceId?: string;
|
|
6
|
+
onSwitchInstance?: (instanceId: string) => void;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
featureGroups: Feature[][];
|
|
9
|
+
currentFeatureGroupIndex?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const Header: React.FC<HeaderProps>;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/Components/QuickConfig/components/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAKjE,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,OAAO,EAAE,EAAE,CAAC;IAC3B,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6DxC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuickConfigInstance } from '../../../../types';
|
|
3
|
+
export interface NavigationProps {
|
|
4
|
+
onBack?: () => void;
|
|
5
|
+
onNext?: () => void;
|
|
6
|
+
onCopy?: (fromId: string, toId: string) => void;
|
|
7
|
+
onRetry?: () => void;
|
|
8
|
+
onApply?: () => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
canProceed?: boolean;
|
|
11
|
+
showBack?: boolean;
|
|
12
|
+
nextLabel?: string;
|
|
13
|
+
nextInstance?: QuickConfigInstance;
|
|
14
|
+
currentInstanceId?: string;
|
|
15
|
+
language?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Navigation: React.FC<NavigationProps>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
package/build/types/quick-config/src/Components/QuickConfig/components/Navigation/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/Components/QuickConfig/components/Navigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAcxD,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA6BD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+FhD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Option } from '../../../../../types';
|
|
3
|
+
interface ButtonGroupLayoutProps {
|
|
4
|
+
options: Option[];
|
|
5
|
+
selectedOptions: string[];
|
|
6
|
+
onSelect: (optionCodex: string) => void;
|
|
7
|
+
getOptionLabel: (option: Option) => string;
|
|
8
|
+
getOptionDescription: (option: Option) => string | undefined;
|
|
9
|
+
getOptionCaption: (option: Option) => string | undefined;
|
|
10
|
+
layout: 'toggle' | 'multitoggle' | 'box' | 'gallery' | 'slider';
|
|
11
|
+
layoutConfig?: {
|
|
12
|
+
columns?: number;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const ButtonGroupLayout: React.FC<ButtonGroupLayoutProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=ButtonGroupLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroupLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/OptionRenderer/Layouts/ButtonGroupLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAc9C,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC7D,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACzD,MAAM,EAAE,QAAQ,GAAG,aAAa,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;IAChE,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAgE9D,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Option } from '../../../../../types';
|
|
3
|
+
interface DropdownLayoutProps {
|
|
4
|
+
options: Option[];
|
|
5
|
+
selectedOptions: string[];
|
|
6
|
+
onSelect: (optionCodex: string) => void;
|
|
7
|
+
getOptionLabel: (option: Option) => string;
|
|
8
|
+
getOptionCaption: (option: Option) => string | undefined;
|
|
9
|
+
layoutConfig?: {
|
|
10
|
+
optionLabelFontSize?: number | string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const DropdownLayout: React.FC<DropdownLayoutProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=DropdownLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/OptionRenderer/Layouts/DropdownLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAI9C,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACzD,YAAY,CAAC,EAAE;QACb,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6BxD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Option } from '../../../../../types';
|
|
3
|
+
interface RangeLayoutProps {
|
|
4
|
+
option: Option;
|
|
5
|
+
selectedOptions: string[];
|
|
6
|
+
onSelect: (selectedOptions: string[]) => void;
|
|
7
|
+
getOptionCaption: (option: Option) => string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const RangeLayout: React.FC<RangeLayoutProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=RangeLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RangeLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/OptionRenderer/Layouts/RangeLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAI9C,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkClD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Option } from '../../../../../types';
|
|
3
|
+
interface SelectionListLayoutProps {
|
|
4
|
+
options: Option[];
|
|
5
|
+
selectedOptions: string[];
|
|
6
|
+
onSelect: (optionCodex: string) => void;
|
|
7
|
+
getOptionLabel: (option: Option) => string;
|
|
8
|
+
getOptionDescription: (option: Option) => string | undefined;
|
|
9
|
+
getOptionCaption: (option: Option) => string | undefined;
|
|
10
|
+
type: 'radio' | 'checkbox';
|
|
11
|
+
layoutConfig?: {
|
|
12
|
+
optionLabelFontSize?: number | string;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const SelectionListLayout: React.FC<SelectionListLayoutProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=SelectionListLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectionListLayout.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/OptionRenderer/Layouts/SelectionListLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAc9C,UAAU,wBAAwB;IAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC7D,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACzD,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3B,YAAY,CAAC,EAAE;QACb,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyClE,CAAC"}
|
package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Feature, UserSelection } from '../../../../types';
|
|
3
|
+
export interface OptionRendererProps {
|
|
4
|
+
feature: Feature;
|
|
5
|
+
selectedOptions: string[];
|
|
6
|
+
onSelect: (selectedOptions: string[]) => void;
|
|
7
|
+
selections: UserSelection[];
|
|
8
|
+
}
|
|
9
|
+
export declare const OptionRenderer: React.FC<OptionRendererProps>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
package/build/types/quick-config/src/Components/QuickConfig/components/OptionRenderer/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/Components/QuickConfig/components/OptionRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAO3D,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8DxD,CAAC"}
|
package/build/types/quick-config/src/Components/QuickConfig/components/ProgressBar/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/Components/QuickConfig/components/ProgressBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAYlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentItem.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/ResultDisplay/components/ContentItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CACrD;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAElD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuickConfigDefinition } from '../../../../../types';
|
|
3
|
+
interface ResultItemsRendererProps {
|
|
4
|
+
data: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
config: QuickConfigDefinition;
|
|
8
|
+
language: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ResultItemsRenderer: React.FC<ResultItemsRendererProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ResultItemsRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultItemsRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/ResultDisplay/components/ResultItemsRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAA4C,MAAM,sBAAsB,CAAC;AAKvG,UAAU,wBAAwB;IAChC,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyClE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SpeedometerProps {
|
|
3
|
+
value: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
zones?: {
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
value?: string;
|
|
11
|
+
label: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export declare const Speedometer: React.FC<SpeedometerProps>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Speedometer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Speedometer.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/Speedometer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;CACL;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8HlD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpeedometerResultConfig } from '../../../../../../types';
|
|
3
|
+
interface SpeedometerGroupProps {
|
|
4
|
+
displayConfig: SpeedometerResultConfig;
|
|
5
|
+
data: any;
|
|
6
|
+
language: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SpeedometerGroup: React.FC<SpeedometerGroupProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/Components/QuickConfig/components/ResultDisplay/components/SpeedometerGroup/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAUlE,UAAU,qBAAqB;IAC7B,aAAa,EAAE,uBAAuB,CAAC;IACvC,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqC5D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextResultConfig } from '../../../../../types';
|
|
3
|
+
interface TextResultProps {
|
|
4
|
+
displayConfig: TextResultConfig;
|
|
5
|
+
data: any;
|
|
6
|
+
language: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const TextResult: React.FC<TextResultProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=TextResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextResult.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/ResultDisplay/components/TextResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,UAAU,eAAe;IACvB,aAAa,EAAE,gBAAgB,CAAC;IAChC,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAYhD,CAAC"}
|
package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuickConfigResult, QuickConfigDefinition, QuickConfigInstance, QuickConfigEvent } from '../../../../types';
|
|
3
|
+
export interface ResultDisplayProps {
|
|
4
|
+
activeInstanceId: string;
|
|
5
|
+
result: QuickConfigResult;
|
|
6
|
+
config: QuickConfigDefinition;
|
|
7
|
+
filteredInstances?: QuickConfigInstance[];
|
|
8
|
+
onRetry?: () => void;
|
|
9
|
+
onEvent?: (event: QuickConfigEvent) => void;
|
|
10
|
+
renderContentItem?: (id: string) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const ResultDisplay: React.FC<ResultDisplayProps>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
package/build/types/quick-config/src/Components/QuickConfig/components/ResultDisplay/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/Components/QuickConfig/components/ResultDisplay/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EAGrB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAQ3B,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,iBAAiB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CACrD;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoGtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/Components/QuickConfig/components/ResultDisplay/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAGpB,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,oBAAoB,kBAChB,mBAAmB,QAC5B,GAAG,KACR,MAAM,GAAG,IAkCX,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Feature, Option, UserSelection } from '../../../types';
|
|
2
|
+
interface UseOptionRendererProps {
|
|
3
|
+
feature: Feature;
|
|
4
|
+
selectedOptions: string[];
|
|
5
|
+
onSelect: (selectedOptions: string[]) => void;
|
|
6
|
+
selections: UserSelection[];
|
|
7
|
+
}
|
|
8
|
+
export declare const useOptionRenderer: ({ feature, selectedOptions, onSelect, selections }: UseOptionRendererProps) => {
|
|
9
|
+
visibleOptions: Option[];
|
|
10
|
+
selectOptions: Option[];
|
|
11
|
+
rangeOption: Option | undefined;
|
|
12
|
+
handleSingleSelect: (optionCodex: string) => void;
|
|
13
|
+
handleMultiSelect: (optionCodex: string) => void;
|
|
14
|
+
getOptionLabel: (option: Option) => string;
|
|
15
|
+
getOptionDescription: (option: Option) => string | undefined;
|
|
16
|
+
getOptionCaption: (option: Option) => string | undefined;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=useOptionRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOptionRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../src/Components/QuickConfig/hooks/useOptionRenderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIhE,UAAU,sBAAsB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,iBAAiB,uDAAwD,sBAAsB;;;;sCAc1F,MAAM;qCAON,MAAM;6BAWX,MAAM;mCAON,MAAM;+BAON,MAAM;CAgBlB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { QuickConfigDefinition, UserSelection, QuickConfigResult, QuickConfigEvent } from '../../../types';
|
|
2
|
+
interface UseQuickConfigProps {
|
|
3
|
+
config: QuickConfigDefinition;
|
|
4
|
+
onEvent?: (event: QuickConfigEvent) => void;
|
|
5
|
+
initialContext?: UserSelection[];
|
|
6
|
+
}
|
|
7
|
+
export declare const useQuickConfig: ({ config, onEvent, initialContext }: UseQuickConfigProps) => {
|
|
8
|
+
selections: UserSelection[];
|
|
9
|
+
instanceSelections: {
|
|
10
|
+
[instanceId: string]: UserSelection[];
|
|
11
|
+
};
|
|
12
|
+
activeInstanceId: string;
|
|
13
|
+
currentFeatureGroupIndex: number;
|
|
14
|
+
result: QuickConfigResult | null;
|
|
15
|
+
showIntro: boolean;
|
|
16
|
+
featureGroups: import("../../../types").Feature[][];
|
|
17
|
+
currentFeatures: import("../../../types").Feature[];
|
|
18
|
+
canProceed: boolean;
|
|
19
|
+
handleFeatureSelect: (featureCodex: string, selectedOptions: string[]) => void;
|
|
20
|
+
handleNext: () => void;
|
|
21
|
+
handleBack: () => void;
|
|
22
|
+
handleIntroNext: () => void;
|
|
23
|
+
handleRetry: () => void;
|
|
24
|
+
handleSwitchInstance: (instanceId: string) => void;
|
|
25
|
+
handleCopySelections: (fromId: string, toId: string) => void;
|
|
26
|
+
setResult: import("react").Dispatch<import("react").SetStateAction<QuickConfigResult | null>>;
|
|
27
|
+
filteredInstances: import("../../../types").QuickConfigInstance[];
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=useQuickConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQuickConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/Components/QuickConfig/hooks/useQuickConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAK3G,UAAU,mBAAmB;IAC3B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,cAAc,wCAAyC,mBAAmB;;;;;;;;;;;;wCA0BpE,MAAM,mBAAmB,MAAM,EAAE;;;;;uCA6EI,MAAM;mCAMjD,MAAM,QAAQ,MAAM;;;CAkDhC,CAAC"}
|
package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigCalculations.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QuickConfigDefinition, UserSelection, QuickConfigResult } from '../../../types';
|
|
2
|
+
export declare const useQuickConfigCalculations: (config: QuickConfigDefinition) => {
|
|
3
|
+
calculateFullResult: (allInstanceSelections: {
|
|
4
|
+
[instanceId: string]: UserSelection[];
|
|
5
|
+
}) => QuickConfigResult;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useQuickConfigCalculations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQuickConfigCalculations.d.ts","sourceRoot":"","sources":["../../../../../../../src/Components/QuickConfig/hooks/useQuickConfigCalculations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGzF,eAAO,MAAM,0BAA0B,WAAY,qBAAqB;iDAe5C;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,EAAE,CAAA;KAAE,KAAG,iBAAiB;CA2BxF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { QuickConfigDefinition, Feature, UserSelection } from '../../../types';
|
|
2
|
+
export declare const useQuickConfigFeatures: (config: QuickConfigDefinition, selections: UserSelection[], currentFeatureGroupIndex: number, result: any) => {
|
|
3
|
+
featureGroups: Feature[][];
|
|
4
|
+
currentFeatures: Feature[];
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=useQuickConfigFeatures.d.ts.map
|
package/build/types/quick-config/src/Components/QuickConfig/hooks/useQuickConfigFeatures.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQuickConfigFeatures.d.ts","sourceRoot":"","sources":["../../../../../../../src/Components/QuickConfig/hooks/useQuickConfigFeatures.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/E,eAAO,MAAM,sBAAsB,WAAY,qBAAqB,cAAc,aAAa,EAAE,4BAA4B,MAAM,UAAU,GAAG;;;CAmC/I,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QuickConfigDefinition, UserSelection, QuickConfigEvent } from '../../types';
|
|
3
|
+
export interface QuickConfigProps {
|
|
4
|
+
config: QuickConfigDefinition;
|
|
5
|
+
onEvent?: (event: QuickConfigEvent) => void;
|
|
6
|
+
renderContentItem?: (id: string) => React.ReactNode;
|
|
7
|
+
initialContext?: UserSelection[];
|
|
8
|
+
}
|
|
9
|
+
export declare const QuickConfig: React.FC<QuickConfigProps>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Components/QuickConfig/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAcrF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACpD,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4GlD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserSelection, VariantValueCalculatorConfig } from '../types';
|
|
2
|
+
export declare function calculateVariantValue(selections: UserSelection[], config?: VariantValueCalculatorConfig): {
|
|
3
|
+
[key: string]: {
|
|
4
|
+
result: string;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=variantValueCalculator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variantValueCalculator.d.ts","sourceRoot":"","sources":["../../../../../src/calculators/variantValueCalculator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAEvE,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,aAAa,EAAE,EAC3B,MAAM,CAAC,EAAE,4BAA4B,GACpC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAwCtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QuickConfigProps } from '../Components/QuickConfig';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { WithDivaMock } from '@crystaldesign/diva-core';
|
|
4
|
+
declare const meta: Meta<WithDivaMock<QuickConfigProps>>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<WithDivaMock<QuickConfigProps>>;
|
|
7
|
+
export declare const MattressAssistant: Story;
|
|
8
|
+
export declare const MattressBoxSelection: Story;
|
|
9
|
+
export declare const MattressMultiInstance: Story;
|
|
10
|
+
export declare const MattressStepByStepBox: Story;
|
|
11
|
+
export declare const MattressConfigurator: Story;
|
|
12
|
+
export declare const BedConfigurator: Story;
|
|
13
|
+
export declare const OfficeChair: Story;
|
|
14
|
+
export declare const ConditionalVisibility: Story;
|
|
15
|
+
export declare const LayoutShowcase: Story;
|
|
16
|
+
export declare const FeatureGrouping: Story;
|
|
17
|
+
//# sourceMappingURL=QuickConfig.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuickConfig.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/QuickConfig.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG1E,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAqB,MAAM,0BAA0B,CAAC;AAE3E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAQ9C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC;AA+TtD,eAAO,MAAM,iBAAiB,EAAE,KAa/B,CAAC;AA0BF,eAAO,MAAM,oBAAoB,EAAE,KAiClC,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,KAkCnC,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,KAkCnC,CAAC;AAwXF,eAAO,MAAM,oBAAoB,EAAE,KAElC,CAAC;AAmRF,eAAO,MAAM,eAAe,EAAE,KAa7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAmCF,eAAO,MAAM,qBAAqB,EAAE,KAQnC,CAAC;AAiEF,eAAO,MAAM,cAAc,EAAE,KAQ5B,CAAC;AA+DF,eAAO,MAAM,eAAe,EAAE,KAQ7B,CAAC"}
|