@smartbit4all/ng-client 3.3.204 → 3.3.206

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 (94) hide show
  1. package/esm2020/lib/session/api/configuration.mjs +1 -1
  2. package/esm2020/lib/session/api/model/sessionInfoData.mjs +1 -1
  3. package/esm2020/lib/smart-component-layout/api/api/api.mjs +1 -1
  4. package/esm2020/lib/smart-component-layout/api/api/default.service.mjs +1 -1
  5. package/esm2020/lib/smart-component-layout/api/api.module.mjs +1 -1
  6. package/esm2020/lib/smart-component-layout/api/configuration.mjs +1 -1
  7. package/esm2020/lib/smart-component-layout/api/encoder.mjs +1 -1
  8. package/esm2020/lib/smart-component-layout/api/index.mjs +1 -1
  9. package/esm2020/lib/smart-component-layout/api/model/componentType.mjs +1 -1
  10. package/esm2020/lib/smart-component-layout/api/model/componentWidgetType.mjs +1 -1
  11. package/esm2020/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
  12. package/esm2020/lib/smart-component-layout/api/model/models.mjs +1 -1
  13. package/esm2020/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
  14. package/esm2020/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
  15. package/esm2020/lib/smart-component-layout/api/param.mjs +1 -1
  16. package/esm2020/lib/smart-component-layout/api/variables.mjs +1 -1
  17. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.mjs +1 -1
  18. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderField.mjs +1 -1
  19. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.mjs +1 -1
  20. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.mjs +1 -1
  21. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionData.mjs +1 -1
  22. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionDataType.mjs +1 -1
  23. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldList.mjs +1 -1
  24. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.mjs +1 -1
  25. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionList.mjs +1 -1
  26. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperandData.mjs +1 -1
  27. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperation.mjs +1 -1
  28. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOrderBy.mjs +1 -1
  29. package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +1 -1
  30. package/esm2020/lib/smart-filter-editor/api/configuration.mjs +1 -1
  31. package/esm2020/lib/smart-filter-editor/api/encoder.mjs +1 -1
  32. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +1 -1
  33. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderApiConfig.mjs +1 -1
  34. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +1 -1
  35. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +1 -1
  36. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderModel.mjs +1 -1
  37. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +1 -1
  38. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +1 -1
  39. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +1 -1
  40. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +1 -1
  41. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +1 -1
  42. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +1 -1
  43. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +1 -1
  44. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
  45. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +1 -1
  46. package/esm2020/lib/smart-filter-editor/api/model/smartFilterType.mjs +1 -1
  47. package/esm2020/lib/smart-filter-editor/api/param.mjs +1 -1
  48. package/esm2020/lib/smart-filter-editor/api/variables.mjs +1 -1
  49. package/esm2020/lib/smart-form/api/model/smartMatrixModel.mjs +1 -1
  50. package/esm2020/lib/smart-form/services/smartform.layout-definition.service.mjs +41 -1
  51. package/esm2020/lib/smart-tree/tree-api/api/tree.service.mjs +1 -1
  52. package/esm2020/lib/smart-tree/tree-api/configuration.mjs +1 -1
  53. package/esm2020/lib/smart-tree/tree-api/encoder.mjs +1 -1
  54. package/esm2020/lib/smart-tree/tree-api/param.mjs +1 -1
  55. package/esm2020/lib/smart-tree/tree-api/variables.mjs +1 -1
  56. package/esm2020/lib/view-context/api/model/clipboardData.mjs +13 -0
  57. package/esm2020/lib/view-context/api/model/models.mjs +3 -1
  58. package/esm2020/lib/view-context/api/model/view.mjs +1 -1
  59. package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
  60. package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
  61. package/esm2020/lib/view-context/api/model/viewPlaceholder.mjs +13 -0
  62. package/esm2020/lib/view-context/smart-view-context.service.mjs +18 -1
  63. package/esm2020/lib/view-context/value-api/api/api.mjs +1 -1
  64. package/esm2020/lib/view-context/value-api/api/value.service.mjs +1 -1
  65. package/esm2020/lib/view-context/value-api/api.module.mjs +1 -1
  66. package/esm2020/lib/view-context/value-api/configuration.mjs +1 -1
  67. package/esm2020/lib/view-context/value-api/encoder.mjs +1 -1
  68. package/esm2020/lib/view-context/value-api/index.mjs +1 -1
  69. package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
  70. package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
  71. package/esm2020/lib/view-context/value-api/model/value.mjs +1 -1
  72. package/esm2020/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
  73. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
  74. package/esm2020/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
  75. package/esm2020/lib/view-context/value-api/param.mjs +1 -1
  76. package/esm2020/lib/view-context/value-api/variables.mjs +1 -1
  77. package/fesm2015/smartbit4all-ng-client.mjs +56 -1
  78. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  79. package/fesm2020/smartbit4all-ng-client.mjs +81 -0
  80. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  81. package/lib/smart-form/services/smartform.layout-definition.service.d.ts +3 -0
  82. package/lib/view-context/api/model/clipboardData.d.ts +20 -0
  83. package/lib/view-context/api/model/models.d.ts +2 -0
  84. package/lib/view-context/api/model/view.d.ts +2 -1
  85. package/lib/view-context/api/model/viewContext.d.ts +2 -0
  86. package/lib/view-context/api/model/viewContextData.d.ts +2 -0
  87. package/lib/view-context/api/model/viewPlaceholder.d.ts +21 -0
  88. package/package.json +1 -1
  89. package/smartbit4all-ng-client-3.3.206.tgz +0 -0
  90. package/src/lib/smart-component-layout/api/README.md +226 -226
  91. package/src/lib/smart-filter-editor/api/README.md +226 -226
  92. package/src/lib/smart-tree/tree-api/README.md +226 -226
  93. package/src/lib/view-context/value-api/README.md +226 -226
  94. package/smartbit4all-ng-client-3.3.204.tgz +0 -0
