@vaadin/hilla-react-crud 24.7.0-alpha9 → 24.7.0-beta1

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.
Files changed (151) hide show
  1. package/autocrud-dialog.d.ts +0 -1
  2. package/autocrud-dialog.js +9 -23
  3. package/autocrud-dialog.js.map +1 -7
  4. package/autocrud-feature.d.ts +0 -1
  5. package/autocrud-feature.js +5 -8
  6. package/autocrud-feature.js.map +1 -7
  7. package/autocrud.d.ts +2 -64
  8. package/autocrud.js +43 -92
  9. package/autocrud.js.map +1 -7
  10. package/autocrud.obj.js +1 -6
  11. package/autoform-feature.d.ts +0 -1
  12. package/autoform-feature.js +5 -8
  13. package/autoform-feature.js.map +1 -7
  14. package/autoform-field.d.ts +0 -90
  15. package/autoform-field.js +87 -95
  16. package/autoform-field.js.map +1 -7
  17. package/autoform.d.ts +0 -190
  18. package/autoform.js +126 -184
  19. package/autoform.js.map +1 -7
  20. package/autoform.obj.js +1 -6
  21. package/autogrid-column-context.d.ts +1 -2
  22. package/autogrid-column-context.js +4 -8
  23. package/autogrid-column-context.js.map +1 -7
  24. package/autogrid-columns.d.ts +0 -1
  25. package/autogrid-columns.js +83 -99
  26. package/autogrid-columns.js.map +1 -7
  27. package/autogrid-feature.d.ts +0 -1
  28. package/autogrid-feature.js +5 -8
  29. package/autogrid-feature.js.map +1 -7
  30. package/autogrid-renderers.d.ts +0 -1
  31. package/autogrid-renderers.js +71 -80
  32. package/autogrid-renderers.js.map +1 -7
  33. package/autogrid.d.ts +1 -103
  34. package/autogrid.js +176 -234
  35. package/autogrid.js.map +1 -7
  36. package/autogrid.obj.js +1 -6
  37. package/crud.d.ts +7 -10
  38. package/data-provider.d.ts +37 -6
  39. package/data-provider.js +186 -121
  40. package/data-provider.js.map +1 -7
  41. package/header-filter.d.ts +1 -30
  42. package/header-filter.js +137 -244
  43. package/header-filter.js.map +1 -7
  44. package/header-sorter.d.ts +0 -1
  45. package/header-sorter.js +16 -27
  46. package/header-sorter.js.map +1 -7
  47. package/i18n.d.ts +0 -1
  48. package/i18n.js +2 -5
  49. package/i18n.js.map +1 -7
  50. package/index.d.ts +1 -2
  51. package/index.js +12 -16
  52. package/index.js.map +1 -7
  53. package/locale.d.ts +0 -1
  54. package/locale.js +100 -107
  55. package/locale.js.map +1 -7
  56. package/media-query.d.ts +0 -1
  57. package/media-query.js +12 -15
  58. package/media-query.js.map +1 -7
  59. package/model-info.d.ts +0 -1
  60. package/model-info.js +126 -127
  61. package/model-info.js.map +1 -7
  62. package/package.json +9 -33
  63. package/types/com/vaadin/hilla/crud/filter/AndFilter.d.ts +3 -4
  64. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.d.ts +0 -1
  65. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.js +6 -9
  66. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.js.map +1 -7
  67. package/types/com/vaadin/hilla/crud/filter/Filter.d.ts +1 -2
  68. package/types/com/vaadin/hilla/crud/filter/FilterModel.d.ts +0 -1
  69. package/types/com/vaadin/hilla/crud/filter/FilterModel.js +3 -6
  70. package/types/com/vaadin/hilla/crud/filter/FilterModel.js.map +1 -7
  71. package/types/com/vaadin/hilla/crud/filter/FilterUnion.d.ts +4 -2
  72. package/types/com/vaadin/hilla/crud/filter/OrFilter.d.ts +3 -4
  73. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.d.ts +0 -1
  74. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.js +6 -9
  75. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.js.map +1 -7
  76. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.d.ts +0 -1
  77. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js +9 -12
  78. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js.map +1 -7
  79. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.d.ts +0 -1
  80. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.js +4 -7
  81. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.js.map +1 -7
  82. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter.d.ts +4 -5
  83. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.d.ts +0 -1
  84. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.js +12 -15
  85. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.js.map +1 -7
  86. package/types/com/vaadin/hilla/mappedtypes/Order.d.ts +3 -4
  87. package/types/com/vaadin/hilla/mappedtypes/OrderModel.d.ts +0 -1
  88. package/types/com/vaadin/hilla/mappedtypes/OrderModel.js +15 -18
  89. package/types/com/vaadin/hilla/mappedtypes/OrderModel.js.map +1 -7
  90. package/types/com/vaadin/hilla/mappedtypes/Pageable.d.ts +1 -2
  91. package/types/com/vaadin/hilla/mappedtypes/PageableModel.d.ts +0 -1
  92. package/types/com/vaadin/hilla/mappedtypes/PageableModel.js +12 -15
  93. package/types/com/vaadin/hilla/mappedtypes/PageableModel.js.map +1 -7
  94. package/types/com/vaadin/hilla/mappedtypes/Sort.d.ts +1 -2
  95. package/types/com/vaadin/hilla/mappedtypes/SortModel.d.ts +0 -1
  96. package/types/com/vaadin/hilla/mappedtypes/SortModel.js +6 -9
  97. package/types/com/vaadin/hilla/mappedtypes/SortModel.js.map +1 -7
  98. package/types/org/springframework/data/domain/Sort/Direction.d.ts +0 -1
  99. package/types/org/springframework/data/domain/Sort/Direction.js +7 -10
  100. package/types/org/springframework/data/domain/Sort/Direction.js.map +1 -7
  101. package/types/org/springframework/data/domain/Sort/DirectionModel.d.ts +0 -1
  102. package/types/org/springframework/data/domain/Sort/DirectionModel.js +4 -7
  103. package/types/org/springframework/data/domain/Sort/DirectionModel.js.map +1 -7
  104. package/types/org/springframework/data/domain/Sort/NullHandling.d.ts +0 -1
  105. package/types/org/springframework/data/domain/Sort/NullHandling.js +8 -11
  106. package/types/org/springframework/data/domain/Sort/NullHandling.js.map +1 -7
  107. package/types/org/springframework/data/domain/Sort/NullHandlingModel.d.ts +0 -1
  108. package/types/org/springframework/data/domain/Sort/NullHandlingModel.js +4 -7
  109. package/types/org/springframework/data/domain/Sort/NullHandlingModel.js.map +1 -7
  110. package/types.d.ts +6 -9
  111. package/types.js +2 -0
  112. package/types.js.map +1 -0
  113. package/util.d.ts +1 -2
  114. package/util.js +42 -47
  115. package/util.js.map +1 -7
  116. package/autocrud-dialog.d.ts.map +0 -1
  117. package/autocrud-feature.d.ts.map +0 -1
  118. package/autocrud.d.ts.map +0 -1
  119. package/autocrud.obj.js.map +0 -7
  120. package/autoform-feature.d.ts.map +0 -1
  121. package/autoform-field.d.ts.map +0 -1
  122. package/autoform.d.ts.map +0 -1
  123. package/autoform.obj.js.map +0 -7
  124. package/autogrid-column-context.d.ts.map +0 -1
  125. package/autogrid-columns.d.ts.map +0 -1
  126. package/autogrid-feature.d.ts.map +0 -1
  127. package/autogrid-renderers.d.ts.map +0 -1
  128. package/autogrid.d.ts.map +0 -1
  129. package/autogrid.obj.js.map +0 -7
  130. package/data-provider.d.ts.map +0 -1
  131. package/header-filter.d.ts.map +0 -1
  132. package/header-sorter.d.ts.map +0 -1
  133. package/i18n.d.ts.map +0 -1
  134. package/index.d.ts.map +0 -1
  135. package/locale.d.ts.map +0 -1
  136. package/media-query.d.ts.map +0 -1
  137. package/model-info.d.ts.map +0 -1
  138. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.d.ts.map +0 -1
  139. package/types/com/vaadin/hilla/crud/filter/FilterModel.d.ts.map +0 -1
  140. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.d.ts.map +0 -1
  141. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.d.ts.map +0 -1
  142. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.d.ts.map +0 -1
  143. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.d.ts.map +0 -1
  144. package/types/com/vaadin/hilla/mappedtypes/OrderModel.d.ts.map +0 -1
  145. package/types/com/vaadin/hilla/mappedtypes/PageableModel.d.ts.map +0 -1
  146. package/types/com/vaadin/hilla/mappedtypes/SortModel.d.ts.map +0 -1
  147. package/types/org/springframework/data/domain/Sort/Direction.d.ts.map +0 -1
  148. package/types/org/springframework/data/domain/Sort/DirectionModel.d.ts.map +0 -1
  149. package/types/org/springframework/data/domain/Sort/NullHandling.d.ts.map +0 -1
  150. package/types/org/springframework/data/domain/Sort/NullHandlingModel.d.ts.map +0 -1
  151. package/util.d.ts.map +0 -1
