@vaadin/hilla-react-crud 24.4.0-alpha1

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 (172) hide show
  1. package/.lintstagedrc.js +6 -0
  2. package/LICENSE +201 -0
  3. package/README.md +27 -0
  4. package/autocrud-dialog.d.ts +11 -0
  5. package/autocrud-dialog.d.ts.map +1 -0
  6. package/autocrud-dialog.js +24 -0
  7. package/autocrud-dialog.js.map +7 -0
  8. package/autocrud-feature.d.ts +4 -0
  9. package/autocrud-feature.d.ts.map +1 -0
  10. package/autocrud-feature.js +8 -0
  11. package/autocrud-feature.js.map +7 -0
  12. package/autocrud.d.ts +82 -0
  13. package/autocrud.d.ts.map +1 -0
  14. package/autocrud.js +94 -0
  15. package/autocrud.js.map +7 -0
  16. package/autocrud.obj.js +6 -0
  17. package/autocrud.obj.js.map +7 -0
  18. package/autoform-feature.d.ts +4 -0
  19. package/autoform-feature.d.ts.map +1 -0
  20. package/autoform-feature.js +8 -0
  21. package/autoform-feature.js.map +7 -0
  22. package/autoform-field.d.ts +122 -0
  23. package/autoform-field.d.ts.map +1 -0
  24. package/autoform-field.js +118 -0
  25. package/autoform-field.js.map +7 -0
  26. package/autoform.d.ts +228 -0
  27. package/autoform.d.ts.map +1 -0
  28. package/autoform.js +178 -0
  29. package/autoform.js.map +7 -0
  30. package/autoform.obj.js +6 -0
  31. package/autoform.obj.js.map +7 -0
  32. package/autogrid-column-context.d.ts +39 -0
  33. package/autogrid-column-context.d.ts.map +1 -0
  34. package/autogrid-column-context.js +8 -0
  35. package/autogrid-column-context.js.map +7 -0
  36. package/autogrid-columns.d.ts +6 -0
  37. package/autogrid-columns.d.ts.map +1 -0
  38. package/autogrid-columns.js +102 -0
  39. package/autogrid-columns.js.map +7 -0
  40. package/autogrid-feature.d.ts +4 -0
  41. package/autogrid-feature.d.ts.map +1 -0
  42. package/autogrid-feature.js +8 -0
  43. package/autogrid-feature.js.map +7 -0
  44. package/autogrid-renderers.d.ts +28 -0
  45. package/autogrid-renderers.d.ts.map +1 -0
  46. package/autogrid-renderers.js +92 -0
  47. package/autogrid-renderers.js.map +7 -0
  48. package/autogrid.d.ts +130 -0
  49. package/autogrid.d.ts.map +1 -0
  50. package/autogrid.js +234 -0
  51. package/autogrid.js.map +7 -0
  52. package/autogrid.obj.js +6 -0
  53. package/autogrid.obj.js.map +7 -0
  54. package/crud.d.js +1 -0
  55. package/crud.d.js.map +7 -0
  56. package/crud.d.ts +17 -0
  57. package/data-provider.d.ts +56 -0
  58. package/data-provider.d.ts.map +1 -0
  59. package/data-provider.js +121 -0
  60. package/data-provider.js.map +7 -0
  61. package/header-filter.d.ts +54 -0
  62. package/header-filter.d.ts.map +1 -0
  63. package/header-filter.js +258 -0
  64. package/header-filter.js.map +7 -0
  65. package/header-sorter.d.ts +3 -0
  66. package/header-sorter.d.ts.map +1 -0
  67. package/header-sorter.js +28 -0
  68. package/header-sorter.js.map +7 -0
  69. package/i18n.d.ts +2 -0
  70. package/i18n.d.ts.map +1 -0
  71. package/i18n.js +5 -0
  72. package/i18n.js.map +7 -0
  73. package/index.d.ts +5 -0
  74. package/index.d.ts.map +1 -0
  75. package/index.js +13 -0
  76. package/index.js.map +7 -0
  77. package/locale.d.ts +19 -0
  78. package/locale.d.ts.map +1 -0
  79. package/locale.js +123 -0
  80. package/locale.js.map +7 -0
  81. package/media-query.d.ts +2 -0
  82. package/media-query.d.ts.map +1 -0
  83. package/media-query.js +16 -0
  84. package/media-query.js.map +7 -0
  85. package/model-info.d.ts +23 -0
  86. package/model-info.d.ts.map +1 -0
  87. package/model-info.js +137 -0
  88. package/model-info.js.map +7 -0
  89. package/package.json +87 -0
  90. package/types/com/vaadin/hilla/crud/filter/AndFilter.d.js +1 -0
  91. package/types/com/vaadin/hilla/crud/filter/AndFilter.d.js.map +7 -0
  92. package/types/com/vaadin/hilla/crud/filter/AndFilter.d.ts +6 -0
  93. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.d.ts +9 -0
  94. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.d.ts.map +1 -0
  95. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.js +13 -0
  96. package/types/com/vaadin/hilla/crud/filter/AndFilterModel.js.map +7 -0
  97. package/types/com/vaadin/hilla/crud/filter/Filter.d.js +1 -0
  98. package/types/com/vaadin/hilla/crud/filter/Filter.d.js.map +7 -0
  99. package/types/com/vaadin/hilla/crud/filter/Filter.d.ts +3 -0
  100. package/types/com/vaadin/hilla/crud/filter/FilterModel.d.ts +7 -0
  101. package/types/com/vaadin/hilla/crud/filter/FilterModel.d.ts.map +1 -0
  102. package/types/com/vaadin/hilla/crud/filter/FilterModel.js +9 -0
  103. package/types/com/vaadin/hilla/crud/filter/FilterModel.js.map +7 -0
  104. package/types/com/vaadin/hilla/crud/filter/FilterUnion.d.js +1 -0
  105. package/types/com/vaadin/hilla/crud/filter/FilterUnion.d.js.map +7 -0
  106. package/types/com/vaadin/hilla/crud/filter/FilterUnion.d.ts +5 -0
  107. package/types/com/vaadin/hilla/crud/filter/OrFilter.d.js +1 -0
  108. package/types/com/vaadin/hilla/crud/filter/OrFilter.d.js.map +7 -0
  109. package/types/com/vaadin/hilla/crud/filter/OrFilter.d.ts +6 -0
  110. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.d.ts +9 -0
  111. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.d.ts.map +1 -0
  112. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.js +13 -0
  113. package/types/com/vaadin/hilla/crud/filter/OrFilterModel.js.map +7 -0
  114. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.d.ts +8 -0
  115. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.d.ts.map +1 -0
  116. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js +12 -0
  117. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/Matcher.js.map +7 -0
  118. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.d.ts +8 -0
  119. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.d.ts.map +1 -0
  120. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.js +11 -0
  121. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter/MatcherModel.js.map +7 -0
  122. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter.d.js +1 -0
  123. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter.d.js.map +7 -0
  124. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilter.d.ts +9 -0
  125. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.d.ts +12 -0
  126. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.d.ts.map +1 -0
  127. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.js +20 -0
  128. package/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.js.map +7 -0
  129. package/types/com/vaadin/hilla/mappedtypes/Order.d.js +1 -0
  130. package/types/com/vaadin/hilla/mappedtypes/Order.d.js.map +7 -0
  131. package/types/com/vaadin/hilla/mappedtypes/Order.d.ts +9 -0
  132. package/types/com/vaadin/hilla/mappedtypes/OrderModel.d.ts +13 -0
  133. package/types/com/vaadin/hilla/mappedtypes/OrderModel.d.ts.map +1 -0
  134. package/types/com/vaadin/hilla/mappedtypes/OrderModel.js +23 -0
  135. package/types/com/vaadin/hilla/mappedtypes/OrderModel.js.map +7 -0
  136. package/types/com/vaadin/hilla/mappedtypes/Pageable.d.js +1 -0
  137. package/types/com/vaadin/hilla/mappedtypes/Pageable.d.js.map +7 -0
  138. package/types/com/vaadin/hilla/mappedtypes/Pageable.d.ts +7 -0
  139. package/types/com/vaadin/hilla/mappedtypes/PageableModel.d.ts +11 -0
  140. package/types/com/vaadin/hilla/mappedtypes/PageableModel.d.ts.map +1 -0
  141. package/types/com/vaadin/hilla/mappedtypes/PageableModel.js +19 -0
  142. package/types/com/vaadin/hilla/mappedtypes/PageableModel.js.map +7 -0
  143. package/types/com/vaadin/hilla/mappedtypes/Sort.d.js +1 -0
  144. package/types/com/vaadin/hilla/mappedtypes/Sort.d.js.map +7 -0
  145. package/types/com/vaadin/hilla/mappedtypes/Sort.d.ts +5 -0
  146. package/types/com/vaadin/hilla/mappedtypes/SortModel.d.ts +9 -0
  147. package/types/com/vaadin/hilla/mappedtypes/SortModel.d.ts.map +1 -0
  148. package/types/com/vaadin/hilla/mappedtypes/SortModel.js +13 -0
  149. package/types/com/vaadin/hilla/mappedtypes/SortModel.js.map +7 -0
  150. package/types/org/springframework/data/domain/Sort/Direction.d.ts +6 -0
  151. package/types/org/springframework/data/domain/Sort/Direction.d.ts.map +1 -0
  152. package/types/org/springframework/data/domain/Sort/Direction.js +10 -0
  153. package/types/org/springframework/data/domain/Sort/Direction.js.map +7 -0
  154. package/types/org/springframework/data/domain/Sort/DirectionModel.d.ts +8 -0
  155. package/types/org/springframework/data/domain/Sort/DirectionModel.d.ts.map +1 -0
  156. package/types/org/springframework/data/domain/Sort/DirectionModel.js +11 -0
  157. package/types/org/springframework/data/domain/Sort/DirectionModel.js.map +7 -0
  158. package/types/org/springframework/data/domain/Sort/NullHandling.d.ts +7 -0
  159. package/types/org/springframework/data/domain/Sort/NullHandling.d.ts.map +1 -0
  160. package/types/org/springframework/data/domain/Sort/NullHandling.js +11 -0
  161. package/types/org/springframework/data/domain/Sort/NullHandling.js.map +7 -0
  162. package/types/org/springframework/data/domain/Sort/NullHandlingModel.d.ts +8 -0
  163. package/types/org/springframework/data/domain/Sort/NullHandlingModel.d.ts.map +1 -0
  164. package/types/org/springframework/data/domain/Sort/NullHandlingModel.js +11 -0
  165. package/types/org/springframework/data/domain/Sort/NullHandlingModel.js.map +7 -0
  166. package/types.d.js +1 -0
  167. package/types.d.js.map +7 -0
  168. package/types.d.ts +12 -0
  169. package/util.d.ts +12 -0
  170. package/util.d.ts.map +1 -0
  171. package/util.js +55 -0
  172. package/util.js.map +7 -0
