@theseam/ui-common 1.0.0-beta.0 → 1.0.0-beta.2

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 (50) hide show
  1. package/fesm2022/theseam-ui-common-asset-reader.mjs +10 -10
  2. package/fesm2022/theseam-ui-common-breadcrumbs.mjs +6 -6
  3. package/fesm2022/theseam-ui-common-buttons.mjs +25 -25
  4. package/fesm2022/theseam-ui-common-card.mjs +16 -16
  5. package/fesm2022/theseam-ui-common-carousel.mjs +10 -10
  6. package/fesm2022/theseam-ui-common-checkbox.mjs +7 -7
  7. package/fesm2022/theseam-ui-common-confirm-dialog.mjs +13 -13
  8. package/fesm2022/theseam-ui-common-data-exporter.mjs +10 -10
  9. package/fesm2022/theseam-ui-common-data-filters.mjs +13 -13
  10. package/fesm2022/theseam-ui-common-datatable-alterations-display.mjs +12 -12
  11. package/fesm2022/theseam-ui-common-datatable-dynamic.mjs +25 -25
  12. package/fesm2022/theseam-ui-common-datatable.mjs +106 -106
  13. package/fesm2022/theseam-ui-common-dynamic-component-loader.mjs +7 -7
  14. package/fesm2022/theseam-ui-common-dynamic.mjs +21 -21
  15. package/fesm2022/theseam-ui-common-footer-bar.mjs +7 -7
  16. package/fesm2022/theseam-ui-common-form-field-error.mjs +16 -16
  17. package/fesm2022/theseam-ui-common-form-field.mjs +22 -22
  18. package/fesm2022/theseam-ui-common-framework.mjs +157 -157
  19. package/fesm2022/theseam-ui-common-google-maps.mjs +40 -40
  20. package/fesm2022/theseam-ui-common-graphql.mjs +66 -66
  21. package/fesm2022/theseam-ui-common-graphql.mjs.map +1 -1
  22. package/fesm2022/theseam-ui-common-icon.mjs +13 -13
  23. package/fesm2022/theseam-ui-common-layout.mjs +7 -7
  24. package/fesm2022/theseam-ui-common-loading.mjs +10 -10
  25. package/fesm2022/theseam-ui-common-menu.mjs +25 -25
  26. package/fesm2022/theseam-ui-common-modal.mjs +43 -43
  27. package/fesm2022/theseam-ui-common-navigation-reload.mjs +3 -3
  28. package/fesm2022/theseam-ui-common-popover.mjs +10 -10
  29. package/fesm2022/theseam-ui-common-progress.mjs +7 -7
  30. package/fesm2022/theseam-ui-common-rich-text.mjs +7 -7
  31. package/fesm2022/theseam-ui-common-scrollbar.mjs +6 -6
  32. package/fesm2022/theseam-ui-common-services.mjs +12 -12
  33. package/fesm2022/theseam-ui-common-shared.mjs +37 -37
  34. package/fesm2022/theseam-ui-common-storage.mjs +3 -3
  35. package/fesm2022/theseam-ui-common-story-helpers.mjs +26 -26
  36. package/fesm2022/theseam-ui-common-tabbed.mjs +22 -22
  37. package/fesm2022/theseam-ui-common-table-cell-type.mjs +10 -10
  38. package/fesm2022/theseam-ui-common-table-cell-types.mjs +31 -31
  39. package/fesm2022/theseam-ui-common-table.mjs +16 -16
  40. package/fesm2022/theseam-ui-common-tel-input.mjs +13 -13
  41. package/fesm2022/theseam-ui-common-tiled-select.mjs +22 -22
  42. package/fesm2022/theseam-ui-common-toggle-edit.mjs +16 -16
  43. package/fesm2022/theseam-ui-common-toggle-group.mjs +10 -10
  44. package/fesm2022/theseam-ui-common-tooltip.mjs +10 -10
  45. package/fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs +10 -10
  46. package/fesm2022/theseam-ui-common-vertical-list-filter.mjs +3 -3
  47. package/fesm2022/theseam-ui-common-viewers.mjs +12 -12
  48. package/fesm2022/theseam-ui-common-widget.mjs +135 -135
  49. package/graphql/index.d.ts +44 -2
  50. package/package.json +50 -50
