@makeswift/prop-controllers 0.1.1 → 0.2.0-canary.1

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 (168) hide show
  1. package/dist/index.cjs +494 -220
  2. package/dist/types/border copy/border.d.ts +2435 -0
  3. package/dist/types/border copy/border.d.ts.map +1 -0
  4. package/dist/types/border copy/border.test.d.ts +2 -0
  5. package/dist/types/border copy/border.test.d.ts.map +1 -0
  6. package/dist/types/border copy/index.d.ts +2 -0
  7. package/dist/types/border copy/index.d.ts.map +1 -0
  8. package/dist/types/date/checkbox.test.d.ts +2 -0
  9. package/dist/types/date/checkbox.test.d.ts.map +1 -0
  10. package/dist/types/date copy/date.d.ts +50 -0
  11. package/dist/types/date copy/date.d.ts.map +1 -0
  12. package/dist/types/date copy/date.test.d.ts +2 -0
  13. package/dist/types/date copy/date.test.d.ts.map +1 -0
  14. package/dist/types/date copy/index.d.ts +2 -0
  15. package/dist/types/date copy/index.d.ts.map +1 -0
  16. package/dist/types/deleted.d.ts +1 -0
  17. package/dist/types/deleted.d.ts.map +1 -0
  18. package/dist/types/deteted.d.ts +1 -0
  19. package/dist/types/deteted.d.ts.map +1 -0
  20. package/dist/types/element-id/date.d.ts +50 -0
  21. package/dist/types/element-id/date.d.ts.map +1 -0
  22. package/dist/types/element-id/date.test.d.ts +2 -0
  23. package/dist/types/element-id/date.test.d.ts.map +1 -0
  24. package/dist/types/element-id/element-id.d.ts +51 -0
  25. package/dist/types/element-id/element-id.d.ts.map +1 -0
  26. package/dist/types/element-id/element-id.test.d.ts +2 -0
  27. package/dist/types/element-id/element-id.test.d.ts.map +1 -0
  28. package/dist/types/element-id/index.d.ts +2 -0
  29. package/dist/types/element-id/index.d.ts.map +1 -0
  30. package/dist/types/font/border.d.ts +2435 -0
  31. package/dist/types/font/border.d.ts.map +1 -0
  32. package/dist/types/font/border.test.d.ts +2 -0
  33. package/dist/types/font/border.test.d.ts.map +1 -0
  34. package/dist/types/font/date.d.ts +50 -0
  35. package/dist/types/font/date.d.ts.map +1 -0
  36. package/dist/types/font/date.test.d.ts +2 -0
  37. package/dist/types/font/date.test.d.ts.map +1 -0
  38. package/dist/types/gap-x/text-style.d.ts +589 -0
  39. package/dist/types/gap-x/text-style.d.ts.map +1 -0
  40. package/dist/types/gap-x/text-style.test.d.ts +2 -0
  41. package/dist/types/gap-x/text-style.test.d.ts.map +1 -0
  42. package/dist/types/gap-x copy/gap-x.d.ts +177 -0
  43. package/dist/types/gap-x copy/gap-x.d.ts.map +1 -0
  44. package/dist/types/gap-x copy/gap-x.test.d.ts +2 -0
  45. package/dist/types/gap-x copy/gap-x.test.d.ts.map +1 -0
  46. package/dist/types/gap-x copy/index.d.ts +2 -0
  47. package/dist/types/gap-x copy/index.d.ts.map +1 -0
  48. package/dist/types/gap-y/gap-x.d.ts +177 -0
  49. package/dist/types/gap-y/gap-x.d.ts.map +1 -0
  50. package/dist/types/gap-y/gap-x.test.d.ts +2 -0
  51. package/dist/types/gap-y/gap-x.test.d.ts.map +1 -0
  52. package/dist/types/grid/grid.d.ts +548 -0
  53. package/dist/types/grid/grid.d.ts.map +1 -0
  54. package/dist/types/grid/grid.test.d.ts +2 -0
  55. package/dist/types/grid/grid.test.d.ts.map +1 -0
  56. package/dist/types/grid/index.d.ts +2 -0
  57. package/dist/types/grid/index.d.ts.map +1 -0
  58. package/dist/types/grid/table.d.ts +54 -0
  59. package/dist/types/grid/table.d.ts.map +1 -0
  60. package/dist/types/grid/table.test.d.ts +2 -0
  61. package/dist/types/grid/table.test.d.ts.map +1 -0
  62. package/dist/types/image/date.d.ts +50 -0
  63. package/dist/types/image/date.d.ts.map +1 -0
  64. package/dist/types/image/date.test.d.ts +2 -0
  65. package/dist/types/image/date.test.d.ts.map +1 -0
  66. package/dist/types/image/image.d.ts +267 -0
  67. package/dist/types/image/image.d.ts.map +1 -0
  68. package/dist/types/image/image.test.d.ts +2 -0
  69. package/dist/types/image/image.test.d.ts.map +1 -0
  70. package/dist/types/image/index.d.ts +2 -0
  71. package/dist/types/image/index.d.ts.map +1 -0
  72. package/dist/types/image copy/image.d.ts +267 -0
  73. package/dist/types/image copy/image.d.ts.map +1 -0
  74. package/dist/types/image copy/image.test.d.ts +2 -0
  75. package/dist/types/image copy/image.test.d.ts.map +1 -0
  76. package/dist/types/image copy/index.d.ts +2 -0
  77. package/dist/types/image copy/index.d.ts.map +1 -0
  78. package/dist/types/images/image.d.ts +267 -0
  79. package/dist/types/images/image.d.ts.map +1 -0
  80. package/dist/types/images/image.test.d.ts +2 -0
  81. package/dist/types/images/image.test.d.ts.map +1 -0
  82. package/dist/types/images/images.d.ts +61 -0
  83. package/dist/types/images/images.d.ts.map +1 -0
  84. package/dist/types/images/images.test.d.ts +2 -0
  85. package/dist/types/images/images.test.d.ts.map +1 -0
  86. package/dist/types/images/index.d.ts +2 -0
  87. package/dist/types/images/index.d.ts.map +1 -0
  88. package/dist/types/index.d.ts +6 -0
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/margin/border.d.ts +2435 -0
  91. package/dist/types/margin/border.d.ts.map +1 -0
  92. package/dist/types/margin/border.test.d.ts +2 -0
  93. package/dist/types/margin/border.test.d.ts.map +1 -0
  94. package/dist/types/margin copy/index.d.ts +2 -0
  95. package/dist/types/margin copy/index.d.ts.map +1 -0
  96. package/dist/types/margin copy/margin.d.ts +1026 -0
  97. package/dist/types/margin copy/margin.d.ts.map +1 -0
  98. package/dist/types/margin copy/margin.test.d.ts +2 -0
  99. package/dist/types/margin copy/margin.test.d.ts.map +1 -0
  100. package/dist/types/navigation-links/date.d.ts +50 -0
  101. package/dist/types/navigation-links/date.d.ts.map +1 -0
  102. package/dist/types/navigation-links/date.test.d.ts +2 -0
  103. package/dist/types/navigation-links/date.test.d.ts.map +1 -0
  104. package/dist/types/padding/margin.d.ts +1026 -0
  105. package/dist/types/padding/margin.d.ts.map +1 -0
  106. package/dist/types/padding/margin.test.d.ts +2 -0
  107. package/dist/types/padding/margin.test.d.ts.map +1 -0
  108. package/dist/types/padding copy/index.d.ts +2 -0
  109. package/dist/types/padding copy/index.d.ts.map +1 -0
  110. package/dist/types/padding copy/padding.d.ts +1026 -0
  111. package/dist/types/padding copy/padding.d.ts.map +1 -0
  112. package/dist/types/padding copy/padding.test.d.ts +2 -0
  113. package/dist/types/padding copy/padding.test.d.ts.map +1 -0
  114. package/dist/types/prop-controllers.d.ts +57 -5
  115. package/dist/types/prop-controllers.d.ts.map +1 -1
  116. package/dist/types/table/date.d.ts +50 -0
  117. package/dist/types/table/date.d.ts.map +1 -0
  118. package/dist/types/table/date.test.d.ts +2 -0
  119. package/dist/types/table/date.test.d.ts.map +1 -0
  120. package/dist/types/table copy/index.d.ts +2 -0
  121. package/dist/types/table copy/index.d.ts.map +1 -0
  122. package/dist/types/table copy/table.d.ts +54 -0
  123. package/dist/types/table copy/table.d.ts.map +1 -0
  124. package/dist/types/table copy/table.test.d.ts +2 -0
  125. package/dist/types/table copy/table.test.d.ts.map +1 -0
  126. package/dist/types/table-form-fields/date.d.ts +50 -0
  127. package/dist/types/table-form-fields/date.d.ts.map +1 -0
  128. package/dist/types/table-form-fields/date.test.d.ts +2 -0
  129. package/dist/types/table-form-fields/date.test.d.ts.map +1 -0
  130. package/dist/types/table-form-fields/index.d.ts +2 -0
  131. package/dist/types/table-form-fields/index.d.ts.map +1 -0
  132. package/dist/types/table-form-fields/table-form-fields.d.ts +633 -0
  133. package/dist/types/table-form-fields/table-form-fields.d.ts.map +1 -0
  134. package/dist/types/table-form-fields/table-form-fields.test.d.ts +2 -0
  135. package/dist/types/table-form-fields/table-form-fields.test.d.ts.map +1 -0
  136. package/dist/types/text-area/date.d.ts +50 -0
  137. package/dist/types/text-area/date.d.ts.map +1 -0
  138. package/dist/types/text-area/date.test.d.ts +2 -0
  139. package/dist/types/text-area/date.test.d.ts.map +1 -0
  140. package/dist/types/text-style/font.test.d.ts +2 -0
  141. package/dist/types/text-style/font.test.d.ts.map +1 -0
  142. package/dist/types/text-style copy/index.d.ts +2 -0
  143. package/dist/types/text-style copy/index.d.ts.map +1 -0
  144. package/dist/types/text-style copy/text-style.d.ts +589 -0
  145. package/dist/types/text-style copy/text-style.d.ts.map +1 -0
  146. package/dist/types/text-style copy/text-style.test.d.ts +2 -0
  147. package/dist/types/text-style copy/text-style.test.d.ts.map +1 -0
  148. package/dist/types/typeahead/date.d.ts +50 -0
  149. package/dist/types/typeahead/date.d.ts.map +1 -0
  150. package/dist/types/typeahead/date.test.d.ts +2 -0
  151. package/dist/types/typeahead/date.test.d.ts.map +1 -0
  152. package/dist/types/typeahead/index.d.ts +2 -0
  153. package/dist/types/typeahead/index.d.ts.map +1 -0
  154. package/dist/types/typeahead/typeahead.d.ts +50 -0
  155. package/dist/types/typeahead/typeahead.d.ts.map +1 -0
  156. package/dist/types/typeahead/typeahead.test.d.ts +2 -0
  157. package/dist/types/typeahead/typeahead.test.d.ts.map +1 -0
  158. package/dist/types/video/date.d.ts +50 -0
  159. package/dist/types/video/date.d.ts.map +1 -0
  160. package/dist/types/video/date.test.d.ts +2 -0
  161. package/dist/types/video/date.test.d.ts.map +1 -0
  162. package/dist/types/video/font.test.d.ts +2 -0
  163. package/dist/types/video/font.test.d.ts.map +1 -0
  164. package/dist/types/width/padding.d.ts +1026 -0
  165. package/dist/types/width/padding.d.ts.map +1 -0
  166. package/dist/types/width/padding.test.d.ts +2 -0
  167. package/dist/types/width/padding.test.d.ts.map +1 -0
  168. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../../src/padding copy/padding.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,cAAc,EACd,KAAK,EAEN,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,qBAAqB;;;;;;;;;EAGzB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB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AM,iBAAiB,CAC3B,EAAE,GAAG,yBAAyB,EAC9B,CAAC,SAAS,cAAc,GAAG,cAAc,IACvC,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AAE3D,MAAM,MAAM,iCAAiC,CAAC,CAAC,SAAS,iBAAiB,IACvE,CAAC,SAAS,iBAAiB,GACvB,SAAS,SAAS,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GACtD,qBAAqB,GAAG,SAAS,GACjC,cAAc,CACZ,CAAC,CAAC,SAAS,CAAC,CACb,CAAC,QAAQ,CAAC,SAAS,OAAO,2BAA2B,CAAC,SAAS,GAChE,MAAM,GACN,cAAc,CACZ,CAAC,CAAC,SAAS,CAAC,CACb,CAAC,QAAQ,CAAC,SAAS,OAAO,2BAA2B,CAAC,eAAe,GACtE,qBAAqB,GAAG,SAAS,GACjC,KAAK,GACP,KAAK,CAAA;AAEX;;;GAGG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,cAAc,EAC9C,OAAO,GAAE,CAAC,GAAG,cAAwB,GACpC,iBAAiB,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAEjD;yBAJe,OAAO;;;;;;AAQvB,wBAAgB,iDAAiD,CAC/D,IAAI,EAAE,yBAAyB,GAAG,SAAS,GAC1C,qBAAqB,GAAG,SAAS,CAOnC;AAED,wBAAgB,wDAAwD,CACtE,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,CAAC,EAAE,iBAAiB,GAC7B,yBAAyB,CAY3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=padding.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padding.test.d.ts","sourceRoot":"","sources":["../../../src/padding copy/padding.test.ts"],"names":[],"mappings":""}