@@ -0,0 +1,12 @@
1
+ import { StringModel as StringModel_1 } from "@vaadin/hilla-lit-form";
2
+ import FilterModel_1 from "./FilterModel.js";
3
+ import type PropertyStringFilter_1 from "./PropertyStringFilter.js";
4
+ import MatcherModel_1 from "./PropertyStringFilter/MatcherModel.js";
5
+ declare class PropertyStringFilterModel<T extends PropertyStringFilter_1 = PropertyStringFilter_1> extends FilterModel_1<T> {
6
+ static createEmptyValue: () => PropertyStringFilter_1;
7
+ get propertyId(): StringModel_1;
8
+ get filterValue(): StringModel_1;
9
+ get matcher(): MatcherModel_1;
10
+ }
11
+ export default PropertyStringFilterModel;
12
+ //# sourceMappingURL=PropertyStringFilterModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyStringFilterModel.d.ts","sourceRoot":"","sources":["../../../../../../src/types/com/vaadin/hilla/crud/filter/PropertyStringFilterModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0G,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC9K,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,sBAAsB,MAAM,2BAA2B,CAAC;AACpE,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,cAAM,yBAAyB,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAC/G,OAAgB,gBAAgB,+BAA4D;IAC5F,IAAI,UAAU,IAAI,aAAa,CAE9B;IACD,IAAI,WAAW,IAAI,aAAa,CAE/B;IACD,IAAI,OAAO,IAAI,cAAc,CAE5B;CACJ;AACD,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, StringModel as StringModel_1 } from "@vaadin/hilla-lit-form";
2
+ import FilterModel_1 from "./FilterModel.js";
3
+ import MatcherModel_1 from "./PropertyStringFilter/MatcherModel.js";
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
+ }
15
+ }
16
+ var PropertyStringFilterModel_default = PropertyStringFilterModel;
17
+ export {
18
+ PropertyStringFilterModel_default as default
19
+ };
20
+ //# sourceMappingURL=PropertyStringFilterModel.js.map
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=Order.d.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,9 @@
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 {
4
+ direction: Direction_1;
5
+ property: string;
6
+ ignoreCase: boolean;
7
+ nullHandling?: NullHandling_1;
8
+ }
9
+ export default Order;
@@ -0,0 +1,13 @@
1
+ import { BooleanModel as BooleanModel_1, ObjectModel as ObjectModel_1, StringModel as StringModel_1 } from "@vaadin/hilla-lit-form";
2
+ import DirectionModel_1 from "../../../../org/springframework/data/domain/Sort/DirectionModel.js";
3
+ import NullHandlingModel_1 from "../../../../org/springframework/data/domain/Sort/NullHandlingModel.js";
4
+ import type Order_1 from "./Order.js";
5
+ declare class OrderModel<T extends Order_1 = Order_1> extends ObjectModel_1<T> {
6
+ static createEmptyValue: () => Order_1;
7
+ get direction(): DirectionModel_1;
8
+ get property(): StringModel_1;
9
+ get ignoreCase(): BooleanModel_1;
10
+ get nullHandling(): NullHandlingModel_1;
11
+ }
12
+ export default OrderModel;
13
+ //# sourceMappingURL=OrderModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderModel.d.ts","sourceRoot":"","sources":["../../../../../src/types/com/vaadin/hilla/mappedtypes/OrderModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,YAAY,IAAI,cAAc,EAAwF,WAAW,IAAI,aAAa,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACpQ,OAAO,gBAAgB,MAAM,oEAAoE,CAAC;AAClG,OAAO,mBAAmB,MAAM,uEAAuE,CAAC;AACxG,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,cAAM,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAClE,OAAgB,gBAAgB,gBAA6C;IAC7E,IAAI,SAAS,IAAI,gBAAgB,CAEhC;IACD,IAAI,QAAQ,IAAI,aAAa,CAE5B;IACD,IAAI,UAAU,IAAI,cAAc,CAE/B;IACD,IAAI,YAAY,IAAI,mBAAmB,CAEtC;CACJ;AACD,eAAe,UAAU,CAAC"}
@@ -0,0 +1,23 @@
1
+ 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";
2
+ import DirectionModel_1 from "../../../../org/springframework/data/domain/Sort/DirectionModel.js";
3
+ import NullHandlingModel_1 from "../../../../org/springframework/data/domain/Sort/NullHandlingModel.js";
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
+ }
18
+ }
19
+ var OrderModel_default = OrderModel;
20
+ export {
21
+ OrderModel_default as default
22
+ };
23
+ //# sourceMappingURL=OrderModel.js.map
@@ -0,0 +1,7 @@
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,QAAQ,IAAI,oBAAoB,QAAQ,KAAK,IAAI,CAAC;AAAA,EAChH;AACJ;AACA,IAAO,qBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=Pageable.d.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ import type Sort_1 from "./Sort.js";
2
+ interface Pageable {
3
+ pageNumber: number;
4
+ pageSize: number;
5
+ sort: Sort_1;
6
+ }
7
+ export default Pageable;
@@ -0,0 +1,11 @@
1
+ import { NumberModel as NumberModel_1, ObjectModel as ObjectModel_1 } from "@vaadin/hilla-lit-form";
2
+ import type Pageable_1 from "./Pageable.js";
3
+ import SortModel_1 from "./SortModel.js";
4
+ declare class PageableModel<T extends Pageable_1 = Pageable_1> extends ObjectModel_1<T> {
5
+ static createEmptyValue: () => Pageable_1;
6
+ get pageNumber(): NumberModel_1;
7
+ get pageSize(): NumberModel_1;
8
+ get sort(): SortModel_1;
9
+ }
10
+ export default PageableModel;
11
+ //# sourceMappingURL=PageableModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageableModel.d.ts","sourceRoot":"","sources":["../../../../../src/types/com/vaadin/hilla/mappedtypes/PageableModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0G,WAAW,IAAI,aAAa,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5M,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,cAAM,aAAa,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAC3E,OAAgB,gBAAgB,mBAAgD;IAChF,IAAI,UAAU,IAAI,aAAa,CAE9B;IACD,IAAI,QAAQ,IAAI,aAAa,CAE5B;IACD,IAAI,IAAI,IAAI,WAAW,CAEtB;CACJ;AACD,eAAe,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { _getPropertyModel as _getPropertyModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, NumberModel as NumberModel_1, ObjectModel as ObjectModel_1 } from "@vaadin/hilla-lit-form";
2
+ import SortModel_1 from "./SortModel.js";
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
+ }
14
+ }
15
+ var PageableModel_default = PageableModel;
16
+ export {
17
+ PageableModel_default as default
18
+ };
19
+ //# sourceMappingURL=PageableModel.js.map
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=Sort.d.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ import type Order_1 from "./Order.js";
2
+ interface Sort {
3
+ orders: Array<Order_1 | undefined>;
4
+ }
5
+ export default Sort;
@@ -0,0 +1,9 @@
1
+ import { ArrayModel as ArrayModel_1, ObjectModel as ObjectModel_1 } from "@vaadin/hilla-lit-form";
2
+ import OrderModel_1 from "./OrderModel.js";
3
+ import type Sort_1 from "./Sort.js";
4
+ declare class SortModel<T extends Sort_1 = Sort_1> extends ObjectModel_1<T> {
5
+ static createEmptyValue: () => Sort_1;
6
+ get orders(): ArrayModel_1<OrderModel_1>;
7
+ }
8
+ export default SortModel;
9
+ //# sourceMappingURL=SortModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SortModel.d.ts","sourceRoot":"","sources":["../../../../../src/types/com/vaadin/hilla/mappedtypes/SortModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,UAAU,IAAI,YAAY,EAAgE,WAAW,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC1M,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,cAAM,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAC/D,OAAgB,gBAAgB,eAA4C;IAC5E,IAAI,MAAM,IAAI,YAAY,CAAC,YAAY,CAAC,CAEvC;CACJ;AACD,eAAe,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, ObjectModel as ObjectModel_1 } from "@vaadin/hilla-lit-form";
2
+ import OrderModel_1 from "./OrderModel.js";
3
+ class SortModel extends ObjectModel_1 {
4
+ static createEmptyValue = makeObjectEmptyValueCreator_1(SortModel);
5
+ get orders() {
6
+ return this[_getPropertyModel_1]("orders", (parent, key) => new ArrayModel_1(parent, key, false, (parent2, key2) => new OrderModel_1(parent2, key2, true), { meta: { javaType: "java.util.List" } }));
7
+ }
8
+ }
9
+ var SortModel_default = SortModel;
10
+ export {
11
+ SortModel_default as default
12
+ };
13
+ //# sourceMappingURL=SortModel.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/types/com/vaadin/hilla/mappedtypes/SortModel.ts"],
4
+ "sourcesContent": ["import { _getPropertyModel as _getPropertyModel_1, ArrayModel as ArrayModel_1, makeObjectEmptyValueCreator as makeObjectEmptyValueCreator_1, ObjectModel as ObjectModel_1 } from \"@vaadin/hilla-lit-form\";\nimport OrderModel_1 from \"./OrderModel.js\";\nimport type Sort_1 from \"./Sort.js\";\nclass SortModel<T extends Sort_1 = Sort_1> extends ObjectModel_1<T> {\n static override createEmptyValue = makeObjectEmptyValueCreator_1(SortModel);\n get orders(): ArrayModel_1<OrderModel_1> {\n return this[_getPropertyModel_1](\"orders\", (parent, key) => new ArrayModel_1(parent, key, false, (parent, key) => new OrderModel_1(parent, key, true), { meta: { javaType: \"java.util.List\" } }));\n }\n}\nexport default SortModel;\n"],
5
+ "mappings": "AAAA,SAAS,qBAAqB,qBAAqB,cAAc,cAAc,+BAA+B,+BAA+B,eAAe,qBAAqB;AACjL,OAAO,kBAAkB;AAEzB,MAAM,kBAA6C,cAAiB;AAAA,EAChE,OAAgB,mBAAmB,8BAA8B,SAAS;AAAA,EAC1E,IAAI,SAAqC;AACrC,WAAO,KAAK,mBAAmB,EAAE,UAAU,CAAC,QAAQ,QAAQ,IAAI,aAAa,QAAQ,KAAK,OAAO,CAACA,SAAQC,SAAQ,IAAI,aAAaD,SAAQC,MAAK,IAAI,GAAG,EAAE,MAAM,EAAE,UAAU,iBAAiB,EAAE,CAAC,CAAC;AAAA,EACpM;AACJ;AACA,IAAO,oBAAQ;",
6
+ "names": ["parent", "key"]
7
+ }
@@ -0,0 +1,6 @@
1
+ declare enum Direction {
2
+ ASC = "ASC",
3
+ DESC = "DESC"
4
+ }
5
+ export default Direction;
6
+ //# sourceMappingURL=Direction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Direction.d.ts","sourceRoot":"","sources":["../../../../../../src/types/org/springframework/data/domain/Sort/Direction.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS;IACV,GAAG,QAAQ;IACX,IAAI,SAAS;CAChB;AACD,eAAe,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ var Direction = /* @__PURE__ */ ((Direction2) => {
2
+ Direction2["ASC"] = "ASC";
3
+ Direction2["DESC"] = "DESC";
4
+ return Direction2;
5
+ })(Direction || {});
6
+ var Direction_default = Direction;
7
+ export {
8
+ Direction_default as default
9
+ };
10
+ //# sourceMappingURL=Direction.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/types/org/springframework/data/domain/Sort/Direction.ts"],
4
+ "sourcesContent": ["enum Direction {\n ASC = \"ASC\",\n DESC = \"DESC\"\n}\nexport default Direction;\n"],
5
+ "mappings": "AAAA,IAAK,YAAL,kBAAKA,eAAL;AACI,EAAAA,WAAA,SAAM;AACN,EAAAA,WAAA,UAAO;AAFN,SAAAA;AAAA,GAAA;AAIL,IAAO,oBAAQ;",
6
+ "names": ["Direction"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { _enum as _enum_1, EnumModel as EnumModel_1 } from "@vaadin/hilla-lit-form";
2
+ import Direction_1 from "./Direction.js";
3
+ declare class DirectionModel extends EnumModel_1<typeof Direction_1> {
4
+ static createEmptyValue: () => Direction_1;
5
+ readonly [_enum_1]: typeof Direction_1;
6
+ }
7
+ export default DirectionModel;
8
+ //# sourceMappingURL=DirectionModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DirectionModel.d.ts","sourceRoot":"","sources":["../../../../../../src/types/org/springframework/data/domain/Sort/DirectionModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,SAAS,IAAI,WAAW,EAA4D,MAAM,wBAAwB,CAAC;AAC9I,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,cAAM,cAAe,SAAQ,WAAW,CAAC,OAAO,WAAW,CAAC;IACxD,OAAgB,gBAAgB,oBAA+C;IAC/E,QAAQ,CAAC,CAAC,OAAO,CAAC,qBAAe;CACpC;AACD,eAAe,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { _enum as _enum_1, EnumModel as EnumModel_1, makeEnumEmptyValueCreator as makeEnumEmptyValueCreator_1 } from "@vaadin/hilla-lit-form";
2
+ import Direction_1 from "./Direction.js";
3
+ class DirectionModel extends EnumModel_1 {
4
+ static createEmptyValue = makeEnumEmptyValueCreator_1(DirectionModel);
5
+ [_enum_1] = Direction_1;
6
+ }
7
+ var DirectionModel_default = DirectionModel;
8
+ export {
9
+ DirectionModel_default as default
10
+ };
11
+ //# sourceMappingURL=DirectionModel.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/types/org/springframework/data/domain/Sort/DirectionModel.ts"],
4
+ "sourcesContent": ["import { _enum as _enum_1, EnumModel as EnumModel_1, makeEnumEmptyValueCreator as makeEnumEmptyValueCreator_1 } from \"@vaadin/hilla-lit-form\";\nimport Direction_1 from \"./Direction.js\";\nclass DirectionModel extends EnumModel_1<typeof Direction_1> {\n static override createEmptyValue = makeEnumEmptyValueCreator_1(DirectionModel);\n readonly [_enum_1] = Direction_1;\n}\nexport default DirectionModel;\n"],
5
+ "mappings": "AAAA,SAAS,SAAS,SAAS,aAAa,aAAa,6BAA6B,mCAAmC;AACrH,OAAO,iBAAiB;AACxB,MAAM,uBAAuB,YAAgC;AAAA,EACzD,OAAgB,mBAAmB,4BAA4B,cAAc;AAAA,EAC7E,CAAU,OAAO,IAAI;AACzB;AACA,IAAO,yBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ declare enum NullHandling {
2
+ NATIVE = "NATIVE",
3
+ NULLS_FIRST = "NULLS_FIRST",
4
+ NULLS_LAST = "NULLS_LAST"
5
+ }
6
+ export default NullHandling;
7
+ //# sourceMappingURL=NullHandling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NullHandling.d.ts","sourceRoot":"","sources":["../../../../../../src/types/org/springframework/data/domain/Sort/NullHandling.ts"],"names":[],"mappings":"AAAA,aAAK,YAAY;IACb,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;CAC5B;AACD,eAAe,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ var NullHandling = /* @__PURE__ */ ((NullHandling2) => {
2
+ NullHandling2["NATIVE"] = "NATIVE";
3
+ NullHandling2["NULLS_FIRST"] = "NULLS_FIRST";
4
+ NullHandling2["NULLS_LAST"] = "NULLS_LAST";
5
+ return NullHandling2;
6
+ })(NullHandling || {});
7
+ var NullHandling_default = NullHandling;
8
+ export {
9
+ NullHandling_default as default
10
+ };
11
+ //# sourceMappingURL=NullHandling.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/types/org/springframework/data/domain/Sort/NullHandling.ts"],
4
+ "sourcesContent": ["enum NullHandling {\n NATIVE = \"NATIVE\",\n NULLS_FIRST = \"NULLS_FIRST\",\n NULLS_LAST = \"NULLS_LAST\"\n}\nexport default NullHandling;\n"],
5
+ "mappings": "AAAA,IAAK,eAAL,kBAAKA,kBAAL;AACI,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AAHZ,SAAAA;AAAA,GAAA;AAKL,IAAO,uBAAQ;",
6
+ "names": ["NullHandling"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { _enum as _enum_1, EnumModel as EnumModel_1 } from "@vaadin/hilla-lit-form";
2
+ import NullHandling_1 from "./NullHandling.js";
3
+ declare class NullHandlingModel extends EnumModel_1<typeof NullHandling_1> {
4
+ static createEmptyValue: () => NullHandling_1;
5
+ readonly [_enum_1]: typeof NullHandling_1;
6
+ }
7
+ export default NullHandlingModel;
8
+ //# sourceMappingURL=NullHandlingModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NullHandlingModel.d.ts","sourceRoot":"","sources":["../../../../../../src/types/org/springframework/data/domain/Sort/NullHandlingModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,SAAS,IAAI,WAAW,EAA4D,MAAM,wBAAwB,CAAC;AAC9I,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,cAAM,iBAAkB,SAAQ,WAAW,CAAC,OAAO,cAAc,CAAC;IAC9D,OAAgB,gBAAgB,uBAAkD;IAClF,QAAQ,CAAC,CAAC,OAAO,CAAC,wBAAkB;CACvC;AACD,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { _enum as _enum_1, EnumModel as EnumModel_1, makeEnumEmptyValueCreator as makeEnumEmptyValueCreator_1 } from "@vaadin/hilla-lit-form";
2
+ import NullHandling_1 from "./NullHandling.js";
3
+ class NullHandlingModel extends EnumModel_1 {
4
+ static createEmptyValue = makeEnumEmptyValueCreator_1(NullHandlingModel);
5
+ [_enum_1] = NullHandling_1;
6
+ }
7
+ var NullHandlingModel_default = NullHandlingModel;
8
+ export {
9
+ NullHandlingModel_default as default
10
+ };
11
+ //# sourceMappingURL=NullHandlingModel.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/types/org/springframework/data/domain/Sort/NullHandlingModel.ts"],
4
+ "sourcesContent": ["import { _enum as _enum_1, EnumModel as EnumModel_1, makeEnumEmptyValueCreator as makeEnumEmptyValueCreator_1 } from \"@vaadin/hilla-lit-form\";\nimport NullHandling_1 from \"./NullHandling.js\";\nclass NullHandlingModel extends EnumModel_1<typeof NullHandling_1> {\n static override createEmptyValue = makeEnumEmptyValueCreator_1(NullHandlingModel);\n readonly [_enum_1] = NullHandling_1;\n}\nexport default NullHandlingModel;\n"],
5
+ "mappings": "AAAA,SAAS,SAAS,SAAS,aAAa,aAAa,6BAA6B,mCAAmC;AACrH,OAAO,oBAAoB;AAC3B,MAAM,0BAA0B,YAAmC;AAAA,EAC/D,OAAgB,mBAAmB,4BAA4B,iBAAiB;AAAA,EAChF,CAAU,OAAO,IAAI;AACzB;AACA,IAAO,4BAAQ;",
6
+ "names": []
7
+ }
package/types.d.js ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.d.js.map
package/types.d.js.map ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/types.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /* eslint-disable import/unambiguous */
2
+
3
+ declare module '*.obj.css' {
4
+ const css: CSSStyleSheet;
5
+ export default css;
6
+ }
7
+
8
+ declare module 'csstype' {
9
+ interface Properties {
10
+ '--auto-crud-text-align'?: string;
11
+ }
12
+ }
package/util.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { type CSSProperties } from 'react';
2
+ import type FilterUnion from './types/com/vaadin/hilla/crud/filter/FilterUnion';
3
+ export type ComponentStyleProps = Readonly<{
4
+ id?: string;
5
+ style?: CSSProperties;
6
+ className?: string;
7
+ }>;
8
+ export declare function convertToTitleCase(inputString: string): string;
9
+ export declare function registerStylesheet(stylesheet: CSSStyleSheet): void;
10
+ export declare function featureRegistration<C extends (...args: any[]) => any>(Component: C, feature: string): C;
11
+ export declare function isFilterEmpty(filter: FilterUnion): boolean;
12
+ //# sourceMappingURL=util.d.ts.map
package/util.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["src/util.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,WAAW,MAAM,kDAAkD,CAAC;AAEhF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAU9D;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,aAAa,GAAG,IAAI,CAQlE;AAcD,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAKvG;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAW1D"}
package/util.js ADDED
@@ -0,0 +1,55 @@
1
+ function __REGISTER__(feature) {
2
+ window.Vaadin ??= {};
3
+ window.Vaadin.registrations ??= [];
4
+ window.Vaadin.registrations.push({
5
+ is: feature ? `${"@vaadin/hilla-react-crud"}/${feature}` : "@vaadin/hilla-react-crud",
6
+ version: "24.4.0-alpha1"
7
+ });
8
+ }
9
+ import { jsx } from "react/jsx-runtime";
10
+ import React, { forwardRef } from "react";
11
+ function convertToTitleCase(inputString) {
12
+ const stringWithSpaces = inputString.replace(/_/gu, " ");
13
+ const words = stringWithSpaces.split(" ");
14
+ const titleCaseWords = words.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase());
15
+ return titleCaseWords.join(" ");
16
+ }
17
+ function registerStylesheet(stylesheet) {
18
+ const css = Array.from(stylesheet.cssRules).map((rule) => rule.cssText).join("\n");
19
+ const styleTag = document.createElement("style");
20
+ styleTag.textContent = css;
21
+ document.head.prepend(styleTag);
22
+ }
23
+ const registeredFeatures = /* @__PURE__ */ new Set();
24
+ function useFeatureRegistration(feature) {
25
+ if (registeredFeatures.has(feature)) {
26
+ return;
27
+ }
28
+ registeredFeatures.add(feature);
29
+ __REGISTER__(feature);
30
+ }
31
+ function featureRegistration(Component, feature) {
32
+ return forwardRef((props, ref) => {
33
+ useFeatureRegistration(feature);
34
+ return /* @__PURE__ */ jsx(Component, { ...props, ref });
35
+ });
36
+ }
37
+ function isFilterEmpty(filter) {
38
+ if (filter["@type"] === "and" || filter["@type"] === "or") {
39
+ if (filter.children.length === 0) {
40
+ return true;
41
+ }
42
+ return filter.children.every((child) => isFilterEmpty(child));
43
+ }
44
+ if ("filterValue" in filter) {
45
+ return filter.filterValue === "";
46
+ }
47
+ throw new Error(`Unknown filter type: ${"@type" in filter ? filter["@type"] : JSON.stringify(filter)} `);
48
+ }
49
+ export {
50
+ convertToTitleCase,
51
+ featureRegistration,
52
+ isFilterEmpty,
53
+ registerStylesheet
54
+ };
55
+ //# sourceMappingURL=util.js.map
package/util.js.map ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../scripts/register.js", "src/util.tsx"],
4
+ "sourcesContent": ["export function __REGISTER__(feature) {\n window.Vaadin ??= {};\n window.Vaadin.registrations ??= [];\n window.Vaadin.registrations.push({\n is: feature ? `${__NAME__}/${feature}` : __NAME__,\n version: __VERSION__,\n });\n}\n", "import React, { type CSSProperties, forwardRef } from 'react';\nimport type FilterUnion from './types/com/vaadin/hilla/crud/filter/FilterUnion';\n\nexport type ComponentStyleProps = Readonly<{\n id?: string;\n style?: CSSProperties;\n className?: string;\n}>;\n\nexport function convertToTitleCase(inputString: string): string {\n // Convert underscores to spaces\n const stringWithSpaces = inputString.replace(/_/gu, ' ');\n\n // Convert to title case\n const words = stringWithSpaces.split(' ');\n const titleCaseWords = words.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase());\n\n // Join the title case words with spaces\n return titleCaseWords.join(' ');\n}\n\nexport function registerStylesheet(stylesheet: CSSStyleSheet): void {\n const css = Array.from(stylesheet.cssRules)\n .map((rule) => rule.cssText)\n .join('\\n');\n\n const styleTag = document.createElement('style');\n styleTag.textContent = css;\n document.head.prepend(styleTag);\n}\n\nconst registeredFeatures = new Set<string>();\nfunction useFeatureRegistration(feature: string): void {\n if (registeredFeatures.has(feature)) {\n return;\n }\n\n registeredFeatures.add(feature);\n // @ts-expect-error: esbuild injection\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n __REGISTER__(feature);\n}\n\nexport function featureRegistration<C extends (...args: any[]) => any>(Component: C, feature: string): C {\n return forwardRef<unknown, React.JSX.LibraryManagedAttributes<C, NonNullable<unknown>>>((props, ref) => {\n useFeatureRegistration(feature);\n return <Component {...props} ref={ref} />;\n }) as unknown as C;\n}\n\nexport function isFilterEmpty(filter: FilterUnion): boolean {\n if (filter['@type'] === 'and' || filter['@type'] === 'or') {\n if (filter.children.length === 0) {\n return true;\n }\n return filter.children.every((child) => isFilterEmpty(child as FilterUnion));\n }\n if ('filterValue' in filter) {\n return filter.filterValue === '';\n }\n throw new Error(`Unknown filter type: ${'@type' in filter ? filter['@type'] : JSON.stringify(filter)} `);\n}\n"],
5
+ "mappings": "AAAO,SAAS,aAAa,SAAS;AACpC,SAAO,WAAW,CAAC;AACnB,SAAO,OAAO,kBAAkB,CAAC;AACjC,SAAO,OAAO,cAAc,KAAK;AAAA,IAC/B,IAAI,UAAU,GAAG,0BAAQ,IAAI,OAAO,KAAK;AAAA,IACzC,SAAS;AAAA,EACX,CAAC;AACH;ACuCW;AA9CX,OAAO,SAA6B,kBAAkB;AAS/C,SAAS,mBAAmB,aAA6B;AAE9D,QAAM,mBAAmB,YAAY,QAAQ,OAAO,GAAG;AAGvD,QAAM,QAAQ,iBAAiB,MAAM,GAAG;AACxC,QAAM,iBAAiB,MAAM,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC,EAAE,YAAY,IAAI,KAAK,MAAM,CAAC,EAAE,YAAY,CAAC;AAGrG,SAAO,eAAe,KAAK,GAAG;AAChC;AAEO,SAAS,mBAAmB,YAAiC;AAClE,QAAM,MAAM,MAAM,KAAK,WAAW,QAAQ,EACvC,IAAI,CAAC,SAAS,KAAK,OAAO,EAC1B,KAAK,IAAI;AAEZ,QAAM,WAAW,SAAS,cAAc,OAAO;AAC/C,WAAS,cAAc;AACvB,WAAS,KAAK,QAAQ,QAAQ;AAChC;AAEA,MAAM,qBAAqB,oBAAI,IAAY;AAC3C,SAAS,uBAAuB,SAAuB;AACrD,MAAI,mBAAmB,IAAI,OAAO,GAAG;AACnC;AAAA,EACF;AAEA,qBAAmB,IAAI,OAAO;AAG9B,eAAa,OAAO;AACtB;AAEO,SAAS,oBAAuD,WAAc,SAAoB;AACvG,SAAO,WAAiF,CAAC,OAAO,QAAQ;AACtG,2BAAuB,OAAO;AAC9B,WAAO,oBAAC,aAAW,GAAG,OAAO,KAAU;AAAA,EACzC,CAAC;AACH;AAEO,SAAS,cAAc,QAA8B;AAC1D,MAAI,OAAO,OAAO,MAAM,SAAS,OAAO,OAAO,MAAM,MAAM;AACzD,QAAI,OAAO,SAAS,WAAW,GAAG;AAChC,aAAO;AAAA,IACT;AACA,WAAO,OAAO,SAAS,MAAM,CAAC,UAAU,cAAc,KAAoB,CAAC;AAAA,EAC7E;AACA,MAAI,iBAAiB,QAAQ;AAC3B,WAAO,OAAO,gBAAgB;AAAA,EAChC;AACA,QAAM,IAAI,MAAM,wBAAwB,WAAW,SAAS,OAAO,OAAO,IAAI,KAAK,UAAU,MAAM,CAAC,GAAG;AACzG;",
6
+ "names": []
7
+ }