@api-client/ui 0.6.1 → 0.6.3
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.
- package/build/src/elements/data-table/internals/DataCatalogTable.d.ts.map +1 -1
- package/build/src/elements/data-table/internals/DataCatalogTable.js +0 -2
- package/build/src/elements/data-table/internals/DataCatalogTable.js.map +1 -1
- package/build/src/elements/file-system/internals/QuickApiFilesystem.d.ts.map +1 -1
- package/build/src/elements/file-system/internals/QuickApiFilesystem.js +0 -2
- package/build/src/elements/file-system/internals/QuickApiFilesystem.js.map +1 -1
- package/build/src/modeling/domain-navigation.d.ts +1 -0
- package/build/src/modeling/domain-navigation.d.ts.map +1 -1
- package/build/src/modeling/domain-navigation.js.map +1 -1
- package/build/src/modeling/internals/ApiModelingActionsScreen.d.ts.map +1 -1
- package/build/src/modeling/internals/ApiModelingActionsScreen.js +1 -14
- package/build/src/modeling/internals/ApiModelingActionsScreen.js.map +1 -1
- package/build/src/modeling/internals/DomainBrowser.d.ts.map +1 -1
- package/build/src/modeling/internals/DomainBrowser.js +4 -1
- package/build/src/modeling/internals/DomainBrowser.js.map +1 -1
- package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.d.ts.map +1 -1
- package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.js +33 -0
- package/build/src/modeling/internals/styles/ApiModelingActionsScreen.styles.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/elements/data-table/internals/DataCatalogTable.ts +0 -2
- package/src/elements/file-system/internals/QuickApiFilesystem.ts +0 -2
- package/src/modeling/domain-navigation.ts +2 -0
- package/src/modeling/internals/ApiModelingActionsScreen.ts +1 -16
- package/src/modeling/internals/DomainBrowser.ts +4 -1
- package/src/modeling/internals/styles/ApiModelingActionsScreen.styles.ts +33 -0
- package/lit-plugin.log +0 -7904
package/package.json
CHANGED
|
@@ -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}"
|
|
@@ -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
|
},
|
|
@@ -332,7 +332,10 @@ export default class DomainBrowser extends ModelingElement {
|
|
|
332
332
|
}
|
|
333
333
|
this.setupAllowedSelection(state)
|
|
334
334
|
this.requestUpdate()
|
|
335
|
-
this.
|
|
335
|
+
if (this.hasAllowedSelection) {
|
|
336
|
+
// We only notify the selection if it is allowed.
|
|
337
|
+
this.notifySelected(state.selected)
|
|
338
|
+
}
|
|
336
339
|
}
|
|
337
340
|
|
|
338
341
|
notifySelected(selected: DomainBrowseSelectedItem | undefined): void {
|
|
@@ -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
|
`
|