@operato/context 2.0.0-alpha.13 → 2.0.0-alpha.131

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 (66) hide show
  1. package/CHANGELOG.md +708 -0
  2. package/demo/index.html +13 -2
  3. package/dist/src/layouts/ox-context-page-toolbar.d.ts +9 -4
  4. package/dist/src/layouts/ox-context-page-toolbar.js +30 -14
  5. package/dist/src/layouts/ox-context-page-toolbar.js.map +1 -1
  6. package/dist/src/layouts/ox-context-toolbar.d.ts +5 -3
  7. package/dist/src/layouts/ox-context-toolbar.js +138 -73
  8. package/dist/src/layouts/ox-context-toolbar.js.map +1 -1
  9. package/dist/src/styles/ox-context-toolbar-overlay-style.js +2 -2
  10. package/dist/src/styles/ox-context-toolbar-overlay-style.js.map +1 -1
  11. package/dist/src/tools/ox-page-action-context-bar.d.ts +14 -6
  12. package/dist/src/tools/ox-page-action-context-bar.js +84 -68
  13. package/dist/src/tools/ox-page-action-context-bar.js.map +1 -1
  14. package/dist/src/tools/ox-page-action-overlay-template.d.ts +3 -2
  15. package/dist/src/tools/ox-page-action-overlay-template.js +38 -39
  16. package/dist/src/tools/ox-page-action-overlay-template.js.map +1 -1
  17. package/dist/src/tools/ox-page-title-bar.d.ts +2 -2
  18. package/dist/src/tools/ox-page-title-bar.js +6 -8
  19. package/dist/src/tools/ox-page-title-bar.js.map +1 -1
  20. package/dist/src/tools/ox-title-bar.d.ts +2 -2
  21. package/dist/src/tools/ox-title-bar.js +6 -8
  22. package/dist/src/tools/ox-title-bar.js.map +1 -1
  23. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.d.ts +25 -0
  24. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js +127 -0
  25. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js.map +1 -0
  26. package/dist/stories/ox-context-page-toolbar-select.stories.d.ts +24 -0
  27. package/dist/stories/ox-context-page-toolbar-select.stories.js +94 -0
  28. package/dist/stories/ox-context-page-toolbar-select.stories.js.map +1 -0
  29. package/dist/stories/ox-context-page-toolbar.stories.d.ts +24 -0
  30. package/dist/stories/ox-context-page-toolbar.stories.js +93 -0
  31. package/dist/stories/ox-context-page-toolbar.stories.js.map +1 -0
  32. package/dist/stories/ox-context-toolbar-complex.stories.d.ts +19 -0
  33. package/dist/stories/ox-context-toolbar-complex.stories.js +150 -0
  34. package/dist/stories/ox-context-toolbar-complex.stories.js.map +1 -0
  35. package/dist/stories/ox-context-toolbar-cooldown.stories.d.ts +18 -0
  36. package/dist/stories/ox-context-toolbar-cooldown.stories.js +100 -0
  37. package/dist/stories/ox-context-toolbar-cooldown.stories.js.map +1 -0
  38. package/dist/stories/ox-context-toolbar-empty.stories.d.ts +18 -0
  39. package/dist/stories/ox-context-toolbar-empty.stories.js +79 -0
  40. package/dist/stories/ox-context-toolbar-empty.stories.js.map +1 -0
  41. package/dist/stories/ox-context-toolbar-overflow.stories.d.ts +19 -0
  42. package/dist/stories/ox-context-toolbar-overflow.stories.js +131 -0
  43. package/dist/stories/ox-context-toolbar-overflow.stories.js.map +1 -0
  44. package/dist/stories/ox-context-toolbar.stories.d.ts +19 -0
  45. package/dist/stories/ox-context-toolbar.stories.js +188 -0
  46. package/dist/stories/ox-context-toolbar.stories.js.map +1 -0
  47. package/dist/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +20 -20
  49. package/src/layouts/ox-context-page-toolbar.ts +33 -14
  50. package/src/layouts/ox-context-toolbar.ts +139 -70
  51. package/src/styles/ox-context-toolbar-overlay-style.ts +2 -2
  52. package/src/tools/ox-page-action-context-bar.ts +96 -69
  53. package/src/tools/ox-page-action-overlay-template.ts +50 -51
  54. package/src/tools/ox-page-title-bar.ts +6 -8
  55. package/src/tools/ox-title-bar.ts +6 -8
  56. package/stories/ox-context-page-toolbar-select-buttons.stories.ts +141 -0
  57. package/stories/ox-context-page-toolbar-select.stories.ts +108 -0
  58. package/stories/ox-context-page-toolbar.stories.ts +107 -0
  59. package/stories/ox-context-toolbar-complex.stories.ts +162 -0
  60. package/stories/ox-context-toolbar-cooldown.stories.ts +112 -0
  61. package/stories/ox-context-toolbar-empty.stories.ts +92 -0
  62. package/stories/ox-context-toolbar-overflow.stories.ts +143 -0
  63. package/stories/ox-context-toolbar.stories.ts +200 -0
  64. package/themes/app-theme.css +161 -0
  65. package/themes/context-theme.css +74 -0
  66. package/themes/material-theme.css +88 -0