package/model-info.js.map CHANGED
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["src/model-info.ts"],
4
- "sourcesContent": ["import {\n BooleanModel,\n NumberModel,\n StringModel,\n _meta,\n createDetachedModel,\n type AbstractModel,\n type DetachedModelConstructor,\n type ModelMetadata,\n EnumModel,\n ObjectModel,\n} from '@vaadin/hilla-lit-form';\n\nexport type PropertyType =\n | 'boolean'\n | 'date'\n | 'datetime'\n | 'decimal'\n | 'enum'\n | 'integer'\n | 'object'\n | 'string'\n | 'time'\n | undefined;\n\nconst javaTypeMap: Record<string, PropertyType> = {\n byte: 'integer',\n 'java.lang.Byte': 'integer',\n short: 'integer',\n 'java.lang.Short': 'integer',\n int: 'integer',\n 'java.lang.Integer': 'integer',\n long: 'integer',\n 'java.lang.Long': 'integer',\n float: 'decimal',\n 'java.lang.Float': 'decimal',\n double: 'decimal',\n 'java.lang.Double': 'decimal',\n 'java.time.LocalDate': 'date',\n 'java.time.LocalTime': 'time',\n 'java.time.OffsetTime': 'time',\n 'java.time.LocalDateTime': 'datetime',\n 'java.time.OffsetDateTime': 'datetime',\n 'java.time.ZonedDateTime': 'datetime',\n 'java.util.Date': 'datetime',\n 'java.sql.Date': 'datetime',\n};\n\nfunction determinePropertyType(model: AbstractModel): PropertyType {\n // Try detecting by Java type\n const { javaType } = model[_meta];\n const propertyType = javaType ? javaTypeMap[javaType] : undefined;\n if (propertyType) {\n return propertyType;\n }\n\n // Otherwise detect by model instance\n if (model instanceof StringModel) {\n return 'string';\n } else if (model instanceof NumberModel) {\n return 'decimal';\n } else if (model instanceof BooleanModel) {\n return 'boolean';\n } else if (model instanceof EnumModel) {\n return 'enum';\n } else if (model instanceof ObjectModel) {\n return 'object';\n }\n\n return undefined;\n}\n\nexport interface PropertyInfo {\n name: string;\n humanReadableName: string;\n type: PropertyType;\n meta: ModelMetadata;\n model: AbstractModel;\n}\n\nexport function hasAnnotation(meta: ModelMetadata, annotationName: string): boolean {\n return meta.annotations?.some((annotation) => annotation.name === annotationName) ?? false;\n}\n\n// This is from vaadin-grid-column.js, should be used from there maybe. At least we must be 100% sure to match grid and fields\nexport function _generateHeader(path: string): string {\n return path\n .substring(path.lastIndexOf('.') + 1)\n .replace(/([A-Z])/gu, '-$1')\n .toLowerCase()\n .replace(/-/gu, ' ')\n .replace(/^./u, (match) => match.toUpperCase());\n}\n\nconst getPropertyNames = (model: DetachedModelConstructor<AbstractModel>): string[] => {\n const propertyNames: string[] = [];\n\n for (let proto = model; proto !== ObjectModel; proto = Object.getPrototypeOf(proto)) {\n // parent properties are added at the beginning\n propertyNames.unshift(...Object.keys(Object.getOwnPropertyDescriptors(proto.prototype)).filter((p) => p !== 'new'));\n }\n\n return propertyNames;\n};\n\nexport class ModelInfo {\n private readonly modelInstance: AbstractModel;\n\n readonly idProperty?: PropertyInfo;\n\n constructor(model: DetachedModelConstructor<AbstractModel>, idPropertyName?: string) {\n this.modelInstance = createDetachedModel(model);\n\n // Try to find id property\n this.idProperty = ModelInfo.resolveIdProperty(this, idPropertyName);\n }\n\n private static resolveIdProperty(modelInfo: ModelInfo, idPropertyName?: string): PropertyInfo | undefined {\n // Return explicit property if defined\n if (idPropertyName) {\n return modelInfo.getProperty(idPropertyName);\n }\n\n // Otherwise check defaults\n const rootProperties = modelInfo.getRootProperties();\n // Check for @Id annotation\n let idProperty = rootProperties.find((propertyInfo) => hasAnnotation(propertyInfo.meta, 'jakarta.persistence.Id'));\n // Check for id name as fallback\n if (!idProperty) {\n idProperty = rootProperties.find((propertyInfo) => propertyInfo.name === 'id');\n }\n\n return idProperty;\n }\n\n private static resolvePropertyModel(modelInstance: AbstractModel, path: string): AbstractModel | undefined {\n const parts = path.split('.');\n let currentModel: AbstractModel | undefined = modelInstance;\n for (const part of parts) {\n if (!currentModel || !(currentModel instanceof ObjectModel)) {\n return undefined;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n currentModel = (currentModel as any)[part];\n }\n return currentModel;\n }\n\n getRootProperties(path?: string): PropertyInfo[] {\n const model = path ? ModelInfo.resolvePropertyModel(this.modelInstance, path) : this.modelInstance;\n if (!model) {\n return [];\n }\n return getPropertyNames(model.constructor as any)\n .map((name) => {\n const effectivePath = path ? `${path}.${name}` : name;\n return this.getProperty(effectivePath);\n })\n .filter(Boolean) as PropertyInfo[];\n }\n\n getProperty(path: string): PropertyInfo | undefined {\n const propertyModel = ModelInfo.resolvePropertyModel(this.modelInstance, path);\n if (!propertyModel?.[_meta]) {\n return undefined;\n }\n\n const pathParts = path.split('.');\n const name = pathParts[pathParts.length - 1];\n\n const meta = propertyModel[_meta];\n const humanReadableName = _generateHeader(name);\n const type = determinePropertyType(propertyModel);\n\n return {\n name: path,\n humanReadableName,\n type,\n meta,\n model: propertyModel,\n };\n }\n\n getProperties(paths: string[]): PropertyInfo[] {\n return paths.map((path) => this.getProperty(path)).filter(Boolean) as PropertyInfo[];\n }\n}\n\nexport function getDefaultProperties(modelInfo: ModelInfo): PropertyInfo[] {\n // Start from root properties\n const properties = modelInfo.getRootProperties();\n return (\n properties\n // Auto-expand nested properties of one-to-one relations\n .flatMap((prop) => {\n if (hasAnnotation(prop.meta, 'jakarta.persistence.OneToOne')) {\n return modelInfo.getRootProperties(prop.name);\n }\n return prop;\n })\n // Exclude properties that have an unknown type, or are annotated with id\n // and version\n .filter(\n (prop) =>\n !!prop.type &&\n !(\n hasAnnotation(prop.meta, 'jakarta.persistence.Id') ||\n hasAnnotation(prop.meta, 'jakarta.persistence.Version')\n ),\n )\n );\n}\n"],
5
- "mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIA;AAAA,EACA;AAAA,OACK;AAcP,MAAM,cAA4C;AAAA,EAChD,MAAM;AAAA,EACN,kBAAkB;AAAA,EAClB,OAAO;AAAA,EACP,mBAAmB;AAAA,EACnB,KAAK;AAAA,EACL,qBAAqB;AAAA,EACrB,MAAM;AAAA,EACN,kBAAkB;AAAA,EAClB,OAAO;AAAA,EACP,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,wBAAwB;AAAA,EACxB,2BAA2B;AAAA,EAC3B,4BAA4B;AAAA,EAC5B,2BAA2B;AAAA,EAC3B,kBAAkB;AAAA,EAClB,iBAAiB;AACnB;AAEA,SAAS,sBAAsB,OAAoC;AAEjE,QAAM,EAAE,SAAS,IAAI,MAAM,KAAK;AAChC,QAAM,eAAe,WAAW,YAAY,QAAQ,IAAI;AACxD,MAAI,cAAc;AAChB,WAAO;AAAA,EACT;AAGA,MAAI,iBAAiB,aAAa;AAChC,WAAO;AAAA,EACT,WAAW,iBAAiB,aAAa;AACvC,WAAO;AAAA,EACT,WAAW,iBAAiB,cAAc;AACxC,WAAO;AAAA,EACT,WAAW,iBAAiB,WAAW;AACrC,WAAO;AAAA,EACT,WAAW,iBAAiB,aAAa;AACvC,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAUO,SAAS,cAAc,MAAqB,gBAAiC;AAClF,SAAO,KAAK,aAAa,KAAK,CAAC,eAAe,WAAW,SAAS,cAAc,KAAK;AACvF;AAGO,SAAS,gBAAgB,MAAsB;AACpD,SAAO,KACJ,UAAU,KAAK,YAAY,GAAG,IAAI,CAAC,EACnC,QAAQ,aAAa,KAAK,EAC1B,YAAY,EAC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C,CAAC,MAAM,CAAC,OAAO,CAAmB,CAAC;IACvF,CAAC;CACF;AAED,MAAM,UAAU,oBAAoB,CAAC,SAAoB;IAEvD,MAAM,UAAU,GAAG,SAAS,CAAC,iBAAiB,EAAE,CAAC;IACjD,OAAO,CACL,UAAU;SAEP,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAChB,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,8BAA8B,CAAC,EAAE,CAAC;YAC7D,OAAO,SAAS,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;SAGD,MAAM,CACL,CAAC,IAAI,EAAE,EAAE,CACP,CAAC,CAAC,IAAI,CAAC,IAAI;QACX,CAAC,CACC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,wBAAwB,CAAC;YAClD,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,6BAA6B,CAAC,CACxD,CACJ,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import {\n BooleanModel,\n NumberModel,\n StringModel,\n _meta,\n createDetachedModel,\n type AbstractModel,\n type DetachedModelConstructor,\n type ModelMetadata,\n EnumModel,\n ObjectModel,\n} from '@vaadin/hilla-lit-form';\n\nexport type PropertyType =\n | 'boolean'\n | 'date'\n | 'datetime'\n | 'decimal'\n | 'enum'\n | 'integer'\n | 'object'\n | 'string'\n | 'time'\n | undefined;\n\nconst javaTypeMap: Record<string, PropertyType> = {\n byte: 'integer',\n 'java.lang.Byte': 'integer',\n short: 'integer',\n 'java.lang.Short': 'integer',\n int: 'integer',\n 'java.lang.Integer': 'integer',\n long: 'integer',\n 'java.lang.Long': 'integer',\n float: 'decimal',\n 'java.lang.Float': 'decimal',\n double: 'decimal',\n 'java.lang.Double': 'decimal',\n 'java.time.LocalDate': 'date',\n 'java.time.LocalTime': 'time',\n 'java.time.OffsetTime': 'time',\n 'java.time.LocalDateTime': 'datetime',\n 'java.time.OffsetDateTime': 'datetime',\n 'java.time.ZonedDateTime': 'datetime',\n 'java.util.Date': 'datetime',\n 'java.sql.Date': 'datetime',\n};\n\nfunction determinePropertyType(model: AbstractModel): PropertyType {\n // Try detecting by Java type\n const { javaType } = model[_meta];\n const propertyType = javaType ? javaTypeMap[javaType] : undefined;\n if (propertyType) {\n return propertyType;\n }\n\n // Otherwise detect by model instance\n if (model instanceof StringModel) {\n return 'string';\n } else if (model instanceof NumberModel) {\n return 'decimal';\n } else if (model instanceof BooleanModel) {\n return 'boolean';\n } else if (model instanceof EnumModel) {\n return 'enum';\n } else if (model instanceof ObjectModel) {\n return 'object';\n }\n\n return undefined;\n}\n\nexport interface PropertyInfo {\n name: string;\n humanReadableName: string;\n type: PropertyType;\n meta: ModelMetadata;\n model: AbstractModel;\n}\n\nexport function hasAnnotation(meta: ModelMetadata, annotationName: string): boolean {\n return meta.annotations?.some((annotation) => annotation.name === annotationName) ?? false;\n}\n\n// This is from vaadin-grid-column.js, should be used from there maybe. At least we must be 100% sure to match grid and fields\nexport function _generateHeader(path: string): string {\n return path\n .substring(path.lastIndexOf('.') + 1)\n .replace(/([A-Z])/gu, '-$1')\n .toLowerCase()\n .replace(/-/gu, ' ')\n .replace(/^./u, (match) => match.toUpperCase());\n}\n\nconst getPropertyNames = (model: DetachedModelConstructor<AbstractModel>): string[] => {\n const propertyNames: string[] = [];\n\n for (let proto = model; proto !== ObjectModel; proto = Object.getPrototypeOf(proto)) {\n // parent properties are added at the beginning\n propertyNames.unshift(...Object.keys(Object.getOwnPropertyDescriptors(proto.prototype)).filter((p) => p !== 'new'));\n }\n\n return propertyNames;\n};\n\nexport class ModelInfo {\n private readonly modelInstance: AbstractModel;\n\n readonly idProperty?: PropertyInfo;\n\n constructor(model: DetachedModelConstructor<AbstractModel>, idPropertyName?: string) {\n this.modelInstance = createDetachedModel(model);\n\n // Try to find id property\n this.idProperty = ModelInfo.resolveIdProperty(this, idPropertyName);\n }\n\n private static resolveIdProperty(modelInfo: ModelInfo, idPropertyName?: string): PropertyInfo | undefined {\n // Return explicit property if defined\n if (idPropertyName) {\n return modelInfo.getProperty(idPropertyName);\n }\n\n // Otherwise check defaults\n const rootProperties = modelInfo.getRootProperties();\n // Check for @Id annotation\n let idProperty = rootProperties.find((propertyInfo) => hasAnnotation(propertyInfo.meta, 'jakarta.persistence.Id'));\n // Check for id name as fallback\n if (!idProperty) {\n idProperty = rootProperties.find((propertyInfo) => propertyInfo.name === 'id');\n }\n\n return idProperty;\n }\n\n private static resolvePropertyModel(modelInstance: AbstractModel, path: string): AbstractModel | undefined {\n const parts = path.split('.');\n let currentModel: AbstractModel | undefined = modelInstance;\n for (const part of parts) {\n if (!currentModel || !(currentModel instanceof ObjectModel)) {\n return undefined;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n currentModel = (currentModel as any)[part];\n }\n return currentModel;\n }\n\n getRootProperties(path?: string): PropertyInfo[] {\n const model = path ? ModelInfo.resolvePropertyModel(this.modelInstance, path) : this.modelInstance;\n if (!model) {\n return [];\n }\n return getPropertyNames(model.constructor as any)\n .map((name) => {\n const effectivePath = path ? `${path}.${name}` : name;\n return this.getProperty(effectivePath);\n })\n .filter(Boolean) as PropertyInfo[];\n }\n\n getProperty(path: string): PropertyInfo | undefined {\n const propertyModel = ModelInfo.resolvePropertyModel(this.modelInstance, path);\n if (!propertyModel?.[_meta]) {\n return undefined;\n }\n\n const pathParts = path.split('.');\n const name = pathParts[pathParts.length - 1];\n\n const meta = propertyModel[_meta];\n const humanReadableName = _generateHeader(name);\n const type = determinePropertyType(propertyModel);\n\n return {\n name: path,\n humanReadableName,\n type,\n meta,\n model: propertyModel,\n };\n }\n\n getProperties(paths: string[]): PropertyInfo[] {\n return paths.map((path) => this.getProperty(path)).filter(Boolean) as PropertyInfo[];\n }\n}\n\nexport function getDefaultProperties(modelInfo: ModelInfo): PropertyInfo[] {\n // Start from root properties\n const properties = modelInfo.getRootProperties();\n return (\n properties\n // Auto-expand nested properties of one-to-one relations\n .flatMap((prop) => {\n if (hasAnnotation(prop.meta, 'jakarta.persistence.OneToOne')) {\n return modelInfo.getRootProperties(prop.name);\n }\n return prop;\n })\n // Exclude properties that have an unknown type, or are annotated with id\n // and version\n .filter(\n (prop) =>\n !!prop.type &&\n !(\n hasAnnotation(prop.meta, 'jakarta.persistence.Id') ||\n hasAnnotation(prop.meta, 'jakarta.persistence.Version')\n ),\n )\n );\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/hilla-react-crud",
3
- "version": "24.7.0-alpha9",
3
+ "version": "24.7.0-beta1",
4
4
  "description": "Hilla CRUD utils for React",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -17,15 +17,12 @@
