builder-settings-types 0.0.407 → 0.0.409

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 CHANGED
@@ -1,8 +1,10 @@
1
1
  export * from './base/settings-group/settingsGroup';
2
2
  export { TabSettingGroup } from './base/settings-group/settingsGroup';
3
3
  export { TabSettingGroup as TabsSettingGroup } from './base/settings-group/settingsGroup';
4
+ export type { ExcelImportConfig } from './base/settings-group/settingsGroup';
4
5
  export * from './base/drawable';
5
6
  export * from './base/settings';
7
+ export * from './services/ExcelRulesService';
6
8
  export * from './settings/color-settings/colorSettings';
7
9
  export * from './settings/color-with-opacity-settings/colorWithOpacitySettings';
8
10
  export * from './settings/html-settings/htmlSettings';
@@ -0,0 +1,34 @@
1
+ export interface RuleExcelRow {
2
+ title_en?: string;
3
+ title_ka?: string;
4
+ title_ru?: string;
5
+ title_tr?: string;
6
+ description_en?: string;
7
+ description_ka?: string;
8
+ description_ru?: string;
9
+ description_tr?: string;
10
+ }
11
+ export interface ParsedRule {
12
+ ruleTitle: Record<string, string>;
13
+ ruleContent: Record<string, string>;
14
+ }
15
+ export interface ExcelImportResult {
16
+ rules: ParsedRule[];
17
+ errors: string[];
18
+ summary: {
19
+ total: number;
20
+ successful: number;
21
+ failed: number;
22
+ };
23
+ }
24
+ export declare class ExcelRulesService {
25
+ static exportToExcel(rules: ParsedRule[], languages?: string[], filename?: string): void;
26
+ static downloadTemplate(languages?: string[], filename?: string): void;
27
+ static importFromExcel(file: File): Promise<ExcelImportResult>;
28
+ private static normalizeHeaders;
29
+ private static parseRow;
30
+ static validateFile(file: File): {
31
+ valid: boolean;
32
+ error?: string;
33
+ };
34
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "builder-settings-types",
3
3
  "description": "builder settings",
4
- "version": "0.0.407",
4
+ "version": "0.0.409",
5
5
  "type": "module",
6
6
  "main": "dist/builder-settings-types.cjs.js",
7
7
  "module": "dist/builder-settings-types.es.js",