@@ -4,9 +4,11 @@ export declare const Types: {
4
4
  readonly BorderRadius: "BorderRadius";
5
5
  readonly Checkbox: "Checkbox";
6
6
  readonly Date: "Date";
7
+ readonly ElementID: "ElementID";
7
8
  readonly Font: "Font";
8
9
  readonly GapX: "GapX";
9
10
  readonly GapY: "GapY";
11
+ readonly Grid: "Grid";
10
12
  readonly Link: "Link";
11
13
  readonly Margin: "Margin";
12
14
  readonly NavigationLinks: "NavigationLinks";
@@ -17,6 +19,7 @@ export declare const Types: {
17
19
  readonly ResponsiveLength: "ResponsiveLength";
18
20
  readonly TextArea: "TextArea";
19
21
  readonly Table: "Table";
22
+ readonly TableFormFields: "TableFormFields";
20
23
  readonly TextStyle: "TextStyle";
21
24
  readonly Width: "Width";
22
25
  readonly Video: "Video";
@@ -44,17 +47,66 @@ export type Color = {
44
47
  export type Data = undefined | null | boolean | number | string | Data[] | {
45
48
  [key: string]: Data;
46
49
  };
47
- export type ElementData = {
50
+ export declare const dataSchema: z.ZodType<Data>;
51
+ export declare const elementDataSchema: z.ZodObject<{
52
+ type: z.ZodString;
53
+ key: z.ZodString;
54
+ props: z.ZodRecord<z.ZodString, z.ZodType<Data, z.ZodTypeDef, Data>>;
55
+ }, "strip", z.ZodTypeAny, {
48
56
  type: string;
49
57
  key: string;
50
58
  props: Record<string, Data>;
51
- };
52
- type ElementReference = {
53
- type: 'reference';
59
+ }, {
60
+ type: string;
61
+ key: string;
62
+ props: Record<string, Data>;
63
+ }>;
64
+ export type ElementData = z.infer<typeof elementDataSchema>;
65
+ declare const elementReferenceSchema: z.ZodObject<{
66
+ type: z.ZodLiteral<"reference">;
67
+ key: z.ZodString;
68
+ value: z.ZodString;
69
+ }, "strip", z.ZodTypeAny, {
70
+ type: "reference";
71
+ value: string;
72
+ key: string;
73
+ }, {
74
+ type: "reference";
75
+ value: string;
76
+ key: string;
77
+ }>;
78
+ export type ElementReference = z.infer<typeof elementReferenceSchema>;
79
+ export declare const elementSchema: z.ZodUnion<[z.ZodObject<{
80
+ type: z.ZodString;
81
+ key: z.ZodString;
82
+ props: z.ZodRecord<z.ZodString, z.ZodType<Data, z.ZodTypeDef, Data>>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: string;
85
+ key: string;
86
+ props: Record<string, Data>;
87
+ }, {
88
+ type: string;
54
89
  key: string;
90
+ props: Record<string, Data>;
91
+ }>, z.ZodObject<{
92
+ type: z.ZodLiteral<"reference">;
93
+ key: z.ZodString;
94
+ value: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ type: "reference";
97
+ value: string;
98
+ key: string;
99
+ }, {
100
+ type: "reference";
55
101
  value: string;
102
+ key: string;
103
+ }>]>;
104
+ export type Element = z.infer<typeof elementSchema>;
105
+ export type TranslationDto = Record<string, Data>;
106
+ export type MergeTranslatableDataContext = {
107
+ translatedData: TranslationDto;
108
+ mergeTranslatedData: (node: Element) => Element;
56
109
  };
57
- type Element = ElementData | ElementReference;
58
110
  export type ReplacementContext = {
59
111
  elementHtmlIds: Set<string>;
60
112
  elementKeys: Map<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-controllers.d.ts","sourceRoot":"","sources":["../../src/prop-controllers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;CAqBR,CAAA;AAEV,eAAO,MAAM,kBAAkB,qBAAqB,CAAA;AAEpD,MAAM,MAAM,OAAO,CAAC,CAAC,IACjB,CAAC,GACD,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,CAAC,CAAA;AAE/D,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,OAAO,CACxE,MAAM,CAAC,CACR,GACG,CAAC,GACD,KAAK,CAAA;AAET,QAAA,MAAM,YAAY,aAAa,CAAA;AAE/B,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAA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AAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;CAC5C,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,WAAW,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAA;CACxC,CAAA"}
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ import { Options, Types } from '../prop-controllers';
3
+ declare const datePropControllerDataV0Schema: z.ZodString;
4
+ export type DatePropControllerDataV0 = z.infer<typeof datePropControllerDataV0Schema>;
5
+ export declare const DatePropControllerDataV1Type = "prop-controllers::date::v1";
6
+ declare const datePropControllerDataV1Schema: z.ZodObject<{
7
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::date::v1">;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ value: string;
11
+ "@@makeswift/type": "prop-controllers::date::v1";
12
+ }, {
13
+ value: string;
14
+ "@@makeswift/type": "prop-controllers::date::v1";
15
+ }>;
16
+ export type DatePropControllerDataV1 = z.infer<typeof datePropControllerDataV1Schema>;
17
+ export declare const datePropControllerDataSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
18
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::date::v1">;
19
+ value: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: string;
22
+ "@@makeswift/type": "prop-controllers::date::v1";
23
+ }, {
24
+ value: string;
25
+ "@@makeswift/type": "prop-controllers::date::v1";
26
+ }>]>;
27
+ export type DatePropControllerData = z.infer<typeof datePropControllerDataSchema>;
28
+ export type DateOptions = Options<{
29
+ preset?: DatePropControllerData;
30
+ }>;
31
+ type DateDescriptorV0<_T = DatePropControllerDataV0> = {
32
+ type: typeof Types.Date;
33
+ options: DateOptions;
34
+ };
35
+ type DateDescriptorV1<_T = DatePropControllerData, U extends DateOptions = DateOptions> = {
36
+ type: typeof Types.Date;
37
+ version: 1;
38
+ options: U;
39
+ };
40
+ export type DateDescriptor<_T = DatePropControllerData> = DateDescriptorV0 | DateDescriptorV1;
41
+ export type ResolveDatePropControllerValue<T extends DateDescriptor> = T extends DateDescriptor ? string | undefined : never;
42
+ /**
43
+ * @deprecated Imports from @makeswift/prop-controllers are deprecated. Use
44
+ * @makeswift/runtime/controls instead.
45
+ */
46
+ export declare function Date(options: DateOptions): DateDescriptorV1;
47
+ export declare function getDatePropControllerDataString(data: DatePropControllerData | undefined): string | undefined;
48
+ export declare function createDatePropControllerDataFromString(value: string, definition?: DateDescriptor): DatePropControllerData;
49
+ export {};
50
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/table/date.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAGxE,QAAA,MAAM,8BAA8B,aAAa,CAAA;AAEjD,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAA;AAED,eAAO,MAAM,4BAA4B,+BAA+B,CAAA;AAExE,QAAA,MAAM,8BAA8B;;;;;;;;;EAGlC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;IAGvC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,sBAAsB,CAAA;CAChC,CAAC,CAAA;AAEF,KAAK,gBAAgB,CAAC,EAAE,GAAG,wBAAwB,IAAI;IACrD,IAAI,EAAE,OAAO,KAAK,CAAC,IAAI,CAAA;IACvB,OAAO,EAAE,WAAW,CAAA;CACrB,CAAA;AAED,KAAK,gBAAgB,CACnB,EAAE,GAAG,sBAAsB,EAC3B,CAAC,SAAS,WAAW,GAAG,WAAW,IACjC;IACF,IAAI,EAAE,OAAO,KAAK,CAAC,IAAI,CAAA;IACvB,OAAO,EAAE,CAAC,CAAA;IACV,OAAO,EAAE,CAAC,CAAA;CACX,CAAA;AAED,MAAM,MAAM,cAAc,CAAC,EAAE,GAAG,sBAAsB,IAClD,gBAAgB,GAChB,gBAAgB,CAAA;AAEpB,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,cAAc,IACjE,CAAC,SAAS,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvD;;;GAGG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,gBAAgB,CAE3D;AAED,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,sBAAsB,GAAG,SAAS,GACvC,MAAM,GAAG,SAAS,CAOpB;AAED,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,cAAc,GAC1B,sBAAsB,CAYxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=date.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.test.d.ts","sourceRoot":"","sources":["../../../src/table/date.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './table';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table copy/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
@@ -0,0 +1,54 @@
1
+ import { z } from 'zod';
2
+ import { CopyContext, Options, Types } from '../prop-controllers';
3
+ declare const tableIdSchema: z.ZodString;
4
+ type TableId = z.infer<typeof tableIdSchema>;
5
+ declare const tablePropControllerDataV0Schema: z.ZodString;
6
+ export type TablePropControllerDataV0 = z.infer<typeof tablePropControllerDataV0Schema>;
7
+ export declare const TablePropControllerDataV1Type = "prop-controllers::table::v1";
8
+ declare const tablePropControllerDataV1Schema: z.ZodObject<{
9
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::table::v1">;
10
+ value: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ value: string;
13
+ "@@makeswift/type": "prop-controllers::table::v1";
14
+ }, {
15
+ value: string;
16
+ "@@makeswift/type": "prop-controllers::table::v1";
17
+ }>;
18
+ export type TablePropControllerDataV1 = z.infer<typeof tablePropControllerDataV1Schema>;
19
+ export declare const tablePropControllerDataSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
20
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::table::v1">;
21
+ value: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ value: string;
24
+ "@@makeswift/type": "prop-controllers::table::v1";
25
+ }, {
26
+ value: string;
27
+ "@@makeswift/type": "prop-controllers::table::v1";
28
+ }>]>;
29
+ export type TablePropControllerData = z.infer<typeof tablePropControllerDataSchema>;
30
+ export type TableOptions = Options<{
31
+ preset?: TablePropControllerData;
32
+ }>;
33
+ type TableDescriptorV0<_T = TablePropControllerDataV0> = {
34
+ type: typeof Types.Table;
35
+ options: TableOptions;
36
+ };
37
+ type TableDescriptorV1<_T = TablePropControllerData, U extends TableOptions = TableOptions> = {
38
+ type: typeof Types.Table;
39
+ version: 1;
40
+ options: U;
41
+ };
42
+ export type TableDescriptor<_T = TablePropControllerData> = TableDescriptorV0 | TableDescriptorV1;
43
+ export type ResolveTablePropControllerValue<T extends TableDescriptor> = T extends TableDescriptor ? TableId | undefined : never;
44
+ /**
45
+ * @deprecated Imports from @makeswift/prop-controllers are deprecated. Use
46
+ * @makeswift/runtime/controls instead.
47
+ */
48
+ export declare function Table(options?: TableOptions): TableDescriptorV1;
49
+ export declare function getTablePropControllerDataTableId(data: TablePropControllerData | undefined): TableId | undefined;
50
+ export declare function createTablePropControllerDataFromTableId(value: TableId, definition?: TableDescriptor): TablePropControllerData;
51
+ export declare function copyTablePropControllerData(data: TablePropControllerData | undefined, context: CopyContext): TablePropControllerData | undefined;
52
+ export declare function getTablePropControllerDataTableIds(data: TablePropControllerData | undefined): string[];
53
+ export {};
54
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/table copy/table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAEL,WAAW,EACX,OAAO,EACP,KAAK,EACN,MAAM,qBAAqB,CAAA;AAG5B,QAAA,MAAM,aAAa,aAAa,CAAA;AAEhC,KAAK,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAE5C,QAAA,MAAM,+BAA+B,aAAgB,CAAA;AAErD,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAA;AAED,eAAO,MAAM,6BAA6B,gCAAgC,CAAA;AAE1E,QAAA,MAAM,+BAA+B;;;;;;;;;EAGnC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAA;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;IAGxC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;IACjC,MAAM,CAAC,EAAE,uBAAuB,CAAA;CACjC,CAAC,CAAA;AAEF,KAAK,iBAAiB,CAAC,EAAE,GAAG,yBAAyB,IAAI;IACvD,IAAI,EAAE,OAAO,KAAK,CAAC,KAAK,CAAA;IACxB,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,KAAK,iBAAiB,CACpB,EAAE,GAAG,uBAAuB,EAC5B,CAAC,SAAS,YAAY,GAAG,YAAY,IACnC;IACF,IAAI,EAAE,OAAO,KAAK,CAAC,KAAK,CAAA;IACxB,OAAO,EAAE,CAAC,CAAA;IACV,OAAO,EAAE,CAAC,CAAA;CACX,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,EAAE,GAAG,uBAAuB,IACpD,iBAAiB,GACjB,iBAAiB,CAAA;AAErB,MAAM,MAAM,+BAA+B,CAAC,CAAC,SAAS,eAAe,IACnE,CAAC,SAAS,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEzD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,iBAAiB,CAEnE;AAED,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,uBAAuB,GAAG,SAAS,GACxC,OAAO,GAAG,SAAS,CAOrB;AAED,wBAAgB,wCAAwC,CACtD,KAAK,EAAE,OAAO,EACd,UAAU,CAAC,EAAE,eAAe,GAC3B,uBAAuB,CAYzB;AAQD,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,uBAAuB,GAAG,SAAS,EACzC,OAAO,EAAE,WAAW,GACnB,uBAAuB,GAAG,SAAS,CAYrC;AAED,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,uBAAuB,GAAG,SAAS,GACxC,MAAM,EAAE,CAIV"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=table.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.test.d.ts","sourceRoot":"","sources":["../../../src/table copy/table.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ import { Options, Types } from '../prop-controllers';
3
+ declare const datePropControllerDataV0Schema: z.ZodString;
4
+ export type DatePropControllerDataV0 = z.infer<typeof datePropControllerDataV0Schema>;
5
+ export declare const DatePropControllerDataV1Type = "prop-controllers::date::v1";
6
+ declare const datePropControllerDataV1Schema: z.ZodObject<{
7
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::date::v1">;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ value: string;
11
+ "@@makeswift/type": "prop-controllers::date::v1";
12
+ }, {
13
+ value: string;
14
+ "@@makeswift/type": "prop-controllers::date::v1";
15
+ }>;
16
+ export type DatePropControllerDataV1 = z.infer<typeof datePropControllerDataV1Schema>;
17
+ export declare const datePropControllerDataSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
18
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::date::v1">;
19
+ value: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: string;
22
+ "@@makeswift/type": "prop-controllers::date::v1";
23
+ }, {
24
+ value: string;
25
+ "@@makeswift/type": "prop-controllers::date::v1";
26
+ }>]>;
27
+ export type DatePropControllerData = z.infer<typeof datePropControllerDataSchema>;
28
+ export type DateOptions = Options<{
29
+ preset?: DatePropControllerData;
30
+ }>;
31
+ type DateDescriptorV0<_T = DatePropControllerDataV0> = {
32
+ type: typeof Types.Date;
33
+ options: DateOptions;
34
+ };
35
+ type DateDescriptorV1<_T = DatePropControllerData, U extends DateOptions = DateOptions> = {
36
+ type: typeof Types.Date;
37
+ version: 1;
38
+ options: U;
39
+ };
40
+ export type DateDescriptor<_T = DatePropControllerData> = DateDescriptorV0 | DateDescriptorV1;
41
+ export type ResolveDatePropControllerValue<T extends DateDescriptor> = T extends DateDescriptor ? string | undefined : never;
42
+ /**
43
+ * @deprecated Imports from @makeswift/prop-controllers are deprecated. Use
44
+ * @makeswift/runtime/controls instead.
45
+ */
46
+ export declare function Date(options?: DateOptions): DateDescriptorV1;
47
+ export declare function getDatePropControllerDataString(data: DatePropControllerData | undefined): string | undefined;
48
+ export declare function createDatePropControllerDataFromString(value: string, definition?: DateDescriptor): DatePropControllerData;
49
+ export {};
50
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
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AAM,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvD;;;GAGG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,gBAAgB,CAEhE;AAED,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,sBAAsB,GAAG,SAAS,GACvC,MAAM,GAAG,SAAS,CAOpB;AAED,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,cAAc,GAC1B,sBAAsB,CAYxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=date.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.test.d.ts","sourceRoot":"","sources":["../../../src/table-form-fields/date.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './table-form-fields';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table-form-fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}