@rws-framework/client 2.17.1 → 2.17.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.
- package/package.json +1 -1
- package/src/components/index.ts +9 -5
- package/src/components/{loader → rws/loader}/component.ts +2 -2
- package/src/components/{progress → rws/progress}/component.ts +2 -2
- package/src/components/{reformer → rws/reformer}/component.ts +3 -3
- package/src/components/{reformer → rws/reformer}/fields/_field.ts +2 -2
- package/src/components/{reformer → rws/reformer}/fields/text/component.ts +1 -1
- package/src/components/rws/rws-api-resource/component.ts +55 -0
- package/src/components/rws/rws-api-resource/template.html +13 -0
- package/src/components/rws/rws-api-resource/variants/form/component.ts +11 -0
- package/src/components/rws/rws-api-resource/variants/list/component.ts +11 -0
- package/src/components/rws/rws-modal/component.ts +15 -0
- package/src/components/rws/rws-modal/styles/layout.scss +47 -0
- package/src/components/rws/rws-modal/template.html +11 -0
- package/src/components/rws/rws-table/component.ts +85 -0
- package/src/components/rws/rws-table/styles/layout.scss +73 -0
- package/src/components/rws/rws-table/template.html +27 -0
- package/src/components/{uploader → rws/uploader}/component.ts +2 -2
- package/src/components/rws-api-resource/component.ts +0 -20
- package/src/components/rws-api-resource/template.html +0 -3
- package/src/components/rws-api-resource/variants/form/component.ts +0 -11
- package/src/components/rws-api-resource/variants/list/component.ts +0 -11
- /package/src/components/{loader → rws/loader}/styles/layout.scss +0 -0
- /package/src/components/{loader → rws/loader}/template.html +0 -0
- /package/src/components/{progress → rws/progress}/styles/layout.scss +0 -0
- /package/src/components/{progress → rws/progress}/template.html +0 -0
- /package/src/components/{reformer → rws/reformer}/fields/text/styles/layout.scss +0 -0
- /package/src/components/{reformer → rws/reformer}/fields/text/template.html +0 -0
- /package/src/components/{reformer → rws/reformer}/styles/layout.scss +0 -0
- /package/src/components/{reformer → rws/reformer}/template.html +0 -0
- /package/src/components/{rws-api-resource → rws/rws-api-resource}/styles/layout.scss +0 -0
- /package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/form/styles/layout.scss +0 -0
- /package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/form/template.html +0 -0
- /package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/list/styles/layout.scss +0 -0
- /package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/list/template.html +0 -0
- /package/src/components/{uploader → rws/uploader}/styles/layout.scss +0 -0
- /package/src/components/{uploader → rws/uploader}/template.html +0 -0
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { RWSUploader } from './uploader/component';
|
|
2
|
-
import { RWSProgress } from './progress/component';
|
|
3
|
-
import { RWSLoader } from './loader/component';
|
|
4
|
-
import { RWSApiResource } from './rws-api-resource/component';
|
|
5
|
-
import { ReFormer } from './reformer/component';
|
|
1
|
+
import { RWSUploader } from './rws/uploader/component';
|
|
2
|
+
import { RWSProgress } from './rws/progress/component';
|
|
3
|
+
import { RWSLoader } from './rws/loader/component';
|
|
4
|
+
import { RWSApiResource } from './rws/rws-api-resource/component';
|
|
5
|
+
import { ReFormer } from './rws/reformer/component';
|
|
6
|
+
import { RWSTable } from './rws/rws-table/component';
|
|
7
|
+
import { RWSModal } from './rws/rws-modal/component';
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
function declareRWSComponents(parted: boolean = false): void
|
|
@@ -11,6 +13,8 @@ function declareRWSComponents(parted: boolean = false): void
|
|
|
11
13
|
RWSUploader;
|
|
12
14
|
RWSProgress;
|
|
13
15
|
RWSLoader;
|
|
16
|
+
RWSTable;
|
|
17
|
+
RWSModal;
|
|
14
18
|
|
|
15
19
|
RWSApiResource;
|
|
16
20
|
ReFormer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { observable, attr, nullableNumberConverter } from '@microsoft/fast-element';
|
|
2
|
-
import { RWSView } from '
|
|
3
|
-
import { RWSViewComponent } from '
|
|
2
|
+
import { RWSView } from '../../_decorator';
|
|
3
|
+
import { RWSViewComponent } from '../../_component';
|
|
4
4
|
|
|
5
5
|
@RWSView('rws-progress', { debugPackaging: false })
|
|
6
6
|
class RWSProgress extends RWSViewComponent {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { observable, attr } from '@microsoft/fast-element';
|
|
2
|
-
import { IKDBTypesResponse } from '
|
|
3
|
-
import { RWSViewComponent} from '
|
|
4
|
-
import { RWSView} from '
|
|
2
|
+
import { IKDBTypesResponse } from '../../../types/IBackendCore';
|
|
3
|
+
import { RWSViewComponent} from '../../_component';
|
|
4
|
+
import { RWSView} from '../../_decorator';
|
|
5
5
|
import { ReFormerText } from './fields/text/component';
|
|
6
6
|
|
|
7
7
|
ReFormerText;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { observable, attr } from "@microsoft/fast-element";
|
|
2
|
-
import RWSViewComponent from "
|
|
3
|
-
import { IReFormerField } from "
|
|
2
|
+
import RWSViewComponent from "../../../_component";
|
|
3
|
+
import { IReFormerField } from "../../../../types/IReFormerField";
|
|
4
4
|
|
|
5
5
|
export abstract class ReFormerFieldComponent extends RWSViewComponent implements IReFormerField {
|
|
6
6
|
@attr name: string;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IKDBTypeInfo, IKDBTypesResponse } from '../../../types/IBackendCore';
|
|
2
|
+
import { observable, attr } from '@microsoft/fast-element';
|
|
3
|
+
import { RWSView } from '../../_decorator';
|
|
4
|
+
import { RWSViewComponent } from '../../_component';
|
|
5
|
+
import { RWSResourceListComponent } from './variants/list/component';
|
|
6
|
+
import { RWSResourceFormComponent } from './variants/form/component';
|
|
7
|
+
import { IRWSResourceQuery } from '../../../types/IRWSResource';
|
|
8
|
+
import { ActionType, IExtraColumnFormatter, IFlexTableColumn } from '../rws-table/component';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
RWSResourceListComponent;
|
|
12
|
+
RWSResourceFormComponent;
|
|
13
|
+
|
|
14
|
+
@RWSView('rws-resource')
|
|
15
|
+
class RWSApiResource extends RWSViewComponent {
|
|
16
|
+
@attr resource: string;
|
|
17
|
+
@attr resourceLabel: string = null;
|
|
18
|
+
|
|
19
|
+
@attr emptyLabel: string = 'No records';
|
|
20
|
+
|
|
21
|
+
@observable dbModelData: IKDBTypesResponse = null;
|
|
22
|
+
@observable resourceList: any[] = [];
|
|
23
|
+
@observable columns: IFlexTableColumn[] = [];
|
|
24
|
+
|
|
25
|
+
@observable fields: string[] = [];
|
|
26
|
+
@observable extraFormatters: {[header_key: string] : IExtraColumnFormatter} = {};
|
|
27
|
+
@observable headerTranslations: {[header_key: string] : string} = {};
|
|
28
|
+
|
|
29
|
+
@observable actions: ActionType[] = [];
|
|
30
|
+
|
|
31
|
+
async connectedCallback(): Promise<void>
|
|
32
|
+
{
|
|
33
|
+
super.connectedCallback();
|
|
34
|
+
|
|
35
|
+
this.dbModelData = await this.apiService.getResource(this.resource);
|
|
36
|
+
this.resourceList = await this.apiService.back.get(`${this.resource}:list`);
|
|
37
|
+
|
|
38
|
+
const makeColumns: IFlexTableColumn[] = [];
|
|
39
|
+
|
|
40
|
+
for(const key in Object.keys(this.dbModelData.data.types)){
|
|
41
|
+
const responseObject: IKDBTypeInfo = this.dbModelData.data.types[key];
|
|
42
|
+
|
|
43
|
+
makeColumns.push({
|
|
44
|
+
key: responseObject.fieldName,
|
|
45
|
+
header: responseObject.fieldName,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
this.columns = makeColumns;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
RWSApiResource.defineComponent();
|
|
54
|
+
|
|
55
|
+
export { RWSApiResource };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div class="rws-api-container">
|
|
2
|
+
${T.when(x => x.resourceLabel, T.html`<h3>${x => x.resourceLabel}</h3>`)}
|
|
3
|
+
${x => console.log(x.columns)}
|
|
4
|
+
${T.when(x => x.columns.length, T.html`<rws-table
|
|
5
|
+
emptyLabel="${x => x.emptyLabel}"
|
|
6
|
+
:columns="${x => x.columns}"
|
|
7
|
+
:data="${x => x.resourceList}"
|
|
8
|
+
:fields="${x => x.fields}"
|
|
9
|
+
:actions="${x => x.actions}"
|
|
10
|
+
:extraFormatters="${x => x.extraFormatters}"
|
|
11
|
+
:headerTranslations="${x => x.headerTranslations}">
|
|
12
|
+
</rws-table>`)}
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RWSViewComponent} from '../../../../_component';
|
|
2
|
+
import { RWSView} from '../../../../_decorator';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@RWSView('rws-resource-form')
|
|
6
|
+
class RWSResourceFormComponent extends RWSViewComponent {
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
RWSResourceFormComponent.defineComponent();
|
|
10
|
+
|
|
11
|
+
export { RWSResourceFormComponent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RWSViewComponent} from '../../../../_component';
|
|
2
|
+
import { RWSView} from '../../../../_decorator';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@RWSView('rws-resource-list')
|
|
6
|
+
class RWSResourceListComponent extends RWSViewComponent {
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
RWSResourceListComponent.defineComponent();
|
|
10
|
+
|
|
11
|
+
export { RWSResourceListComponent };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { observable } from '@microsoft/fast-element';
|
|
2
|
+
import { RWSViewComponent} from '../../_component';
|
|
3
|
+
import { RWSView} from '../../_decorator';
|
|
4
|
+
|
|
5
|
+
@RWSView('rws-modal')
|
|
6
|
+
class RWSModal extends RWSViewComponent {
|
|
7
|
+
@observable closeModal: () => void
|
|
8
|
+
connectedCallback(): void {
|
|
9
|
+
super.connectedCallback();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
RWSModal.defineComponent();
|
|
14
|
+
|
|
15
|
+
export { RWSModal };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import "@rws-mixins";
|
|
2
|
+
|
|
3
|
+
.backdrop {
|
|
4
|
+
position: fixed;
|
|
5
|
+
width: 100vw;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
background-color: rgba(0,0,0,0.8);
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
z-index: 1001;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.rws-modal {
|
|
15
|
+
position: fixed;
|
|
16
|
+
width: 100vw;
|
|
17
|
+
height: 100vh;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
z-index: 1000;
|
|
21
|
+
|
|
22
|
+
.rws-modal-wrapper{
|
|
23
|
+
background: #FFF;
|
|
24
|
+
border-radius: 20px;
|
|
25
|
+
padding: 20px;
|
|
26
|
+
max-width: 70vw;
|
|
27
|
+
max-height: 80vh;
|
|
28
|
+
min-height: 40vh;
|
|
29
|
+
transform: translate(50%, 50%);
|
|
30
|
+
left: -15%;
|
|
31
|
+
margin-left: 30px;
|
|
32
|
+
color: #000;
|
|
33
|
+
position: relative;
|
|
34
|
+
z-index: 1002;
|
|
35
|
+
overflow-y: auto;
|
|
36
|
+
|
|
37
|
+
@include customScrollbars();
|
|
38
|
+
|
|
39
|
+
.rws-modal-header{
|
|
40
|
+
display: flex;
|
|
41
|
+
|
|
42
|
+
justify-content: end;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.rws-modal-body{}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<div class="rws-modal">
|
|
2
|
+
<div @click="${ (x, c) => x.closeModal() }" class="backdrop"></div>
|
|
3
|
+
<div class="rws-modal-wrapper">
|
|
4
|
+
<div class="rws-modal-header">
|
|
5
|
+
<sl-button @click="${ (x, c) => x.closeModal() }" variant="secondary" >Close</sl-button>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="rws-modal-body">
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { observable, attr } from '@microsoft/fast-element';
|
|
2
|
+
import { RWSViewComponent} from '../../_component';
|
|
3
|
+
import { RWSView} from '../../_decorator';
|
|
4
|
+
|
|
5
|
+
export interface IFlexTableColumn {
|
|
6
|
+
key: string;
|
|
7
|
+
header: string;
|
|
8
|
+
formatter?: (value: any) => string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type IExtraColumnFormatter<T = unknown> = (inputType: T) => string;
|
|
12
|
+
|
|
13
|
+
export type ActionType = {
|
|
14
|
+
key: string,
|
|
15
|
+
label: string,
|
|
16
|
+
variant: string,
|
|
17
|
+
handler: (id: string) => Promise<void>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@RWSView('rws-table')
|
|
21
|
+
class RWSTable extends RWSViewComponent {
|
|
22
|
+
@attr emptyLabel: string = 'No records';
|
|
23
|
+
@observable columns: IFlexTableColumn[] = [];
|
|
24
|
+
|
|
25
|
+
@observable dataColumns: IFlexTableColumn[] = [];
|
|
26
|
+
@observable data: any[] = [];
|
|
27
|
+
@observable fields: string[] = [];
|
|
28
|
+
|
|
29
|
+
@observable actions: ActionType[] = [];
|
|
30
|
+
|
|
31
|
+
@observable extraFormatters: {[header_key: string] : IExtraColumnFormatter} = {};
|
|
32
|
+
@observable headerTranslations: { [sourceKey: string]: string } = {};
|
|
33
|
+
|
|
34
|
+
connectedCallback(): void {
|
|
35
|
+
super.connectedCallback();
|
|
36
|
+
|
|
37
|
+
this.orderFields();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
headerTranslationsChanged(oldValue: { [sourceKey: string]: string }, newValue: { [sourceKey: string]: string })
|
|
41
|
+
{
|
|
42
|
+
this.orderFields();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
fieldsChanged(oldValue: string[], newValue: string[])
|
|
46
|
+
{
|
|
47
|
+
this.orderFields();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
columnsChanged(oldValue: IFlexTableColumn[], newValue: IFlexTableColumn[])
|
|
51
|
+
{
|
|
52
|
+
this.orderFields();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
orderFields(): void
|
|
56
|
+
{
|
|
57
|
+
if(this.columns && this.fields && this.fields.length && this.columns.length){
|
|
58
|
+
const orderedColumns: IFlexTableColumn[] = [];
|
|
59
|
+
|
|
60
|
+
for(const fieldKey of this.fields){
|
|
61
|
+
const found = this.columns.find(item => item.key === fieldKey);
|
|
62
|
+
|
|
63
|
+
if(found){
|
|
64
|
+
if(Object.keys(this.extraFormatters).includes(fieldKey)){
|
|
65
|
+
found.formatter = this.extraFormatters[fieldKey];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if(this.headerTranslations && Object.keys(this.headerTranslations).includes(fieldKey)){
|
|
69
|
+
found.header = this.headerTranslations[fieldKey];
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
orderedColumns.push(found);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
this.dataColumns = orderedColumns;
|
|
77
|
+
}else{
|
|
78
|
+
this.dataColumns = this.columns;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
RWSTable.defineComponent();
|
|
84
|
+
|
|
85
|
+
export { RWSTable };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.flex-table {
|
|
2
|
+
width: 100%;
|
|
3
|
+
border: 1px solid #e2e8f0;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
background: white;
|
|
7
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
8
|
+
|
|
9
|
+
.flex-table-row {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
border-bottom: 1px solid #e2e8f0;
|
|
13
|
+
|
|
14
|
+
&:last-child {
|
|
15
|
+
border-bottom: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.table-header {
|
|
19
|
+
background-color: #f8fafc;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
color: #475569;
|
|
22
|
+
text-transform: capitalize;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.table-body {
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: #f1f5f9;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.flex-table-empty {
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
min-height: 100px;
|
|
36
|
+
background-color: #f8fafc;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.flex-table-cell {
|
|
41
|
+
flex: 1;
|
|
42
|
+
padding: 12px 16px;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
|
|
48
|
+
sl-button {
|
|
49
|
+
margin: 0 4px;
|
|
50
|
+
|
|
51
|
+
&:first-child {
|
|
52
|
+
margin-left: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:last-child {
|
|
56
|
+
margin-right: 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Add styles for the full-row cell
|
|
61
|
+
&.full-row {
|
|
62
|
+
flex: 1 1 100%;
|
|
63
|
+
text-align: center;
|
|
64
|
+
color: #64748b; // Slate-500 color
|
|
65
|
+
padding: 24px 16px;
|
|
66
|
+
|
|
67
|
+
strong {
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<div class="flex-table">
|
|
2
|
+
<div class="flex-table-row table-header">
|
|
3
|
+
${T.repeat(x => x.dataColumns, T.html`<div class="flex-table-cell">${x => x.header}</div>`)}
|
|
4
|
+
${T.when(x => x.actions.length, T.html`<div class="flex-table-cell" data-field="_actions">Actions</div>`)}
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
${T.repeat((x, dataContext) => x.data, T.html`<div class="flex-table-row table-body">
|
|
8
|
+
${T.repeat((x, columnContext) => columnContext.parent.dataColumns, T.html`<div class="flex-table-cell" data-field="${x => x.key}">
|
|
9
|
+
${(column, ctx) => {
|
|
10
|
+
const value = ctx.parent[column.key];
|
|
11
|
+
return column.formatter ? column.formatter(value) : value;
|
|
12
|
+
}}
|
|
13
|
+
</div>
|
|
14
|
+
`)}
|
|
15
|
+
${T.when((x,c) => c.parent.actions && c.parent.actions.length, T.html`<div class="flex-table-cell" data-field="_actions">
|
|
16
|
+
${T.repeat((x, c) => c.parent.actions, T.html`
|
|
17
|
+
<sl-button @click="${ (x, c) => x.handler(c.parent.id) }" variant="${x => x.variant}" >${x => x.label}</sl-button>
|
|
18
|
+
`)}
|
|
19
|
+
</div>`)}
|
|
20
|
+
</div>
|
|
21
|
+
`)}
|
|
22
|
+
|
|
23
|
+
${T.when(x => !x.data.length, T.html`<div class="flex-table-row flex-table-empty table-body">
|
|
24
|
+
<div class="flex-table-cell full-row"><strong>${ x => x.emptyLabel }</strong></div>
|
|
25
|
+
</div>`)}
|
|
26
|
+
|
|
27
|
+
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { observable, attr } from '@microsoft/fast-element';
|
|
2
|
-
import { RWSView } from '
|
|
3
|
-
import { RWSViewComponent } from '
|
|
2
|
+
import { RWSView } from '../../_decorator';
|
|
3
|
+
import { RWSViewComponent } from '../../_component';
|
|
4
4
|
|
|
5
5
|
@RWSView('rws-uploader')
|
|
6
6
|
class RWSUploader extends RWSViewComponent {
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IKDBTypeInfo, IKDBTypesResponse } from '../../types/IBackendCore';
|
|
2
|
-
import { observable, attr } from '@microsoft/fast-element';
|
|
3
|
-
import { RWSView } from '../_decorator';
|
|
4
|
-
import { RWSViewComponent } from '../_component';
|
|
5
|
-
import { RWSResourceListComponent } from './variants/list/component';
|
|
6
|
-
import { RWSResourceFormComponent } from './variants/form/component';
|
|
7
|
-
import { IRWSResourceQuery } from '../../types/IRWSResource';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
RWSResourceListComponent;
|
|
11
|
-
RWSResourceFormComponent;
|
|
12
|
-
|
|
13
|
-
@RWSView('rws-resource')
|
|
14
|
-
class RWSApiResource extends RWSViewComponent {
|
|
15
|
-
@observable dbModelData: IKDBTypesResponse;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
RWSApiResource.defineComponent();
|
|
19
|
-
|
|
20
|
-
export { RWSApiResource };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RWSViewComponent} from '../../../_component';
|
|
2
|
-
import { RWSView} from '../../../_decorator';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@RWSView('rws-resource-form')
|
|
6
|
-
class RWSResourceFormComponent extends RWSViewComponent {
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
RWSResourceFormComponent.defineComponent();
|
|
10
|
-
|
|
11
|
-
export { RWSResourceFormComponent };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RWSViewComponent} from '../../../_component';
|
|
2
|
-
import { RWSView} from '../../../_decorator';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
@RWSView('rws-resource-list')
|
|
6
|
-
class RWSResourceListComponent extends RWSViewComponent {
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
RWSResourceListComponent.defineComponent();
|
|
10
|
-
|
|
11
|
-
export { RWSResourceListComponent };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/form/styles/layout.scss
RENAMED
|
File without changes
|
/package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/form/template.html
RENAMED
|
File without changes
|
/package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/list/styles/layout.scss
RENAMED
|
File without changes
|
/package/src/components/{rws-api-resource → rws/rws-api-resource}/variants/list/template.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|