17
17
  ],
18
18
  "scripts": {
19
19
  "clean:build": "git clean -fx . -e .vite -e node_modules",
20
- "build": "concurrently npm:build:*",
21
- "build:esbuild": "tsx ../../../scripts/build.ts",
22
- "build:dts": "tsc --isolatedModules -p tsconfig.build.json",
23
- "build:copy": "cd src && copyfiles **/*.d.ts ..",
20
+ "build": "tsx ../../../scripts/build.ts",
24
21
  "lint": "eslint src test",
25
22
  "lint:fix": "eslint src test --fix",
26
- "test": "karma start ../../../karma.config.cjs --port 9879",
27
- "test:coverage": "npm run test -- --coverage",
28
- "test:watch": "npm run test -- --watch",
23
+ "test": "vitest --run",
24
+ "test:coverage": "vitest --run --coverage",
25
+ "test:watch": "vitest",
29
26
  "typecheck": "tsc --noEmit"
30
27
  },
31
28
  "exports": {
@@ -56,34 +53,13 @@
56
53
  "access": "public"
57
54
  },
58
55
  "dependencies": {
59
- "@vaadin/hilla-frontend": "24.7.0-alpha9",
60
- "@vaadin/hilla-lit-form": "24.7.0-alpha9",
61
- "@vaadin/hilla-react-form": "24.7.0-alpha9",
62
- "@vaadin/react-components": "24.7.0-alpha7"
56
+ "@vaadin/hilla-frontend": "24.7.0-beta1",
57
+ "@vaadin/hilla-lit-form": "24.7.0-beta1",
58
+ "@vaadin/hilla-react-form": "24.7.0-beta1",
59
+ "@vaadin/react-components": "24.7.0-alpha10"
63
60
  },
