@operato/context 2.0.0-alpha.65 → 2.0.0-alpha.67

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 (24) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/src/layouts/ox-context-page-toolbar.js +15 -5
  3. package/dist/src/layouts/ox-context-page-toolbar.js.map +1 -1
  4. package/dist/src/layouts/ox-context-toolbar.d.ts +1 -1
  5. package/dist/src/layouts/ox-context-toolbar.js +76 -58
  6. package/dist/src/layouts/ox-context-toolbar.js.map +1 -1
  7. package/dist/stories/{ox-context-toolbar.stories copy.js → ox-context-toolbar-empty.stories.js} +4 -38
  8. package/dist/stories/ox-context-toolbar-empty.stories.js.map +1 -0
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/package.json +2 -2
  11. package/src/layouts/ox-context-page-toolbar.ts +15 -5
  12. package/src/layouts/ox-context-toolbar.ts +84 -66
  13. package/stories/ox-context-toolbar-empty.stories.ts +61 -0
  14. package/dist/stories/ox-context-page-toolbar.stories copy.d.ts +0 -24
  15. package/dist/stories/ox-context-page-toolbar.stories copy.js +0 -90
  16. package/dist/stories/ox-context-page-toolbar.stories copy.js.map +0 -1
  17. package/dist/stories/ox-context-toolbar-complex-2.stories.js +0 -136
  18. package/dist/stories/ox-context-toolbar-complex-2.stories.js.map +0 -1
  19. package/dist/stories/ox-context-toolbar-complex.stories copy.d.ts +0 -19
  20. package/dist/stories/ox-context-toolbar-complex.stories copy.js +0 -146
  21. package/dist/stories/ox-context-toolbar-complex.stories copy.js.map +0 -1
  22. package/dist/stories/ox-context-toolbar.stories copy.d.ts +0 -19
  23. package/dist/stories/ox-context-toolbar.stories copy.js.map +0 -1
  24. /package/dist/stories/{ox-context-toolbar-complex-2.stories.d.ts → ox-context-toolbar-empty.stories.d.ts} +0 -0
