@genesislcap/documentation-components 14.345.1 → 14.347.0
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/dist/dts/components/design-system-preview/design-system-preview.template.d.ts.map +1 -1
- package/dist/dts/components/index.d.ts +1 -0
- package/dist/dts/components/index.d.ts.map +1 -1
- package/dist/dts/components/preview-app/index.d.ts +2 -0
- package/dist/dts/components/preview-app/index.d.ts.map +1 -0
- package/dist/dts/components/preview-app/preview-app.d.ts +36 -0
- package/dist/dts/components/preview-app/preview-app.d.ts.map +1 -0
- package/dist/dts/components/preview-app/preview-app.styles.d.ts +2 -0
- package/dist/dts/components/preview-app/preview-app.styles.d.ts.map +1 -0
- package/dist/dts/components/preview-app/preview-app.template.d.ts +4 -0
- package/dist/dts/components/preview-app/preview-app.template.d.ts.map +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/components/design-system-preview/design-system-preview.template.js +6 -0
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/preview-app/index.js +1 -0
- package/dist/esm/components/preview-app/preview-app.js +209 -0
- package/dist/esm/components/preview-app/preview-app.styles.js +35 -0
- package/dist/esm/components/preview-app/preview-app.template.js +24 -0
- package/dist/esm/components/preview-grid/preview-grid.template.js +3 -3
- package/dist/esm/index.js +5 -2
- package/package.json +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-system-preview.template.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-preview/design-system-preview.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"design-system-preview.template.d.ts","sourceRoot":"","sources":["../../../../src/components/design-system-preview/design-system-preview.template.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAe9D,eAAO,MAAM,2BAA2B,0EAiCvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ActionMenuItem, DropdownMenuItem, Modal } from '@genesislcap/foundation-ui';
|
|
2
|
+
import { Banner, Dialog } from '@genesislcap/foundation-ui';
|
|
3
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
4
|
+
export declare class PreviewApp extends FASTElement {
|
|
5
|
+
modal: Modal;
|
|
6
|
+
dialog: Dialog;
|
|
7
|
+
banner: Banner;
|
|
8
|
+
errorDialogContainer: HTMLDivElement;
|
|
9
|
+
prefix: string;
|
|
10
|
+
buttonAppearanceAccent: string;
|
|
11
|
+
buttonAppearanceNeutral: string;
|
|
12
|
+
buttonAppearanceOutline: string;
|
|
13
|
+
buttonAppearanceText: string;
|
|
14
|
+
badgeAppearanceAccent: string;
|
|
15
|
+
badgeAppearanceNeutral: string;
|
|
16
|
+
badgeText: string;
|
|
17
|
+
cards: number[];
|
|
18
|
+
countries: string[];
|
|
19
|
+
menuActions: ActionMenuItem[];
|
|
20
|
+
menuDefinition: {
|
|
21
|
+
actions: ActionMenuItem[];
|
|
22
|
+
buttonAppearance: string;
|
|
23
|
+
data: {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
dropDownMenuItems: DropdownMenuItem[];
|
|
28
|
+
provider: HTMLElement;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
private handleStyleChanges;
|
|
31
|
+
private handleDSChanges;
|
|
32
|
+
showDialog(param: any): void;
|
|
33
|
+
closeDialog(param: any): void;
|
|
34
|
+
dismissBanner(): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=preview-app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-app.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-app/preview-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAA4B,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAO5F,qBAKa,UAAW,SAAQ,WAAW;IAElC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,cAAc,CAAC;IAE/B,MAAM,SAAW;IAClB,sBAAsB,SAAkB;IACxC,uBAAuB,SAAkB;IACzC,uBAAuB,SAAsB;IAC7C,oBAAoB,SAAiB;IACrC,qBAAqB,SAAa;IAClC,sBAAsB,SAAe;IACrC,SAAS,SAAW;IAEpB,KAAK,WAA8C;IACnD,SAAS,WA0BnB;IAEU,WAAW,EAAE,cAAc,EAAE,CAiBvC;IAEU,cAAc;;;;;;MAIxB;IACU,iBAAiB,EAAE,gBAAgB,EAAE,CA4C/C;IAEK,QAAQ,EAAE,WAAW,CAAC;IAE7B,iBAAiB;IAcjB,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,eAAe;IAWvB,UAAU,CAAC,KAAK,KAAA;IAIhB,WAAW,CAAC,KAAK,KAAA;IAIjB,aAAa;CAGd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-app.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-app/preview-app.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,iDAiC5B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PreviewApp } from './preview-app';
|
|
2
|
+
export declare const previewAppTemplate: (prefix: string) => import("@microsoft/fast-element").ViewTemplate<PreviewApp, any>;
|
|
3
|
+
export declare const PreviewAppTemplate: import("@microsoft/fast-element").ViewTemplate<PreviewApp, any>;
|
|
4
|
+
//# sourceMappingURL=preview-app.template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-app.template.d.ts","sourceRoot":"","sources":["../../../../src/components/preview-app/preview-app.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,oEAmBhD,CAAC;AACF,eAAO,MAAM,kBAAkB,iEAE9B,CAAC"}
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA2BA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { html } from '@microsoft/fast-element';
|
|
|
3
3
|
import { ColorPalette } from '../color-palette';
|
|
4
4
|
import { ColorToken } from '../color-token';
|
|
5
5
|
import { ColorTokens } from '../color-tokens';
|
|
6
|
+
import { PreviewApp } from '../preview-app';
|
|
6
7
|
import { PreviewComponents } from '../preview-components';
|
|
7
8
|
import { PreviewForm } from '../preview-form';
|
|
8
9
|
import { PreviewGrid } from '../preview-grid';
|
|
@@ -18,6 +19,7 @@ TypographyTokens;
|
|
|
18
19
|
FoundationForms;
|
|
19
20
|
PreviewForm;
|
|
20
21
|
PreviewGrid;
|
|
22
|
+
PreviewApp;
|
|
21
23
|
export const DesignSystemPreviewTemplate = html `
|
|
22
24
|
<template>
|
|
23
25
|
<rapid-tabs>
|
|
@@ -26,6 +28,7 @@ export const DesignSystemPreviewTemplate = html `
|
|
|
26
28
|
<rapid-tab slot="tab">Colors</rapid-tab>
|
|
27
29
|
<rapid-tab slot="tab">Form</rapid-tab>
|
|
28
30
|
<rapid-tab slot="tab">Grid</rapid-tab>
|
|
31
|
+
<rapid-tab slot="tab">Sample App</rapid-tab>
|
|
29
32
|
<rapid-tab-panel slot="tabpanel">
|
|
30
33
|
<preview-components></preview-components>
|
|
31
34
|
</rapid-tab-panel>
|
|
@@ -45,6 +48,9 @@ export const DesignSystemPreviewTemplate = html `
|
|
|
45
48
|
<rapid-tab-panel slot="tabpanel">
|
|
46
49
|
<preview-grid></preview-grid>
|
|
47
50
|
</rapid-tab-panel>
|
|
51
|
+
<rapid-tab-panel slot="tabpanel">
|
|
52
|
+
<preview-app></preview-app>
|
|
53
|
+
</rapid-tab-panel>
|
|
48
54
|
</rapid-tabs>
|
|
49
55
|
</template>
|
|
50
56
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PreviewApp } from './preview-app';
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { bodyFont } from '@microsoft/fast-components';
|
|
3
|
+
import { attr, customElement, DOM, FASTElement, observable } from '@microsoft/fast-element';
|
|
4
|
+
import { defaultBodyFont, EventName } from '../../types';
|
|
5
|
+
import { logger } from '../../utils';
|
|
6
|
+
import { applyStyleChanges } from '../../utils/utils';
|
|
7
|
+
import { PreviewAppStyles as styles } from './preview-app.styles';
|
|
8
|
+
import { PreviewAppTemplate as template } from './preview-app.template';
|
|
9
|
+
let PreviewApp = class PreviewApp extends FASTElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.prefix = 'rapid';
|
|
13
|
+
this.buttonAppearanceAccent = 'primary-blue';
|
|
14
|
+
this.buttonAppearanceNeutral = 'primary-grey';
|
|
15
|
+
this.buttonAppearanceOutline = 'primary-gradient';
|
|
16
|
+
this.buttonAppearanceText = 'lightweight';
|
|
17
|
+
this.badgeAppearanceAccent = 'primary';
|
|
18
|
+
this.badgeAppearanceNeutral = 'secondary';
|
|
19
|
+
this.badgeText = 'white';
|
|
20
|
+
this.cards = Array.from({ length: 8 }, (_, i) => i + 1);
|
|
21
|
+
this.countries = [
|
|
22
|
+
'Afghanistan',
|
|
23
|
+
'Aland Islands',
|
|
24
|
+
'Albania',
|
|
25
|
+
'Algeria',
|
|
26
|
+
'American Samoa',
|
|
27
|
+
'Andorra',
|
|
28
|
+
'Angola',
|
|
29
|
+
'Aruba',
|
|
30
|
+
'Australia',
|
|
31
|
+
'Austria',
|
|
32
|
+
'Azerbaijan',
|
|
33
|
+
'Bahamas',
|
|
34
|
+
'Bahrain',
|
|
35
|
+
'Bangladesh',
|
|
36
|
+
'Barbados',
|
|
37
|
+
'Belarus',
|
|
38
|
+
'Belgium',
|
|
39
|
+
'Belize',
|
|
40
|
+
'Benin',
|
|
41
|
+
'Bhutan',
|
|
42
|
+
'Bolivia',
|
|
43
|
+
'Bonaire, Sint Eustatius and Saba',
|
|
44
|
+
'Cambodia',
|
|
45
|
+
'Cameroon',
|
|
46
|
+
'Canada',
|
|
47
|
+
];
|
|
48
|
+
this.menuActions = [
|
|
49
|
+
{
|
|
50
|
+
name: 'View',
|
|
51
|
+
callback: (rowData) => logger.debug('VIEWW!!!', rowData),
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Delete',
|
|
55
|
+
callback: (rowData) => logger.debug('DELETE!!!', rowData),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Edit',
|
|
59
|
+
callback: (rowData) => logger.debug('EDIT!!!', rowData),
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Wait',
|
|
63
|
+
callback: (rowData) => logger.debug('WAIT???', rowData),
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
this.menuDefinition = {
|
|
67
|
+
actions: this.menuActions,
|
|
68
|
+
buttonAppearance: 'stealth',
|
|
69
|
+
data: { name: 'test' },
|
|
70
|
+
};
|
|
71
|
+
this.dropDownMenuItems = [
|
|
72
|
+
{
|
|
73
|
+
name: 'Menu item 1',
|
|
74
|
+
callback: () => alert('Menu item 1 clicked'),
|
|
75
|
+
icon: {
|
|
76
|
+
name: 'glasses',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Menu item 2',
|
|
81
|
+
callback: () => alert('Menu item 2 clicked'),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Menu item 3',
|
|
85
|
+
callback: () => alert('Menu item 3 clicked'),
|
|
86
|
+
submenu: [
|
|
87
|
+
{
|
|
88
|
+
name: 'Menu item 5',
|
|
89
|
+
callback: () => alert('Menu item 5 clicked'),
|
|
90
|
+
icon: {
|
|
91
|
+
name: 'address-card',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Menu item 6',
|
|
96
|
+
callback: () => alert('Menu item 6 clicked'),
|
|
97
|
+
submenu: [
|
|
98
|
+
{
|
|
99
|
+
name: 'Menu item 7',
|
|
100
|
+
callback: () => alert('Menu item 7 clicked'),
|
|
101
|
+
color: 'red',
|
|
102
|
+
icon: {
|
|
103
|
+
name: 'address-card',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'Menu item 8',
|
|
108
|
+
callback: () => alert('Menu item 8 clicked'),
|
|
109
|
+
isDisabled: () => true,
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
];
|
|
116
|
+
}
|
|
117
|
+
connectedCallback() {
|
|
118
|
+
super.connectedCallback();
|
|
119
|
+
document.body.addEventListener(EventName.STYLES_CHANGED, (e) => {
|
|
120
|
+
this.handleStyleChanges(e);
|
|
121
|
+
});
|
|
122
|
+
document.body.addEventListener(EventName.DS_CHANGED, (e) => {
|
|
123
|
+
this.handleDSChanges(e);
|
|
124
|
+
});
|
|
125
|
+
DOM.queueUpdate(() => {
|
|
126
|
+
bodyFont.withDefault(defaultBodyFont);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
handleStyleChanges(e) {
|
|
130
|
+
const detail = e.detail;
|
|
131
|
+
if (detail) {
|
|
132
|
+
DOM.queueUpdate(() => {
|
|
133
|
+
applyStyleChanges(detail, this.provider);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
handleDSChanges(event) {
|
|
138
|
+
this.prefix = event.detail.prefix;
|
|
139
|
+
this.buttonAppearanceAccent = event.detail.buttonAppearanceAccent;
|
|
140
|
+
this.buttonAppearanceNeutral = event.detail.buttonAppearanceNeutral;
|
|
141
|
+
this.buttonAppearanceOutline = event.detail.buttonAppearanceOutline;
|
|
142
|
+
this.buttonAppearanceText = event.detail.buttonAppearanceText;
|
|
143
|
+
this.badgeAppearanceAccent = event.detail.badgeAppearanceAccent;
|
|
144
|
+
this.badgeAppearanceNeutral = event.detail.badgeAppearanceNeutral;
|
|
145
|
+
this.badgeText = event.detail.badgeText;
|
|
146
|
+
}
|
|
147
|
+
showDialog(param) {
|
|
148
|
+
this[param].show();
|
|
149
|
+
}
|
|
150
|
+
closeDialog(param) {
|
|
151
|
+
this[param].close();
|
|
152
|
+
}
|
|
153
|
+
dismissBanner() {
|
|
154
|
+
this.banner.dismiss();
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
__decorate([
|
|
158
|
+
observable
|
|
159
|
+
], PreviewApp.prototype, "modal", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
attr
|
|
162
|
+
], PreviewApp.prototype, "prefix", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
observable
|
|
165
|
+
], PreviewApp.prototype, "buttonAppearanceAccent", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
observable
|
|
168
|
+
], PreviewApp.prototype, "buttonAppearanceNeutral", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
observable
|
|
171
|
+
], PreviewApp.prototype, "buttonAppearanceOutline", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
observable
|
|
174
|
+
], PreviewApp.prototype, "buttonAppearanceText", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
observable
|
|
177
|
+
], PreviewApp.prototype, "badgeAppearanceAccent", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
observable
|
|
180
|
+
], PreviewApp.prototype, "badgeAppearanceNeutral", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
observable
|
|
183
|
+
], PreviewApp.prototype, "badgeText", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
observable
|
|
186
|
+
], PreviewApp.prototype, "cards", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
observable
|
|
189
|
+
], PreviewApp.prototype, "countries", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
observable
|
|
192
|
+
], PreviewApp.prototype, "menuActions", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
observable
|
|
195
|
+
], PreviewApp.prototype, "menuDefinition", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
observable
|
|
198
|
+
], PreviewApp.prototype, "dropDownMenuItems", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
observable
|
|
201
|
+
], PreviewApp.prototype, "provider", void 0);
|
|
202
|
+
PreviewApp = __decorate([
|
|
203
|
+
customElement({
|
|
204
|
+
name: 'preview-app',
|
|
205
|
+
template,
|
|
206
|
+
styles,
|
|
207
|
+
})
|
|
208
|
+
], PreviewApp);
|
|
209
|
+
export { PreviewApp };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
export const PreviewAppStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
--badge-fill-primary: var(--accent-fill-rest);
|
|
5
|
+
--badge-fill-neutral: var(--neutral-fill-rest);
|
|
6
|
+
|
|
7
|
+
background: var(--fill-color);
|
|
8
|
+
color: var(--neutral-foreground-rest);
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
flex: 1;
|
|
11
|
+
font-family: var(--body-font);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.app-container {
|
|
15
|
+
display: grid;
|
|
16
|
+
background: var(--fill-color);
|
|
17
|
+
grid-template-columns: 3fr 1fr;
|
|
18
|
+
grid-template-rows: repeat(2, 1fr);
|
|
19
|
+
grid-gap: 12px;
|
|
20
|
+
height: calc(100% - 24px);
|
|
21
|
+
padding: 12px;
|
|
22
|
+
|
|
23
|
+
.div1 {
|
|
24
|
+
grid-area: 1 / 1 / 2 / 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.div2 {
|
|
28
|
+
grid-area: 2 / 1 / 3 / 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.div3 {
|
|
32
|
+
grid-area: 1 / 2 / 3 / 3;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { html, ref } from '@microsoft/fast-element';
|
|
2
|
+
export const previewAppTemplate = (prefix) => html `
|
|
3
|
+
<template>
|
|
4
|
+
<${prefix}-design-system-provider ${ref('provider')}>
|
|
5
|
+
<rapid-layout>
|
|
6
|
+
<rapid-layout-region>
|
|
7
|
+
<rapid-layout-region type="vertical">
|
|
8
|
+
<rapid-layout-item title="Button">
|
|
9
|
+
<preview-grid></preview-grid>
|
|
10
|
+
</rapid-layout-item>
|
|
11
|
+
<rapid-layout-item title="Checkbox">
|
|
12
|
+
</rapid-layout-item>
|
|
13
|
+
</rapid-layout-region>
|
|
14
|
+
<rapid-layout-item title="Text">
|
|
15
|
+
<preview-grid></preview-grid>
|
|
16
|
+
</rapid-layout-item>
|
|
17
|
+
</rapid-layout-region>
|
|
18
|
+
</rapid-layout>
|
|
19
|
+
</${prefix}-design-system-provider>
|
|
20
|
+
</template>
|
|
21
|
+
`;
|
|
22
|
+
export const PreviewAppTemplate = html `
|
|
23
|
+
${(x) => previewAppTemplate(x.prefix)}
|
|
24
|
+
`;
|
|
@@ -5,10 +5,10 @@ export const previewGrid = (prefix) => html `
|
|
|
5
5
|
<div class="grid-height">
|
|
6
6
|
<${prefix}-grid-pro
|
|
7
7
|
${ref('grid')}
|
|
8
|
-
rowHeight="
|
|
9
|
-
headerHeight="
|
|
8
|
+
rowHeight="36"
|
|
9
|
+
headerHeight="36"
|
|
10
10
|
singleClickEdit="true"
|
|
11
|
-
persist-column-state-key="
|
|
11
|
+
persist-column-state-key="${prefix}-grid-pro-state"
|
|
12
12
|
>
|
|
13
13
|
${repeat((x) => x.multipleCustomFoundationColumnConfigs, html `
|
|
14
14
|
<grid-pro-column :definition=${(x) => x}>
|
package/dist/esm/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Form as FoundationForms } from '@genesislcap/foundation-forms';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
|
+
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
|
|
2
4
|
import { provideDesignSystem as provideZeroDesignSystem, baseComponents as zeroBaseComponents, } from '@genesislcap/foundation-zero';
|
|
3
5
|
import { zeroGridComponents } from '@genesislcap/foundation-zero-grid-pro';
|
|
4
6
|
import { provideDesignSystem as provideRapidDesignSystem, baseComponents as rapidBaseComponents, } from '@genesislcap/rapid-design-system';
|
|
5
7
|
import { rapidGridComponents } from '@genesislcap/rapid-grid-pro';
|
|
6
|
-
import { DesignSystemEditor, ColorPalette, PreviewComponents, ColorToken, ColorTokens, TypographyTokens, DesignSystemExport, DesignSystemPreview, PreviewForm, PreviewGrid, } from './components';
|
|
8
|
+
import { DesignSystemEditor, ColorPalette, PreviewComponents, ColorToken, ColorTokens, TypographyTokens, DesignSystemExport, DesignSystemPreview, PreviewForm, PreviewGrid, PreviewApp, } from './components';
|
|
7
9
|
export * from './components';
|
|
8
10
|
export * from './types';
|
|
9
11
|
provideZeroDesignSystem().register(zeroBaseComponents, zeroGridComponents);
|
|
10
|
-
provideRapidDesignSystem().register(rapidBaseComponents, rapidGridComponents);
|
|
12
|
+
provideRapidDesignSystem().register(rapidBaseComponents, rapidGridComponents, foundationLayoutComponents);
|
|
11
13
|
DesignSystemEditor;
|
|
12
14
|
PreviewComponents;
|
|
13
15
|
DesignSystemExport;
|
|
@@ -19,3 +21,4 @@ DesignSystemPreview;
|
|
|
19
21
|
FoundationForms;
|
|
20
22
|
PreviewForm;
|
|
21
23
|
PreviewGrid;
|
|
24
|
+
PreviewApp;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/documentation-components",
|
|
3
3
|
"description": "Genesis Foundation Dcoumentation Components",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.347.0",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
7
7
|
],
|
|
@@ -23,24 +23,24 @@
|
|
|
23
23
|
"clean": "rimraf dist temp tsconfig.tsbuildinfo"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@genesislcap/genx": "14.
|
|
27
|
-
"@genesislcap/rollup-builder": "14.
|
|
28
|
-
"@genesislcap/ts-builder": "14.
|
|
29
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
30
|
-
"@genesislcap/vite-builder": "14.
|
|
31
|
-
"@genesislcap/webpack-builder": "14.
|
|
26
|
+
"@genesislcap/genx": "14.347.0",
|
|
27
|
+
"@genesislcap/rollup-builder": "14.347.0",
|
|
28
|
+
"@genesislcap/ts-builder": "14.347.0",
|
|
29
|
+
"@genesislcap/uvu-playwright-builder": "14.347.0",
|
|
30
|
+
"@genesislcap/vite-builder": "14.347.0",
|
|
31
|
+
"@genesislcap/webpack-builder": "14.347.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ag-grid-community/core": "29.2.0",
|
|
35
|
-
"@genesislcap/foundation-forms": "14.
|
|
36
|
-
"@genesislcap/foundation-logger": "14.
|
|
37
|
-
"@genesislcap/foundation-ui": "14.
|
|
38
|
-
"@genesislcap/foundation-utils": "14.
|
|
39
|
-
"@genesislcap/foundation-zero": "14.
|
|
40
|
-
"@genesislcap/foundation-zero-grid-pro": "14.
|
|
41
|
-
"@genesislcap/grid-pro": "14.
|
|
42
|
-
"@genesislcap/rapid-design-system": "14.
|
|
43
|
-
"@genesislcap/rapid-grid-pro": "14.
|
|
35
|
+
"@genesislcap/foundation-forms": "14.347.0",
|
|
36
|
+
"@genesislcap/foundation-logger": "14.347.0",
|
|
37
|
+
"@genesislcap/foundation-ui": "14.347.0",
|
|
38
|
+
"@genesislcap/foundation-utils": "14.347.0",
|
|
39
|
+
"@genesislcap/foundation-zero": "14.347.0",
|
|
40
|
+
"@genesislcap/foundation-zero-grid-pro": "14.347.0",
|
|
41
|
+
"@genesislcap/grid-pro": "14.347.0",
|
|
42
|
+
"@genesislcap/rapid-design-system": "14.347.0",
|
|
43
|
+
"@genesislcap/rapid-grid-pro": "14.347.0",
|
|
44
44
|
"@jsonforms/core": "^3.2.1",
|
|
45
45
|
"@microsoft/fast-colors": "5.3.1",
|
|
46
46
|
"@microsoft/fast-components": "2.30.6",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "1867b0173e7ffe32db40d75b1cfb19bb81e8edca"
|
|
60
60
|
}
|