@operato/context 10.29.81 → 10.29.84

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 (53) hide show
  1. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.d.ts +25 -0
  2. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js +151 -0
  3. package/dist/stories/ox-context-page-toolbar-select.stories.d.ts +24 -0
  4. package/dist/stories/ox-context-page-toolbar-select.stories.js +115 -0
  5. package/dist/stories/ox-context-page-toolbar.stories.d.ts +24 -0
  6. package/dist/stories/ox-context-page-toolbar.stories.js +115 -0
  7. package/dist/stories/ox-context-toolbar-complex.stories.d.ts +24 -0
  8. package/dist/stories/ox-context-toolbar-complex.stories.js +169 -0
  9. package/dist/stories/ox-context-toolbar-cooldown.stories.d.ts +18 -0
  10. package/dist/stories/ox-context-toolbar-cooldown.stories.js +100 -0
  11. package/dist/stories/ox-context-toolbar-empty.stories.d.ts +23 -0
  12. package/dist/stories/ox-context-toolbar-empty.stories.js +98 -0
  13. package/dist/stories/ox-context-toolbar-overflow.stories.d.ts +24 -0
  14. package/dist/stories/ox-context-toolbar-overflow.stories.js +153 -0
  15. package/dist/stories/ox-context-toolbar.stories.d.ts +19 -0
  16. package/dist/stories/ox-context-toolbar.stories.js +209 -0
  17. package/package.json +21 -8
  18. package/CHANGELOG.md +0 -5517
  19. package/dist/src/index.js.map +0 -1
  20. package/dist/src/layouts/ox-context-page-toolbar.js.map +0 -1
  21. package/dist/src/layouts/ox-context-toolbar.js.map +0 -1
  22. package/dist/src/styles/ox-context-toolbar-overlay-style.js.map +0 -1
  23. package/dist/src/tools/ox-page-action-context-bar.js.map +0 -1
  24. package/dist/src/tools/ox-page-action-overlay-template.js.map +0 -1
  25. package/dist/src/tools/ox-page-title-bar.js.map +0 -1
  26. package/dist/src/tools/ox-title-bar.js.map +0 -1
  27. package/dist/src/tools/page-action-render.js.map +0 -1
  28. package/dist/src/tools/page-action.js.map +0 -1
  29. package/dist/test/action-bar-contract.test.d.ts +0 -2
  30. package/dist/test/action-bar-contract.test.js +0 -179
  31. package/dist/test/action-bar-contract.test.js.map +0 -1
  32. package/dist/test/action-bar-focus.test.d.ts +0 -1
  33. package/dist/test/action-bar-focus.test.js +0 -67
  34. package/dist/test/action-bar-focus.test.js.map +0 -1
  35. package/dist/test/action-bar-overflow.test.d.ts +0 -1
  36. package/dist/test/action-bar-overflow.test.js +0 -42
  37. package/dist/test/action-bar-overflow.test.js.map +0 -1
  38. package/dist/test/page-frames.test.d.ts +0 -1
  39. package/dist/test/page-frames.test.js +0 -59
  40. package/dist/test/page-frames.test.js.map +0 -1
  41. package/dist/test/page-title-description.test.d.ts +0 -1
  42. package/dist/test/page-title-description.test.js +0 -90
  43. package/dist/test/page-title-description.test.js.map +0 -1
  44. package/dist/test/title-search-typing.test.d.ts +0 -2
  45. package/dist/test/title-search-typing.test.js +0 -37
  46. package/dist/test/title-search-typing.test.js.map +0 -1
  47. package/dist/tsconfig.tsbuildinfo +0 -1
  48. package/test/action-bar-contract.test.ts +0 -200
  49. package/test/action-bar-focus.test.ts +0 -83
  50. package/test/action-bar-overflow.test.ts +0 -50
  51. package/test/page-frames.test.ts +0 -67
  52. package/test/page-title-description.test.ts +0 -106
  53. package/test/title-search-typing.test.ts +0 -43
@@ -0,0 +1,25 @@
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 '@operato/styles';
6
+ import { TemplateResult } from 'lit';
7
+ declare const _default: {
8
+ title: string;
9
+ component: string;
10
+ argTypes: {
11
+ label: {
12
+ control: 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
+ label?: string;
24
+ }
25
+ export declare const Regular: Story<ArgTypes>;
@@ -0,0 +1,151 @@
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
@@ -0,0 +1,24 @@
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>;
@@ -0,0 +1,115 @@
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
@@ -0,0 +1,24 @@
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>;
@@ -0,0 +1,115 @@
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
@@ -0,0 +1,24 @@
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>;
@@ -0,0 +1,169 @@
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
@@ -0,0 +1,18 @@
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 { TemplateResult } from 'lit';
5
+ declare const _default: {
6
+ title: string;
7
+ component: string;
8
+ argTypes: {};
9
+ };
10
+ export default _default;
11
+ interface Story<T> {
12
+ (args: T): TemplateResult;
13
+ args?: Partial<T>;
14
+ argTypes?: Record<string, unknown>;
15
+ }
16
+ interface ArgTypes {
17
+ }
18
+ export declare const Regular: Story<ArgTypes>;