@solidstarters/solid-core-ui 1.1.153 → 1.1.154
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/components/core/dashboard/SolidDashboard.d.ts +5 -1
- package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboard.js +37 -13
- package/dist/components/core/dashboard/SolidDashboard.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboard.module.css +13 -0
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts +4 -3
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardBody.js +25 -34
- package/dist/components/core/dashboard/SolidDashboardBody.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariableFilterWrapper.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardVariableFilterWrapper.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariableFilterWrapper.js +35 -3
- package/dist/components/core/dashboard/SolidDashboardVariableFilterWrapper.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariableVarInputsFilterElement.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariableVarInputsFilterElement.js.map +1 -1
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts +9 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.js +15 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/BarChartRenderer.d.ts +1 -1
- package/dist/components/core/dashboard/chart-renderers/BarChartRenderer.d.ts.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/BarChartRenderer.js +9 -2
- package/dist/components/core/dashboard/chart-renderers/BarChartRenderer.js.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/LineChartRenderer.d.ts +1 -1
- package/dist/components/core/dashboard/chart-renderers/LineChartRenderer.d.ts.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/LineChartRenderer.js +9 -2
- package/dist/components/core/dashboard/chart-renderers/LineChartRenderer.js.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/PieChartRenderer.d.ts +1 -1
- package/dist/components/core/dashboard/chart-renderers/PieChartRenderer.d.ts.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/PieChartRenderer.js +9 -2
- package/dist/components/core/dashboard/chart-renderers/PieChartRenderer.js.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts +5 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +55 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactMeterGroupRenderer.d.ts +5 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactMeterGroupRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactMeterGroupRenderer.js +39 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactMeterGroupRenderer.js.map +1 -0
- package/dist/components/core/extension/solid-core/question/ChartFormPreviewWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/question/ChartFormPreviewWidget.js +3 -5
- package/dist/components/core/extension/solid-core/question/ChartFormPreviewWidget.js.map +1 -1
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +40 -37
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.d.ts +1 -0
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +23 -0
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +3 -2
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts +0 -2
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.js +5 -5
- package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
- package/dist/components/core/locales/solid-locale.css +2 -1
- package/dist/components/core/solid-ai/SolidXAI.module.css +94 -0
- package/dist/components/core/solid-ai/SolidXAIEmptyPlaceholder.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIEmptyPlaceholder.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIEmptyPlaceholder.js +7 -0
- package/dist/components/core/solid-ai/SolidXAIEmptyPlaceholder.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIIcon.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIIcon.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIIcon.js +6 -0
- package/dist/components/core/solid-ai/SolidXAIIcon.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIInputBox.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIInputBox.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIInputBox.js +9 -0
- package/dist/components/core/solid-ai/SolidXAIInputBox.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIModule.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIModule.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIModule.js +8 -0
- package/dist/components/core/solid-ai/SolidXAIModule.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIModuleHeader.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIModuleHeader.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIModuleHeader.js +8 -0
- package/dist/components/core/solid-ai/SolidXAIModuleHeader.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIResponse.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIResponse.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIResponse.js +9 -0
- package/dist/components/core/solid-ai/SolidXAIResponse.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIThinking.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIThinking.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIThinking.js +9 -0
- package/dist/components/core/solid-ai/SolidXAIThinking.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.js +17 -0
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXUserPrompt.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidXUserPrompt.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXUserPrompt.js +8 -0
- package/dist/components/core/solid-ai/SolidXUserPrompt.js.map +1 -0
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +4 -1
- package/dist/helpers/registry.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -226
- package/dist/index.js.map +1 -1
- package/dist/resources/globals.css +1 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/solid-core.d.ts +30 -2
- package/package.json +7 -3
- package/src/components/core/dashboard/SolidDashboard.module.css +13 -0
- package/src/components/core/locales/solid-locale.css +2 -1
- package/src/components/core/solid-ai/SolidXAI.module.css +94 -0
- package/src/resources/globals.css +1 -0
- package/src/types/index.d.ts +4 -2
- package/src/types/solid-core.d.ts +30 -2
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* .SolidXAIHeader {} */
|
|
2
|
+
|
|
3
|
+
.SolidXAIThreadWrapper {
|
|
4
|
+
height: calc(100vh - 65px);
|
|
5
|
+
padding-bottom: 200px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.SolidXAIInputWrapper {
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
margin: 0 16px 16px 16px;
|
|
14
|
+
background-color: var(--surface-c);
|
|
15
|
+
border-radius: 8px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.SolidAIInput {
|
|
20
|
+
border: none;
|
|
21
|
+
width: 100%;
|
|
22
|
+
resize: none;
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.SolidXAIEmptyPlaceholder {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 50%;
|
|
29
|
+
left: 50%;
|
|
30
|
+
transform: translate(-50%, -50%);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.SolidXAIEmptyPlaceholderBg {
|
|
34
|
+
height: 100px;
|
|
35
|
+
background: #DBC4F5;
|
|
36
|
+
background: radial-gradient(circle, rgba(219, 196, 245, 1) 0%, rgba(255, 255, 255, 0) 100%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.SolidXAIThinkingAnimation {
|
|
40
|
+
width: 36px;
|
|
41
|
+
aspect-ratio: 2;
|
|
42
|
+
--_g: no-repeat radial-gradient(circle closest-side, var(--primary-color) 90%, #0000);
|
|
43
|
+
background:
|
|
44
|
+
var(--_g) 0% 50%,
|
|
45
|
+
var(--_g) 50% 50%,
|
|
46
|
+
var(--_g) 100% 50%;
|
|
47
|
+
background-size: calc(100%/3) 50%;
|
|
48
|
+
animation: solid-x-ai-thinking 1s infinite linear;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes solid-x-ai-thinking {
|
|
52
|
+
20% {
|
|
53
|
+
background-position: 0% 0%, 50% 50%, 100% 50%
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
40% {
|
|
57
|
+
background-position: 0% 100%, 50% 0%, 100% 50%
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
60% {
|
|
61
|
+
background-position: 0% 50%, 50% 100%, 100% 0%
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
80% {
|
|
65
|
+
background-position: 0% 50%, 50% 50%, 100% 100%
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.SolidXUserPromptWrapper {
|
|
70
|
+
max-width: 90%;
|
|
71
|
+
margin-left: auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.SolidXUserPrompt {
|
|
75
|
+
border-radius: 8px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.SolidXUserPrompt div {
|
|
79
|
+
color: var(--solid-dark-title);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.SolidXAIResponseWrapper {
|
|
83
|
+
max-width: 90%;
|
|
84
|
+
margin-right: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.SolidXAIResponse {
|
|
88
|
+
border-radius: 8px;
|
|
89
|
+
background-color: var(--primary-50);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.SolidXAIResponse div {
|
|
93
|
+
color: var(--solid-dark-title);
|
|
94
|
+
}
|
package/src/types/index.d.ts
CHANGED
|
@@ -26,7 +26,8 @@ import {
|
|
|
26
26
|
LayoutNodeType,
|
|
27
27
|
SolidUiEvents,
|
|
28
28
|
SolidUiEvent,
|
|
29
|
-
SolidFormWidgetProps
|
|
29
|
+
SolidFormWidgetProps,
|
|
30
|
+
SolidChartRendererProps
|
|
30
31
|
} from './solid-core';
|
|
31
32
|
|
|
32
33
|
type ChildContainerProps = {
|
|
@@ -56,5 +57,6 @@ export type {
|
|
|
56
57
|
LayoutNodeType,
|
|
57
58
|
SolidUiEvents,
|
|
58
59
|
SolidUiEvent,
|
|
59
|
-
SolidFormWidgetProps
|
|
60
|
+
SolidFormWidgetProps,
|
|
61
|
+
SolidChartRendererProps
|
|
60
62
|
};
|
|
@@ -111,18 +111,48 @@ export type SolidLoadForm = {
|
|
|
111
111
|
formViewLayout: LayoutNode;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
export enum SqlExpressionOperator {
|
|
115
|
+
EQUALS = '$equals',
|
|
116
|
+
NOT_EQUALS = '$notEquals',
|
|
117
|
+
CONTAINS = '$contains',
|
|
118
|
+
NOT_CONTAINS = '$notContains',
|
|
119
|
+
STARTS_WITH = '$startsWith',
|
|
120
|
+
ENDS_WITH = '$endsWith',
|
|
121
|
+
IN = '$in',
|
|
122
|
+
NOT_IN = '$notIn',
|
|
123
|
+
BETWEEN = '$between',
|
|
124
|
+
LT = '$lt',
|
|
125
|
+
LTE = '$lte',
|
|
126
|
+
GT = '$gt',
|
|
127
|
+
GTE = '$gte'
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface SqlExpression {
|
|
131
|
+
variableName: string;
|
|
132
|
+
operator: SqlExpressionOperator;
|
|
133
|
+
value: string[];
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type SolidChartRendererProps = {
|
|
137
|
+
question: any;
|
|
138
|
+
filters: SqlExpression[];
|
|
139
|
+
isPreview: boolean;
|
|
140
|
+
};
|
|
141
|
+
|
|
114
142
|
export type SolidFormWidgetProps = {
|
|
115
143
|
field: any;
|
|
116
144
|
// This comes from Formik...
|
|
117
145
|
formData: Record<string, any>;
|
|
118
146
|
viewMetadata: SolidView;
|
|
119
147
|
fieldsMetadata: FieldsMetadata;
|
|
148
|
+
formViewData: any;
|
|
120
149
|
};
|
|
121
150
|
|
|
122
151
|
export type SolidFormFieldWidgetProps = {
|
|
123
152
|
formik: any;
|
|
124
153
|
fieldContext?: SolidFieldProps;
|
|
125
154
|
}
|
|
155
|
+
|
|
126
156
|
export type SolidListFieldWidgetProps = {
|
|
127
157
|
rowData: any;
|
|
128
158
|
solidListViewMetaData: any
|
|
@@ -144,7 +174,6 @@ export type SolidShortTextImageRenderModeWidgetProps = {
|
|
|
144
174
|
data: string;
|
|
145
175
|
}
|
|
146
176
|
|
|
147
|
-
|
|
148
177
|
export type SolidFormDynamicFunctionProps = {
|
|
149
178
|
action: string,
|
|
150
179
|
params: any,
|
|
@@ -159,7 +188,6 @@ export type SolidListHeaderDynamicFunctionProps = {
|
|
|
159
188
|
solidListViewMetaData: any
|
|
160
189
|
}
|
|
161
190
|
|
|
162
|
-
|
|
163
191
|
export type SolidListRowdataDynamicFunctionProps = {
|
|
164
192
|
action: string,
|
|
165
193
|
params: any,
|