@@ -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>;
@@ -0,0 +1,100 @@
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 { sleep } from '@operato/utils';
6
+ import { html } from 'lit';
7
+ export default {
8
+ title: 'ox-context-toolbar empty',
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/material-theme.css" rel="stylesheet" />
15
+ <link href="/themes/context-theme.css" rel="stylesheet" />
16
+
17
+ <link
18
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
19
+ rel="stylesheet"
20
+ />
21
+ <link
22
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
23
+ rel="stylesheet"
24
+ />
25
+ <link
26
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
27
+ rel="stylesheet"
28
+ />
29
+
30
+ <style>
31
+ body {
32
+ background-color: white;
33
+ }
34
+ </style>
35
+
36
+ <div style="display: flex; flex-direction: column; gap: 10px; padding: 10px; background-color: black;">
37
+ <ox-context-toolbar
38
+ .tools=${[]}
39
+ .context=${{
40
+ exportable: true,
41
+ importable: true,
42
+ toolbar: true
43
+ }}
44
+ >
45
+ </ox-context-toolbar>
46
+
47
+ <ox-context-toolbar
48
+ .tools=${[
49
+ {
50
+ position: TOOL_POSITION.CENTER,
51
+ template: html `<ox-page-action-context-bar .actions=${[]}></ox-page-action-context-bar>`
52
+ }
53
+ ]}
54
+ .context=${{
55
+ exportable: true,
56
+ importable: true,
57
+ toolbar: true
58
+ }}
59
+ >
60
+ </ox-context-toolbar>
61
+
62
+ <ox-context-toolbar
63
+ .tools=${[
64
+ {
65
+ position: TOOL_POSITION.CENTER,
66
+ template: html `<ox-page-action-context-bar
67
+ .actions=${[
68
+ {
69
+ type: 'icon',
70
+ action: async () => { },
71
+ icon: 'check'
72
+ },
73
+ {
74
+ title: 'short-take(0secs)',
75
+ action: async () => { },
76
+ icon: 'delete'
77
+ },
78
+ {
79
+ title: 'long-take(3secs)',
80
+ action: async () => {
81
+ await sleep(3000);
82
+ },
83
+ icon: 'save'
84
+ }
85
+ ]}
86
+ ></ox-page-action-context-bar>`
87
+ }
88
+ ]}
89
+ .context=${{
90
+ exportable: true,
91
+ importable: true,
92
+ toolbar: true
93
+ }}
94
+ >
95
+ </ox-context-toolbar>
96
+ </div>
97
+ `;
98
+ export const Regular = Template.bind({});
99
+ Regular.args = {};
100
+ //# sourceMappingURL=ox-context-toolbar-cooldown.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-context-toolbar-cooldown.stories.js","sourceRoot":"","sources":["../../stories/ox-context-toolbar-cooldown.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,s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AO,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 { sleep } from '@operato/utils'\n\nimport { css, html, render, TemplateResult } from 'lit'\n\nexport default {\n title: 'ox-context-toolbar empty',\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/material-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=\"display: flex; flex-direction: column; gap: 10px; padding: 10px; background-color: black;\">\n <ox-context-toolbar\n .tools=${[]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: true\n }}\n >\n </ox-context-toolbar>\n\n <ox-context-toolbar\n .tools=${[\n {\n position: TOOL_POSITION.CENTER,\n template: html`<ox-page-action-context-bar .actions=${[]}></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\n <ox-context-toolbar\n .tools=${[\n {\n position: TOOL_POSITION.CENTER,\n template: html`<ox-page-action-context-bar\n .actions=${[\n {\n type: 'icon',\n action: async () => {},\n icon: 'check'\n },\n {\n title: 'short-take(0secs)',\n action: async () => {},\n icon: 'delete'\n },\n {\n title: 'long-take(3secs)',\n action: async () => {\n await sleep(3000)\n },\n icon: 'save'\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"]}
@@ -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>;
@@ -0,0 +1,79 @@
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 { html } from 'lit';
6
+ export default {
7
+ title: 'ox-context-toolbar empty',
8
+ component: 'ox-context-toolbar',
9
+ argTypes: {}
10
+ };
11
+ const Template = () => html `
12
+ <link href="/themes/app-theme.css" rel="stylesheet" />
13
+ <link href="/themes/material-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="display: flex; flex-direction: column; gap: 10px; padding: 10px; background-color: black;">
36
+ <ox-context-toolbar
37
+ .tools=${[]}
38
+ .context=${{
39
+ exportable: true,
40
+ importable: true,
41
+ toolbar: true
42
+ }}
43
+ >
44
+ </ox-context-toolbar>
45
+
46
+ <ox-context-toolbar
47
+ .tools=${[
48
+ {
49
+ position: TOOL_POSITION.CENTER,
50
+ template: html `<ox-page-action-context-bar .actions=${[]}></ox-page-action-context-bar>`
51
+ }
52
+ ]}
53
+ .context=${{
54
+ exportable: true,
55
+ importable: true,
56
+ toolbar: true
57
+ }}
58
+ >
59
+ </ox-context-toolbar>
60
+
61
+ <ox-context-toolbar
62
+ .tools=${[
63
+ {
64
+ position: TOOL_POSITION.CENTER,
65
+ template: html `<ox-page-action-context-bar .actions=${[]}></ox-page-action-context-bar>`
66
+ }
67
+ ]}
68
+ .context=${{
69
+ exportable: true,
70
+ importable: true,
71
+ toolbar: true
72
+ }}
73
+ >
74
+ </ox-context-toolbar>
75
+ </div>
76
+ `;
77
+ export const Regular = Template.bind({});
78
+ Regular.args = {};
79
+ //# sourceMappingURL=ox-context-toolbar-empty.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-context-toolbar-empty.stories.js","sourceRoot":"","sources":["../../stories/ox-context-toolbar-empty.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,sCAAsC,CAAA;AAC7C,OAAO,4CAA4C,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAI/C,OAAO,EAAO,IAAI,EAA0B,MAAM,KAAK,CAAA;AAEvD,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,EAAE;CACb,CAAA;AAUD,MAAM,QAAQ,GAAoB,GAAG,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;eA0B7B,EAAE;iBACA;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;CACd;;;;;eAKQ;IACP;QACE,QAAQ,EAAE,aAAa,CAAC,MAAM;QAC9B,QAAQ,EAAE,IAAI,CAAA,wCAAwC,EAAE,gCAAgC;KACzF;CACF;iBACU;IACT,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;CACd;;;;;eAKQ;IACP;QACE,QAAQ,EAAE,aAAa,CAAC,MAAM;QAC9B,QAAQ,EAAE,IAAI,CAAA,wCAAwC,EAAE,gCAAgC;KACzF;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 { sleep } from '@operato/utils'\n\nimport { css, html, render, TemplateResult } from 'lit'\n\nexport default {\n title: 'ox-context-toolbar empty',\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/material-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=\"display: flex; flex-direction: column; gap: 10px; padding: 10px; background-color: black;\">\n <ox-context-toolbar\n .tools=${[]}\n .context=${{\n exportable: true,\n importable: true,\n toolbar: true\n }}\n >\n </ox-context-toolbar>\n\n <ox-context-toolbar\n .tools=${[\n {\n position: TOOL_POSITION.CENTER,\n template: html`<ox-page-action-context-bar .actions=${[]}></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\n <ox-context-toolbar\n .tools=${[\n {\n position: TOOL_POSITION.CENTER,\n template: html`<ox-page-action-context-bar .actions=${[]}></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"]}
@@ -0,0 +1,19 @@
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>;
@@ -0,0 +1,131 @@
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 overflow',
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/material-theme.css" rel="stylesheet" />
15
+ <link href="/themes/context-theme.css" rel="stylesheet" />
16
+
17
+ <link
18
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
19
+ rel="stylesheet"
20
+ />
21
+ <link
22
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
23
+ rel="stylesheet"
24
+ />
25
+ <link
26
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
27
+ rel="stylesheet"
28
+ />
29
+
30
+ <style>
31
+ body {
32
+ background-color: white;
33
+ }
34
+ </style>
35
+
36
+ <div style="height:100px; padding: 10px; background-color: yellow;">
37
+ <ox-context-toolbar
38
+ .tools=${[
39
+ {
40
+ position: TOOL_POSITION.FRONT,
41
+ template: html ` <md-icon>download</md-icon> `,
42
+ context: 'exportable'
43
+ },
44
+ {
45
+ position: TOOL_POSITION.FRONT,
46
+ template: html ` <md-icon>upload</md-icon> `,
47
+ context: 'importable'
48
+ },
49
+ {
50
+ position: TOOL_POSITION.CENTER,
51
+ template: html `<ox-page-action-context-bar
52
+ .actions=${[
53
+ {
54
+ title: 'save',
55
+ action: () => { },
56
+ icon: 'save'
57
+ },
58
+ {
59
+ title: 'copy',
60
+ action: () => { },
61
+ icon: 'content_copy'
62
+ },
63
+ {
64
+ title: 'delete',
65
+ action: () => { },
66
+ icon: 'delete'
67
+ },
68
+ {
69
+ title: 'save',
70
+ action: () => { },
71
+ icon: 'save'
72
+ },
73
+ {
74
+ title: 'copy',
75
+ action: () => { },
76
+ icon: 'content_copy'
77
+ },
78
+ {
79
+ title: 'delete',
80
+ action: () => { },
81
+ icon: 'delete'
82
+ },
83
+ {
84
+ title: 'save',
85
+ action: () => { },
86
+ icon: 'save'
87
+ },
88
+ {
89
+ title: 'copy',
90
+ action: () => { },
91
+ icon: 'content_copy'
92
+ },
93
+ {
94
+ title: 'delete',
95
+ action: () => { },
96
+ icon: 'delete'
97
+ },
98
+ {
99
+ title: 'save',
100
+ action: () => { },
101
+ icon: 'save'
102
+ },
103
+ {
104
+ title: 'copy',
105
+ action: () => { },
106
+ icon: 'content_copy'
107
+ },
108
+ {
109
+ title: 'delete',
110
+ action: () => { },
111
+ icon: 'delete',
112
+ emphasis: {
113
+ danger: true
114
+ }
115
+ }
116
+ ]}
117
+ ></ox-page-action-context-bar>`
118
+ }
119
+ ]}
120
+ .context=${{
121
+ exportable: true,
122
+ importable: true,
123
+ toolbar: true
124
+ }}
125
+ >
126
+ </ox-context-toolbar>
127
+ </div>
128
+ `;
129
+ export const Regular = Template.bind({});
130
+ Regular.args = {};
131
+ //# sourceMappingURL=ox-context-toolbar-overflow.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-context-toolbar-overflow.stories.js","sourceRoot":"","sources":["../../stories/ox-context-toolbar-overflow.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;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;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;YACD;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;yCAC4B;KAChC;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 overflow',\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/material-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: yellow;\">\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 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 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 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: true\n }}\n >\n </ox-context-toolbar>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {}\n"]}
@@ -0,0 +1,19 @@
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>;
@@ -0,0 +1,188 @@
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',
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/material-theme.css" rel="stylesheet" />
15
+ <link href="/themes/context-theme.css" rel="stylesheet" />
16
+
17
+ <link
18
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
19
+ rel="stylesheet"
20
+ />
21
+ <link
22
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
23
+ rel="stylesheet"
24
+ />
25
+ <link
26
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
27
+ rel="stylesheet"
28
+ />
29
+
30
+ <style>
31
+ body {
32
+ background-color: white;
33
+ }
34
+ </style>
35
+
36
+ <div style="height:500px; padding: 10px; display: flex; flex-direction: column; gap: 10px; background-color: black;">
37
+ <ox-context-toolbar
38
+ .tools=${[
39
+ {
40
+ position: TOOL_POSITION.FRONT,
41
+ template: html ` <md-icon>download</md-icon> `,
42
+ context: 'exportable'
43
+ },
44
+ {
45
+ position: TOOL_POSITION.FRONT,
46
+ template: html ` <md-icon>upload</md-icon> `,
47
+ context: 'importable'
48
+ },
49
+ {
50
+ position: TOOL_POSITION.CENTER,
51
+ template: html `<ox-page-action-context-bar
52
+ .actions=${[
53
+ {
54
+ title: 'save',
55
+ action: () => { },
56
+ icon: 'save'
57
+ },
58
+ {
59
+ title: 'copy',
60
+ action: () => { },
61
+ icon: 'content_copy'
62
+ },
63
+ {
64
+ title: 'delete',
65
+ action: () => { },
66
+ icon: 'delete',
67
+ emphasis: {
68
+ raised: true,
69
+ outlined: false,
70
+ dense: false,
71
+ danger: true
72
+ }
73
+ }
74
+ ]}
75
+ ></ox-page-action-context-bar>`
76
+ }
77
+ ]}
78
+ .context=${{
79
+ exportable: true,
80
+ importable: true,
81
+ toolbar: true
82
+ }}
83
+ >
84
+ </ox-context-toolbar>
85
+
86
+ <ox-context-toolbar
87
+ .tools=${[
88
+ {
89
+ position: TOOL_POSITION.FRONT,
90
+ template: html ` <md-icon>download</md-icon> `,
91
+ context: 'exportable'
92
+ },
93
+ {
94
+ position: TOOL_POSITION.CENTER,
95
+ template: html `<ox-page-action-context-bar
96
+ .actions=${[
97
+ {
98
+ title: 'save',
99
+ action: () => { },
100
+ icon: 'save'
101
+ },
102
+ {
103
+ title: 'copy',
104
+ action: () => { },
105
+ icon: 'content_copy'
106
+ },
107
+ {
108
+ title: 'delete',
109
+ action: () => { },
110
+ icon: 'delete',
111
+ emphasis: {
112
+ raised: false,
113
+ outlined: false,
114
+ dense: false,
115
+ danger: true
116
+ }
117
+ }
118
+ ]}
119
+ ></ox-page-action-context-bar>`
120
+ }
121
+ ]}
122
+ .context=${{
123
+ exportable: true,
124
+ importable: true,
125
+ toolbar: true
126
+ }}
127
+ >
128
+ </ox-context-toolbar>
129
+
130
+ <ox-context-toolbar
131
+ .tools=${[
132
+ {
133
+ position: TOOL_POSITION.FRONT,
134
+ template: html ` <md-icon>download</md-icon> `,
135
+ context: 'exportable'
136
+ },
137
+ {
138
+ position: TOOL_POSITION.FRONT,
139
+ template: html ` <md-icon>upload</md-icon> `,
140
+ context: 'importable'
141
+ },
142
+ {
143
+ position: TOOL_POSITION.FRONT,
144
+ template: html ` <md-icon>restart_alt</md-icon> `,
145
+ context: 'resettable'
146
+ },
147
+ {
148
+ position: TOOL_POSITION.CENTER,
149
+ template: html `<ox-page-action-context-bar
150
+ .actions=${[
151
+ {
152
+ title: 'save',
153
+ action: () => { },
154
+ icon: 'save'
155
+ },
156
+ {
157
+ title: 'copy',
158
+ action: () => { },
159
+ icon: 'content_copy'
160
+ },
161
+ {
162
+ title: 'delete',
163
+ action: () => { },
164
+ icon: 'delete',
165
+ emphasis: {
166
+ raised: true,
167
+ outlined: false,
168
+ dense: false,
169
+ danger: true
170
+ }
171
+ }
172
+ ]}
173
+ ></ox-page-action-context-bar>`
174
+ }
175
+ ]}
176
+ .context=${{
177
+ exportable: true,
178
+ importable: true,
179
+ resettable: true,
180
+ toolbar: true
181
+ }}
182
+ >
183
+ </ox-context-toolbar>
184
+ </div>
185
+ `;
186
+ export const Regular = Template.bind({});
187
+ Regular.args = {};
188
+ //# sourceMappingURL=ox-context-toolbar.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-context-toolbar.stories.js","sourceRoot":"","sources":["../../stories/ox-context-toolbar.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,oBAAoB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,EAAE;CACb,CAAA;AAUD,MAAM,QAAQ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oBACf,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,IAAI;iBACb;aACF;SACF;yCAC4B;KAChC;CACF;iBACU;IACT,UAAU,EAAE,IAAI;IAChB,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',\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/material-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:500px; padding: 10px; display: flex; flex-direction: column; gap: 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 emphasis: {\n raised: true,\n outlined: false,\n dense: false,\n danger: true\n }\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\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.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 raised: false,\n outlined: false,\n dense: false,\n danger: true\n }\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\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.FRONT,\n template: html` <md-icon>restart_alt</md-icon> `,\n context: 'resettable'\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 raised: true,\n outlined: false,\n dense: false,\n danger: true\n }\n }\n ]}\n ></ox-page-action-context-bar>`\n }\n ]}\n .context=${{\n exportable: true,\n importable: true,\n resettable: true,\n toolbar: true\n }}\n >\n </ox-context-toolbar>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {}\n"]}