64
61
  "peerDependencies": {
65
62
  "react": "18 || 19",
66
63
  "react-dom": "18 || 19"
67
- },
68
- "devDependencies": {
69
- "@testing-library/dom": "^10.4.0",
70
- "@testing-library/react": "^16.1.0",
71
- "@testing-library/user-event": "^14.5.2",
72
- "@types/chai": "^4.3.20",
73
- "@types/chai-as-promised": "^7.1.8",
74
- "@types/chai-dom": "^1.11.3",
75
- "@types/mocha": "^10.0.10",
76
- "@types/react": "^18.3.18",
77
- "@types/react-dom": "^18",
78
- "@types/sinon": "^10.0.20",
79
- "@types/sinon-chai": "^3.2.12",
80
- "@types/validator": "^13.12.2",
81
- "chai": "^5.1.2",
82
- "chai-as-promised": "^7.1.2",
83
- "chai-dom": "^1.12.0",
84
- "karma-viewport": "^1.0.9",
85
- "sinon": "^16.1.3",
86
- "sinon-chai": "^3.7.0",
87
- "typescript": "5.7.3"
88
64
  }
89
65
  }
@@ -1,6 +1,5 @@
1
- import type Filter_1 from "./Filter.js";
2
- interface AndFilter extends Filter_1 {
3
- children: Array<Filter_1>;
1
+ import type Filter from "./Filter.js";
2
+ export default interface AndFilter extends Filter {
3
+ children: Array<Filter>;
4
4
  "@type": "and";
5
5
  }
6
- export default AndFilter;
@@ -6,4 +6,3 @@ declare class AndFilterModel<T extends AndFilter_1 = AndFilter_1> extends Filter
6
6
  get children(): ArrayModel_1<FilterModel_1>;
7
7
  }
8
8
  export default AndFilterModel;
9
- //# sourceMappingURL=AndFilterModel.d.ts.map
@@ -1,13 +1,10 @@
1
1
  import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from "@vaadin/hilla-lit-form";
2
2
  import FilterModel_1 from "./FilterModel.js";
3
3
  class AndFilterModel extends FilterModel_1 {
4
- static createEmptyValue = makeObjectEmptyValueCreator_1(AndFilterModel);
5
- get children() {
6
- return this[_getPropertyModel_1]("children", (parent, key) => new ArrayModel_1(parent, key, false, (parent2, key2) => new FilterModel_1(parent2, key2, false), { meta: { javaType: "java.util.List" } }));
7
- }
4
+ static createEmptyValue = makeObjectEmptyValueCreator_1(AndFilterModel);
5
+ get children() {
6
+ return this[_getPropertyModel_1]("children", (parent, key) => new ArrayModel_1(parent, key, false, (parent, key) => new FilterModel_1(parent, key, false), { meta: { javaType: "java.util.List" } }));
7
+ }
8
8
  }
9
- var AndFilterModel_default = AndFilterModel;
10
- export {
11
- AndFilterModel_default as default
12
- };
13
- //# sourceMappingURL=AndFilterModel.js.map
9
+ export default AndFilterModel;
10
+ //# sourceMappingURL=AndFilterModel.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/types/com/vaadin/hilla/crud/filter/AndFilterModel.ts"],
4
- "sourcesContent": ["import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport type AndFilter_1 from \"./AndFilter.js\";\nimport FilterModel_1 from \"./FilterModel.js\";\nclass AndFilterModel<T extends AndFilter_1 = AndFilter_1> extends FilterModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(AndFilterModel);\n get children(): ArrayModel_1<FilterModel_1> {\n return this[_getPropertyModel_1](\"children\", (parent, key) => new ArrayModel_1(parent, key, false, (parent, key) => new FilterModel_1(parent, key, false), { meta: { javaType: \"java.util.List\" } }));\n }\n}\nexport default AndFilterModel;\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB,qBAAqB,cAAc,cAAc,+BAA+B,+BAA+B,eAAe,qBAAqB;AAEjL,OAAO,mBAAmB;AAC1B,MAAM,uBAA4D,cAAiB;AAAA,EAC/E,OAAgB,mBAAmB,8BAA8B,cAAc;AAAA,EAC/E,IAAI,WAAwC;AACxC,WAAO,KAAK,mBAAmB,EAAE,YAAY,CAAC,QAAQ,QAAQ,IAAI,aAAa,QAAQ,KAAK,OAAO,CAACA,SAAQC,SAAQ,IAAI,cAAcD,SAAQC,MAAK,KAAK,GAAG,EAAE,MAAM,EAAE,UAAU,iBAAiB,EAAE,CAAC,CAAC;AAAA,EACxM;AACJ;AACA,IAAO,yBAAQ;",
6
- "names": ["parent", "key"]
7
- }
1
+ {"version":3,"file":"AndFilterModel.js","sourceRoot":"","sources":["../../../../../../src/types/com/vaadin/hilla/crud/filter/AndFilterModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,UAAU,IAAI,YAAY,EAAE,2BAA2B,IAAI,6BAA6B,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE1M,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,MAAM,cAAoD,SAAQ,aAAgB;IAC9E,MAAM,CAAU,gBAAgB,GAAG,6BAA6B,CAAC,cAAc,CAAC,CAAC;IACjF,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1M,CAAC;;AAEL,eAAe,cAAc,CAAC","sourcesContent":["import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport type AndFilter_1 from \"./AndFilter.js\";\nimport FilterModel_1 from \"./FilterModel.js\";\nclass AndFilterModel<T extends AndFilter_1 = AndFilter_1> extends FilterModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(AndFilterModel);\n get children(): ArrayModel_1<FilterModel_1> {\n return this[_getPropertyModel_1](\"children\", (parent, key) => new ArrayModel_1(parent, key, false, (parent, key) => new FilterModel_1(parent, key, false), { meta: { javaType: \"java.util.List\" } }));\n }\n}\nexport default AndFilterModel;\n"]}
@@ -1,3 +1,2 @@
1
- interface Filter {
1
+ export default interface Filter {
2
2
  }
3
- export default Filter;
@@ -4,4 +4,3 @@ declare class FilterModel<T extends Filter_1 = Filter_1> extends ObjectModel_1<T
4
4
  static createEmptyValue: () => Filter_1;
5
5
  }
6
6
  export default FilterModel;
7
- //# sourceMappingURL=FilterModel.d.ts.map
@@ -1,9 +1,6 @@
1
1
  import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, ObjectModel as ObjectModel_1 } from "@vaadin/hilla-lit-form";
2
2
  class FilterModel extends ObjectModel_1 {
3
- static createEmptyValue = makeObjectEmptyValueCreator_1(FilterModel);
3
+ static createEmptyValue = makeObjectEmptyValueCreator_1(FilterModel);
4
4
  }
