@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.
Files changed (27) hide show
  1. package/CHANGELOG.md +284 -0
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +8 -8
  4. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.d.ts +0 -25
  5. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js +0 -151
  6. package/dist/stories/ox-context-page-toolbar-select-buttons.stories.js.map +0 -1
  7. package/dist/stories/ox-context-page-toolbar-select.stories.d.ts +0 -24
  8. package/dist/stories/ox-context-page-toolbar-select.stories.js +0 -115
  9. package/dist/stories/ox-context-page-toolbar-select.stories.js.map +0 -1
  10. package/dist/stories/ox-context-page-toolbar.stories.d.ts +0 -24
  11. package/dist/stories/ox-context-page-toolbar.stories.js +0 -115
  12. package/dist/stories/ox-context-page-toolbar.stories.js.map +0 -1
  13. package/dist/stories/ox-context-toolbar-complex.stories.d.ts +0 -24
  14. package/dist/stories/ox-context-toolbar-complex.stories.js +0 -169
  15. package/dist/stories/ox-context-toolbar-complex.stories.js.map +0 -1
  16. package/dist/stories/ox-context-toolbar-cooldown.stories.d.ts +0 -18
  17. package/dist/stories/ox-context-toolbar-cooldown.stories.js +0 -100
  18. package/dist/stories/ox-context-toolbar-cooldown.stories.js.map +0 -1
  19. package/dist/stories/ox-context-toolbar-empty.stories.d.ts +0 -23
  20. package/dist/stories/ox-context-toolbar-empty.stories.js +0 -98
  21. package/dist/stories/ox-context-toolbar-empty.stories.js.map +0 -1
  22. package/dist/stories/ox-context-toolbar-overflow.stories.d.ts +0 -24
  23. package/dist/stories/ox-context-toolbar-overflow.stories.js +0 -153
  24. package/dist/stories/ox-context-toolbar-overflow.stories.js.map +0 -1
  25. package/dist/stories/ox-context-toolbar.stories.d.ts +0 -19
  26. package/dist/stories/ox-context-toolbar.stories.js +0 -209
  27. package/dist/stories/ox-context-toolbar.stories.js.map +0 -1
@@ -1,209 +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',
10
- component: 'ox-context-toolbar',
11
- argTypes: {}
12
- };
13
- const Template = ({}) => html `
14
- <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
15
-
16
- <link href="/themes/light.css" rel="stylesheet" />
17
- <link href="/themes/dark.css" rel="stylesheet" />
18
- <link href="/themes/spacing.css" rel="stylesheet" />
19
-
20
- <link
21
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined: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+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
26
- rel="stylesheet"
27
- />
28
- <link
29
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
30
- rel="stylesheet"
31
- />
32
-
33
- <style>
34
- ${MDTypeScaleStyles.cssText}
35
- </style>
36
-
37
- <style>
38
- .container {
39
- height: 500px;
40
- text-align: center;
41
- padding: 20px;
42
- background-color: var(--md-sys-color-primary-container);
43
- color: var(--md-sys-color-on-primary-container);
44
-
45
- padding: 20px;
46
-
47
- display: flex;
48
- flex-direction: column;
49
- gap: 20px;
50
- }
51
-
52
- ox-buttons-radio {
53
- padding: 20px;
54
- }
55
- </style>
56
-
57
- <div class="container md-typescale-body-large-prominent">
58
- <ox-context-toolbar
59
- .tools=${[
60
- {
61
- position: TOOL_POSITION.FRONT,
62
- template: html ` <md-icon>download</md-icon> `,
63
- context: 'exportable'
64
- },
65
- {
66
- position: TOOL_POSITION.FRONT,
67
- template: html ` <md-icon>upload</md-icon> `,
68
- context: 'importable'
69
- },
70
- {
71
- position: TOOL_POSITION.CENTER,
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
- emphasis: {
89
- raised: true,
90
- outlined: false,
91
- dense: false,
92
- danger: true
93
- }
94
- }
95
- ]}
96
- ></ox-page-action-context-bar>`
97
- }
98
- ]}
99
- .context=${{
100
- exportable: true,
101
- importable: true,
102
- toolbar: true
103
- }}
104
- >
105
- </ox-context-toolbar>
106
-
107
- <ox-context-toolbar
108
- .tools=${[
109
- {
110
- position: TOOL_POSITION.FRONT,
111
- template: html ` <md-icon>download</md-icon> `,
112
- context: 'exportable'
113
- },
114
- {
115
- position: TOOL_POSITION.CENTER,
116
- template: html `<ox-page-action-context-bar
117
- .actions=${[
118
- {
119
- title: 'save',
120
- action: () => { },
121
- icon: 'save'
122
- },
123
- {
124
- title: 'copy',
125
- action: () => { },
126
- icon: 'content_copy'
127
- },
128
- {
129
- title: 'delete',
130
- action: () => { },
131
- icon: 'delete',
132
- emphasis: {
133
- raised: false,
134
- outlined: false,
135
- dense: false,
136
- danger: true
137
- }
138
- }
139
- ]}
140
- ></ox-page-action-context-bar>`
141
- }
142
- ]}
143
- .context=${{
144
- exportable: true,
145
- importable: true,
146
- toolbar: true
147
- }}
148
- >
149
- </ox-context-toolbar>
150
-
151
- <ox-context-toolbar
152
- .tools=${[
153
- {
154
- position: TOOL_POSITION.FRONT,
155
- template: html ` <md-icon>download</md-icon> `,
156
- context: 'exportable'
157
- },
158
- {
159
- position: TOOL_POSITION.FRONT,
160
- template: html ` <md-icon>upload</md-icon> `,
161
- context: 'importable'
162
- },
163
- {
164
- position: TOOL_POSITION.FRONT,
165
- template: html ` <md-icon>restart_alt</md-icon> `,
166
- context: 'resettable'
167
- },
168
- {
169
- position: TOOL_POSITION.CENTER,
170
- template: html `<ox-page-action-context-bar
171
- .actions=${[
172
- {
173
- title: 'save',
174
- action: () => { },
175
- icon: 'save'
176
- },
177
- {
178
- title: 'copy',
179
- action: () => { },
180
- icon: 'content_copy'
181
- },
182
- {
183
- title: 'delete',
184
- action: () => { },
185
- icon: 'delete',
186
- emphasis: {
187
- raised: true,
188
- outlined: false,
189
- dense: false,
190
- danger: true
191
- }
192
- }
193
- ]}
194
- ></ox-page-action-context-bar>`
195
- }
196
- ]}
197
- .context=${{
198
- exportable: true,
199
- importable: true,
200
- resettable: true,
201
- toolbar: true
202
- }}
203
- >
204
- </ox-context-toolbar>
205
- </div>
206
- `;
207
- export const Regular = Template.bind({});
208
- Regular.args = {};
209
- //# sourceMappingURL=ox-context-toolbar.stories.js.map
@@ -1 +0,0 @@
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;AACvD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE,EAAE;CACb,CAAA;AAUD,MAAM,QAAQ,GAAoB,CAAC,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBlD,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;eAyBhB;IACP;QACE,QAAQ,EAAE,aAAa,CAAC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;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'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\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> = ({}: 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 display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n ox-buttons-radio {\n padding: 20px;\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\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"]}