@operato/input 9.0.0-beta.7 → 9.0.0-beta.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +249 -0
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/ox-form-field.d.ts +2 -5
- package/dist/src/ox-form-field.js +2 -5
- package/dist/src/ox-form-field.js.map +1 -1
- package/dist/src/ox-input-angle.js +1 -3
- package/dist/src/ox-input-angle.js.map +1 -1
- package/dist/src/ox-input-background-pattern.d.ts +36 -0
- package/dist/src/ox-input-background-pattern.js +114 -0
- package/dist/src/ox-input-background-pattern.js.map +1 -0
- package/dist/src/ox-input-color-gradient.d.ts +12 -10
- package/dist/src/ox-input-color-gradient.js +104 -222
- package/dist/src/ox-input-color-gradient.js.map +1 -1
- package/dist/src/ox-input-color-stops.d.ts +26 -22
- package/dist/src/ox-input-color-stops.js +122 -151
- package/dist/src/ox-input-color-stops.js.map +1 -1
- package/dist/src/ox-input-color.d.ts +13 -5
- package/dist/src/ox-input-color.js +169 -96
- package/dist/src/ox-input-color.js.map +1 -1
- package/dist/src/ox-input-crontab.js +1 -0
- package/dist/src/ox-input-crontab.js.map +1 -1
- package/dist/src/ox-input-direction.js +1 -0
- package/dist/src/ox-input-direction.js.map +1 -1
- package/dist/src/ox-input-duration.js +4 -0
- package/dist/src/ox-input-duration.js.map +1 -1
- package/dist/src/ox-input-fill-style.d.ts +48 -0
- package/dist/src/ox-input-fill-style.js +330 -0
- package/dist/src/ox-input-fill-style.js.map +1 -0
- package/dist/src/ox-input-multiple-colors.js +2 -2
- package/dist/src/ox-input-multiple-colors.js.map +1 -1
- package/dist/src/ox-input-options.js +0 -1
- package/dist/src/ox-input-options.js.map +1 -1
- package/dist/src/ox-input-privilege.js +1 -0
- package/dist/src/ox-input-privilege.js.map +1 -1
- package/dist/src/ox-input-range.js +2 -0
- package/dist/src/ox-input-range.js.map +1 -1
- package/dist/src/ox-input-select-buttons.d.ts +1 -1
- package/dist/src/ox-input-select-buttons.js +2 -2
- package/dist/src/ox-input-select-buttons.js.map +1 -1
- package/dist/src/ox-input-table.d.ts +20 -2
- package/dist/src/ox-input-table.js +67 -160
- package/dist/src/ox-input-table.js.map +1 -1
- package/dist/src/ox-input-unit-number.js +2 -1
- package/dist/src/ox-input-unit-number.js.map +1 -1
- package/dist/src/ox-input-value-map.js +7 -3
- package/dist/src/ox-input-value-map.js.map +1 -1
- package/dist/src/ox-select-floor.js +1 -0
- package/dist/src/ox-select-floor.js.map +1 -1
- package/dist/src/ox-select.d.ts +3 -0
- package/dist/src/ox-select.js +19 -9
- package/dist/src/ox-select.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -25
- package/dist/stories/image-for-select-floor.d.ts +0 -1
- package/dist/stories/image-for-select-floor.js +0 -2
- package/dist/stories/image-for-select-floor.js.map +0 -1
- package/dist/stories/ox-buttons-radio.stories.d.ts +0 -26
- package/dist/stories/ox-buttons-radio.stories.js +0 -75
- package/dist/stories/ox-buttons-radio.stories.js.map +0 -1
- package/dist/stories/ox-checkbox.stories.d.ts +0 -44
- package/dist/stories/ox-checkbox.stories.js +0 -84
- package/dist/stories/ox-checkbox.stories.js.map +0 -1
- package/dist/stories/ox-input-3axis.stories.d.ts +0 -26
- package/dist/stories/ox-input-3axis.stories.js +0 -63
- package/dist/stories/ox-input-3axis.stories.js.map +0 -1
- package/dist/stories/ox-input-3dish.stories.d.ts +0 -30
- package/dist/stories/ox-input-3dish.stories.js +0 -91
- package/dist/stories/ox-input-3dish.stories.js.map +0 -1
- package/dist/stories/ox-input-angle.stories.d.ts +0 -30
- package/dist/stories/ox-input-angle.stories.js +0 -69
- package/dist/stories/ox-input-angle.stories.js.map +0 -1
- package/dist/stories/ox-input-barcode.stories.d.ts +0 -47
- package/dist/stories/ox-input-barcode.stories.js +0 -89
- package/dist/stories/ox-input-barcode.stories.js.map +0 -1
- package/dist/stories/ox-input-code.stories.d.ts +0 -38
- package/dist/stories/ox-input-code.stories.js +0 -76
- package/dist/stories/ox-input-code.stories.js.map +0 -1
- package/dist/stories/ox-input-crontab.stories.d.ts +0 -29
- package/dist/stories/ox-input-crontab.stories.js +0 -67
- package/dist/stories/ox-input-crontab.stories.js.map +0 -1
- package/dist/stories/ox-input-data.stories.d.ts +0 -29
- package/dist/stories/ox-input-data.stories.js +0 -67
- package/dist/stories/ox-input-data.stories.js.map +0 -1
- package/dist/stories/ox-input-direction.stories.d.ts +0 -29
- package/dist/stories/ox-input-direction.stories.js +0 -76
- package/dist/stories/ox-input-direction.stories.js.map +0 -1
- package/dist/stories/ox-input-duration.stories.d.ts +0 -30
- package/dist/stories/ox-input-duration.stories.js +0 -69
- package/dist/stories/ox-input-duration.stories.js.map +0 -1
- package/dist/stories/ox-input-file.stories.d.ts +0 -53
- package/dist/stories/ox-input-file.stories.js +0 -80
- package/dist/stories/ox-input-file.stories.js.map +0 -1
- package/dist/stories/ox-input-hashtags.stories.d.ts +0 -33
- package/dist/stories/ox-input-hashtags.stories.js +0 -66
- package/dist/stories/ox-input-hashtags.stories.js.map +0 -1
- package/dist/stories/ox-input-i18n-label.stories.d.ts +0 -29
- package/dist/stories/ox-input-i18n-label.stories.js +0 -88
- package/dist/stories/ox-input-i18n-label.stories.js.map +0 -1
- package/dist/stories/ox-input-key-values.stories.d.ts +0 -33
- package/dist/stories/ox-input-key-values.stories.js +0 -81
- package/dist/stories/ox-input-key-values.stories.js.map +0 -1
- package/dist/stories/ox-input-mass-fraction.stories.d.ts +0 -37
- package/dist/stories/ox-input-mass-fraction.stories.js +0 -79
- package/dist/stories/ox-input-mass-fraction.stories.js.map +0 -1
- package/dist/stories/ox-input-multiple-colors.stories.d.ts +0 -24
- package/dist/stories/ox-input-multiple-colors.stories.js +0 -59
- package/dist/stories/ox-input-multiple-colors.stories.js.map +0 -1
- package/dist/stories/ox-input-options.stories.d.ts +0 -29
- package/dist/stories/ox-input-options.stories.js +0 -65
- package/dist/stories/ox-input-options.stories.js.map +0 -1
- package/dist/stories/ox-input-partition-keys.stories.d.ts +0 -29
- package/dist/stories/ox-input-partition-keys.stories.js +0 -69
- package/dist/stories/ox-input-partition-keys.stories.js.map +0 -1
- package/dist/stories/ox-input-privilege.stories.d.ts +0 -40
- package/dist/stories/ox-input-privilege.stories.js +0 -87
- package/dist/stories/ox-input-privilege.stories.js.map +0 -1
- package/dist/stories/ox-input-quantifier.stories.d.ts +0 -29
- package/dist/stories/ox-input-quantifier.stories.js +0 -63
- package/dist/stories/ox-input-quantifier.stories.js.map +0 -1
- package/dist/stories/ox-input-range.stories.d.ts +0 -41
- package/dist/stories/ox-input-range.stories.js +0 -64
- package/dist/stories/ox-input-range.stories.js.map +0 -1
- package/dist/stories/ox-input-search.stories.d.ts +0 -36
- package/dist/stories/ox-input-search.stories.js +0 -68
- package/dist/stories/ox-input-search.stories.js.map +0 -1
- package/dist/stories/ox-input-select-buttons.stories.d.ts +0 -38
- package/dist/stories/ox-input-select-buttons.stories.js +0 -94
- package/dist/stories/ox-input-select-buttons.stories.js.map +0 -1
- package/dist/stories/ox-input-signature.stories.d.ts +0 -25
- package/dist/stories/ox-input-signature.stories.js +0 -60
- package/dist/stories/ox-input-signature.stories.js.map +0 -1
- package/dist/stories/ox-input-switch.stories.d.ts +0 -38
- package/dist/stories/ox-input-switch.stories.js +0 -68
- package/dist/stories/ox-input-switch.stories.js.map +0 -1
- package/dist/stories/ox-input-table-column-config.stories.d.ts +0 -29
- package/dist/stories/ox-input-table-column-config.stories.js +0 -94
- package/dist/stories/ox-input-table-column-config.stories.js.map +0 -1
- package/dist/stories/ox-input-unit.stories.d.ts +0 -42
- package/dist/stories/ox-input-unit.stories.js +0 -123
- package/dist/stories/ox-input-unit.stories.js.map +0 -1
- package/dist/stories/ox-input-value-map.stories.d.ts +0 -39
- package/dist/stories/ox-input-value-map.stories.js +0 -69
- package/dist/stories/ox-input-value-map.stories.js.map +0 -1
- package/dist/stories/ox-input-value-ranges.stories.d.ts +0 -39
- package/dist/stories/ox-input-value-ranges.stories.js +0 -69
- package/dist/stories/ox-input-value-ranges.stories.js.map +0 -1
- package/dist/stories/ox-input-work-shift.stories.d.ts +0 -30
- package/dist/stories/ox-input-work-shift.stories.js +0 -91
- package/dist/stories/ox-input-work-shift.stories.js.map +0 -1
- package/dist/stories/ox-select-floor.stories.d.ts +0 -45
- package/dist/stories/ox-select-floor.stories.js +0 -166
- package/dist/stories/ox-select-floor.stories.js.map +0 -1
- package/dist/stories/ox-select-set-options.stories.d.ts +0 -48
- package/dist/stories/ox-select-set-options.stories.js +0 -178
- package/dist/stories/ox-select-set-options.stories.js.map +0 -1
- package/dist/stories/ox-select.stories.d.ts +0 -34
- package/dist/stories/ox-select.stories.js +0 -151
- package/dist/stories/ox-select.stories.js.map +0 -1
@@ -1,24 +0,0 @@
|
|
1
|
-
import '../src/ox-input-multiple-colors.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
value: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
disabled: {
|
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
|
-
disabled: boolean;
|
23
|
-
}
|
24
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import '../src/ox-input-multiple-colors.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-multiple-colors',
|
6
|
-
component: 'ox-input-multiple-colors',
|
7
|
-
argTypes: {
|
8
|
-
value: { control: 'array' },
|
9
|
-
disabled: { control: 'boolean' }
|
10
|
-
}
|
11
|
-
};
|
12
|
-
const Template = ({ disabled }) => html `
|
13
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
14
|
-
|
15
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
16
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
17
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
18
|
-
|
19
|
-
<link
|
20
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
21
|
-
rel="stylesheet"
|
22
|
-
/>
|
23
|
-
<link
|
24
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded: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+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
29
|
-
rel="stylesheet"
|
30
|
-
/>
|
31
|
-
|
32
|
-
<style>
|
33
|
-
${MDTypeScaleStyles.cssText}
|
34
|
-
</style>
|
35
|
-
|
36
|
-
<style>
|
37
|
-
.container {
|
38
|
-
height: 500px;
|
39
|
-
text-align: center;
|
40
|
-
padding: 20px;
|
41
|
-
|
42
|
-
background-color: var(--md-sys-color-primary-container);
|
43
|
-
color: var(--md-sys-color-on-primary-container);
|
44
|
-
}
|
45
|
-
</style>
|
46
|
-
|
47
|
-
<div class="container md-typescale-body-large-prominent">
|
48
|
-
<ox-input-multiple-colors
|
49
|
-
.value=${['red', 'yellow']}
|
50
|
-
@change=${(e) => {
|
51
|
-
console.log(e.target.value);
|
52
|
-
}}
|
53
|
-
?disabled=${disabled}
|
54
|
-
>
|
55
|
-
</ox-input-multiple-colors>
|
56
|
-
</div>
|
57
|
-
`;
|
58
|
-
export const Regular = Template.bind({});
|
59
|
-
//# sourceMappingURL=ox-input-multiple-colors.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-multiple-colors.stories.js","sourceRoot":"","sources":["../../stories/ox-input-multiple-colors.stories.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAA;AAE3C,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,0BAA0B;IACrC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;QAC3B,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAYD,MAAM,QAAQ,GAAoB,CAAC,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqB5D,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;eAgBhB,CAAC,KAAK,EAAE,QAAQ,CAAC;gBAChB,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;kBACW,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA","sourcesContent":["import '../src/ox-input-multiple-colors.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-multiple-colors',\n component: 'ox-input-multiple-colors',\n argTypes: {\n value: { control: 'array' },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n disabled: boolean\n}\n\nconst Template: Story<ArgTypes> = ({ disabled }: 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\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-input-multiple-colors\n .value=${['red', 'yellow']}\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n ?disabled=${disabled}\n >\n </ox-input-multiple-colors>\n </div>\n`\n\nexport const Regular = Template.bind({})\n"]}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import '../src/ox-input-options.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
value: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
name: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
disabled: {
|
14
|
-
control: string;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export default _default;
|
19
|
-
interface Story<T> {
|
20
|
-
(args: T): TemplateResult;
|
21
|
-
args?: Partial<T>;
|
22
|
-
argTypes?: Record<string, unknown>;
|
23
|
-
}
|
24
|
-
interface ArgTypes {
|
25
|
-
name?: string;
|
26
|
-
value?: object;
|
27
|
-
disabled?: boolean;
|
28
|
-
}
|
29
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import '../src/ox-input-options.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-options',
|
6
|
-
component: 'ox-input-options',
|
7
|
-
argTypes: {
|
8
|
-
value: { control: 'object' },
|
9
|
-
name: { control: 'text' },
|
10
|
-
disabled: { control: 'boolean' }
|
11
|
-
}
|
12
|
-
};
|
13
|
-
const Template = ({ name = 'options', value = {}, disabled }) => 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
|
-
|
43
|
-
background-color: var(--md-sys-color-primary-container);
|
44
|
-
color: var(--md-sys-color-on-primary-container);
|
45
|
-
}
|
46
|
-
</style>
|
47
|
-
|
48
|
-
<div class="container md-typescale-body-large-prominent">
|
49
|
-
<ox-input-options
|
50
|
-
@change=${(e) => {
|
51
|
-
console.log(e.target.value);
|
52
|
-
}}
|
53
|
-
name=${name}
|
54
|
-
.value=${value}
|
55
|
-
?disabled=${disabled}
|
56
|
-
>
|
57
|
-
</ox-input-options>
|
58
|
-
</div>
|
59
|
-
`;
|
60
|
-
export const Regular = Template.bind({});
|
61
|
-
Regular.args = {
|
62
|
-
name: 'options',
|
63
|
-
value: [{ text: 'SHOOSE', value: 'Shoose' }]
|
64
|
-
};
|
65
|
-
//# sourceMappingURL=ox-input-options.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-options.stories.js","sourceRoot":"","sources":["../../stories/ox-input-options.stories.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,CAAA;AAEnC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAcD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqB1F,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;gBAgBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;kBACF,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;CAC7C,CAAA","sourcesContent":["import '../src/ox-input-options.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-options',\n component: 'ox-input-options',\n argTypes: {\n value: { control: 'object' },\n name: { control: 'text' },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n value?: object\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({ name = 'options', value = {}, disabled }: 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\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-input-options\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n ?disabled=${disabled}\n >\n </ox-input-options>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'options',\n value: [{ text: 'SHOOSE', value: 'Shoose' }]\n}\n"]}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import '../src/ox-input-partition-keys.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
value: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
name: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
disabled: {
|
14
|
-
control: string;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export default _default;
|
19
|
-
interface Story<T> {
|
20
|
-
(args: T): TemplateResult;
|
21
|
-
args?: Partial<T>;
|
22
|
-
argTypes?: Record<string, unknown>;
|
23
|
-
}
|
24
|
-
interface ArgTypes {
|
25
|
-
name?: string;
|
26
|
-
value?: object;
|
27
|
-
disabled?: boolean;
|
28
|
-
}
|
29
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import '../src/ox-input-partition-keys.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-partition-keys',
|
6
|
-
component: 'ox-input-partition-keys',
|
7
|
-
argTypes: {
|
8
|
-
value: { control: 'object' },
|
9
|
-
name: { control: 'text' },
|
10
|
-
disabled: { control: 'boolean' }
|
11
|
-
}
|
12
|
-
};
|
13
|
-
const Template = ({ name = 'partition-keys', value = {}, disabled }) => 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
|
-
|
43
|
-
background-color: var(--md-sys-color-primary-container);
|
44
|
-
color: var(--md-sys-color-on-primary-container);
|
45
|
-
}
|
46
|
-
</style>
|
47
|
-
|
48
|
-
<div class="container md-typescale-body-large-prominent">
|
49
|
-
<ox-input-partition-keys
|
50
|
-
@change=${(e) => {
|
51
|
-
console.log(e.target.value);
|
52
|
-
}}
|
53
|
-
name=${name}
|
54
|
-
.value=${value}
|
55
|
-
?disabled=${disabled}
|
56
|
-
>
|
57
|
-
</ox-input-partition-keys>
|
58
|
-
</div>
|
59
|
-
`;
|
60
|
-
export const Regular = Template.bind({});
|
61
|
-
Regular.args = {
|
62
|
-
name: 'partition-keys',
|
63
|
-
value: {
|
64
|
-
A: 'A',
|
65
|
-
B: 'B',
|
66
|
-
C: 'C'
|
67
|
-
}
|
68
|
-
};
|
69
|
-
//# sourceMappingURL=ox-input-partition-keys.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-partition-keys.stories.js","sourceRoot":"","sources":["../../stories/ox-input-partition-keys.stories.ts"],"names":[],"mappings":"AAAA,OAAO,mCAAmC,CAAA;AAE1C,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,yBAAyB;IACpC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAcD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,gBAAgB,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBjG,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;gBAgBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;kBACF,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE;QACL,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;QACN,CAAC,EAAE,GAAG;KACP;CACF,CAAA","sourcesContent":["import '../src/ox-input-partition-keys.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-partition-keys',\n component: 'ox-input-partition-keys',\n argTypes: {\n value: { control: 'object' },\n name: { control: 'text' },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n value?: object\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({ name = 'partition-keys', value = {}, disabled }: 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\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-input-partition-keys\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n ?disabled=${disabled}\n >\n </ox-input-partition-keys>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'partition-keys',\n value: {\n A: 'A',\n B: 'B',\n C: 'C'\n }\n}\n"]}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import '../src/ox-input-privilege.js';
|
2
|
-
import '../src/locale/locale-picker.js';
|
3
|
-
import { TemplateResult } from 'lit';
|
4
|
-
declare const _default: {
|
5
|
-
title: string;
|
6
|
-
component: string;
|
7
|
-
argTypes: {
|
8
|
-
value: {
|
9
|
-
control: string;
|
10
|
-
};
|
11
|
-
name: {
|
12
|
-
control: string;
|
13
|
-
};
|
14
|
-
disabled: {
|
15
|
-
control: string;
|
16
|
-
};
|
17
|
-
};
|
18
|
-
};
|
19
|
-
export default _default;
|
20
|
-
interface Story<T> {
|
21
|
-
(args: T): TemplateResult;
|
22
|
-
args?: Partial<T>;
|
23
|
-
argTypes?: Record<string, unknown>;
|
24
|
-
}
|
25
|
-
interface ArgTypes {
|
26
|
-
name?: string;
|
27
|
-
privileges: {
|
28
|
-
name: string;
|
29
|
-
category: string;
|
30
|
-
description: string;
|
31
|
-
}[];
|
32
|
-
value?: {
|
33
|
-
privilege: string;
|
34
|
-
category: string;
|
35
|
-
owner: boolean;
|
36
|
-
super: boolean;
|
37
|
-
} | null;
|
38
|
-
disabled?: boolean;
|
39
|
-
}
|
40
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,87 +0,0 @@
|
|
1
|
-
import '../src/ox-input-privilege.js';
|
2
|
-
import '../src/locale/locale-picker.js';
|
3
|
-
import { html } from 'lit';
|
4
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
5
|
-
export default {
|
6
|
-
title: 'ox-input-privilege',
|
7
|
-
component: 'ox-input-privilege',
|
8
|
-
argTypes: {
|
9
|
-
value: { control: 'number' },
|
10
|
-
name: { control: 'text' },
|
11
|
-
disabled: { control: 'boolean' }
|
12
|
-
}
|
13
|
-
};
|
14
|
-
const Template = ({ name = 'privilege', value = null, privileges, disabled }) => html `
|
15
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
16
|
-
|
17
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
18
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
19
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
20
|
-
|
21
|
-
<link
|
22
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined: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+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
27
|
-
rel="stylesheet"
|
28
|
-
/>
|
29
|
-
<link
|
30
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
31
|
-
rel="stylesheet"
|
32
|
-
/>
|
33
|
-
|
34
|
-
<style>
|
35
|
-
${MDTypeScaleStyles.cssText}
|
36
|
-
</style>
|
37
|
-
|
38
|
-
<style>
|
39
|
-
.container {
|
40
|
-
height: 500px;
|
41
|
-
text-align: center;
|
42
|
-
padding: 20px;
|
43
|
-
|
44
|
-
background-color: var(--md-sys-color-primary-container);
|
45
|
-
color: var(--md-sys-color-on-primary-container);
|
46
|
-
}
|
47
|
-
</style>
|
48
|
-
|
49
|
-
<div class="container md-typescale-body-large-prominent">
|
50
|
-
<locale-picker></locale-picker>
|
51
|
-
<br /><br />
|
52
|
-
|
53
|
-
<ox-input-privilege
|
54
|
-
@change=${(e) => {
|
55
|
-
console.log(e.target.value);
|
56
|
-
}}
|
57
|
-
name=${name}
|
58
|
-
.value=${value}
|
59
|
-
.privileges=${privileges}
|
60
|
-
?disabled=${disabled}
|
61
|
-
>
|
62
|
-
</ox-input-privilege>
|
63
|
-
</div>
|
64
|
-
`;
|
65
|
-
export const Regular = Template.bind({});
|
66
|
-
Regular.args = {
|
67
|
-
name: 'privilege',
|
68
|
-
privileges: [
|
69
|
-
{
|
70
|
-
name: 'query',
|
71
|
-
category: 'aaa',
|
72
|
-
description: 'readable aaa'
|
73
|
-
},
|
74
|
-
{
|
75
|
-
name: 'mutation',
|
76
|
-
category: 'aaa',
|
77
|
-
description: 'writable aaa'
|
78
|
-
}
|
79
|
-
],
|
80
|
-
value: {
|
81
|
-
privilege: 'mutation',
|
82
|
-
category: 'aaa',
|
83
|
-
owner: true,
|
84
|
-
super: true
|
85
|
-
}
|
86
|
-
};
|
87
|
-
//# sourceMappingURL=ox-input-privilege.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-privilege.stories.js","sourceRoot":"","sources":["../../stories/ox-input-privilege.stories.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,gCAAgC,CAAA;AAEvC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAoBD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,WAAW,EAAE,KAAK,GAAG,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqB1G,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;gBAmBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;oBACA,UAAU;kBACZ,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE;QACV;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,cAAc;SAC5B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,cAAc;SAC5B;KACF;IACD,KAAK,EAAE;QACL,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;KACZ;CACF,CAAA","sourcesContent":["import '../src/ox-input-privilege.js'\nimport '../src/locale/locale-picker.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-privilege',\n component: 'ox-input-privilege',\n argTypes: {\n value: { control: 'number' },\n name: { control: 'text' },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n privileges: { name: string; category: string; description: string }[]\n value?: {\n privilege: string\n category: string\n owner: boolean\n super: boolean\n } | null\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({ name = 'privilege', value = null, privileges, disabled }: 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\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <locale-picker></locale-picker>\n <br /><br />\n\n <ox-input-privilege\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n .privileges=${privileges}\n ?disabled=${disabled}\n >\n </ox-input-privilege>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'privilege',\n privileges: [\n {\n name: 'query',\n category: 'aaa',\n description: 'readable aaa'\n },\n {\n name: 'mutation',\n category: 'aaa',\n description: 'writable aaa'\n }\n ],\n value: {\n privilege: 'mutation',\n category: 'aaa',\n owner: true,\n super: true\n }\n}\n"]}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import '../src/ox-input-quantifier.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
name: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
value: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
disabled: {
|
14
|
-
control: string;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export default _default;
|
19
|
-
interface Story<T> {
|
20
|
-
(args: T): TemplateResult;
|
21
|
-
args?: Partial<T>;
|
22
|
-
argTypes?: Record<string, unknown>;
|
23
|
-
}
|
24
|
-
interface ArgTypes {
|
25
|
-
name?: string;
|
26
|
-
value?: number[];
|
27
|
-
disabled?: boolean;
|
28
|
-
}
|
29
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import '../src/ox-input-quantifier.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-quantifier',
|
6
|
-
component: 'ox-input-quantifier',
|
7
|
-
argTypes: {
|
8
|
-
name: { control: 'text' },
|
9
|
-
value: { control: 'array' },
|
10
|
-
disabled: { control: 'boolean' }
|
11
|
-
}
|
12
|
-
};
|
13
|
-
const Template = ({ name = 'quantifier', value, disabled }) => 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
|
-
|
43
|
-
background-color: var(--md-sys-color-primary-container);
|
44
|
-
color: var(--md-sys-color-on-primary-container);
|
45
|
-
}
|
46
|
-
</style>
|
47
|
-
|
48
|
-
<div class="container md-typescale-body-large-prominent">
|
49
|
-
<ox-input-quantifier
|
50
|
-
name=${name}
|
51
|
-
.value=${value}
|
52
|
-
@change=${(e) => console.log(e.target.value)}
|
53
|
-
?disabled=${disabled}
|
54
|
-
>
|
55
|
-
</ox-input-quantifier>
|
56
|
-
</div>
|
57
|
-
`;
|
58
|
-
export const Regular = Template.bind({});
|
59
|
-
Regular.args = {
|
60
|
-
name: 'quantifier',
|
61
|
-
value: [10, 100]
|
62
|
-
};
|
63
|
-
//# sourceMappingURL=ox-input-quantifier.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-quantifier.stories.js","sourceRoot":"","sources":["../../stories/ox-input-quantifier.stories.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AAEtC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAI7F,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,qBAAqB;IAChC,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;QAC3B,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAcD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBxF,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;aAgBlB,IAAI;eACF,KAAK;gBACJ,CAAC,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA4B,CAAC,KAAK,CAAC;kBAC9D,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC;CACjB,CAAA","sourcesContent":["import '../src/ox-input-quantifier.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nimport { OxInputQuantifier } from '../src/ox-input-quantifier.js'\n\nexport default {\n title: 'ox-input-quantifier',\n component: 'ox-input-quantifier',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'array' },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n value?: number[]\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({ name = 'quantifier', value, disabled }: 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\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-input-quantifier\n name=${name}\n .value=${value}\n @change=${(e: Event) => console.log((e.target as OxInputQuantifier).value)}\n ?disabled=${disabled}\n >\n </ox-input-quantifier>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'quantifier',\n value: [10, 100]\n}\n"]}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import '../src/ox-input-range.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
name: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
value: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
step: {
|
14
|
-
control: string;
|
15
|
-
};
|
16
|
-
min: {
|
17
|
-
control: string;
|
18
|
-
};
|
19
|
-
max: {
|
20
|
-
control: string;
|
21
|
-
};
|
22
|
-
disabled: {
|
23
|
-
control: string;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
};
|
27
|
-
export default _default;
|
28
|
-
interface Story<T> {
|
29
|
-
(args: T): TemplateResult;
|
30
|
-
args?: Partial<T>;
|
31
|
-
argTypes?: Record<string, unknown>;
|
32
|
-
}
|
33
|
-
interface ArgTypes {
|
34
|
-
name?: string;
|
35
|
-
value?: number;
|
36
|
-
step?: number;
|
37
|
-
min?: number;
|
38
|
-
max?: number;
|
39
|
-
disabled?: boolean;
|
40
|
-
}
|
41
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,64 +0,0 @@
|
|
1
|
-
import '../src/ox-input-range.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-range',
|
6
|
-
component: 'ox-input-range',
|
7
|
-
argTypes: {
|
8
|
-
name: { control: 'text' },
|
9
|
-
value: { control: 'number' },
|
10
|
-
step: { control: 'number' },
|
11
|
-
min: { control: 'number' },
|
12
|
-
max: { control: 'number' },
|
13
|
-
disabled: { control: 'boolean' }
|
14
|
-
}
|
15
|
-
};
|
16
|
-
const Template = ({ name = 'range', value = 0, step = 1, min = 0, max = 100, disabled }) => 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
|
-
|
46
|
-
background-color: var(--md-sys-color-primary-container);
|
47
|
-
color: var(--md-sys-color-on-primary-container);
|
48
|
-
}
|
49
|
-
</style>
|
50
|
-
|
51
|
-
<div class="container md-typescale-body-large-prominent">
|
52
|
-
<ox-input-range name=${name} value=${value} step=${step} min=${min} max=${max} ?disabled=${disabled}>
|
53
|
-
</ox-input-range>
|
54
|
-
</div>
|
55
|
-
`;
|
56
|
-
export const Regular = Template.bind({});
|
57
|
-
Regular.args = {
|
58
|
-
name: 'range',
|
59
|
-
value: 0,
|
60
|
-
step: 1,
|
61
|
-
min: 0,
|
62
|
-
max: 100
|
63
|
-
};
|
64
|
-
//# sourceMappingURL=ox-input-range.stories.js.map
|