@@ -2028,6 +2028,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
2028
2028
 
2029
2029
  const APIS$3 = [ViewService];
2030
2030
 
2031
+ /**
2032
+ * View API
2033
+ * View API
2034
+ *
2035
+ * The version of the OpenAPI document: 1.0.0
2036
+ * Contact: info@it4all.hu
2037
+ *
2038
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2039
+ * https://openapi-generator.tech
2040
+ * Do not edit the class manually.
2041
+ */
2042
+
2031
2043
  /**
2032
2044
  * View API
2033
2045
  * View API
@@ -2421,6 +2433,18 @@ var ViewEventHandlerViewEventTypeEnum;
2421
2433
  ViewEventHandlerViewEventTypeEnum["AFTER"] = "after";
2422
2434
  })(ViewEventHandlerViewEventTypeEnum || (ViewEventHandlerViewEventTypeEnum = {}));
2423
2435
 
2436
+ /**
2437
+ * View API
2438
+ * View API
2439
+ *
2440
+ * The version of the OpenAPI document: 1.0.0
2441
+ * Contact: info@it4all.hu
2442
+ *
2443
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2444
+ * https://openapi-generator.tech
2445
+ * Do not edit the class manually.
2446
+ */
2447
+
2424
2448
  /**
2425
2449
  * View API
2426
2450
  * View API
@@ -3041,6 +3065,23 @@ class SmartViewContextService {
3041
3065
  console.error(e);
3042
3066
  }
3043
3067
  });
3068
+ const clipboardText = this.viewContext?.clipboardData
3069
+ ?.map((cd) => cd.text || '')
3070
+ .join('');
3071
+ if (clipboardText) {
3072
+ const clipboard = navigator.clipboard;
3073
+ // available only in secure contexts.
3074
+ if (clipboard) {
3075
+ try {
3076
+ clipboard
3077
+ .writeText(clipboardText)
3078
+ .catch((e) => console.error('Failed to copy text to clipboard', e));
3079
+ }
3080
+ catch (e) {
3081
+ console.error('Error accessing clipboard', e);
3082
+ }
3083
+ }
3084
+ }
3044
3085
  this.viewContextHasBeenSynced.next();
3045
3086
  }
3046
3087
  setViewContextUuid(uuid) {
@@ -8165,6 +8206,8 @@ class SmartformLayoutDefinitionService {
8165
8206
  return this.createSortable(config.layoutDefinition);
8166
8207
  case SmartFormWidgetType.MONTH_PICKER:
8167
8208
  return this.createMonthPicker(config.layoutDefinition);
8209
+ case SmartFormWidgetType.YOUTUBE_PLAYER:
8210
+ return this.createYoutubePlayer(config.layoutDefinition);
8168
8211
  }
8169
8212
  return;
8170
8213
  }
@@ -8577,6 +8620,44 @@ class SmartformLayoutDefinitionService {
8577
8620
  };
8578
8621
  return widget;
8579
8622
  }
8623
+ createYoutubePlayer(layoutDefinition) {
8624
+ const { link, startSeconds, endSeconds } = this.extractYoutubePlayerProps(layoutDefinition);
8625
+ return {
8626
+ type: SmartFormWidgetType.YOUTUBE_PLAYER,
8627
+ key: layoutDefinition.key,
8628
+ label: layoutDefinition.label,
8629
+ hint: layoutDefinition.hint,
8630
+ valueChangeMode: layoutDefinition.valueChangeMode,
8631
+ showLabel: layoutDefinition.showLabel,
8632
+ cssClass: layoutDefinition.cssClass,
8633
+ cssLabelClass: layoutDefinition.cssLabelClass,
8634
+ style: layoutDefinition.style,
8635
+ labelStyle: layoutDefinition.labelStyle,
8636
+ link,
8637
+ startSeconds,
8638
+ endSeconds,
8639
+ };
8640
+ }
8641
+ extractYoutubePlayerProps(layoutDefinition) {
8642
+ const props = layoutDefinition.properties;
8643
+ if (!props) {
8644
+ this.logMissingProperty(layoutDefinition, 'properties');
8645
+ return { link: '', startSeconds: 0 };
8646
+ }
8647
+ const link = (props['link'] ? props['link'] : '');
8648
+ if (!link || link.length < 1) {
8649
+ this.logMissingProperty(layoutDefinition, 'link');
8650
+ }
8651
+ const startSeconds = (props['startSeconds'] ? props['startSeconds'] : 0);
8652
+ let endSeconds = undefined;
8653
+ if (props['endSeconds']) {
8654
+ endSeconds = props['endSeconds'];
8655
+ }
8656
+ return { link, startSeconds, endSeconds };
8657
+ }
8658
+ logMissingProperty(layoutDefinition, prop) {
8659
+ console.error(`Property <${prop}> missing from layout definition: ${JSON.stringify(layoutDefinition)}`);
8660
+ }
8580
8661
  }
8581
8662
  SmartformLayoutDefinitionService.DEFAULT_QUILL_MODULES = {
8582
8663
  toolbar: {