@@ -0,0 +1,61 @@
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
+
6
+ import '@operato/styles'
7
+
8
+ import { css, html, render, TemplateResult } from 'lit'
9
+
10
+ export default {
11
+ title: 'ox-context-toolbar empty',
12
+ component: 'ox-context-toolbar',
13
+ argTypes: {}
14
+ }
15
+
16
+ interface Story<T> {
17
+ (args: T): TemplateResult
18
+ args?: Partial<T>
19
+ argTypes?: Record<string, unknown>
20
+ }
21
+
22
+ interface ArgTypes {}
23
+
24
+ const Template: Story<ArgTypes> = () => html`
25
+ <link href="/themes/app-theme.css" rel="stylesheet" />
26
+ <link href="/themes/context-theme.css" rel="stylesheet" />
27
+
28
+ <link
29
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
30
+ rel="stylesheet"
31
+ />
32
+ <link
33
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
34
+ rel="stylesheet"
35
+ />
36
+ <link
37
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
38
+ rel="stylesheet"
39
+ />
40
+
41
+ <style>
42
+ body {
43
+ background-color: white;
44
+ }
45
+ </style>
46
+
47
+ <div style="height:100px; padding: 10px; background-color: black;">
48
+ <ox-context-toolbar
49
+ .tools=${[]}
50
+ .context=${{
51
+ exportable: true,
52
+ importable: true,
53
+ toolbar: false
54
+ }}
55
+ >
56
+ </ox-context-toolbar>
57
+ </div>
58
+ `
59
+
60
+ export const Regular = Template.bind({})
61
+ Regular.args = {}
@@ -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,90 +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 { CommonHeaderStyles } from '@operato/styles';
5
- import { TOOL_POSITION } from '@operato/layout';
6
- import '@operato/styles';
7
- import { html } from 'lit';
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="/themes/app-theme.css" rel="stylesheet" />
17
-
18
- <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
19
- <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
20
- <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1" rel="stylesheet">
21
-
22
- <style>
23
- body {
24
- background-color: white;
25
- }
26
-
27
- ${CommonHeaderStyles.cssText}
28
- </style>
29
-
30
- <div style="height:600px;">
31
- <div class="header">
32
- <div class="title">
33
- <md-icon>summarize</md-icon>
34
- ${label}
35
- </div>
36
-
37
- <div class="filters">
38
- <label>Filter</label><input type="text"></input>
39
- </div>
40
-
41
- <ox-context-page-toolbar class="actions"
42
- .tools=${[
43
- {
44
- position: TOOL_POSITION.FRONT,
45
- template: html ` <md-icon>download</md-icon> `,
46
- context: 'exportable'
47
- },
48
- {
49
- position: TOOL_POSITION.FRONT,
50
- template: html ` <md-icon>upload</md-icon> `,
51
- context: 'importable'
52
- },
53
- {
54
- position: TOOL_POSITION.CENTER,
55
- template: html `<ox-page-action-context-bar
56
- .actions=${[
57
- {
58
- title: 'save',
59
- action: () => { },
60
- icon: 'save'
61
- },
62
- {
63
- title: 'copy',
64
- action: () => { },
65
- icon: 'content_copy'
66
- },
67
- {
68
- title: 'delete',
69
- action: () => { },
70
- icon: 'delete'
71
- }
72
- ]}
73
- ></ox-page-action-context-bar>`
74
- }
75
- ]}
76
- .context=${{
77
- exportable: true,
78
- importable: true,
79
- toolbar: false
80
- }}
81
-
82
- }> </ox-context-page-toolbar>
83
- </div>
84
- </div>
85
- `;
86
- export const Regular = Template.bind({});
87
- Regular.args = {
88
- label: 'common header styles'
89
- };
90
- //# sourceMappingURL=ox-context-page-toolbar.stories%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ox-context-page-toolbar.stories copy.js","sourceRoot":"","sources":["../../stories/ox-context-page-toolbar.stories copy.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,2CAA2C,CAAA;AAClD,OAAO,4CAA4C,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AAEvD,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;;;;;;;;;;;;MAY9D,kBAAkB,CAAC,OAAO;;;;;;;UAOtB,KAAK;;;;;;;;eAQA;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;uBACD;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;aACf;SACF;yCAC4B;KAChC;CACF;iBACU;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,KAAK;CACf;;;;;CAKN,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'\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=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n \n <link href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\" rel=\"stylesheet\">\n <link href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\" rel=\"stylesheet\">\n <link href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\" rel=\"stylesheet\">\n \n <style>\n body {\n background-color: white;\n }\n\n ${CommonHeaderStyles.cssText}\n </style>\n\n <div style=\"height:600px;\">\n <div class=\"header\">\n <div class=\"title\">\n <md-icon>summarize</md-icon>\n ${label}\n </div>\n\n <div class=\"filters\">\n <label>Filter</label><input type=\"text\"></input>\n </div>\n\n <ox-context-page-toolbar 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 }\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,136 +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
- export default {
8
- title: 'ox-context-toolbar complex-2',
9
- component: 'ox-context-toolbar',
10
- argTypes: {}
11
- };
12
- const Template = () => html `
13
- <link href="/themes/app-theme.css" rel="stylesheet" />
14
- <link href="/themes/context-theme.css" rel="stylesheet" />
15
-
16
- <link
17
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
18
- rel="stylesheet"
19
- />
20
- <link
21
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
22
- rel="stylesheet"
23
- />
24
- <link
25
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
26
- rel="stylesheet"
27
- />
28
-
29
- <style>
30
- body {
31
- background-color: white;
32
- }
33
- </style>
34
-
35
- <div style="height:100px; padding: 10px; background-color: black;">
36
- <ox-context-toolbar
37
- .tools=${[
38
- {
39
- position: TOOL_POSITION.FRONT,
40
- template: html ` <md-icon>download</md-icon> `,
41
- context: 'exportable'
42
- },
43
- {
44
- position: TOOL_POSITION.FRONT,
45
- template: html ` <md-icon>upload</md-icon> `,
46
- context: 'importable'
47
- },
48
- {
49
- position: TOOL_POSITION.CENTER,
50
- template: html `<ox-page-action-context-bar
51
- .actions=${[
52
- {
53
- title: 'save',
54
- action: () => { },
55
- icon: 'save'
56
- },
57
- {
58
- title: 'copy',
59
- action: () => { },
60
- icon: 'content_copy'
61
- },
62
- {
63
- title: 'delete',
64
- action: () => { },
65
- icon: 'delete'
66
- }
67
- ]}
68
- ></ox-page-action-context-bar>`
69
- },
70
- {
71
- position: TOOL_POSITION.REAR,
72
- template: html `<ox-page-action-context-bar
73
- .actions=${[
74
- {
75
- title: 'save',
76
- action: () => { },
77
- icon: 'save'
78
- },
79
- {
80
- title: 'copy',
81
- action: () => { },
82
- icon: 'content_copy'
83
- },
84
- {
85
- title: 'delete',
86
- action: () => { },
87
- icon: 'delete'
88
- }
89
- ]}
90
- ></ox-page-action-context-bar>`
91
- },
92
- {
93
- position: TOOL_POSITION.REAR_END,
94
- template: html `<ox-page-action-context-bar
95
- .actions=${[
96
- {
97
- title: 'save',
98
- action: () => { },
99
- icon: 'save'
100
- },
101
- {
102
- title: 'copy',
103
- action: () => { },
104
- icon: 'content_copy'
105
- },
106
- {
107
- title: 'delete',
108
- action: () => { },
109
- icon: 'delete'
110
- }
111
- ]}
112
- ></ox-page-action-context-bar>`
113
- },
114
- {
115
- position: TOOL_POSITION.REAR_END,
116
- template: html ` <md-icon>download</md-icon> `,
117
- context: 'exportable'
118
- },
119
- {
120
- position: TOOL_POSITION.REAR_END,
121
- template: html ` <md-icon>upload</md-icon> `,
122
- context: 'importable'
123
- }
124
- ]}
125
- .context=${{
126
- exportable: true,
127
- importable: true,
128
- toolbar: true
129
- }}
130
- >
131
- </ox-context-toolbar>
132
- </div>
133
- `;
134
- export const Regular = Template.bind({});
135
- Regular.args = {};
136
- //# sourceMappingURL=ox-context-toolbar-complex-2.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ox-context-toolbar-complex-2.stories.js","sourceRoot":"","sources":["../../stories/ox-context-toolbar-complex-2.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,sCAAsC,CAAA;AAC7C,OAAO,4CAA4C,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AAEvD,eAAe;IACb,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,EAAE;CACb,CAAA;AAUD,MAAM,QAAQ,GAAoB,GAAG,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;eAyB7B;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,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BAChB,IAAI,EAAE,QAAQ;aACf;SACF;yCAC4B;KAChC;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,QAAQ;QAChC,QAAQ,EAAE,IAAI,CAAA,+BAA+B;QAC7C,OAAO,EAAE,YAAY;KACtB;IACD;QACE,QAAQ,EAAE,aAAa,CAAC,QAAQ;QAChC,QAAQ,EAAE,IAAI,CAAA,6BAA6B;QAC3C,OAAO,EAAE,YAAY;KACtB;CACF;iBACU;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;CACd;;;;CAIN,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG,EAAE,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport '../src/layouts/ox-context-toolbar.js'\nimport '../src/tools/ox-page-action-context-bar.js'\nimport { TOOL_POSITION } from '@operato/layout'\n\nimport '@operato/styles'\n\nimport { css, html, render, TemplateResult } from 'lit'\n\nexport default {\n title: 'ox-context-toolbar complex-2',\n component: 'ox-context-toolbar',\n argTypes: {}\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {}\n\nconst Template: Story<ArgTypes> = () => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"/themes/context-theme.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 body {\n background-color: white;\n }\n </style>\n\n <div style=\"height:100px; padding: 10px; background-color: black;\">\n <ox-context-toolbar\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 }\n ]}\n ></ox-page-action-context-bar>`\n },\n {\n position: TOOL_POSITION.REAR,\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 }\n ]}\n ></ox-page-action-context-bar>`\n },\n {\n position: TOOL_POSITION.REAR_END,\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 }\n ]}\n ></ox-page-action-context-bar>`\n },\n {\n position: TOOL_POSITION.REAR_END,\n template: html` <md-icon>download</md-icon> `,\n context: 'exportable'\n },\n {\n position: TOOL_POSITION.REAR_END,\n template: html` <md-icon>upload</md-icon> `,\n context: 'importable'\n }\n ]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: true\n }}\n >\n </ox-context-toolbar>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {}\n"]}
@@ -1,19 +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
- };
11
- export default _default;
12
- interface Story<T> {
13
- (args: T): TemplateResult;
14
- args?: Partial<T>;
15
- argTypes?: Record<string, unknown>;
16
- }
17
- interface ArgTypes {
18
- }
19
- export declare const Regular: Story<ArgTypes>;
@@ -1,146 +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
- export default {
8
- title: 'ox-context-toolbar complex',
9
- component: 'ox-context-toolbar',
10
- argTypes: {}
11
- };
12
- const Template = () => html `
13
- <link href="/themes/app-theme.css" rel="stylesheet" />
14
- <link href="/themes/context-theme.css" rel="stylesheet" />
15
-
16
- <link
17
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
18
- rel="stylesheet"
19
- />
20
- <link
21
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
22
- rel="stylesheet"
23
- />
24
- <link
25
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
26
- rel="stylesheet"
27
- />
28
-
29
- <style>
30
- body {
31
- background-color: white;
32
- }
33
- </style>
34
-
35
- <div style="height:100px; padding: 10px; background-color: black;">
36
- <ox-context-toolbar
37
- .tools=${[
38
- {
39
- position: TOOL_POSITION.FRONT_END,
40
- template: html ` <md-icon>download</md-icon> `,
41
- context: 'exportable'
42
- },
43
- {
44
- position: TOOL_POSITION.FRONT_END,
45
- template: html ` <md-icon>upload</md-icon> `,
46
- context: 'importable'
47
- },
48
- {
49
- position: TOOL_POSITION.FRONT,
50
- template: html ` <md-icon>download</md-icon> `,
51
- context: 'exportable'
52
- },
53
- {
54
- position: TOOL_POSITION.FRONT,
55
- template: html ` <md-icon>upload</md-icon> `,
56
- context: 'importable'
57
- },
58
- {
59
- position: TOOL_POSITION.CENTER,
60
- template: html `<ox-page-action-context-bar
61
- .actions=${[
62
- {
63
- title: 'save',
64
- action: () => { },
65
- icon: 'save'
66
- },
67
- {
68
- title: 'copy',
69
- action: () => { },
70
- icon: 'content_copy'
71
- },
72
- {
73
- title: 'delete',
74
- action: () => { },
75
- icon: 'delete'
76
- }
77
- ]}
78
- ></ox-page-action-context-bar>`
79
- },
80
- {
81
- position: TOOL_POSITION.REAR,
82
- template: html `<ox-page-action-context-bar
83
- .actions=${[
84
- {
85
- title: 'save',
86
- action: () => { },
87
- icon: 'save'
88
- },
89
- {
90
- title: 'copy',
91
- action: () => { },
92
- icon: 'content_copy'
93
- },
94
- {
95
- title: 'delete',
96
- action: () => { },
97
- icon: 'delete'
98
- }
99
- ]}
100
- ></ox-page-action-context-bar>`
101
- },
102
- {
103
- position: TOOL_POSITION.REAR_END,
104
- template: html `<ox-page-action-context-bar
105
- .actions=${[
106
- {
107
- title: 'save',
108
- action: () => { },
109
- icon: 'save'
110
- },
111
- {
112
- title: 'copy',
113
- action: () => { },
114
- icon: 'content_copy'
115
- },
116
- {
117
- title: 'delete',
118
- action: () => { },
119
- icon: 'delete'
120
- }
121
- ]}
122
- ></ox-page-action-context-bar>`
123
- },
124
- {
125
- position: TOOL_POSITION.REAR_END,
126
- template: html ` <md-icon>download</md-icon> `,
127
- context: 'exportable'
128
- },
129
- {
130
- position: TOOL_POSITION.REAR_END,
131
- template: html ` <md-icon>upload</md-icon> `,
132
- context: 'importable'
133
- }
134
- ]}
135
- .context=${{
136
- exportable: true,
137
- importable: true,
138
- toolbar: true
139
- }}
140
- >
141
- </ox-context-toolbar>
142
- </div>
143
- `;
144
- export const Regular = Template.bind({});
145
- Regular.args = {};
146
- //# sourceMappingURL=ox-context-toolbar-complex.stories%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ox-context-toolbar-complex.stories copy.js","sourceRoot":"","sources":["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AM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG,EAAE,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport '../src/layouts/ox-context-toolbar.js'\nimport '../src/tools/ox-page-action-context-bar.js'\nimport { TOOL_POSITION } from '@operato/layout'\n\nimport '@operato/styles'\n\nimport { css, html, render, TemplateResult } from 'lit'\n\nexport default {\n title: 'ox-context-toolbar complex',\n component: 'ox-context-toolbar',\n argTypes: {}\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {}\n\nconst Template: Story<ArgTypes> = () => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"/themes/context-theme.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 body {\n background-color: white;\n }\n </style>\n\n <div style=\"height:100px; padding: 10px; background-color: black;\">\n <ox-context-toolbar\n .tools=${[\n {\n position: TOOL_POSITION.FRONT_END,\n template: html` <md-icon>download</md-icon> `,\n context: 'exportable'\n },\n {\n position: TOOL_POSITION.FRONT_END,\n template: html` <md-icon>upload</md-icon> `,\n context: 'importable'\n },\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 }\n ]}\n ></ox-page-action-context-bar>`\n },\n {\n position: TOOL_POSITION.REAR,\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 }\n ]}\n ></ox-page-action-context-bar>`\n },\n {\n position: TOOL_POSITION.REAR_END,\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 }\n ]}\n ></ox-page-action-context-bar>`\n },\n {\n position: TOOL_POSITION.REAR_END,\n template: html` <md-icon>download</md-icon> `,\n context: 'exportable'\n },\n {\n position: TOOL_POSITION.REAR_END,\n template: html` <md-icon>upload</md-icon> `,\n context: 'importable'\n }\n ]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: true\n }}\n >\n </ox-context-toolbar>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {}\n"]}
@@ -1,19 +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
- };
11
- export default _default;
12
- interface Story<T> {
13
- (args: T): TemplateResult;
14
- args?: Partial<T>;
15
- argTypes?: Record<string, unknown>;
16
- }
17
- interface ArgTypes {
18
- }
19
- export declare const Regular: Story<ArgTypes>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"ox-context-toolbar.stories copy.js","sourceRoot":"","s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C,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG,EAAE,CAAA","sourcesContent":["import '@material/web/icon/icon.js'\nimport '../src/layouts/ox-context-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'\n\nexport default {\n title: 'ox-context-toolbar',\n component: 'ox-context-toolbar',\n argTypes: {}\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {}\n\nconst Template: Story<ArgTypes> = () => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"/themes/context-theme.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 body {\n background-color: white;\n }\n </style>\n\n <div style=\"height:100px; padding: 10px; background-color: black;\">\n <ox-context-toolbar\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 }\n ]}\n ></ox-page-action-context-bar>`\n }\n ]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: true\n }}\n >\n </ox-context-toolbar>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {}\n"]}