@api-client/ui 0.6.1 → 0.6.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 (23) hide show
  1. package/build/src/elements/data-table/internals/DataCatalogTable.d.ts.map +1 -1
  2. package/build/src/elements/data-table/internals/DataCatalogTable.js +0 -2
  3. package/build/src/elements/data-table/internals/DataCatalogTable.js.map +1 -1
  4. package/build/src/elements/file-system/internals/QuickApiFilesystem.d.ts.map +1 -1
  5. package/build/src/elements/file-system/internals/QuickApiFilesystem.js +0 -2
  6. package/build/src/elements/file-system/internals/QuickApiFilesystem.js.map +1 -1
  7. package/build/src/modeling/domain-navigation.d.ts +1 -0
  8. package/build/src/modeling/domain-navigation.d.ts.map +1 -1
  9. package/build/src/modeling/domain-navigation.js.map +1 -1
  10. package/build/src/modeling/internals/ApiModelingActionsScreen.d.ts.map +1 -1
  11. package/build/src/modeling/internals/ApiModelingActionsScreen.js +1 -14
  12. package/build/src/modeling/internals/ApiModelingActionsScreen.js.map +1 -1
  13. package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.d.ts.map +1 -1
  14. package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.js +33 -0
  15. package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.js.map +1 -1
  16. package/build/tsconfig.tsbuildinfo +1 -1
  17. package/package.json +1 -1
  18. package/src/elements/data-table/internals/DataCatalogTable.ts +0 -2
  19. package/src/elements/file-system/internals/QuickApiFilesystem.ts +0 -2
  20. package/src/modeling/domain-navigation.ts +2 -0
  21. package/src/modeling/internals/ApiModelingActionsScreen.ts +1 -16
  22. package/src/modeling/internals/styles/ApiModelingActionsScreen.styles.ts +33 -0
  23. package/lit-plugin.log +0 -7904
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@api-client/ui",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Internal UI component library for the API Client ecosystem.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "build/src/index.js",
@@ -109,8 +109,6 @@ export default class DataCatalogTable extends DataTable<DataCatalogSchemaWithVer
109
109
  }
110
110
  this.dispatchEvent(
111
111
  new CustomEvent('select', {
112
- bubbles: true,
113
- composed: true,
114
112
  detail,
115
113
  })
116
114
  )
@@ -340,8 +340,6 @@ export default class QuickApiFilesystem extends LitElement {
340
340
  .items="${files}"
341
341
  selection="multi"
342
342
  active
343
- sort="name"
344
- sortDirection="desc"
345
343
  ariaLabel="${ariaLabel}"
346
344
  .selectedItems="${selectedItems}"
347
345
  @activate="${this.itemActivateHandler}"
@@ -19,3 +19,5 @@ declare global {
19
19
  'domain-navigation': DomainNavigationElement
20
20
  }
21
21
  }
22
+
23
+ export type { DomainDragDropEventDetail, DomainMultiSelectionEventDetail } from './internals/DomainNavigation.js'
@@ -71,13 +71,7 @@ export default class ApiModelingActionsScreen extends ApiModelingScreen {
71
71
  * It dispatches the `exposeentity` event to notify the parent component that the user wants to expose an entity.
72
72
  */
73
73
  protected handleAddDataClick(): void {
74
- this.dispatchEvent(
75
- new Event('exposed-new', {
76
- bubbles: true,
77
- cancelable: true,
78
- composed: true,
79
- })
80
- )
74
+ this.dispatchEvent(new Event('exposed-new'))
81
75
  }
82
76
 
83
77
  /**
@@ -93,9 +87,6 @@ export default class ApiModelingActionsScreen extends ApiModelingScreen {
93
87
  }
94
88
  this.dispatchEvent(
95
89
  new CustomEvent<EditExposedEntityEventDetail>('exposed-remove', {
96
- bubbles: true,
97
- cancelable: true,
98
- composed: true,
99
90
  detail: {
100
91
  exposedId: id,
101
92
  },
@@ -116,9 +107,6 @@ export default class ApiModelingActionsScreen extends ApiModelingScreen {
116
107
  }
117
108
  this.dispatchEvent(
118
109
  new CustomEvent<EditActionEventDetail>('action-edit', {
119
- bubbles: true,
120
- cancelable: true,
121
- composed: true,
122
110
  detail: {
123
111
  exposedId: id,
124
112
  kind: e.detail.kind,
@@ -135,9 +123,6 @@ export default class ApiModelingActionsScreen extends ApiModelingScreen {
135
123
  }
136
124
  this.dispatchEvent(
137
125
  new CustomEvent<EditExposedEntityEventDetail>('exposed-edit', {
138
- bubbles: true,
139
- cancelable: true,
140
- composed: true,
141
126
  detail: {
142
127
  exposedId: id,
143
128
  },
@@ -28,4 +28,37 @@ export default css`
28
28
  align-items: center;
29
29
  gap: 8px;
30
30
  }
31
+
32
+ .empty-screen {
33
+ display: flex;
34
+ flex-direction: column;
35
+ flex: 1;
36
+ justify-content: center;
37
+ align-items: center;
38
+ align-self: stretch;
39
+ gap: 20px;
40
+ border-radius: var(--md-sys-shape-corner-medium, 12px);
41
+ background: var(--md-sys-color-surface);
42
+
43
+ & .empty-message {
44
+ margin: 0;
45
+ padding: 0;
46
+ color: var(--md-sys-color-on-surface);
47
+ }
48
+
49
+ & > .icon-wrapper {
50
+ display: flex;
51
+ padding: 40px;
52
+ justify-content: center;
53
+ align-items: center;
54
+ border-radius: 60px;
55
+ background: var(--md-sys-color-primary);
56
+ }
57
+
58
+ & .icon {
59
+ width: 40px;
60
+ height: 40px;
61
+ fill: var(--md-sys-color-on-primary);
62
+ }
63
+ }
31
64
  `