5
- var FilterModel_default = FilterModel;
6
- export {
7
- FilterModel_default as default
8
- };
9
- //# sourceMappingURL=FilterModel.js.map
5
+ export default FilterModel;
6
+ //# sourceMappingURL=FilterModel.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/types/com/vaadin/hilla/crud/filter/FilterModel.ts"],
4
- "sourcesContent": ["import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, ObjectModel as ObjectModel_1 } from \"@vaadin/hilla-lit-form\";\nimport type Filter_1 from \"./Filter.js\";\nclass FilterModel<T extends Filter_1 = Filter_1> extends ObjectModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(FilterModel);\n}\nexport default FilterModel;\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB,qBAAqB,+BAA+B,+BAA+B,eAAe,qBAAqB;AAErJ,MAAM,oBAAmD,cAAiB;AAAA,EACtE,OAAgB,mBAAmB,8BAA8B,WAAW;AAChF;AACA,IAAO,sBAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"FilterModel.js","sourceRoot":"","sources":["../../../../../../src/types/com/vaadin/hilla/crud/filter/FilterModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,2BAA2B,IAAI,6BAA6B,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE9K,MAAM,WAA2C,SAAQ,aAAgB;IACrE,MAAM,CAAU,gBAAgB,GAAG,6BAA6B,CAAC,WAAW,CAAC,CAAC;;AAElF,eAAe,WAAW,CAAC","sourcesContent":["import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, ObjectModel as ObjectModel_1 } from \"@vaadin/hilla-lit-form\";\nimport type Filter_1 from \"./Filter.js\";\nclass FilterModel<T extends Filter_1 = Filter_1> extends ObjectModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(FilterModel);\n}\nexport default FilterModel;\n"]}
@@ -1,5 +1,7 @@
1
1
  import type AndFilter_1 from "./AndFilter.js";
2
2
  import type OrFilter_1 from "./OrFilter.js";
3
3
  import type PropertyStringFilter_1 from "./PropertyStringFilter.js";
4
- type FilterUnion = (OrFilter_1 | AndFilter_1 | PropertyStringFilter_1) & { key?: string }
5
- export default FilterUnion;
4
+ type FilterUnion = (OrFilter_1 | AndFilter_1 | PropertyStringFilter_1) & {
5
+ key?: string;
6
+ };
7
+ export { type FilterUnion as default };
@@ -1,6 +1,5 @@
1
- import type Filter_1 from "./Filter.js";
2
- interface OrFilter extends Filter_1 {
3
- children: Array<Filter_1>;
1
+ import type Filter from "./Filter.js";
2
+ export default interface OrFilter extends Filter {
3
+ children: Array<Filter>;
4
4
  "@type": "or";
5
5
  }
6
- export default OrFilter;
@@ -6,4 +6,3 @@ declare class OrFilterModel<T extends OrFilter_1 = OrFilter_1> extends FilterMod
6
6
  get children(): ArrayModel_1<FilterModel_1>;
7
7
  }
8
8
  export default OrFilterModel;
9
- //# sourceMappingURL=OrFilterModel.d.ts.map
@@ -1,13 +1,10 @@
1
1
  import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from "@vaadin/hilla-lit-form";
2
2
  import FilterModel_1 from "./FilterModel.js";
3
3
  class OrFilterModel extends FilterModel_1 {
4
- static createEmptyValue = makeObjectEmptyValueCreator_1(OrFilterModel);
5
- get children() {
6
- return this[_getPropertyModel_1]("children", (parent, key) => new ArrayModel_1(parent, key, false, (parent2, key2) => new FilterModel_1(parent2, key2, false), { meta: { javaType: "java.util.List" } }));
7
- }
4
+ static createEmptyValue = makeObjectEmptyValueCreator_1(OrFilterModel);
5
+ get children() {
6
+ return this[_getPropertyModel_1]("children", (parent, key) => new ArrayModel_1(parent, key, false, (parent, key) => new FilterModel_1(parent, key, false), { meta: { javaType: "java.util.List" } }));
7
+ }
8
8
  }
9
- var OrFilterModel_default = OrFilterModel;
10
- export {
11
- OrFilterModel_default as default
12
- };
13
- //# sourceMappingURL=OrFilterModel.js.map
9
+ export default OrFilterModel;
10
+ //# sourceMappingURL=OrFilterModel.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/types/com/vaadin/hilla/crud/filter/OrFilterModel.ts"],
4
- "sourcesContent": ["import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport FilterModel_1 from \"./FilterModel.js\";\nimport type OrFilter_1 from \"./OrFilter.js\";\nclass OrFilterModel<T extends OrFilter_1 = OrFilter_1> extends FilterModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(OrFilterModel);\n get children(): ArrayModel_1<FilterModel_1> {\n return this[_getPropertyModel_1](\"children\", (parent, key) => new ArrayModel_1(parent, key, false, (parent, key) => new FilterModel_1(parent, key, false), { meta: { javaType: \"java.util.List\" } }));\n }\n}\nexport default OrFilterModel;\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB,qBAAqB,cAAc,cAAc,+BAA+B,+BAA+B,eAAe,qBAAqB;AACjL,OAAO,mBAAmB;AAE1B,MAAM,sBAAyD,cAAiB;AAAA,EAC5E,OAAgB,mBAAmB,8BAA8B,aAAa;AAAA,EAC9E,IAAI,WAAwC;AACxC,WAAO,KAAK,mBAAmB,EAAE,YAAY,CAAC,QAAQ,QAAQ,IAAI,aAAa,QAAQ,KAAK,OAAO,CAACA,SAAQC,SAAQ,IAAI,cAAcD,SAAQC,MAAK,KAAK,GAAG,EAAE,MAAM,EAAE,UAAU,iBAAiB,EAAE,CAAC,CAAC;AAAA,EACxM;AACJ;AACA,IAAO,wBAAQ;",
6
- "names": ["parent", "key"]
7
- }
1
+ {"version":3,"file":"OrFilterModel.js","sourceRoot":"","sources":["../../../../../../src/types/com/vaadin/hilla/crud/filter/OrFilterModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,UAAU,IAAI,YAAY,EAAE,2BAA2B,IAAI,6BAA6B,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC1M,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,MAAM,aAAiD,SAAQ,aAAgB;IAC3E,MAAM,CAAU,gBAAgB,GAAG,6BAA6B,CAAC,aAAa,CAAC,CAAC;IAChF,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1M,CAAC;;AAEL,eAAe,aAAa,CAAC","sourcesContent":["import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport FilterModel_1 from \"./FilterModel.js\";\nimport type OrFilter_1 from \"./OrFilter.js\";\nclass OrFilterModel<T extends OrFilter_1 = OrFilter_1> extends FilterModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(OrFilterModel);\n get children(): ArrayModel_1<FilterModel_1> {\n return this[_getPropertyModel_1](\"children\", (parent, key) => new ArrayModel_1(parent, key, false, (parent, key) => new FilterModel_1(parent, key, false), { meta: { javaType: \"java.util.List\" } }));\n }\n}\nexport default OrFilterModel;\n"]}
@@ -5,4 +5,3 @@ declare enum Matcher {
5
5
  GREATER_THAN = "GREATER_THAN"
6
6
  }
7
7
  export default Matcher;
8
- //# sourceMappingURL=Matcher.d.ts.map
@@ -1,12 +1,9 @@
1
- var Matcher = /* @__PURE__ */ ((Matcher2) => {
2
- Matcher2["EQUALS"] = "EQUALS";
3
- Matcher2["CONTAINS"] = "CONTAINS";
4
- Matcher2["LESS_THAN"] = "LESS_THAN";
5
- Matcher2["GREATER_THAN"] = "GREATER_THAN";
6
- return Matcher2;
7
- })(Matcher || {});
8
- var Matcher_default = Matcher;
9
- export {
10
- Matcher_default as default
11
- };
12
- //# sourceMappingURL=Matcher.js.map
1
+ var Matcher;
2
+ (function (Matcher) {
3
+ Matcher["EQUALS"] = "EQUALS";
4
+ Matcher["CONTAINS"] = "CONTAINS";
5
+ Matcher["LESS_THAN"] = "LESS_THAN";
6
+ Matcher["GREATER_THAN"] = "GREATER_THAN";
7
+ })(Matcher || (Matcher = {}));
8
+ export default Matcher;
9
+ //# sourceMappingURL=Matcher.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.ts"],
4
- "sourcesContent": ["enum Matcher {\n EQUALS = \"EQUALS\",\n CONTAINS = \"CONTAINS\",\n LESS_THAN = \"LESS_THAN\",\n GREATER_THAN = \"GREATER_THAN\"\n}\nexport default Matcher;\n"],
5
- "mappings": "AAAA,IAAK,UAAL,kBAAKA,aAAL;AACI,EAAAA,SAAA,YAAS;AACT,EAAAA,SAAA,cAAW;AACX,EAAAA,SAAA,eAAY;AACZ,EAAAA,SAAA,kBAAe;AAJd,SAAAA;AAAA,GAAA;AAML,IAAO,kBAAQ;",
6
- "names": ["Matcher"]
7
- }
1
+ {"version":3,"file":"Matcher.js","sourceRoot":"","sources":["../../../../../../../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.ts"],"names":[],"mappings":"AAAA,IAAK,OAKJ;AALD,WAAK,OAAO;IACR,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;IACrB,kCAAuB,CAAA;IACvB,wCAA6B,CAAA;AACjC,CAAC,EALI,OAAO,KAAP,OAAO,QAKX;AACD,eAAe,OAAO,CAAC","sourcesContent":["enum Matcher {\n EQUALS = \"EQUALS\",\n CONTAINS = \"CONTAINS\",\n LESS_THAN = \"LESS_THAN\",\n GREATER_THAN = \"GREATER_THAN\"\n}\nexport default Matcher;\n"]}
@@ -5,4 +5,3 @@ declare class MatcherModel extends EnumModel_1<typeof Matcher_1> {
5
5
  readonly [_enum_1]: typeof Matcher_1;
6
6
  }
