@solidpepper/solidpepper-solidgeneration 0.1.1 → 0.1.3
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/index.d.ts
CHANGED
|
@@ -121,7 +121,7 @@ declare class DataSheetSVG {
|
|
|
121
121
|
svg: string;
|
|
122
122
|
}[] | null>;
|
|
123
123
|
private GenerateProductBlock;
|
|
124
|
-
GenerateOnlyProductBlock(publicationTemplateString: any, publicationTemplateVariantTableSetting: any, templateGuid: string, publicationTemplateGuid: string, productData: any, xStart?: number, yStart?: number): Promise<{
|
|
124
|
+
GenerateOnlyProductBlock(publicationTemplateString: any, publicationTemplateVariantTableSetting: any, templateGuid: string, publicationTemplateGuid: string, productData: any, xStart?: number, yStart?: number, keepAttributes?: boolean): Promise<{
|
|
125
125
|
groupString: string;
|
|
126
126
|
styleString: string;
|
|
127
127
|
defString: string;
|
|
@@ -153,12 +153,12 @@ declare class DataSheetSVG {
|
|
|
153
153
|
safeParseFloat(val: string | null | undefined): number;
|
|
154
154
|
GetFieldsToReplace(element: any): any[];
|
|
155
155
|
getPropertyOfField(fieldToSearch: string): string | null;
|
|
156
|
-
getNewValTable(jRowSku: any, tag: any, svgContent: any, allBlocksHeight: any, blockWidth: any, nbBlockInRow: any): Promise<any[] | null>;
|
|
157
|
-
generateRowHTML(jSku: any, arrayField: any[], SkuRows: string[], iSku: number): Promise<{
|
|
156
|
+
getNewValTable(jRowSku: any, tag: any, svgContent: any, allBlocksHeight: any, blockWidth: any, nbBlockInRow: any, keepAttributes?: boolean): Promise<any[] | null>;
|
|
157
|
+
generateRowHTML(jSku: any, arrayField: any[], SkuRows: string[], iSku: number, keepAttributes?: boolean): Promise<{
|
|
158
158
|
currentRow: string;
|
|
159
159
|
currentRowWithoutStyle: string;
|
|
160
160
|
}>;
|
|
161
|
-
generateCellContent(fieldObjectTable: any, skuValue: string, skuRowValue: string): Promise<string>;
|
|
161
|
+
generateCellContent(fieldObjectTable: any, skuValue: string, skuRowValue: string, keepAttributes?: boolean): Promise<string>;
|
|
162
162
|
generateCellStyle(header: any, body: any, iSku: number): string;
|
|
163
163
|
removeEmptyColumns(tableHtml: string, tag: any, tpl?: string): {
|
|
164
164
|
colgroup: null;
|
|
@@ -170,7 +170,7 @@ declare class DataSheetSVG {
|
|
|
170
170
|
tbodyArray: any[];
|
|
171
171
|
};
|
|
172
172
|
removeEmptyColumnsOld(tableHtml: string, tag: any, tpl?: string): string;
|
|
173
|
-
getNewVal(field: string, jRowSku: any, idVal?: string, tag?: any, showText?: boolean, showPicto?: boolean, separator?: string): string | null;
|
|
173
|
+
getNewVal(field: string, jRowSku: any, idVal?: string, tag?: any, showText?: boolean, showPicto?: boolean, separator?: string, keepAttributes?: boolean): string | null;
|
|
174
174
|
getNewColorVal(field: any, jRowSku: any, idVal: any): string;
|
|
175
175
|
addStyle(styles: any, key: any, value: any): void;
|
|
176
176
|
private getHierarchyWrapper;
|
|
@@ -181,7 +181,7 @@ declare class DataSheetSVG {
|
|
|
181
181
|
PrepareBackgroundTpl(svg: any): any;
|
|
182
182
|
GetSvgGroupToReplace(svg: any): any;
|
|
183
183
|
delay(ms?: number): Promise<unknown>;
|
|
184
|
-
ReplaceFieldsTemplateSVG(jRowSku: any, tpl: any, allTags: any, allBlocksHeight?: number, nbBlockInRow?: number): Promise<any>;
|
|
184
|
+
ReplaceFieldsTemplateSVG(jRowSku: any, tpl: any, allTags: any, allBlocksHeight?: number, nbBlockInRow?: number, keepAttributes?: boolean): Promise<any>;
|
|
185
185
|
optimizeProductTable(foEl: any, tpl?: string): {
|
|
186
186
|
width: number;
|
|
187
187
|
height: number;
|
|
@@ -205,7 +205,7 @@ declare class DataSheetSVG {
|
|
|
205
205
|
GetLinkedRect(tag: any, listTags: any[]): any;
|
|
206
206
|
GetXY(element: any): (string | null)[];
|
|
207
207
|
SetHeight(tag: any, height: number): void;
|
|
208
|
-
GetTagUrl(tag: any, jRowSku: any): string | null;
|
|
208
|
+
GetTagUrl(tag: any, jRowSku: any, keepAttributes?: boolean): string | null;
|
|
209
209
|
addCuttingLine(): string;
|
|
210
210
|
createLineSVG(x0: number, y0: number, x1: number, y1: number): string;
|
|
211
211
|
keepOnlySideRegex(svg: string, sideToKeep: string): string;
|