@operato/context 9.0.0-beta.7 → 9.0.0-beta.85
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/CHANGELOG.md +284 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/stories/ox-context-page-toolbar-select-buttons.stories.d.ts +0 -25
- package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js +0 -151
- package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js.map +0 -1
- package/dist/stories/ox-context-page-toolbar-select.stories.d.ts +0 -24
- package/dist/stories/ox-context-page-toolbar-select.stories.js +0 -115
- package/dist/stories/ox-context-page-toolbar-select.stories.js.map +0 -1
- package/dist/stories/ox-context-page-toolbar.stories.d.ts +0 -24
- package/dist/stories/ox-context-page-toolbar.stories.js +0 -115
- package/dist/stories/ox-context-page-toolbar.stories.js.map +0 -1
- package/dist/stories/ox-context-toolbar-complex.stories.d.ts +0 -24
- package/dist/stories/ox-context-toolbar-complex.stories.js +0 -169
- package/dist/stories/ox-context-toolbar-complex.stories.js.map +0 -1
- package/dist/stories/ox-context-toolbar-cooldown.stories.d.ts +0 -18
- package/dist/stories/ox-context-toolbar-cooldown.stories.js +0 -100
- package/dist/stories/ox-context-toolbar-cooldown.stories.js.map +0 -1
- package/dist/stories/ox-context-toolbar-empty.stories.d.ts +0 -23
- package/dist/stories/ox-context-toolbar-empty.stories.js +0 -98
- package/dist/stories/ox-context-toolbar-empty.stories.js.map +0 -1
- package/dist/stories/ox-context-toolbar-overflow.stories.d.ts +0 -24
- package/dist/stories/ox-context-toolbar-overflow.stories.js +0 -153
- package/dist/stories/ox-context-toolbar-overflow.stories.js.map +0 -1
- package/dist/stories/ox-context-toolbar.stories.d.ts +0 -19
- package/dist/stories/ox-context-toolbar.stories.js +0 -209
- package/dist/stories/ox-context-toolbar.stories.js.map +0 -1
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../src/layouts/ox-context-page-toolbar.js';
|
|
3
|
-
import '../src/tools/ox-page-action-context-bar.js';
|
|
4
|
-
import '@operato/input/ox-input-select-buttons.js';
|
|
5
|
-
import { TOOL_POSITION } from '@operato/layout';
|
|
6
|
-
import '@operato/styles';
|
|
7
|
-
import { html } from 'lit';
|
|
8
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
|
9
|
-
export default {
|
|
10
|
-
title: 'ox-context-page-toolbar select buttons',
|
|
11
|
-
component: 'ox-context-page-toolbar',
|
|
12
|
-
argTypes: {
|
|
13
|
-
label: { control: 'string' }
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
const Template = ({ label = '' }) => html `
|
|
17
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
18
|
-
|
|
19
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
|
20
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
|
21
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
22
|
-
|
|
23
|
-
<link
|
|
24
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
25
|
-
rel="stylesheet"
|
|
26
|
-
/>
|
|
27
|
-
<link
|
|
28
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
29
|
-
rel="stylesheet"
|
|
30
|
-
/>
|
|
31
|
-
<link
|
|
32
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
33
|
-
rel="stylesheet"
|
|
34
|
-
/>
|
|
35
|
-
|
|
36
|
-
<style>
|
|
37
|
-
${MDTypeScaleStyles.cssText}
|
|
38
|
-
</style>
|
|
39
|
-
|
|
40
|
-
<style>
|
|
41
|
-
.container {
|
|
42
|
-
height: 500px;
|
|
43
|
-
text-align: center;
|
|
44
|
-
padding: 20px;
|
|
45
|
-
background-color: var(--md-sys-color-primary-container);
|
|
46
|
-
color: var(--md-sys-color-on-primary-container);
|
|
47
|
-
|
|
48
|
-
padding: 20px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
ox-buttons-radio {
|
|
52
|
-
padding: 20px;
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
55
|
-
|
|
56
|
-
<div class="container md-typescale-body-large-prominent">
|
|
57
|
-
<div class="header">
|
|
58
|
-
<div class="title">${label}</div>
|
|
59
|
-
|
|
60
|
-
<div class="filters">
|
|
61
|
-
<label>Filter-X</label><input type="text" name="name" />
|
|
62
|
-
<ox-input-select-buttons
|
|
63
|
-
@change=${(e) => {
|
|
64
|
-
console.log(e.target.value);
|
|
65
|
-
}}
|
|
66
|
-
name="wearables"
|
|
67
|
-
.value=${'Gloves'}
|
|
68
|
-
.options=${[
|
|
69
|
-
{ display: 'SHOOSE', value: 'Shoose' },
|
|
70
|
-
{ display: 'CHOTHES', value: 'Clothes' },
|
|
71
|
-
{ display: 'GLOVES', value: 'Gloves' }
|
|
72
|
-
]}
|
|
73
|
-
multiple
|
|
74
|
-
></ox-input-select-buttons>
|
|
75
|
-
</div>
|
|
76
|
-
|
|
77
|
-
<ox-context-page-toolbar
|
|
78
|
-
class="actions"
|
|
79
|
-
.tools=${[
|
|
80
|
-
{
|
|
81
|
-
position: TOOL_POSITION.FRONT,
|
|
82
|
-
template: html ` <md-icon>download</md-icon> `,
|
|
83
|
-
context: 'exportable'
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
position: TOOL_POSITION.FRONT,
|
|
87
|
-
template: html ` <md-icon>upload</md-icon> `,
|
|
88
|
-
context: 'importable'
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
position: TOOL_POSITION.CENTER,
|
|
92
|
-
template: html `<ox-page-action-context-bar
|
|
93
|
-
.actions=${[
|
|
94
|
-
{
|
|
95
|
-
title: 'save',
|
|
96
|
-
action: () => { },
|
|
97
|
-
icon: 'save'
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
title: 'copy',
|
|
101
|
-
action: () => { },
|
|
102
|
-
icon: 'content_copy',
|
|
103
|
-
emphasis: {
|
|
104
|
-
outlined: true
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
title: 'edit',
|
|
109
|
-
action: () => { },
|
|
110
|
-
icon: 'content_copy',
|
|
111
|
-
emphasis: {
|
|
112
|
-
outlined: true
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
title: 'hoppaang',
|
|
117
|
-
action: () => { },
|
|
118
|
-
icon: '',
|
|
119
|
-
emphasis: {
|
|
120
|
-
outlined: true
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
title: 'delete',
|
|
125
|
-
action: () => { },
|
|
126
|
-
icon: 'delete',
|
|
127
|
-
emphasis: {
|
|
128
|
-
danger: true,
|
|
129
|
-
filled: true
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
]}
|
|
133
|
-
></ox-page-action-context-bar>`
|
|
134
|
-
}
|
|
135
|
-
]}
|
|
136
|
-
.context=${{
|
|
137
|
-
exportable: true,
|
|
138
|
-
importable: true,
|
|
139
|
-
toolbar: false
|
|
140
|
-
}}
|
|
141
|
-
}
|
|
142
|
-
>
|
|
143
|
-
</ox-context-page-toolbar>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
`;
|
|
147
|
-
export const Regular = Template.bind({});
|
|
148
|
-
Regular.args = {
|
|
149
|
-
label: 'common header styles'
|
|
150
|
-
};
|
|
151
|
-
//# sourceMappingURL=ox-context-page-toolbar-select-buttons.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ox-context-page-toolbar-select-buttons.stories.js","sourceRoot":"","sources":["../../stories/ox-context-page-toolbar-select-buttons.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,2CAA2C,CAAA;AAClD,OAAO,4CAA4C,CAAA;AACnD,OAAO,2CAA2C,CAAA;AAElD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AACvD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,wCAAwC;IAC/C,SAAS,EAAE,yBAAyB;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAC7B;CACF,CAAA;AAYD,MAAM,QAAQ,GAAoB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqB9D,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;2BAqBJ,KAAK;;;;;oBAKZ,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;;mBAEQ,QAAQ;qBACN;IACT,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACtC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACxC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CACvC;;;;;;;iBAOM;IACP;QACE,QAAQ,EAAE,aAAa,CAAC,KAAK;QAC7B,QAAQ,EAAE,IAAI,CAAA,+BAA+B;QAC7C,OAAO,EAAE,YAAY;KACtB;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,KAAK;QAC7B,QAAQ,EAAE,IAAI,CAAA,6BAA6B;QAC3C,OAAO,EAAE,YAAY;KACtB;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,MAAM;QAC9B,QAAQ,EAAE,IAAI,CAAA;yBACD;YACT;gBACE,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE;oBACR,QAAQ,EAAE,IAAI;iBACf;aACF;YACD;gBACE,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE;oBACR,QAAQ,EAAE,IAAI;iBACf;aACF;YACD;gBACE,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE;oBACR,QAAQ,EAAE,IAAI;iBACf;aACF;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE;oBACR,MAAM,EAAE,IAAI;oBACZ,MAAM,EAAE,IAAI;iBACb;aACF;SACF;2CAC4B;KAChC;CACF;mBACU;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,KAAK;CACf;;;;;;CAMR,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,sBAAsB;CAC9B,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport '../src/layouts/ox-context-page-toolbar.js'\nimport '../src/tools/ox-page-action-context-bar.js'\nimport '@operato/input/ox-input-select-buttons.js'\nimport { CommonHeaderStyles } from '@operato/styles'\nimport { TOOL_POSITION } from '@operato/layout'\n\nimport '@operato/styles'\n\nimport { css, html, render, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-context-page-toolbar select buttons',\n component: 'ox-context-page-toolbar',\n argTypes: {\n label: { control: 'string' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n label?: string\n}\n\nconst Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n\n padding: 20px;\n }\n\n ox-buttons-radio {\n padding: 20px;\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <div class=\"header\">\n <div class=\"title\">${label}</div>\n\n <div class=\"filters\">\n <label>Filter-X</label><input type=\"text\" name=\"name\" />\n <ox-input-select-buttons\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=\"wearables\"\n .value=${'Gloves'}\n .options=${[\n { display: 'SHOOSE', value: 'Shoose' },\n { display: 'CHOTHES', value: 'Clothes' },\n { display: 'GLOVES', value: 'Gloves' }\n ]}\n multiple\n ></ox-input-select-buttons>\n </div>\n\n <ox-context-page-toolbar\n class=\"actions\"\n .tools=${[\n {\n position: TOOL_POSITION.FRONT,\n template: html` <md-icon>download</md-icon> `,\n context: 'exportable'\n },\n {\n position: TOOL_POSITION.FRONT,\n template: html` <md-icon>upload</md-icon> `,\n context: 'importable'\n },\n {\n position: TOOL_POSITION.CENTER,\n template: html`<ox-page-action-context-bar\n .actions=${[\n {\n title: 'save',\n action: () => {},\n icon: 'save'\n },\n {\n title: 'copy',\n action: () => {},\n icon: 'content_copy',\n emphasis: {\n outlined: true\n }\n },\n {\n title: 'edit',\n action: () => {},\n icon: 'content_copy',\n emphasis: {\n outlined: true\n }\n },\n {\n title: 'hoppaang',\n action: () => {},\n icon: '',\n emphasis: {\n outlined: true\n }\n },\n {\n title: 'delete',\n action: () => {},\n icon: 'delete',\n emphasis: {\n danger: true,\n filled: true\n }\n }\n ]}\n ></ox-page-action-context-bar>`\n }\n ]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: false\n }}\n }\n >\n </ox-context-page-toolbar>\n </div>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n label: 'common header styles'\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../src/layouts/ox-context-page-toolbar.js';
|
|
3
|
-
import '../src/tools/ox-page-action-context-bar.js';
|
|
4
|
-
import '@operato/styles';
|
|
5
|
-
import { TemplateResult } from 'lit';
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: string;
|
|
9
|
-
argTypes: {
|
|
10
|
-
label: {
|
|
11
|
-
control: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
16
|
-
interface Story<T> {
|
|
17
|
-
(args: T): TemplateResult;
|
|
18
|
-
args?: Partial<T>;
|
|
19
|
-
argTypes?: Record<string, unknown>;
|
|
20
|
-
}
|
|
21
|
-
interface ArgTypes {
|
|
22
|
-
label?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const Regular: Story<ArgTypes>;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../src/layouts/ox-context-page-toolbar.js';
|
|
3
|
-
import '../src/tools/ox-page-action-context-bar.js';
|
|
4
|
-
import { TOOL_POSITION } from '@operato/layout';
|
|
5
|
-
import { sleep } from '@operato/utils';
|
|
6
|
-
import '@operato/styles';
|
|
7
|
-
import { html } from 'lit';
|
|
8
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
|
9
|
-
export default {
|
|
10
|
-
title: 'ox-context-page-toolbar-select',
|
|
11
|
-
component: 'ox-context-page-toolbar',
|
|
12
|
-
argTypes: {
|
|
13
|
-
label: { control: 'string' }
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
const Template = ({ label = '' }) => html `
|
|
17
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
18
|
-
|
|
19
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
|
20
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
|
21
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
22
|
-
|
|
23
|
-
<link
|
|
24
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
25
|
-
rel="stylesheet"
|
|
26
|
-
/>
|
|
27
|
-
<link
|
|
28
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
29
|
-
rel="stylesheet"
|
|
30
|
-
/>
|
|
31
|
-
<link
|
|
32
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
33
|
-
rel="stylesheet"
|
|
34
|
-
/>
|
|
35
|
-
|
|
36
|
-
<style>
|
|
37
|
-
${MDTypeScaleStyles.cssText}
|
|
38
|
-
</style>
|
|
39
|
-
|
|
40
|
-
<style>
|
|
41
|
-
.container {
|
|
42
|
-
height: 500px;
|
|
43
|
-
text-align: center;
|
|
44
|
-
padding: 20px;
|
|
45
|
-
background-color: var(--md-sys-color-primary-container);
|
|
46
|
-
color: var(--md-sys-color-on-primary-container);
|
|
47
|
-
|
|
48
|
-
padding: 20px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
ox-buttons-radio {
|
|
52
|
-
padding: 20px;
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
55
|
-
|
|
56
|
-
<div class="container md-typescale-body-large-prominent">
|
|
57
|
-
<div class="header">
|
|
58
|
-
<div class="title">${label}</div>
|
|
59
|
-
|
|
60
|
-
<div class="filters"><label>Filter</label><input type="text" /></div>
|
|
61
|
-
|
|
62
|
-
<ox-context-page-toolbar
|
|
63
|
-
class="actions"
|
|
64
|
-
.tools=${[
|
|
65
|
-
{
|
|
66
|
-
position: TOOL_POSITION.FRONT,
|
|
67
|
-
template: html ` <md-icon>download</md-icon> `,
|
|
68
|
-
context: 'exportable'
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
position: TOOL_POSITION.FRONT,
|
|
72
|
-
template: html ` <md-icon>upload</md-icon> `,
|
|
73
|
-
context: 'importable'
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
position: TOOL_POSITION.CENTER,
|
|
77
|
-
template: html `<ox-page-action-context-bar
|
|
78
|
-
.actions=${[
|
|
79
|
-
{
|
|
80
|
-
type: 'icon',
|
|
81
|
-
title: 'favorite',
|
|
82
|
-
icon: 'favorite',
|
|
83
|
-
action: async () => {
|
|
84
|
-
await sleep(1000);
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
title: 'smile',
|
|
89
|
-
action: () => { },
|
|
90
|
-
select: ['', 'delete', 'hahaha', 'hohoho']
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
title: 'save',
|
|
94
|
-
action: () => { },
|
|
95
|
-
icon: 'save'
|
|
96
|
-
}
|
|
97
|
-
]}
|
|
98
|
-
></ox-page-action-context-bar>`
|
|
99
|
-
}
|
|
100
|
-
]}
|
|
101
|
-
.context=${{
|
|
102
|
-
exportable: true,
|
|
103
|
-
importable: true,
|
|
104
|
-
toolbar: false
|
|
105
|
-
}}
|
|
106
|
-
>
|
|
107
|
-
</ox-context-page-toolbar>
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
`;
|
|
111
|
-
export const Regular = Template.bind({});
|
|
112
|
-
Regular.args = {
|
|
113
|
-
label: 'common header styles'
|
|
114
|
-
};
|
|
115
|
-
//# sourceMappingURL=ox-context-page-toolbar-select.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ox-context-page-toolbar-select.stories.js","sourceRoot":"","sources":["../../stories/ox-context-page-toolbar-select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,2CAA2C,CAAA;AAClD,OAAO,4CAA4C,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEtC,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AACvD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,yBAAyB;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAC7B;CACF,CAAA;AAYD,MAAM,QAAQ,GAAoB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqB9D,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;2BAqBJ,KAAK;;;;;;iBAMf;IACP;QACE,QAAQ,EAAE,aAAa,CAAC,KAAK;QAC7B,QAAQ,EAAE,IAAI,CAAA,+BAA+B;QAC7C,OAAO,EAAE,YAAY;KACtB;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,KAAK;QAC7B,QAAQ,EAAE,IAAI,CAAA,6BAA6B;QAC3C,OAAO,EAAE,YAAY;KACtB;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,MAAM;QAC9B,QAAQ,EAAE,IAAI,CAAA;yBACD;YACT;gBACE,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,KAAK,IAAI,EAAE;oBACjB,MAAM,KAAK,CAAC,IAAI,CAAC,CAAA;gBACnB,CAAC;aACF;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,MAAM,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC;aAC3C;YACD;gBACE,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;2CAC4B;KAChC;CACF;mBACU;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,KAAK;CACf;;;;;CAKR,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,sBAAsB;CAC9B,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport '../src/layouts/ox-context-page-toolbar.js'\nimport '../src/tools/ox-page-action-context-bar.js'\nimport { TOOL_POSITION } from '@operato/layout'\nimport { sleep } from '@operato/utils'\n\nimport '@operato/styles'\n\nimport { css, html, render, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-context-page-toolbar-select',\n component: 'ox-context-page-toolbar',\n argTypes: {\n label: { control: 'string' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n label?: string\n}\n\nconst Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n\n padding: 20px;\n }\n\n ox-buttons-radio {\n padding: 20px;\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <div class=\"header\">\n <div class=\"title\">${label}</div>\n\n <div class=\"filters\"><label>Filter</label><input type=\"text\" /></div>\n\n <ox-context-page-toolbar\n class=\"actions\"\n .tools=${[\n {\n position: TOOL_POSITION.FRONT,\n template: html` <md-icon>download</md-icon> `,\n context: 'exportable'\n },\n {\n position: TOOL_POSITION.FRONT,\n template: html` <md-icon>upload</md-icon> `,\n context: 'importable'\n },\n {\n position: TOOL_POSITION.CENTER,\n template: html`<ox-page-action-context-bar\n .actions=${[\n {\n type: 'icon',\n title: 'favorite',\n icon: 'favorite',\n action: async () => {\n await sleep(1000)\n }\n },\n {\n title: 'smile',\n action: () => {},\n select: ['', 'delete', 'hahaha', 'hohoho']\n },\n {\n title: 'save',\n action: () => {},\n icon: 'save'\n }\n ]}\n ></ox-page-action-context-bar>`\n }\n ]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: false\n }}\n >\n </ox-context-page-toolbar>\n </div>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n label: 'common header styles'\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../src/layouts/ox-context-page-toolbar.js';
|
|
3
|
-
import '../src/tools/ox-page-action-context-bar.js';
|
|
4
|
-
import '@operato/styles';
|
|
5
|
-
import { TemplateResult } from 'lit';
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: string;
|
|
9
|
-
argTypes: {
|
|
10
|
-
label: {
|
|
11
|
-
control: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default _default;
|
|
16
|
-
interface Story<T> {
|
|
17
|
-
(args: T): TemplateResult;
|
|
18
|
-
args?: Partial<T>;
|
|
19
|
-
argTypes?: Record<string, unknown>;
|
|
20
|
-
}
|
|
21
|
-
interface ArgTypes {
|
|
22
|
-
label?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const Regular: Story<ArgTypes>;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../src/layouts/ox-context-page-toolbar.js';
|
|
3
|
-
import '../src/tools/ox-page-action-context-bar.js';
|
|
4
|
-
import { TOOL_POSITION } from '@operato/layout';
|
|
5
|
-
import '@operato/styles';
|
|
6
|
-
import { html } from 'lit';
|
|
7
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
|
8
|
-
export default {
|
|
9
|
-
title: 'ox-context-page-toolbar',
|
|
10
|
-
component: 'ox-context-page-toolbar',
|
|
11
|
-
argTypes: {
|
|
12
|
-
label: { control: 'string' }
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
const Template = ({ label = '' }) => html `
|
|
16
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
17
|
-
|
|
18
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
|
19
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
|
20
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
21
|
-
|
|
22
|
-
<link
|
|
23
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
24
|
-
rel="stylesheet"
|
|
25
|
-
/>
|
|
26
|
-
<link
|
|
27
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
28
|
-
rel="stylesheet"
|
|
29
|
-
/>
|
|
30
|
-
<link
|
|
31
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
32
|
-
rel="stylesheet"
|
|
33
|
-
/>
|
|
34
|
-
|
|
35
|
-
<style>
|
|
36
|
-
${MDTypeScaleStyles.cssText}
|
|
37
|
-
</style>
|
|
38
|
-
|
|
39
|
-
<style>
|
|
40
|
-
.container {
|
|
41
|
-
height: 500px;
|
|
42
|
-
text-align: center;
|
|
43
|
-
padding: 20px;
|
|
44
|
-
background-color: var(--md-sys-color-primary-container);
|
|
45
|
-
color: var(--md-sys-color-on-primary-container);
|
|
46
|
-
|
|
47
|
-
padding: 20px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
ox-buttons-radio {
|
|
51
|
-
padding: 20px;
|
|
52
|
-
}
|
|
53
|
-
</style>
|
|
54
|
-
|
|
55
|
-
<div class="container md-typescale-body-large-prominent">
|
|
56
|
-
<div class="header">
|
|
57
|
-
<div class="title">${label}</div>
|
|
58
|
-
|
|
59
|
-
<div class="filters"><label>Filter</label><input type="text" /></div>
|
|
60
|
-
|
|
61
|
-
<ox-context-page-toolbar
|
|
62
|
-
class="actions"
|
|
63
|
-
.tools=${[
|
|
64
|
-
{
|
|
65
|
-
position: TOOL_POSITION.FRONT,
|
|
66
|
-
template: html ` <md-icon>download</md-icon> `,
|
|
67
|
-
context: 'exportable'
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
position: TOOL_POSITION.FRONT,
|
|
71
|
-
template: html ` <md-icon>upload</md-icon> `,
|
|
72
|
-
context: 'importable'
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
position: TOOL_POSITION.CENTER,
|
|
76
|
-
template: html `<ox-page-action-context-bar
|
|
77
|
-
.actions=${[
|
|
78
|
-
{
|
|
79
|
-
title: 'save',
|
|
80
|
-
action: () => { },
|
|
81
|
-
icon: 'save'
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
title: 'copy',
|
|
85
|
-
action: () => { },
|
|
86
|
-
icon: 'content_copy'
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
title: 'delete',
|
|
90
|
-
action: () => { },
|
|
91
|
-
icon: 'delete',
|
|
92
|
-
emphasis: {
|
|
93
|
-
danger: true
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
]}
|
|
97
|
-
></ox-page-action-context-bar>`
|
|
98
|
-
}
|
|
99
|
-
]}
|
|
100
|
-
.context=${{
|
|
101
|
-
exportable: true,
|
|
102
|
-
importable: true,
|
|
103
|
-
toolbar: false
|
|
104
|
-
}}
|
|
105
|
-
}
|
|
106
|
-
>
|
|
107
|
-
</ox-context-page-toolbar>
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
`;
|
|
111
|
-
export const Regular = Template.bind({});
|
|
112
|
-
Regular.args = {
|
|
113
|
-
label: 'common header styles'
|
|
114
|
-
};
|
|
115
|
-
//# sourceMappingURL=ox-context-page-toolbar.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ox-context-page-toolbar.stories.js","sourceRoot":"","sources":["../../stories/ox-context-page-toolbar.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,2CAA2C,CAAA;AAClD,OAAO,4CAA4C,CAAA;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AACvD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,yBAAyB;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAC7B;CACF,CAAA;AAYD,MAAM,QAAQ,GAAoB,CAAC,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqB9D,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;2BAqBJ,KAAK;;;;;;iBAMf;IACP;QACE,QAAQ,EAAE,aAAa,CAAC,KAAK;QAC7B,QAAQ,EAAE,IAAI,CAAA,+BAA+B;QAC7C,OAAO,EAAE,YAAY;KACtB;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,KAAK;QAC7B,QAAQ,EAAE,IAAI,CAAA,6BAA6B;QAC3C,OAAO,EAAE,YAAY;KACtB;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,MAAM;QAC9B,QAAQ,EAAE,IAAI,CAAA;yBACD;YACT;gBACE,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,MAAM;aACb;YACD;gBACE,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,cAAc;aACrB;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;gBAChB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE;oBACR,MAAM,EAAE,IAAI;iBACb;aACF;SACF;2CAC4B;KAChC;CACF;mBACU;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,KAAK;CACf;;;;;;CAMR,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,KAAK,EAAE,sBAAsB;CAC9B,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport '../src/layouts/ox-context-page-toolbar.js'\nimport '../src/tools/ox-page-action-context-bar.js'\nimport { CommonHeaderStyles } from '@operato/styles'\nimport { TOOL_POSITION } from '@operato/layout'\n\nimport '@operato/styles'\n\nimport { css, html, render, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-context-page-toolbar',\n component: 'ox-context-page-toolbar',\n argTypes: {\n label: { control: 'string' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n label?: string\n}\n\nconst Template: Story<ArgTypes> = ({ label = '' }: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n\n padding: 20px;\n }\n\n ox-buttons-radio {\n padding: 20px;\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <div class=\"header\">\n <div class=\"title\">${label}</div>\n\n <div class=\"filters\"><label>Filter</label><input type=\"text\" /></div>\n\n <ox-context-page-toolbar\n class=\"actions\"\n .tools=${[\n {\n position: TOOL_POSITION.FRONT,\n template: html` <md-icon>download</md-icon> `,\n context: 'exportable'\n },\n {\n position: TOOL_POSITION.FRONT,\n template: html` <md-icon>upload</md-icon> `,\n context: 'importable'\n },\n {\n position: TOOL_POSITION.CENTER,\n template: html`<ox-page-action-context-bar\n .actions=${[\n {\n title: 'save',\n action: () => {},\n icon: 'save'\n },\n {\n title: 'copy',\n action: () => {},\n icon: 'content_copy'\n },\n {\n title: 'delete',\n action: () => {},\n icon: 'delete',\n emphasis: {\n danger: true\n }\n }\n ]}\n ></ox-page-action-context-bar>`\n }\n ]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: false\n }}\n }\n >\n </ox-context-page-toolbar>\n </div>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n label: 'common header styles'\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../src/layouts/ox-context-toolbar.js';
|
|
3
|
-
import '../src/tools/ox-page-action-context-bar.js';
|
|
4
|
-
import '@operato/styles';
|
|
5
|
-
import { TemplateResult } from 'lit';
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: string;
|
|
9
|
-
argTypes: {
|
|
10
|
-
theme: {
|
|
11
|
-
control: string;
|
|
12
|
-
options: string[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
interface Story<T> {
|
|
18
|
-
(args: T): TemplateResult;
|
|
19
|
-
args?: Partial<T>;
|
|
20
|
-
argTypes?: Record<string, unknown>;
|
|
21
|
-
}
|
|
22
|
-
interface ArgTypes {
|
|
23
|
-
}
|
|
24
|
-
export declare const Regular: Story<ArgTypes>;
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import '@material/web/icon/icon.js';
|
|
2
|
-
import '../src/layouts/ox-context-toolbar.js';
|
|
3
|
-
import '../src/tools/ox-page-action-context-bar.js';
|
|
4
|
-
import { TOOL_POSITION } from '@operato/layout';
|
|
5
|
-
import '@operato/styles';
|
|
6
|
-
import { html } from 'lit';
|
|
7
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
|
8
|
-
export default {
|
|
9
|
-
title: 'ox-context-toolbar complex',
|
|
10
|
-
component: 'ox-context-toolbar',
|
|
11
|
-
argTypes: {
|
|
12
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
const Template = ({}) => html `
|
|
16
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
|
17
|
-
|
|
18
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
|
19
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
|
20
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
|
21
|
-
|
|
22
|
-
<link
|
|
23
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
24
|
-
rel="stylesheet"
|
|
25
|
-
/>
|
|
26
|
-
<link
|
|
27
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
28
|
-
rel="stylesheet"
|
|
29
|
-
/>
|
|
30
|
-
<link
|
|
31
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
32
|
-
rel="stylesheet"
|
|
33
|
-
/>
|
|
34
|
-
|
|
35
|
-
<style>
|
|
36
|
-
${MDTypeScaleStyles.cssText}
|
|
37
|
-
</style>
|
|
38
|
-
|
|
39
|
-
<style>
|
|
40
|
-
.container {
|
|
41
|
-
height: 500px;
|
|
42
|
-
text-align: center;
|
|
43
|
-
padding: 20px;
|
|
44
|
-
background-color: var(--md-sys-color-primary-container);
|
|
45
|
-
color: var(--md-sys-color-on-primary-container);
|
|
46
|
-
|
|
47
|
-
padding: 20px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
ox-buttons-radio {
|
|
51
|
-
padding: 20px;
|
|
52
|
-
}
|
|
53
|
-
</style>
|
|
54
|
-
|
|
55
|
-
<div class="container md-typescale-body-large-prominent">
|
|
56
|
-
<ox-context-toolbar
|
|
57
|
-
.tools=${[
|
|
58
|
-
{
|
|
59
|
-
position: TOOL_POSITION.FRONT_END,
|
|
60
|
-
template: html ` <md-icon>download</md-icon> `,
|
|
61
|
-
context: 'exportable'
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
position: TOOL_POSITION.FRONT_END,
|
|
65
|
-
template: html ` <md-icon>upload</md-icon> `,
|
|
66
|
-
context: 'importable'
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
position: TOOL_POSITION.FRONT,
|
|
70
|
-
template: html ` <md-icon>download</md-icon> `,
|
|
71
|
-
context: 'exportable'
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
position: TOOL_POSITION.FRONT,
|
|
75
|
-
template: html ` <md-icon>upload</md-icon> `,
|
|
76
|
-
context: 'importable'
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
position: TOOL_POSITION.CENTER,
|
|
80
|
-
template: html `<ox-page-action-context-bar
|
|
81
|
-
.actions=${[
|
|
82
|
-
{
|
|
83
|
-
title: 'save',
|
|
84
|
-
action: () => { },
|
|
85
|
-
icon: 'save'
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
title: 'copy',
|
|
89
|
-
action: () => { },
|
|
90
|
-
icon: 'content_copy'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
title: 'delete',
|
|
94
|
-
action: () => { },
|
|
95
|
-
icon: 'delete',
|
|
96
|
-
emphasis: {
|
|
97
|
-
danger: true
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]}
|
|
101
|
-
></ox-page-action-context-bar>`
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
position: TOOL_POSITION.REAR,
|
|
105
|
-
template: html `<ox-page-action-context-bar
|
|
106
|
-
.actions=${[
|
|
107
|
-
{
|
|
108
|
-
title: 'save',
|
|
109
|
-
action: () => { },
|
|
110
|
-
icon: 'save'
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
title: 'copy',
|
|
114
|
-
action: () => { },
|
|
115
|
-
icon: 'content_copy'
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
title: 'delete',
|
|
119
|
-
action: () => { },
|
|
120
|
-
icon: 'delete'
|
|
121
|
-
}
|
|
122
|
-
]}
|
|
123
|
-
></ox-page-action-context-bar>`
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
position: TOOL_POSITION.REAR_END,
|
|
127
|
-
template: html `<ox-page-action-context-bar
|
|
128
|
-
.actions=${[
|
|
129
|
-
{
|
|
130
|
-
title: 'save',
|
|
131
|
-
action: () => { },
|
|
132
|
-
icon: 'save'
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
title: 'copy',
|
|
136
|
-
action: () => { },
|
|
137
|
-
icon: 'content_copy'
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
title: 'delete',
|
|
141
|
-
action: () => { },
|
|
142
|
-
icon: 'delete'
|
|
143
|
-
}
|
|
144
|
-
]}
|
|
145
|
-
></ox-page-action-context-bar>`
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
position: TOOL_POSITION.REAR_END,
|
|
149
|
-
template: html ` <md-icon>download</md-icon> `,
|
|
150
|
-
context: 'exportable'
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
position: TOOL_POSITION.REAR_END,
|
|
154
|
-
template: html ` <md-icon>upload</md-icon> `,
|
|
155
|
-
context: 'importable'
|
|
156
|
-
}
|
|
157
|
-
]}
|
|
158
|
-
.context=${{
|
|
159
|
-
exportable: true,
|
|
160
|
-
importable: true,
|
|
161
|
-
toolbar: true
|
|
162
|
-
}}
|
|
163
|
-
>
|
|
164
|
-
</ox-context-toolbar>
|
|
165
|
-
</div>
|
|
166
|
-
`;
|
|
167
|
-
export const Regular = Template.bind({});
|
|
168
|
-
Regular.args = {};
|
|
169
|
-
//# sourceMappingURL=ox-context-toolbar-complex.stories.js.map
|