7
7
  export default MatcherModel;
8
- //# sourceMappingURL=MatcherModel.d.ts.map
@@ -1,11 +1,8 @@
1
1
  import { _enum as _enum_1, EnumModel as EnumModel_1, makeEnumEmptyValueCreator as makeEnumEmptyValueCreator_1 } from "@vaadin/hilla-lit-form";
2
2
  import Matcher_1 from "./Matcher.js";
3
3
  class MatcherModel extends EnumModel_1 {
4
- static createEmptyValue = makeEnumEmptyValueCreator_1(MatcherModel);
5
- [_enum_1] = Matcher_1;
4
+ static createEmptyValue = makeEnumEmptyValueCreator_1(MatcherModel);
5
+ [_enum_1] = Matcher_1;
6
6
  }
7
- var MatcherModel_default = MatcherModel;
8
- export {
9
- MatcherModel_default as default
10
- };
11
- //# sourceMappingURL=MatcherModel.js.map
7
+ export default MatcherModel;
8
+ //# sourceMappingURL=MatcherModel.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.ts"],
4
- "sourcesContent": ["import { _enum as _enum_1, EnumModel as EnumModel_1, makeEnumEmptyValueCreator as makeEnumEmptyValueCreator_1 } from \"@vaadin/hilla-lit-form\";\nimport Matcher_1 from \"./Matcher.js\";\nclass MatcherModel extends EnumModel_1<typeof Matcher_1> {\n static override createEmptyValue = makeEnumEmptyValueCreator_1(MatcherModel);\n readonly [_enum_1] = Matcher_1;\n}\nexport default MatcherModel;\n"],
5
- "mappings": "AAAA,SAAS,SAAS,SAAS,aAAa,aAAa,6BAA6B,mCAAmC;AACrH,OAAO,eAAe;AACtB,MAAM,qBAAqB,YAA8B;AAAA,EACrD,OAAgB,mBAAmB,4BAA4B,YAAY;AAAA,EAC3E,CAAU,OAAO,IAAI;AACzB;AACA,IAAO,uBAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"MatcherModel.js","sourceRoot":"","sources":["../../../../../../../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,yBAAyB,IAAI,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC9I,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,MAAM,YAAa,SAAQ,WAA6B;IACpD,MAAM,CAAU,gBAAgB,GAAG,2BAA2B,CAAC,YAAY,CAAC,CAAC;IACpE,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;;AAEnC,eAAe,YAAY,CAAC","sourcesContent":["import { _enum as _enum_1, EnumModel as EnumModel_1, makeEnumEmptyValueCreator as makeEnumEmptyValueCreator_1 } from \"@vaadin/hilla-lit-form\";\nimport Matcher_1 from \"./Matcher.js\";\nclass MatcherModel extends EnumModel_1<typeof Matcher_1> {\n static override createEmptyValue = makeEnumEmptyValueCreator_1(MatcherModel);\n readonly [_enum_1] = Matcher_1;\n}\nexport default MatcherModel;\n"]}
@@ -1,9 +1,8 @@
1
- import type Filter_1 from "./Filter.js";
2
- import type Matcher_1 from "./PropertyStringFilter/Matcher.js";
3
- interface PropertyStringFilter extends Filter_1 {
1
+ import type Filter from "./Filter.js";
2
+ import type Matcher from "./PropertyStringFilter/Matcher.js";
3
+ export default interface PropertyStringFilter extends Filter {
4
4
  propertyId: string;
5
5
  filterValue: string;
6
- matcher: Matcher_1;
6
+ matcher: Matcher;
7
7
  "@type": "propertyString";
8
8
  }
9
- export default PropertyStringFilter;
@@ -9,4 +9,3 @@ declare class PropertyStringFilterModel<T extends PropertyStringFilter_1 = Prope
9
9
  get matcher(): MatcherModel_1;
10
10
  }
11
11
  export default PropertyStringFilterModel;
12
- //# sourceMappingURL=PropertyStringFilterModel.d.ts.map
@@ -2,19 +2,16 @@ import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator a
2
2
  import FilterModel_1 from "./FilterModel.js";
3
3
  import MatcherModel_1 from "./PropertyStringFilter/MatcherModel.js";
4
4
  class PropertyStringFilterModel extends FilterModel_1 {
5
- static createEmptyValue = makeObjectEmptyValueCreator_1(PropertyStringFilterModel);
6
- get propertyId() {
7
- return this[_getPropertyModel_1]("propertyId", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: "java.lang.String" } }));
8
- }
9
- get filterValue() {
10
- return this[_getPropertyModel_1]("filterValue", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: "java.lang.String" } }));
11
- }
12
- get matcher() {
13
- return this[_getPropertyModel_1]("matcher", (parent, key) => new MatcherModel_1(parent, key, false));
14
- }
5
+ static createEmptyValue = makeObjectEmptyValueCreator_1(PropertyStringFilterModel);
6
+ get propertyId() {
7
+ return this[_getPropertyModel_1]("propertyId", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: "java.lang.String" } }));
8
+ }
9
+ get filterValue() {
10
+ return this[_getPropertyModel_1]("filterValue", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: "java.lang.String" } }));
11
+ }
12
+ get matcher() {
13
+ return this[_getPropertyModel_1]("matcher", (parent, key) => new MatcherModel_1(parent, key, false));
14
+ }
15
15
  }