@@ -24,6 +24,18 @@ declare function inlineVariable(query: DocumentNode$1, variableName: string, var
24
24
 
25
25
  declare function parseComments(ast: DocumentNode): Token[];
26
26
 
27
+ declare class GQLDirection {
28
+ readonly direction: string;
29
+ constructor(direction: string);
30
+ static readonly ASC: GQLDirection;
31
+ static readonly DESC: GQLDirection;
32
+ }
33
+
34
+ interface HintTransformOperation {
35
+ query: DocumentNode$1;
36
+ variables: Record<string, any>;
37
+ }
38
+
27
39
  declare enum HintsKind {
28
40
  OperationDefinition = "OperationDefinition",
29
41
  Field = "Field",
@@ -38,6 +50,15 @@ interface HintsToken {
38
50
  kind: HintsKind;
39
51
  }
40
52
 
53
+ type HintTransformer = (operation: HintTransformOperation, hintsToken: HintsToken) => HintTransformOperation;
54
+
55
+ interface HintDefinition {
56
+ readonly name: string;
57
+ readonly appliesTo: HintsKind[];
58
+ readonly transformer?: HintTransformer;
59
+ }
60
+
61
+ declare const DEFAULT_TO_REMOVE_ON_UNDEFINED: string[];
41
62
  interface QueryProcessingVariablesConfig {
42
63
  removeIfNotDefined?: string[];
43
64
  removeIfNotUsed?: string[];
@@ -51,6 +72,12 @@ interface QueryProcessingConfig {
51
72
  disablePaging?: boolean;
52
73
  }
53
74
 
75
+ declare class GQLVariable {
76
+ readonly name: string;
77
+ readonly type: string;
78
+ constructor(name: string, type: string);
79
+ }
80
+
54
81
  type GqlDatatableAccessor = Pick<DatatableComponent, 'page' | 'sort' | 'sorts' | 'filterStates'> & {
55
82
  ngxDatatable: {
56
83
  offset: number;
@@ -210,6 +237,21 @@ declare const mapSearchNumericColumnsDataFilterStateToGql: (filterState: Columns
210
237
 
211
238
  declare const mapSearchTextColumnsDataFilterStateToGql: (filterState: ColumnsDataFilterState<TheSeamColumnsDataFilterTextSearchFormState>, context: MapperContext<any>) => FilterStateMapperResult;
212
239
 
240
+ declare const inlineVariableTransformer: HintTransformer;
241
+
242
+ declare const removeNotDefinedTransformer: HintTransformer;
243
+
244
+ /**
245
+ * Maps variable value to gql and inlines it into the query.
246
+ */
247
+ declare const inlineVariableHintDef: HintDefinition;
248
+
249
+ /**
250
+ * Remove the variable from the query if it is not defined in the operation
251
+ * variables.
252
+ */
253
+ declare const removeNotDefinedHintDef: HintDefinition;
254
+
213
255
  declare const baseSchemaFragment: apollo_angular.TypedDocumentNode<unknown, unknown>;
214
256
 
215
257
  interface WhereItemDef {
@@ -332,5 +374,5 @@ interface SimpleGqlTestVariables extends SimpleGqlTestExtraVariables {
332
374
  where?: any;
333
375
  }
334
376
 
335
- export { DATATABLE_GRAPHQL_SERVICE_CONFIG, DEFAULT_PAGE_SIZE, DatatableGraphQLQueryRef, DatatableGraphqlService, HINT_NAMES_CAPTURE_REGEX, HINT_PREFIX_REGEX, MockDatatable, SIMPLE_GQL_TEST_QUERY, baseSchemaFragment, checkRecordsHaveValue, containsVariable, createApolloTestingProvider, createHintsToken, createSimpleGqlTestRecord, createSimpleGqlTestRoot, filterWhere, filteredResults, getHintsToken, getPageInfo, getTokenAppliesTo, gqlVar, hintNamesFromHintToken, hintsTokensContainingHint, inlineVariable, isCommentToken, isHintToken, isInlineComment, mapFilterStates, mapSearchDateColumnsDataFilterStateToGql, mapSearchNumericColumnsDataFilterStateToGql, mapSearchTextColumnsDataFilterStateToGql, observeRowsWithGqlInputsHandling, parseAst, parseComments, parseHints, removeVariable, removeVariableDefinition, removeVariableDefinitionsNotDefined, simpleGqlTestSchema, skipAndTake, toGQL };
336
- export type { DatatableGraphQLDataMapper, DatatableGraphQLDataMapperResult, DatatableGraphQLVariables, DatatableGraphqlServiceConfig, DatatableQueryOptions, FilterStateMapper, FilterStateMapperFilter, FilterStateMapperResult, FilterStateMapperVariables, FilterStateMappers, FilteredResults, FilteredResultsPageInfo, MapperContext, SimpleGqlTestExtraVariables, SimpleGqlTestRecord, SimpleGqlTestVariables, SortsMapper, SortsMapperResult, WhereArg };
377
+ export { DATATABLE_GRAPHQL_SERVICE_CONFIG, DEFAULT_PAGE_SIZE, DEFAULT_TO_REMOVE_ON_UNDEFINED, DatatableGraphQLQueryRef, DatatableGraphqlService, GQLDirection, GQLVariable, HINT_NAMES_CAPTURE_REGEX, HINT_PREFIX_REGEX, HintsKind, MockDatatable, SIMPLE_GQL_TEST_QUERY, baseSchemaFragment, checkRecordsHaveValue, containsVariable, createApolloTestingProvider, createHintsToken, createSimpleGqlTestRecord, createSimpleGqlTestRoot, filterWhere, filteredResults, getHintsToken, getPageInfo, getTokenAppliesTo, gqlVar, hintNamesFromHintToken, hintsTokensContainingHint, inlineVariable, inlineVariableHintDef, inlineVariableTransformer, isCommentToken, isHintToken, isInlineComment, mapFilterStates, mapSearchDateColumnsDataFilterStateToGql, mapSearchNumericColumnsDataFilterStateToGql, mapSearchTextColumnsDataFilterStateToGql, observeRowsWithGqlInputsHandling, parseAst, parseComments, parseHints, removeNotDefinedHintDef, removeNotDefinedTransformer, removeVariable, removeVariableDefinition, removeVariableDefinitionsNotDefined, simpleGqlTestSchema, skipAndTake, toGQL };
378
+ export type { DatatableGraphQLDataMapper, DatatableGraphQLDataMapperResult, DatatableGraphQLVariables, DatatableGraphqlServiceConfig, DatatableQueryOptions, EmptyObject, FilterStateMapper, FilterStateMapperFilter, FilterStateMapperResult, FilterStateMapperVariables, FilterStateMappers, FilteredResults, FilteredResultsPageInfo, GqlDatatableAccessor, HintDefinition, HintTransformOperation, HintTransformer, HintsToken, MapperContext, QueryProcessingConfig, QueryProcessingVariablesConfig, SimpleGqlTestExtraVariables, SimpleGqlTestRecord, SimpleGqlTestVariables, SortsMapper, SortsMapperResult, WhereArg };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theseam/ui-common",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.2",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^20.2.3",
6
6
  "@angular/common": "^20.3.0",
@@ -134,14 +134,14 @@
134
134
  "types": "./ai/index.d.ts",
135
135
  "default": "./fesm2022/theseam-ui-common-ai.mjs"
136
136
  },
137
- "./breadcrumbs": {
138
- "types": "./breadcrumbs/index.d.ts",
139
- "default": "./fesm2022/theseam-ui-common-breadcrumbs.mjs"
140
- },
141
137
  "./asset-reader": {
142
138
  "types": "./asset-reader/index.d.ts",
143
139
  "default": "./fesm2022/theseam-ui-common-asset-reader.mjs"
144
140
  },
141
+ "./breadcrumbs": {
142
+ "types": "./breadcrumbs/index.d.ts",
143
+ "default": "./fesm2022/theseam-ui-common-breadcrumbs.mjs"
144
+ },
145
145
  "./buttons": {
146
146
  "types": "./buttons/index.d.ts",
147
147
  "default": "./fesm2022/theseam-ui-common-buttons.mjs"
@@ -154,30 +154,30 @@
154
154
  "types": "./carousel/index.d.ts",
155
155
  "default": "./fesm2022/theseam-ui-common-carousel.mjs"
156
156
  },
157
- "./confirm-dialog": {
158
- "types": "./confirm-dialog/index.d.ts",
159
- "default": "./fesm2022/theseam-ui-common-confirm-dialog.mjs"
157
+ "./checkbox": {
158
+ "types": "./checkbox/index.d.ts",
159
+ "default": "./fesm2022/theseam-ui-common-checkbox.mjs"
160
160
  },
161
161
  "./core": {
162
162
  "types": "./core/index.d.ts",
163
163
  "default": "./fesm2022/theseam-ui-common-core.mjs"
164
164
  },
165
- "./checkbox": {
166
- "types": "./checkbox/index.d.ts",
167
- "default": "./fesm2022/theseam-ui-common-checkbox.mjs"
165
+ "./confirm-dialog": {
166
+ "types": "./confirm-dialog/index.d.ts",
167
+ "default": "./fesm2022/theseam-ui-common-confirm-dialog.mjs"
168
168
  },
169
169
  "./data-exporter": {
170
170
  "types": "./data-exporter/index.d.ts",
171
171
  "default": "./fesm2022/theseam-ui-common-data-exporter.mjs"
172
172
  },
173
- "./datatable": {
174
- "types": "./datatable/index.d.ts",
175
- "default": "./fesm2022/theseam-ui-common-datatable.mjs"
176
- },
177
173
  "./data-filters": {
178
174
  "types": "./data-filters/index.d.ts",
179
175
  "default": "./fesm2022/theseam-ui-common-data-filters.mjs"
180
176
  },
177
+ "./datatable": {
178
+ "types": "./datatable/index.d.ts",
179
+ "default": "./fesm2022/theseam-ui-common-datatable.mjs"
180
+ },
181
181
  "./datatable-alterations-display": {
182
182
  "types": "./datatable-alterations-display/index.d.ts",
183
183
  "default": "./fesm2022/theseam-ui-common-datatable-alterations-display.mjs"
@@ -190,6 +190,10 @@
190
190
  "types": "./dynamic/index.d.ts",
191
191
  "default": "./fesm2022/theseam-ui-common-dynamic.mjs"
192
192
  },
193
+ "./footer-bar": {
194
+ "types": "./footer-bar/index.d.ts",
195
+ "default": "./fesm2022/theseam-ui-common-footer-bar.mjs"
196
+ },
193
197
  "./dynamic-component-loader": {
194
198
  "types": "./dynamic-component-loader/index.d.ts",
195
199
  "default": "./fesm2022/theseam-ui-common-dynamic-component-loader.mjs"
@@ -202,10 +206,6 @@
202
206
  "types": "./form-field-error/index.d.ts",
203
207
  "default": "./fesm2022/theseam-ui-common-form-field-error.mjs"
204
208
  },
205
- "./footer-bar": {
206
- "types": "./footer-bar/index.d.ts",
207
- "default": "./fesm2022/theseam-ui-common-footer-bar.mjs"
208
- },
209
209
  "./framework": {
210
210
  "types": "./framework/index.d.ts",
211
211
  "default": "./fesm2022/theseam-ui-common-framework.mjs"
@@ -226,17 +226,13 @@
226
226
  "types": "./layout/index.d.ts",
227
227
  "default": "./fesm2022/theseam-ui-common-layout.mjs"
228
228
  },
229
- "./menu": {
230
- "types": "./menu/index.d.ts",
231
- "default": "./fesm2022/theseam-ui-common-menu.mjs"
232
- },
233
229
  "./loading": {
234
230
  "types": "./loading/index.d.ts",
235
231
  "default": "./fesm2022/theseam-ui-common-loading.mjs"
236
232
  },
237
- "./modal": {
238
- "types": "./modal/index.d.ts",
239
- "default": "./fesm2022/theseam-ui-common-modal.mjs"
233
+ "./menu": {
234
+ "types": "./menu/index.d.ts",
235
+ "default": "./fesm2022/theseam-ui-common-menu.mjs"
240
236
  },
241
237
  "./navigation-reload": {
242
238
  "types": "./navigation-reload/index.d.ts",
@@ -246,14 +242,22 @@
246
242
  "types": "./popover/index.d.ts",
247
243
  "default": "./fesm2022/theseam-ui-common-popover.mjs"
248
244
  },
249
- "./models": {
250
- "types": "./models/index.d.ts",
251
- "default": "./fesm2022/theseam-ui-common-models.mjs"
245
+ "./progress": {
246
+ "types": "./progress/index.d.ts",
247
+ "default": "./fesm2022/theseam-ui-common-progress.mjs"
248
+ },
249
+ "./modal": {
250
+ "types": "./modal/index.d.ts",
251
+ "default": "./fesm2022/theseam-ui-common-modal.mjs"
252
252
  },
253
253
  "./rich-text": {
254
254
  "types": "./rich-text/index.d.ts",
255
255
  "default": "./fesm2022/theseam-ui-common-rich-text.mjs"
256
256
  },
257
+ "./scrollbar": {
258
+ "types": "./scrollbar/index.d.ts",
259
+ "default": "./fesm2022/theseam-ui-common-scrollbar.mjs"
260
+ },
257
261
  "./services": {
258
262
  "types": "./services/index.d.ts",
259
263
  "default": "./fesm2022/theseam-ui-common-services.mjs"
@@ -262,10 +266,6 @@
262
266
  "types": "./shared/index.d.ts",
263
267
  "default": "./fesm2022/theseam-ui-common-shared.mjs"
264
268
  },
265
- "./scrollbar": {
266
- "types": "./scrollbar/index.d.ts",
267
- "default": "./fesm2022/theseam-ui-common-scrollbar.mjs"
268
- },
269
269
  "./storage": {
270
270
  "types": "./storage/index.d.ts",
271
271
  "default": "./fesm2022/theseam-ui-common-storage.mjs"
@@ -278,26 +278,26 @@
278
278
  "types": "./tabbed/index.d.ts",
279
279
  "default": "./fesm2022/theseam-ui-common-tabbed.mjs"
280
280
  },
281
- "./table-cell-type": {
282
- "types": "./table-cell-type/index.d.ts",
283
- "default": "./fesm2022/theseam-ui-common-table-cell-type.mjs"
284
- },
285
281
  "./table": {
286
282
  "types": "./table/index.d.ts",
287
283
  "default": "./fesm2022/theseam-ui-common-table.mjs"
288
284
  },
285
+ "./table-cell-type": {
286
+ "types": "./table-cell-type/index.d.ts",
287
+ "default": "./fesm2022/theseam-ui-common-table-cell-type.mjs"
288
+ },
289
289
  "./table-cell-types": {
290
290
  "types": "./table-cell-types/index.d.ts",
291
291
  "default": "./fesm2022/theseam-ui-common-table-cell-types.mjs"
292
292
  },
293
- "./tel-input": {
294
- "types": "./tel-input/index.d.ts",
295
- "default": "./fesm2022/theseam-ui-common-tel-input.mjs"
296
- },
297
293
  "./testing": {
298
294
  "types": "./testing/index.d.ts",
299
295
  "default": "./fesm2022/theseam-ui-common-testing.mjs"
300
296
  },
297
+ "./tel-input": {
298
+ "types": "./tel-input/index.d.ts",
299
+ "default": "./fesm2022/theseam-ui-common-tel-input.mjs"
300
+ },
301
301
  "./tiled-select": {
302
302
  "types": "./tiled-select/index.d.ts",
303
303
  "default": "./fesm2022/theseam-ui-common-tiled-select.mjs"
@@ -306,17 +306,17 @@
306
306
  "types": "./toggle-edit/index.d.ts",
307
307
  "default": "./fesm2022/theseam-ui-common-toggle-edit.mjs"
308
308
  },
309
- "./unsaved-changes-dialog": {
310
- "types": "./unsaved-changes-dialog/index.d.ts",
311
- "default": "./fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs"
309
+ "./tooltip": {
310
+ "types": "./tooltip/index.d.ts",
311
+ "default": "./fesm2022/theseam-ui-common-tooltip.mjs"
312
312
  },
313
313
  "./toggle-group": {
314
314
  "types": "./toggle-group/index.d.ts",
315
315
  "default": "./fesm2022/theseam-ui-common-toggle-group.mjs"
316
316
  },
317
- "./tooltip": {
318
- "types": "./tooltip/index.d.ts",
319
- "default": "./fesm2022/theseam-ui-common-tooltip.mjs"
317
+ "./unsaved-changes-dialog": {
318
+ "types": "./unsaved-changes-dialog/index.d.ts",
319
+ "default": "./fesm2022/theseam-ui-common-unsaved-changes-dialog.mjs"
320
320
  },
321
321
  "./utils": {
322
322
  "types": "./utils/index.d.ts",
@@ -338,9 +338,9 @@
338
338
  "types": "./widget/index.d.ts",
339
339
  "default": "./fesm2022/theseam-ui-common-widget.mjs"
340
340
  },
341
- "./progress": {
342
- "types": "./progress/index.d.ts",
343
- "default": "./fesm2022/theseam-ui-common-progress.mjs"
341
+ "./models": {
342
+ "types": "./models/index.d.ts",
343
+ "default": "./fesm2022/theseam-ui-common-models.mjs"
344
344
  }
345
345
  },
346
346
  "sideEffects": false