adminizer 4.1.0-build.6 → 4.1.0-build.7

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.
@@ -86,7 +86,7 @@ export class ConfigHelper {
86
86
  // Object notation: Allows full customization of the field.
87
87
  if (typeof config === "object" && config !== null) {
88
88
  config.title = config.title || key;
89
- config.visible = Boolean(config.visible);
89
+ config.visible = config.visible === undefined ? true : Boolean(config.visible);
90
90
  // For association types, determine display field by checking model attributes.
91
91
  if (["association", "association-many"].includes(config.type)) {
92
92
  let associatedModelAttributes = {};
@@ -316,7 +316,7 @@ export interface BaseFieldConfig {
316
316
  disabled?: boolean;
317
317
  /** Show as required element HTML */
318
318
  required?: boolean;
319
- /** show or hode element */
319
+ /** show or hode element, default `true` */
320
320
  visible?: boolean;
321
321
  }
322
322
  export interface TuiEditorFieldConfig extends BaseFieldConfig {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.1.0-build.6",
4
+ "version": "4.1.0-build.7",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",