16
- var PropertyStringFilterModel_default = PropertyStringFilterModel;
17
- export {
18
- PropertyStringFilterModel_default as default
19
- };
20
- //# sourceMappingURL=PropertyStringFilterModel.js.map
16
+ export default PropertyStringFilterModel;
17
+ //# sourceMappingURL=PropertyStringFilterModel.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.ts"],
4
- "sourcesContent": ["import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport FilterModel_1 from \"./FilterModel.js\";\nimport type PropertyStringFilter_1 from \"./PropertyStringFilter.js\";\nimport MatcherModel_1 from \"./PropertyStringFilter/MatcherModel.js\";\nclass PropertyStringFilterModel<T extends PropertyStringFilter_1 = PropertyStringFilter_1> extends FilterModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(PropertyStringFilterModel);\n get propertyId(): StringModel_1 {\n return this[_getPropertyModel_1](\"propertyId\", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: \"java.lang.String\" } }));\n }\n get filterValue(): StringModel_1 {\n return this[_getPropertyModel_1](\"filterValue\", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: \"java.lang.String\" } }));\n }\n get matcher(): MatcherModel_1 {\n return this[_getPropertyModel_1](\"matcher\", (parent, key) => new MatcherModel_1(parent, key, false));\n }\n}\nexport default PropertyStringFilterModel;\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB,qBAAqB,+BAA+B,+BAA+B,eAAe,qBAAqB;AACrJ,OAAO,mBAAmB;AAE1B,OAAO,oBAAoB;AAC3B,MAAM,kCAA6F,cAAiB;AAAA,EAChH,OAAgB,mBAAmB,8BAA8B,yBAAyB;AAAA,EAC1F,IAAI,aAA4B;AAC5B,WAAO,KAAK,mBAAmB,EAAE,cAAc,CAAC,QAAQ,QAAQ,IAAI,cAAc,QAAQ,KAAK,OAAO,EAAE,MAAM,EAAE,UAAU,mBAAmB,EAAE,CAAC,CAAC;AAAA,EACrJ;AAAA,EACA,IAAI,cAA6B;AAC7B,WAAO,KAAK,mBAAmB,EAAE,eAAe,CAAC,QAAQ,QAAQ,IAAI,cAAc,QAAQ,KAAK,OAAO,EAAE,MAAM,EAAE,UAAU,mBAAmB,EAAE,CAAC,CAAC;AAAA,EACtJ;AAAA,EACA,IAAI,UAA0B;AAC1B,WAAO,KAAK,mBAAmB,EAAE,WAAW,CAAC,QAAQ,QAAQ,IAAI,eAAe,QAAQ,KAAK,KAAK,CAAC;AAAA,EACvG;AACJ;AACA,IAAO,oCAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"PropertyStringFilterModel.js","sourceRoot":"","sources":["../../../../../../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,2BAA2B,IAAI,6BAA6B,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC9K,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,MAAM,yBAAqF,SAAQ,aAAgB;IAC/G,MAAM,CAAU,gBAAgB,GAAG,6BAA6B,CAAC,yBAAyB,CAAC,CAAC;IAC5F,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC,CAAC;IACvJ,CAAC;IACD,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC,CAAC;IACxJ,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IACzG,CAAC;;AAEL,eAAe,yBAAyB,CAAC","sourcesContent":["import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport FilterModel_1 from \"./FilterModel.js\";\nimport type PropertyStringFilter_1 from \"./PropertyStringFilter.js\";\nimport MatcherModel_1 from \"./PropertyStringFilter/MatcherModel.js\";\nclass PropertyStringFilterModel<T extends PropertyStringFilter_1 = PropertyStringFilter_1> extends FilterModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(PropertyStringFilterModel);\n get propertyId(): StringModel_1 {\n return this[_getPropertyModel_1](\"propertyId\", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: \"java.lang.String\" } }));\n }\n get filterValue(): StringModel_1 {\n return this[_getPropertyModel_1](\"filterValue\", (parent, key) => new StringModel_1(parent, key, false, { meta: { javaType: \"java.lang.String\" } }));\n }\n get matcher(): MatcherModel_1 {\n return this[_getPropertyModel_1](\"matcher\", (parent, key) => new MatcherModel_1(parent, key, false));\n }\n}\nexport default PropertyStringFilterModel;\n"]}
@@ -1,9 +1,8 @@
1
- import type Direction_1 from "../../../org/springframework/data/domain/Sort/Direction.js";
2
- import type NullHandling_1 from "../../../org/springframework/data/domain/Sort/NullHandling.js";
3
- interface Order {
1
+ import type Direction_1 from "../../../../org/springframework/data/domain/Sort/Direction.js";
2
+ import type NullHandling_1 from "../../../../org/springframework/data/domain/Sort/NullHandling.js";
3
+ export default interface Order {
4
4
  direction: Direction_1;
5
5
  property: string;
6
6
  ignoreCase: boolean;
7
7
  nullHandling?: NullHandling_1;
8
8
  }
9
- export default Order;
@@ -10,4 +10,3 @@ declare class OrderModel<T extends Order_1 = Order_1> extends ObjectModel_1<T> {
10
10
  get nullHandling(): NullHandlingModel_1;
11
11
  }
12
12
  export default OrderModel;
13
- //# sourceMappingURL=OrderModel.d.ts.map
@@ -2,22 +2,19 @@ import { _getPropertyModel as _getPropertyModel_1, BooleanModel as BooleanModel_
2
2
  import DirectionModel_1 from "../../../../org/springframework/data/domain/Sort/DirectionModel.js";
3
3
  import NullHandlingModel_1 from "../../../../org/springframework/data/domain/Sort/NullHandlingModel.js";
4
4
  class OrderModel extends ObjectModel_1 {
5
- static createEmptyValue = makeObjectEmptyValueCreator_1(OrderModel);
6
- get direction() {
7
- return this[_getPropertyModel_1]("direction", (parent, key) => new DirectionModel_1(parent, key, false));
8
- }
9
- get property() {
10
- return this[_getPropertyModel_1]("property", (parent, key) => new StringModel_1(parent, key, false, { validators: [new NotBlank_1()], meta: { javaType: "java.lang.String" } }));
11
- }
12
- get ignoreCase() {
13
- return this[_getPropertyModel_1]("ignoreCase", (parent, key) => new BooleanModel_1(parent, key, false, { meta: { javaType: "boolean" } }));
14
- }
15
- get nullHandling() {
16
- return this[_getPropertyModel_1]("nullHandling", (parent, key) => new NullHandlingModel_1(parent, key, true));
17
- }
5
+ static createEmptyValue = makeObjectEmptyValueCreator_1(OrderModel);
6
+ get direction() {
7
+ return this[_getPropertyModel_1]("direction", (parent, key) => new DirectionModel_1(parent, key, false));
8
+ }
9
+ get property() {
10
+ return this[_getPropertyModel_1]("property", (parent, key) => new StringModel_1(parent, key, false, { validators: [new NotBlank_1()], meta: { javaType: "java.lang.String" } }));
11
+ }
12
+ get ignoreCase() {
13
+ return this[_getPropertyModel_1]("ignoreCase", (parent, key) => new BooleanModel_1(parent, key, false, { meta: { javaType: "boolean" } }));
14
+ }
15
+ get nullHandling() {
16
+ return this[_getPropertyModel_1]("nullHandling", (parent, key) => new NullHandlingModel_1(parent, key, true));
17
+ }
18
18
  }
19
- var OrderModel_default = OrderModel;
20
- export {
21
- OrderModel_default as default
22
- };
23
- //# sourceMappingURL=OrderModel.js.map
19
+ export default OrderModel;
20
+ //# sourceMappingURL=OrderModel.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/types/com/vaadin/hilla/mappedtypes/OrderModel.ts"],
4
- "sourcesContent": ["import { _getPropertyModel as _getPropertyModel_1, BooleanModel as BooleanModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, NotBlank as NotBlank_1, ObjectModel as ObjectModel_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport DirectionModel_1 from \"../../../../org/springframework/data/domain/Sort/DirectionModel.js\";\nimport NullHandlingModel_1 from \"../../../../org/springframework/data/domain/Sort/NullHandlingModel.js\";\nimport type Order_1 from \"./Order.js\";\nclass OrderModel<T extends Order_1 = Order_1> extends ObjectModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(OrderModel);\n get direction(): DirectionModel_1 {\n return this[_getPropertyModel_1](\"direction\", (parent, key) => new DirectionModel_1(parent, key, false));\n }\n get property(): StringModel_1 {\n return this[_getPropertyModel_1](\"property\", (parent, key) => new StringModel_1(parent, key, false, { validators: [new NotBlank_1()], meta: { javaType: \"java.lang.String\" } }));\n }\n get ignoreCase(): BooleanModel_1 {\n return this[_getPropertyModel_1](\"ignoreCase\", (parent, key) => new BooleanModel_1(parent, key, false, { meta: { javaType: \"boolean\" } }));\n }\n get nullHandling(): NullHandlingModel_1 {\n return this[_getPropertyModel_1](\"nullHandling\", (parent, key) => new NullHandlingModel_1(parent, key, true));\n }\n}\nexport default OrderModel;\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB,qBAAqB,gBAAgB,gBAAgB,+BAA+B,+BAA+B,YAAY,YAAY,eAAe,eAAe,eAAe,qBAAqB;AAC3O,OAAO,sBAAsB;AAC7B,OAAO,yBAAyB;AAEhC,MAAM,mBAAgD,cAAiB;AAAA,EACnE,OAAgB,mBAAmB,8BAA8B,UAAU;AAAA,EAC3E,IAAI,YAA8B;AAC9B,WAAO,KAAK,mBAAmB,EAAE,aAAa,CAAC,QAAQ,QAAQ,IAAI,iBAAiB,QAAQ,KAAK,KAAK,CAAC;AAAA,EAC3G;AAAA,EACA,IAAI,WAA0B;AAC1B,WAAO,KAAK,mBAAmB,EAAE,YAAY,CAAC,QAAQ,QAAQ,IAAI,cAAc,QAAQ,KAAK,OAAO,EAAE,YAAY,CAAC,IAAI,WAAW,CAAC,GAAG,MAAM,EAAE,UAAU,mBAAmB,EAAE,CAAC,CAAC;AAAA,EACnL;AAAA,EACA,IAAI,aAA6B;AAC7B,WAAO,KAAK,mBAAmB,EAAE,cAAc,CAAC,QAAQ,QAAQ,IAAI,eAAe,QAAQ,KAAK,OAAO,EAAE,MAAM,EAAE,UAAU,UAAU,EAAE,CAAC,CAAC;AAAA,EAC7I;AAAA,EACA,IAAI,eAAoC;AACpC,WAAO,KAAK,mBAAmB,EAAE,gBAAgB,CAAC,QAAQ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,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC;IAC/I,CAAC;IACD,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,mBAAmB,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;IAClH,CAAC;;AAEL,eAAe,UAAU,CAAC","sourcesContent":["import { _getPropertyModel as _getPropertyModel_1, BooleanModel as BooleanModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, NotBlank as NotBlank_1, ObjectModel as ObjectModel_1, StringModel as StringModel_1 } from \"@vaadin/hilla-lit-form\";\nimport DirectionModel_1 from \"../../../../org/springframework/data/domain/Sort/DirectionModel.js\";\nimport NullHandlingModel_1 from \"../../../../org/springframework/data/domain/Sort/NullHandlingModel.js\";\nimport type Order_1 from \"./Order.js\";\nclass OrderModel<T extends Order_1 = Order_1> extends ObjectModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(OrderModel);\n get direction(): DirectionModel_1 {\n return this[_getPropertyModel_1](\"direction\", (parent, key) => new DirectionModel_1(parent, key, false));\n }\n get property(): StringModel_1 {\n return this[_getPropertyModel_1](\"property\", (parent, key) => new StringModel_1(parent, key, false, { validators: [new NotBlank_1()], meta: { javaType: \"java.lang.String\" } }));\n }\n get ignoreCase(): BooleanModel_1 {\n return this[_getPropertyModel_1](\"ignoreCase\", (parent, key) => new BooleanModel_1(parent, key, false, { meta: { javaType: \"boolean\" } }));\n }\n get nullHandling(): NullHandlingModel_1 {\n return this[_getPropertyModel_1](\"nullHandling\", (parent, key) => new NullHandlingModel_1(parent, key, true));\n }\n}\nexport default OrderModel;\n"]}
@@ -1,7 +1,6 @@
1
1
  import type Sort_1 from "./Sort.js";
2
- interface Pageable {
2
+ export default interface Pageable {
3
3
  pageNumber: number;
4
4
  pageSize: number;
5
5
  sort: Sort_1;
6
6
  }
7
- export default Pageable;
@@ -8,4 +8,3 @@ declare class PageableModel<T extends Pageable_1 = Pageable_1> extends ObjectMod
8
8
  get sort(): SortModel_1;
9
9
  }
10
10
  export default PageableModel;
11
- //# sourceMappingURL=PageableModel.d.ts.map
@@ -1,19 +1,16 @@
1
1
  import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, NumberModel as NumberModel_1, ObjectModel as ObjectModel_1 } from "@vaadin/hilla-lit-form";
2
2
  import SortModel_1 from "./SortModel.js";
3
3
  class PageableModel extends ObjectModel_1 {
4
- static createEmptyValue = makeObjectEmptyValueCreator_1(PageableModel);
5
- get pageNumber() {
6
- return this[_getPropertyModel_1]("pageNumber", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: "int" } }));
7
- }
8
- get pageSize() {
9
- return this[_getPropertyModel_1]("pageSize", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: "int" } }));
10
- }
11
- get sort() {
12
- return this[_getPropertyModel_1]("sort", (parent, key) => new SortModel_1(parent, key, false));
13
- }
4
+ static createEmptyValue = makeObjectEmptyValueCreator_1(PageableModel);
5
+ get pageNumber() {
6
+ return this[_getPropertyModel_1]("pageNumber", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: "int" } }));
7
+ }
8
+ get pageSize() {
9
+ return this[_getPropertyModel_1]("pageSize", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: "int" } }));
10
+ }
11
+ get sort() {
12
+ return this[_getPropertyModel_1]("sort", (parent, key) => new SortModel_1(parent, key, false));
13
+ }
14
14
  }
