Commit Graph

378 Commits

Author SHA1 Message Date
SET 17b5e61a43 Removed dead code. 2020-08-11 16:02:00 -03:00
SET 14f2b2b353 Added test for field collision. 2020-08-11 15:54:02 -03:00
SET ce7b985062 Added more information to the field collision warning 2020-08-11 15:51:58 -03:00
SET e43196e0d7 Added test for empty user field. 2020-08-11 15:11:14 -03:00
SET d2bd0da962 Removed more dead code 2020-08-11 15:09:46 -03:00
SET 405e172395 Added test for multi-part component.
Check it isn't repeated.
2020-08-11 14:46:10 -03:00
SET 92514e38f0 Removed dead code. 2020-08-11 14:36:32 -03:00
SET 6d50e4bd27 Added test for non contiguous reference ranges. 2020-08-11 13:40:48 -03:00
SET ace151f1ef Removed dead code in Joiner class. 2020-08-11 13:40:14 -03:00
SET d49d3b498f Added test for empty list of group fields. 2020-08-11 13:21:50 -03:00
SET acfb74335b Fixed the Optionable._type method for empty lists. 2020-08-11 13:20:01 -03:00
SET 6d09d662be Fixed flake8 style details 2020-08-11 12:46:36 -03:00
SET fe2f5d6c65 Updated the documentation
Included new options: highlight_empty and max_col_width
2020-08-11 12:45:28 -03:00
SET 2995270155 Added tests for merge_blank_fields and component_aliases 2020-08-11 12:26:30 -03:00
SET e530a3bb98 Fixed the merge_blank_fields logic.
Now it uses empty fileds as wildcards.
2020-08-11 12:25:08 -03:00
SET fae2a024dd Optimized field names collection.
Now they are collected on the fly. No need to visit all the components
again.
2020-08-10 19:56:52 -03:00
SET 67cc8e9fca Enabled LibAlias.__str__ member.
Is used only for debug, but helps.
2020-08-10 18:58:36 -03:00
SET ab0591f102 Removed old comment. 2020-08-10 18:58:03 -03:00
SET b164e008e3 Fixed HTML output for internal BoM.
Reference to wrong config variable.
2020-08-10 18:56:39 -03:00
SET 8828be17e4 Fixed default variant name. 2020-08-10 18:55:58 -03:00
Salvador E. Tropea 78cfcd16c0 Added option to disable the red color for empty cells.
Applies only when using colors for column types.
Is for HTML and XLSX
2020-08-06 09:24:48 -03:00
Salvador E. Tropea 77bf713b26 Max number of chars per column configurable in XLSX.
Also added row height adjust.
2020-08-06 09:04:16 -03:00
Salvador E. Tropea 7298a5662f Give more priority to user defined 'Description' field.
Only using the one from libs if the user didn't define it.
2020-08-06 09:02:39 -03:00
Salvador E. Tropea 3555059f8f Better support for UTF-8 in XML output.
From SchrodingersGat/KiBoM#129 and SchrodingersGat/KiBoM#130
Fixes problems on Windows 10
2020-08-06 08:59:25 -03:00
Salvador E. Tropea 7563d1a9ad Implemented the KiCad version in the Internal BoM. 2020-08-05 21:17:20 -03:00
Salvador E. Tropea 8b3d70dae6 Added some UTF-8 text to a field for testing purposes. 2020-08-05 21:16:50 -03:00
Salvador E. Tropea 46c55fcf91 Separated the format specific options for internal BoM
And now we have more options.
- CVS: can quote all values.
- HTML and XLSX: styles adjust, including a logo.
- XLSX: now has the same options as HTML
Also a fix in the "join" mechanism for "case insensitive" support.
2020-08-05 19:57:32 -03:00
Salvador E. Tropea 3e6648773f Fixed column names must be lower case for internal usage. 2020-08-05 19:55:01 -03:00
Salvador E. Tropea 61909127cd Fixed initialization of empty sub-options. 2020-08-05 19:53:57 -03:00
Salvador E. Tropea 547c3a22bb Simplified the columns logic for the internal BoM.
The ColumnList class now is just a place holder for column names.
We just create the list of columns from the user preferences or
creating a good default and then we just use this list.
2020-08-01 20:15:33 -03:00
Salvador E. Tropea 71c87bf2ea Optimized the list of fields reported by the components.
Avoiding to iterate on fields that we'll reject and also providing the
value in the same operation.
2020-08-01 19:11:58 -03:00
Salvador E. Tropea f062eca7aa Removed counter no longer used in HTML and CSV BoM writers. 2020-08-01 18:50:50 -03:00
Salvador E. Tropea 99eab1c2f1 Removed `number_rows` from README.md and exampl config. 2020-08-01 18:42:01 -03:00
Salvador E. Tropea 9e8aebc3aa deeepcopy no longer needed. 2020-08-01 18:41:35 -03:00
Salvador E. Tropea a9cd9a649b Moved the BoM stats computation.
Now is in a loop that already operates with this information.
2020-08-01 18:39:34 -03:00
Salvador E. Tropea 5be7254594 Now the row number column is a regular column.
Its name is `Row` and you can put everywhere.
No `number_rows` option needed or special cases, is just another column
2020-08-01 18:31:26 -03:00
Salvador E. Tropea 64576e3975 Moved some repeated code in BoM writers.
All the writers computed some stats. Now they are computed in one place
avoiding repetition.
2020-08-01 16:55:33 -03:00
Salvador E. Tropea 670e379f65 Fixed style details (flake8) 2020-08-01 16:27:39 -03:00
Salvador E. Tropea a2ef1359d0 Added test for the KiBoM bug about columns not fully case insensitive. 2020-08-01 16:24:28 -03:00
Salvador E. Tropea 9c8830eefa Added test for the connectors grouping. 2020-08-01 16:07:51 -03:00
Salvador E. Tropea 6b9be4a2fc Implemented the group_connectors option of the internal BoM 2020-08-01 16:06:54 -03:00
Salvador E. Tropea 2ef0aa060c Added XML and XLSX tests for the column rename. 2020-08-01 15:43:18 -03:00
Salvador E. Tropea d1fd04d4d2 Added column rename test for HTML. 2020-08-01 15:36:29 -03:00
Salvador E. Tropea 0f57ff8b73 Fixed 'component' column isn't always added, so we must test before remove. 2020-08-01 15:35:12 -03:00
Salvador E. Tropea c3c86bc4ae Added column rename test for the internal BoM. 2020-08-01 15:19:10 -03:00
Salvador E. Tropea d66410636e Fixed the column rename feature of the internal BoM 2020-08-01 15:17:54 -03:00
Salvador E. Tropea b2189991fc Added test for `number_rows` internal BoM option 2020-08-01 14:43:08 -03:00
Salvador E. Tropea b3811b78cc Added test for `use_alt` internal BoM option 2020-08-01 14:36:21 -03:00
Salvador E. Tropea 107c1c1267 Fixed the use of component.ref_suffix
This is an string and can be '?' or a number.
2020-08-01 14:34:56 -03:00
Salvador E. Tropea 6c26bd4ec6 Added test for the `html_generate_dnf` internal BoM. 2020-08-01 14:24:35 -03:00