ngx-core-components 0.3.23 → 0.3.24
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/ai/ai-form-copilot/ai-form-copilot.component.d.ts +19 -0
- package/ai/public-api.d.ts +1 -0
- package/charts/adjacency-matrix/adjacency-matrix.component.d.ts +12 -1
- package/charts/agentic-cognitive-topology/agentic-cognitive-topology.component.d.ts +125 -0
- package/charts/arc-diagram/arc-diagram.component.d.ts +72 -0
- package/charts/area-chart/area-chart.component.d.ts +12 -1
- package/charts/area-range-chart/area-range-chart.component.d.ts +73 -0
- package/charts/area-spline-range-chart/area-spline-range-chart.component.d.ts +73 -0
- package/charts/bar-chart/bar-chart.component.d.ts +2 -1
- package/charts/bell-curve-chart/bell-curve-chart.component.d.ts +65 -0
- package/charts/biplot/biplot.component.d.ts +12 -1
- package/charts/box-plot-chart/box-plot-chart.component.d.ts +13 -1
- package/charts/bullet-chart/bullet-chart.component.d.ts +12 -1
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +13 -1
- package/charts/chord-diagram/chord-diagram.component.d.ts +12 -1
- package/charts/column-pyramid-chart/column-pyramid-chart.component.d.ts +61 -0
- package/charts/column-range-chart/column-range-chart.component.d.ts +66 -0
- package/charts/combo-chart/combo-chart.component.d.ts +12 -1
- package/charts/dependency-wheel/dependency-wheel.component.d.ts +12 -1
- package/charts/dumbbell-chart/dumbbell-chart.component.d.ts +12 -1
- package/charts/embedding-space-projection/embedding-space-projection.component.d.ts +127 -0
- package/charts/error-bar/error-bar.component.d.ts +76 -0
- package/charts/flags/flags.component.d.ts +80 -0
- package/charts/flowmap/flowmap.component.d.ts +71 -0
- package/charts/funnel-chart/funnel-chart.component.d.ts +12 -1
- package/charts/gauge-chart/gauge-chart.component.d.ts +12 -1
- package/charts/geo-heatmap/geo-heatmap.component.d.ts +65 -0
- package/charts/heatmap-chart/heatmap-chart.component.d.ts +12 -1
- package/charts/heikin-ashi-chart/heikin-ashi-chart.component.d.ts +88 -0
- package/charts/histogram/histogram.component.d.ts +59 -0
- package/charts/hlc-chart/hlc-chart.component.d.ts +72 -0
- package/charts/hollow-candlestick-chart/hollow-candlestick-chart.component.d.ts +81 -0
- package/charts/lollipop-chart/lollipop-chart.component.d.ts +12 -1
- package/charts/map-bubble/map-bubble.component.d.ts +57 -0
- package/charts/map-choropleth/map-choropleth.component.d.ts +54 -0
- package/charts/map-line-point/map-line-point.component.d.ts +67 -0
- package/charts/marimekko-chart/marimekko-chart.component.d.ts +12 -1
- package/charts/network-graph/network-graph.component.d.ts +73 -0
- package/charts/ohlc-chart/ohlc-chart.component.d.ts +75 -0
- package/charts/packed-bubble-chart/packed-bubble-chart.component.d.ts +69 -0
- package/charts/parallel-coordinates/parallel-coordinates.component.d.ts +61 -0
- package/charts/pareto-chart/pareto-chart.component.d.ts +12 -1
- package/charts/pictorial-chart/pictorial-chart.component.d.ts +59 -0
- package/charts/public-api.d.ts +65 -0
- package/charts/radar-chart/radar-chart.component.d.ts +12 -1
- package/charts/radial-bar-chart/radial-bar-chart.component.d.ts +12 -1
- package/charts/ridgeline-chart/ridgeline-chart.component.d.ts +12 -1
- package/charts/sankey-chart/sankey-chart.component.d.ts +12 -1
- package/charts/scatter-plot/scatter-plot.component.d.ts +12 -1
- package/charts/shared/map-data.d.ts +30 -0
- package/charts/slope-chart/slope-chart.component.d.ts +12 -1
- package/charts/streamgraph/streamgraph.component.d.ts +71 -0
- package/charts/tiled-web-map/tiled-web-map.component.d.ts +71 -0
- package/charts/tilemap/tilemap.component.d.ts +63 -0
- package/charts/token-streaming-chart/token-streaming-chart.component.d.ts +70 -0
- package/charts/transformer-attention-heatmap/transformer-attention-heatmap.component.d.ts +75 -0
- package/charts/treegraph/treegraph.component.d.ts +56 -0
- package/charts/treemap-chart/treemap-chart.component.d.ts +12 -1
- package/charts/variable-pie-chart/variable-pie-chart.component.d.ts +70 -0
- package/charts/variwide-chart/variwide-chart.component.d.ts +62 -0
- package/charts/vector-plot/vector-plot.component.d.ts +63 -0
- package/charts/venn-diagram/venn-diagram.component.d.ts +59 -0
- package/charts/violin-plot/violin-plot.component.d.ts +12 -1
- package/charts/waterfall-chart/waterfall-chart.component.d.ts +12 -1
- package/charts/word-cloud/word-cloud.component.d.ts +56 -0
- package/fesm2022/ngx-core-components-ai.mjs +222 -2
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +24532 -365
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +78 -0
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +11 -2
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +1 -0
- package/grid/data-grid/grid-export.service.d.ts +4 -0
- package/inputs/form-builder/form-designer.component.d.ts +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +66 -1
- package/schematics/collection.json +5 -0
- package/schematics/dashboard/index.js +162 -0
- package/schematics/dashboard/schema.json +19 -0
- package/themes/tailwind-preset.js +63 -0
|
@@ -2814,7 +2814,7 @@ class NgxWebLlmService {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
try {
|
|
2816
2816
|
// Dynamic import of web-llm from CDN. Using type casting to bypass TS compilation lookup checks
|
|
2817
|
-
const webLlmModule = await import(
|
|
2817
|
+
const webLlmModule = await Function('return import("https://cdn.jsdelivr.net/npm/@mlc-ai/web-llm@0.2.46/+esm")')();
|
|
2818
2818
|
this.status.set('downloading_model');
|
|
2819
2819
|
this.progress.set(0);
|
|
2820
2820
|
const engine = await webLlmModule.CreateWebGPUEngine(modelId, {
|
|
@@ -2930,9 +2930,229 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2930
2930
|
}]
|
|
2931
2931
|
}] });
|
|
2932
2932
|
|
|
2933
|
+
class AIFormCopilotComponent {
|
|
2934
|
+
fields = input([]);
|
|
2935
|
+
formBuilder = input(null);
|
|
2936
|
+
theme = input('light');
|
|
2937
|
+
valuesExtracted = output();
|
|
2938
|
+
promptText = signal('');
|
|
2939
|
+
loading = signal(false);
|
|
2940
|
+
statusMessage = signal('');
|
|
2941
|
+
progress = signal(0);
|
|
2942
|
+
hasError = signal(false);
|
|
2943
|
+
errorMessage = signal(null);
|
|
2944
|
+
successMessage = signal(null);
|
|
2945
|
+
llmService = inject(NgxWebLlmService);
|
|
2946
|
+
async autoFill() {
|
|
2947
|
+
const text = this.promptText().trim();
|
|
2948
|
+
if (!text)
|
|
2949
|
+
return;
|
|
2950
|
+
this.loading.set(true);
|
|
2951
|
+
this.hasError.set(false);
|
|
2952
|
+
this.errorMessage.set(null);
|
|
2953
|
+
this.successMessage.set(null);
|
|
2954
|
+
this.statusMessage.set('Initializing AI model...');
|
|
2955
|
+
try {
|
|
2956
|
+
if (!this.llmService.isReady()) {
|
|
2957
|
+
await this.llmService.init('Qwen2.5-0.5B-Instruct', (val, msg) => {
|
|
2958
|
+
this.progress.set(Math.round(val * 100));
|
|
2959
|
+
this.statusMessage.set(`Loading LLM: ${msg}`);
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2962
|
+
this.statusMessage.set('Parsing input text...');
|
|
2963
|
+
const schemaString = this.fields().map(f => {
|
|
2964
|
+
const optString = f.options ? ` Options: [${f.options.map(o => `${o.value}: ${o.label}`).join(', ')}]` : '';
|
|
2965
|
+
return `- field "${f.key}" (Type: ${f.type || 'text'}, Label: "${f.label}"${optString})`;
|
|
2966
|
+
}).join('\n');
|
|
2967
|
+
const messages = [
|
|
2968
|
+
{
|
|
2969
|
+
role: 'system',
|
|
2970
|
+
content: `You are a highly precise entity extractor. Parse the user's input paragraph and extract values for these form fields:
|
|
2971
|
+
${schemaString}
|
|
2972
|
+
|
|
2973
|
+
Return a single JSON object mapping field keys to extracted values. Return ONLY the JSON object. Do not explain. Do not wrap in markdown quotes. Format booleans for checkbox types.`
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
role: 'user',
|
|
2977
|
+
content: text
|
|
2978
|
+
}
|
|
2979
|
+
];
|
|
2980
|
+
const response = await this.llmService.generate(messages, () => {
|
|
2981
|
+
this.statusMessage.set('Extracting values...');
|
|
2982
|
+
});
|
|
2983
|
+
let extractedValues = {};
|
|
2984
|
+
try {
|
|
2985
|
+
const jsonMatch = response.match(/\{[\s\S]*\}/);
|
|
2986
|
+
const jsonStr = jsonMatch ? jsonMatch[0] : response;
|
|
2987
|
+
extractedValues = JSON.parse(jsonStr);
|
|
2988
|
+
}
|
|
2989
|
+
catch (err) {
|
|
2990
|
+
console.warn('Failed to parse model output directly, trying text fallbacks:', response);
|
|
2991
|
+
for (const f of this.fields()) {
|
|
2992
|
+
const regex = new RegExp(`"${f.key}"\\s*:\\s*(?:"([^"]*)"|([^,\\s}]*))`);
|
|
2993
|
+
const match = response.match(regex);
|
|
2994
|
+
if (match) {
|
|
2995
|
+
const val = match[1] !== undefined ? match[1] : match[2];
|
|
2996
|
+
if (val !== undefined) {
|
|
2997
|
+
if (f.type === 'number')
|
|
2998
|
+
extractedValues[f.key] = Number(val);
|
|
2999
|
+
else if (f.type === 'checkbox')
|
|
3000
|
+
extractedValues[f.key] = val.trim() === 'true';
|
|
3001
|
+
else
|
|
3002
|
+
extractedValues[f.key] = val.trim();
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
if (response.includes('[Simulated')) {
|
|
3008
|
+
extractedValues = {};
|
|
3009
|
+
const lowerText = text.toLowerCase();
|
|
3010
|
+
for (const f of this.fields()) {
|
|
3011
|
+
if (f.type === 'checkbox') {
|
|
3012
|
+
extractedValues[f.key] = lowerText.includes(f.label.toLowerCase()) || lowerText.includes('yes');
|
|
3013
|
+
}
|
|
3014
|
+
else {
|
|
3015
|
+
if (f.key === 'name' || f.key === 'customer' || f.key === 'fullName') {
|
|
3016
|
+
const nameMatch = text.match(/(?:name is|named)\s+([A-Z][a-z]+(?:\s+[A-Z][a-z]+)?)/);
|
|
3017
|
+
extractedValues[f.key] = nameMatch ? nameMatch[1] : 'Alice Smith';
|
|
3018
|
+
}
|
|
3019
|
+
else if (f.key === 'email') {
|
|
3020
|
+
const emailMatch = text.match(/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/);
|
|
3021
|
+
extractedValues[f.key] = emailMatch ? emailMatch[1] : 'alice@example.com';
|
|
3022
|
+
}
|
|
3023
|
+
else if (f.key === 'role') {
|
|
3024
|
+
extractedValues[f.key] = 'Developer';
|
|
3025
|
+
}
|
|
3026
|
+
else if (f.type === 'number') {
|
|
3027
|
+
const numMatch = text.match(/\d+/);
|
|
3028
|
+
extractedValues[f.key] = numMatch ? Number(numMatch[0]) : 5;
|
|
3029
|
+
}
|
|
3030
|
+
else {
|
|
3031
|
+
extractedValues[f.key] = `Extracted value for ${f.label}`;
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
const builder = this.formBuilder();
|
|
3037
|
+
if (builder) {
|
|
3038
|
+
Object.entries(extractedValues).forEach(([key, val]) => {
|
|
3039
|
+
builder.updateValue(key, val);
|
|
3040
|
+
});
|
|
3041
|
+
}
|
|
3042
|
+
this.valuesExtracted.emit(extractedValues);
|
|
3043
|
+
this.successMessage.set('Form populated successfully!');
|
|
3044
|
+
}
|
|
3045
|
+
catch (err) {
|
|
3046
|
+
this.hasError.set(true);
|
|
3047
|
+
this.errorMessage.set(err.message || 'Auto-fill failed');
|
|
3048
|
+
}
|
|
3049
|
+
finally {
|
|
3050
|
+
this.loading.set(false);
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AIFormCopilotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3054
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: AIFormCopilotComponent, isStandalone: true, selector: "ngx-ai-form-copilot", inputs: { fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null }, formBuilder: { classPropertyName: "formBuilder", publicName: "formBuilder", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valuesExtracted: "valuesExtracted" }, ngImport: i0, template: `
|
|
3055
|
+
<div class="ngx-ai-form-copilot-container" [class.dark-mode]="theme() === 'dark'">
|
|
3056
|
+
<div class="copilot-header">
|
|
3057
|
+
<span class="copilot-logo">🤖</span>
|
|
3058
|
+
<div class="copilot-title-group">
|
|
3059
|
+
<h4 class="copilot-title">AI Form Co-Pilot</h4>
|
|
3060
|
+
<p class="copilot-subtitle">Use local AI to fill the form automatically</p>
|
|
3061
|
+
</div>
|
|
3062
|
+
</div>
|
|
3063
|
+
|
|
3064
|
+
<div class="copilot-body">
|
|
3065
|
+
<textarea
|
|
3066
|
+
[(ngModel)]="promptText"
|
|
3067
|
+
[disabled]="loading()"
|
|
3068
|
+
placeholder="e.g. My name is Alice, email is alice@gmail.com, and I am a Developer..."
|
|
3069
|
+
class="copilot-textarea"
|
|
3070
|
+
rows="3"
|
|
3071
|
+
></textarea>
|
|
3072
|
+
|
|
3073
|
+
<div class="copilot-actions">
|
|
3074
|
+
<span class="copilot-status" [class.error]="hasError()">
|
|
3075
|
+
@if (loading()) {
|
|
3076
|
+
<span class="spinner">⏳</span> {{ statusMessage() }}
|
|
3077
|
+
} @else if (hasError()) {
|
|
3078
|
+
❌ {{ errorMessage() }}
|
|
3079
|
+
} @else if (successMessage()) {
|
|
3080
|
+
✅ {{ successMessage() }}
|
|
3081
|
+
}
|
|
3082
|
+
</span>
|
|
3083
|
+
|
|
3084
|
+
<button
|
|
3085
|
+
class="fill-btn"
|
|
3086
|
+
[disabled]="loading() || !promptText().trim()"
|
|
3087
|
+
(click)="autoFill()"
|
|
3088
|
+
>
|
|
3089
|
+
⚡ Auto-Fill Form
|
|
3090
|
+
</button>
|
|
3091
|
+
</div>
|
|
3092
|
+
|
|
3093
|
+
@if (loading() && progress() > 0 && progress() < 100) {
|
|
3094
|
+
<div class="progress-bar-container">
|
|
3095
|
+
<div class="progress-bar-fill" [style.width.%]="progress()"></div>
|
|
3096
|
+
</div>
|
|
3097
|
+
}
|
|
3098
|
+
</div>
|
|
3099
|
+
</div>
|
|
3100
|
+
`, isInline: true, styles: [":host{display:block}.ngx-ai-form-copilot-container{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);border-radius:12px;padding:16px;font-family:var(--ngx-font-family, inherit);color:var(--text-primary, #0f172a);box-shadow:var(--ngx-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));transition:all .2s ease}.ngx-ai-form-copilot-container.dark-mode{background:#1e293b;border-color:#334155;color:#f8fafc}.copilot-header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.copilot-logo{font-size:24px}.copilot-title-group{display:flex;flex-direction:column}.copilot-title{margin:0;font-size:14px;font-weight:700}.copilot-subtitle{margin:2px 0 0;font-size:11px;color:var(--text-secondary, #64748b)}.dark-mode .copilot-subtitle{color:#94a3b8}.copilot-body{display:flex;flex-direction:column;gap:10px}.copilot-textarea{width:100%;background:var(--bg-primary, #f8fafc);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;padding:8px 12px;font-size:13px;color:inherit;outline:none;resize:none;transition:border-color .15s}.dark-mode .copilot-textarea{background:#0f172a;border-color:#475569}.copilot-textarea:focus{border-color:var(--primary-color, #4f46e5)}.copilot-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.copilot-status{font-size:11px;color:var(--primary-color, #4f46e5);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.copilot-status.error{color:var(--ngx-color-danger, #ef4444)}.fill-btn{background:var(--primary-color, #4f46e5);color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:600;padding:6px 12px;cursor:pointer;transition:background .15s}.fill-btn:hover:not(:disabled){background:var(--primary-hover, #4338ca)}.fill-btn:disabled{background:var(--border-color, #cbd5e1);color:var(--text-disabled, #94a3b8);cursor:not-allowed}.dark-mode .fill-btn:disabled{background:#334155;color:#64748b}.progress-bar-container{width:100%;height:4px;background:var(--border-color, #e2e8f0);border-radius:2px;overflow:hidden}.dark-mode .progress-bar-container{background:#334155}.progress-bar-fill{height:100%;background:var(--primary-color, #4f46e5);width:0%;transition:width .1s ease}.spinner{display:inline-block;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
3101
|
+
}
|
|
3102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AIFormCopilotComponent, decorators: [{
|
|
3103
|
+
type: Component,
|
|
3104
|
+
args: [{ selector: 'ngx-ai-form-copilot', standalone: true, imports: [CommonModule, FormsModule], template: `
|
|
3105
|
+
<div class="ngx-ai-form-copilot-container" [class.dark-mode]="theme() === 'dark'">
|
|
3106
|
+
<div class="copilot-header">
|
|
3107
|
+
<span class="copilot-logo">🤖</span>
|
|
3108
|
+
<div class="copilot-title-group">
|
|
3109
|
+
<h4 class="copilot-title">AI Form Co-Pilot</h4>
|
|
3110
|
+
<p class="copilot-subtitle">Use local AI to fill the form automatically</p>
|
|
3111
|
+
</div>
|
|
3112
|
+
</div>
|
|
3113
|
+
|
|
3114
|
+
<div class="copilot-body">
|
|
3115
|
+
<textarea
|
|
3116
|
+
[(ngModel)]="promptText"
|
|
3117
|
+
[disabled]="loading()"
|
|
3118
|
+
placeholder="e.g. My name is Alice, email is alice@gmail.com, and I am a Developer..."
|
|
3119
|
+
class="copilot-textarea"
|
|
3120
|
+
rows="3"
|
|
3121
|
+
></textarea>
|
|
3122
|
+
|
|
3123
|
+
<div class="copilot-actions">
|
|
3124
|
+
<span class="copilot-status" [class.error]="hasError()">
|
|
3125
|
+
@if (loading()) {
|
|
3126
|
+
<span class="spinner">⏳</span> {{ statusMessage() }}
|
|
3127
|
+
} @else if (hasError()) {
|
|
3128
|
+
❌ {{ errorMessage() }}
|
|
3129
|
+
} @else if (successMessage()) {
|
|
3130
|
+
✅ {{ successMessage() }}
|
|
3131
|
+
}
|
|
3132
|
+
</span>
|
|
3133
|
+
|
|
3134
|
+
<button
|
|
3135
|
+
class="fill-btn"
|
|
3136
|
+
[disabled]="loading() || !promptText().trim()"
|
|
3137
|
+
(click)="autoFill()"
|
|
3138
|
+
>
|
|
3139
|
+
⚡ Auto-Fill Form
|
|
3140
|
+
</button>
|
|
3141
|
+
</div>
|
|
3142
|
+
|
|
3143
|
+
@if (loading() && progress() > 0 && progress() < 100) {
|
|
3144
|
+
<div class="progress-bar-container">
|
|
3145
|
+
<div class="progress-bar-fill" [style.width.%]="progress()"></div>
|
|
3146
|
+
</div>
|
|
3147
|
+
}
|
|
3148
|
+
</div>
|
|
3149
|
+
</div>
|
|
3150
|
+
`, styles: [":host{display:block}.ngx-ai-form-copilot-container{background:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e2e8f0);border-radius:12px;padding:16px;font-family:var(--ngx-font-family, inherit);color:var(--text-primary, #0f172a);box-shadow:var(--ngx-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, .1));transition:all .2s ease}.ngx-ai-form-copilot-container.dark-mode{background:#1e293b;border-color:#334155;color:#f8fafc}.copilot-header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.copilot-logo{font-size:24px}.copilot-title-group{display:flex;flex-direction:column}.copilot-title{margin:0;font-size:14px;font-weight:700}.copilot-subtitle{margin:2px 0 0;font-size:11px;color:var(--text-secondary, #64748b)}.dark-mode .copilot-subtitle{color:#94a3b8}.copilot-body{display:flex;flex-direction:column;gap:10px}.copilot-textarea{width:100%;background:var(--bg-primary, #f8fafc);border:1px solid var(--border-color, #cbd5e1);border-radius:8px;padding:8px 12px;font-size:13px;color:inherit;outline:none;resize:none;transition:border-color .15s}.dark-mode .copilot-textarea{background:#0f172a;border-color:#475569}.copilot-textarea:focus{border-color:var(--primary-color, #4f46e5)}.copilot-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.copilot-status{font-size:11px;color:var(--primary-color, #4f46e5);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.copilot-status.error{color:var(--ngx-color-danger, #ef4444)}.fill-btn{background:var(--primary-color, #4f46e5);color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:600;padding:6px 12px;cursor:pointer;transition:background .15s}.fill-btn:hover:not(:disabled){background:var(--primary-hover, #4338ca)}.fill-btn:disabled{background:var(--border-color, #cbd5e1);color:var(--text-disabled, #94a3b8);cursor:not-allowed}.dark-mode .fill-btn:disabled{background:#334155;color:#64748b}.progress-bar-container{width:100%;height:4px;background:var(--border-color, #e2e8f0);border-radius:2px;overflow:hidden}.dark-mode .progress-bar-container{background:#334155}.progress-bar-fill{height:100%;background:var(--primary-color, #4f46e5);width:0%;transition:width .1s ease}.spinner{display:inline-block;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
3151
|
+
}] });
|
|
3152
|
+
|
|
2933
3153
|
/**
|
|
2934
3154
|
* Generated bundle index. Do not edit.
|
|
2935
3155
|
*/
|
|
2936
3156
|
|
|
2937
|
-
export { AIAudioWaveComponent, AIChatComponent, AIChatWidgetComponent, AICodeEditorComponent, AIModelCompareComponent, AIPromptEditorComponent, AIRagInspectorComponent, NgxWebLlmService };
|
|
3157
|
+
export { AIAudioWaveComponent, AIChatComponent, AIChatWidgetComponent, AICodeEditorComponent, AIFormCopilotComponent, AIModelCompareComponent, AIPromptEditorComponent, AIRagInspectorComponent, NgxWebLlmService };
|
|
2938
3158
|
//# sourceMappingURL=ngx-core-components-ai.mjs.map
|