15
- var PageableModel_default = PageableModel;
16
- export {
17
- PageableModel_default as default
18
- };
19
- //# sourceMappingURL=PageableModel.js.map
15
+ export default PageableModel;
16
+ //# sourceMappingURL=PageableModel.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/types/com/vaadin/hilla/mappedtypes/PageableModel.ts"],
4
- "sourcesContent": ["import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, NumberModel as NumberModel_1, ObjectModel as ObjectModel_1 } from \"@vaadin/hilla-lit-form\";\nimport type Pageable_1 from \"./Pageable.js\";\nimport SortModel_1 from \"./SortModel.js\";\nclass PageableModel<T extends Pageable_1 = Pageable_1> extends ObjectModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(PageableModel);\n get pageNumber(): NumberModel_1 {\n return this[_getPropertyModel_1](\"pageNumber\", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: \"int\" } }));\n }\n get pageSize(): NumberModel_1 {\n return this[_getPropertyModel_1](\"pageSize\", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: \"int\" } }));\n }\n get sort(): SortModel_1 {\n return this[_getPropertyModel_1](\"sort\", (parent, key) => new SortModel_1(parent, key, false));\n }\n}\nexport default PageableModel;\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB,qBAAqB,+BAA+B,+BAA+B,eAAe,eAAe,eAAe,qBAAqB;AAEnL,OAAO,iBAAiB;AACxB,MAAM,sBAAyD,cAAiB;AAAA,EAC5E,OAAgB,mBAAmB,8BAA8B,aAAa;AAAA,EAC9E,IAAI,aAA4B;AAC5B,WAAO,KAAK,mBAAmB,EAAE,cAAc,CAAC,QAAQ,QAAQ,IAAI,cAAc,QAAQ,KAAK,OAAO,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE,CAAC,CAAC;AAAA,EACxI;AAAA,EACA,IAAI,WAA0B;AAC1B,WAAO,KAAK,mBAAmB,EAAE,YAAY,CAAC,QAAQ,QAAQ,IAAI,cAAc,QAAQ,KAAK,OAAO,EAAE,MAAM,EAAE,UAAU,MAAM,EAAE,CAAC,CAAC;AAAA,EACtI;AAAA,EACA,IAAI,OAAoB;AACpB,WAAO,KAAK,mBAAmB,EAAE,QAAQ,CAAC,QAAQ,QAAQ,IAAI,YAAY,QAAQ,KAAK,KAAK,CAAC;AAAA,EACjG;AACJ;AACA,IAAO,wBAAQ;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"PageableModel.js","sourceRoot":"","sources":["../../../../../src/types/com/vaadin/hilla/mappedtypes/PageableModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,mBAAmB,EAAE,2BAA2B,IAAI,6BAA6B,EAAE,WAAW,IAAI,aAAa,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5M,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,MAAM,aAAiD,SAAQ,aAAgB;IAC3E,MAAM,CAAU,gBAAgB,GAAG,6BAA6B,CAAC,aAAa,CAAC,CAAC;IAChF,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1I,CAAC;IACD,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IACxI,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IACnG,CAAC;;AAEL,eAAe,aAAa,CAAC","sourcesContent":["import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, NumberModel as NumberModel_1, ObjectModel as ObjectModel_1 } from \"@vaadin/hilla-lit-form\";\nimport type Pageable_1 from \"./Pageable.js\";\nimport SortModel_1 from \"./SortModel.js\";\nclass PageableModel<T extends Pageable_1 = Pageable_1> extends ObjectModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(PageableModel);\n get pageNumber(): NumberModel_1 {\n return this[_getPropertyModel_1](\"pageNumber\", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: \"int\" } }));\n }\n get pageSize(): NumberModel_1 {\n return this[_getPropertyModel_1](\"pageSize\", (parent, key) => new NumberModel_1(parent, key, false, { meta: { javaType: \"int\" } }));\n }\n get sort(): SortModel_1 {\n return this[_getPropertyModel_1](\"sort\", (parent, key) => new SortModel_1(parent, key, false));\n }\n}\nexport default PageableModel;\n"]}
@@ -1,5 +1,4 @@
1
1
  import type Order_1 from "./Order.js";
2
- interface Sort {
2
+ export default interface Sort {
3
3
  orders: Array<Order_1 | undefined>;
4
4
  }
5
- export default Sort;
@@ -6,4 +6,3 @@ declare class SortModel<T extends Sort_1 = Sort_1> extends ObjectModel_1<T> {
6
6
  get orders(): ArrayModel_1<OrderModel_1>;
7
7
  }
8
8
  export default SortModel;
9
- //# sourceMappingURL=SortModel.d.ts.map