@operato/input 7.0.0-rc.8 → 7.0.0
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/.storybook/preview.js +52 -0
- package/CHANGELOG.md +45 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/ox-input-barcode.js +15 -11
- package/dist/src/ox-input-barcode.js.map +1 -1
- package/dist/src/ox-input-crontab.js +1 -1
- package/dist/src/ox-input-crontab.js.map +1 -1
- package/dist/src/ox-input-duration.js +2 -2
- package/dist/src/ox-input-duration.js.map +1 -1
- package/dist/src/ox-input-hashtags.js +2 -2
- package/dist/src/ox-input-hashtags.js.map +1 -1
- package/dist/src/ox-input-key-values.js +3 -3
- package/dist/src/ox-input-key-values.js.map +1 -1
- package/dist/src/ox-input-mass-fraction.js +2 -2
- package/dist/src/ox-input-mass-fraction.js.map +1 -1
- package/dist/src/ox-input-options.js +2 -2
- package/dist/src/ox-input-options.js.map +1 -1
- package/dist/src/ox-input-partition-keys.js +3 -3
- package/dist/src/ox-input-partition-keys.js.map +1 -1
- package/dist/src/ox-input-search.d.ts +0 -1
- package/dist/src/ox-input-search.js +2 -5
- package/dist/src/ox-input-search.js.map +1 -1
- package/dist/src/ox-input-unit-number.js +1 -1
- package/dist/src/ox-input-unit-number.js.map +1 -1
- package/dist/src/ox-input-value-map.js +3 -3
- package/dist/src/ox-input-value-map.js.map +1 -1
- package/dist/src/ox-input-value-ranges.js +3 -3
- package/dist/src/ox-input-value-ranges.js.map +1 -1
- package/dist/src/ox-input-work-shift.js +3 -3
- package/dist/src/ox-input-work-shift.js.map +1 -1
- package/dist/stories/ox-buttons-radio.stories.d.ts +0 -5
- package/dist/stories/ox-buttons-radio.stories.js +3 -9
- package/dist/stories/ox-buttons-radio.stories.js.map +1 -1
- package/dist/stories/ox-checkbox.stories.d.ts +0 -5
- package/dist/stories/ox-checkbox.stories.js +3 -9
- package/dist/stories/ox-checkbox.stories.js.map +1 -1
- package/dist/stories/ox-input-3axis.stories.d.ts +0 -5
- package/dist/stories/ox-input-3axis.stories.js +2 -7
- package/dist/stories/ox-input-3axis.stories.js.map +1 -1
- package/dist/stories/ox-input-3dish.stories.d.ts +0 -5
- package/dist/stories/ox-input-3dish.stories.js +2 -7
- package/dist/stories/ox-input-3dish.stories.js.map +1 -1
- package/dist/stories/ox-input-angle.stories.d.ts +0 -5
- package/dist/stories/ox-input-angle.stories.js +2 -7
- package/dist/stories/ox-input-angle.stories.js.map +1 -1
- package/dist/stories/ox-input-barcode.stories.d.ts +0 -5
- package/dist/stories/ox-input-barcode.stories.js +2 -7
- package/dist/stories/ox-input-barcode.stories.js.map +1 -1
- package/dist/stories/ox-input-code.stories.d.ts +0 -5
- package/dist/stories/ox-input-code.stories.js +2 -7
- package/dist/stories/ox-input-code.stories.js.map +1 -1
- package/dist/stories/ox-input-crontab.stories.d.ts +0 -5
- package/dist/stories/ox-input-crontab.stories.js +2 -7
- package/dist/stories/ox-input-crontab.stories.js.map +1 -1
- package/dist/stories/ox-input-data.stories.d.ts +0 -5
- package/dist/stories/ox-input-data.stories.js +2 -8
- package/dist/stories/ox-input-data.stories.js.map +1 -1
- package/dist/stories/ox-input-direction.stories.d.ts +0 -5
- package/dist/stories/ox-input-direction.stories.js +2 -7
- package/dist/stories/ox-input-direction.stories.js.map +1 -1
- package/dist/stories/ox-input-duration.stories.d.ts +0 -5
- package/dist/stories/ox-input-duration.stories.js +2 -7
- package/dist/stories/ox-input-duration.stories.js.map +1 -1
- package/dist/stories/ox-input-file.stories.d.ts +0 -5
- package/dist/stories/ox-input-file.stories.js +2 -7
- package/dist/stories/ox-input-file.stories.js.map +1 -1
- package/dist/stories/ox-input-hashtags.stories.d.ts +0 -5
- package/dist/stories/ox-input-hashtags.stories.js +2 -7
- package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
- package/dist/stories/ox-input-i18n-label.stories.d.ts +0 -5
- package/dist/stories/ox-input-i18n-label.stories.js +2 -7
- package/dist/stories/ox-input-i18n-label.stories.js.map +1 -1
- package/dist/stories/ox-input-key-values.stories.d.ts +0 -5
- package/dist/stories/ox-input-key-values.stories.js +2 -7
- package/dist/stories/ox-input-key-values.stories.js.map +1 -1
- package/dist/stories/ox-input-mass-fraction.stories.d.ts +0 -5
- package/dist/stories/ox-input-mass-fraction.stories.js +2 -7
- package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
- package/dist/stories/ox-input-multiple-colors.stories.d.ts +0 -5
- package/dist/stories/ox-input-multiple-colors.stories.js +2 -7
- package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
- package/dist/stories/ox-input-options.stories.d.ts +0 -5
- package/dist/stories/ox-input-options.stories.js +2 -7
- package/dist/stories/ox-input-options.stories.js.map +1 -1
- package/dist/stories/ox-input-partition-keys.stories.d.ts +0 -5
- package/dist/stories/ox-input-partition-keys.stories.js +2 -7
- package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
- package/dist/stories/ox-input-privilege.stories.d.ts +0 -5
- package/dist/stories/ox-input-privilege.stories.js +2 -7
- package/dist/stories/ox-input-privilege.stories.js.map +1 -1
- package/dist/stories/ox-input-quantifier.stories.d.ts +0 -5
- package/dist/stories/ox-input-quantifier.stories.js +2 -7
- package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
- package/dist/stories/ox-input-range.stories.d.ts +0 -5
- package/dist/stories/ox-input-range.stories.js +2 -7
- package/dist/stories/ox-input-range.stories.js.map +1 -1
- package/dist/stories/ox-input-search.stories.d.ts +0 -6
- package/dist/stories/ox-input-search.stories.js +4 -8
- package/dist/stories/ox-input-search.stories.js.map +1 -1
- package/dist/stories/ox-input-select-buttons.stories.d.ts +0 -5
- package/dist/stories/ox-input-select-buttons.stories.js +2 -7
- package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
- package/dist/stories/ox-input-table-column-config.stories.d.ts +0 -5
- package/dist/stories/ox-input-table-column-config.stories.js +2 -7
- package/dist/stories/ox-input-table-column-config.stories.js.map +1 -1
- package/dist/stories/ox-input-unit.stories.d.ts +0 -5
- package/dist/stories/ox-input-unit.stories.js +2 -7
- package/dist/stories/ox-input-unit.stories.js.map +1 -1
- package/dist/stories/ox-input-value-map.stories.d.ts +0 -5
- package/dist/stories/ox-input-value-map.stories.js +2 -7
- package/dist/stories/ox-input-value-map.stories.js.map +1 -1
- package/dist/stories/ox-input-value-ranges.stories.d.ts +0 -5
- package/dist/stories/ox-input-value-ranges.stories.js +2 -7
- package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
- package/dist/stories/ox-input-work-shift.stories.d.ts +0 -5
- package/dist/stories/ox-input-work-shift.stories.js +2 -7
- package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
- package/dist/stories/ox-select-set-options.stories.d.ts +0 -5
- package/dist/stories/ox-select-set-options.stories.js +2 -7
- package/dist/stories/ox-select-set-options.stories.js.map +1 -1
- package/dist/stories/ox-select.stories.d.ts +0 -5
- package/dist/stories/ox-select.stories.js +2 -7
- package/dist/stories/ox-select.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/index.ts +1 -0
- package/src/ox-input-barcode.ts +14 -12
- package/src/ox-input-crontab.ts +1 -1
- package/src/ox-input-duration.ts +2 -2
- package/src/ox-input-hashtags.ts +2 -2
- package/src/ox-input-key-values.ts +3 -3
- package/src/ox-input-mass-fraction.ts +2 -2
- package/src/ox-input-options.ts +2 -2
- package/src/ox-input-partition-keys.ts +3 -3
- package/src/ox-input-search.ts +2 -2
- package/src/ox-input-unit-number.ts +1 -1
- package/src/ox-input-value-map.ts +3 -3
- package/src/ox-input-value-ranges.ts +3 -3
- package/src/ox-input-work-shift.ts +3 -3
- package/stories/ox-buttons-radio.stories.ts +3 -10
- package/stories/ox-checkbox.stories.ts +3 -12
- package/stories/ox-input-3axis.stories.ts +2 -8
- package/stories/ox-input-3dish.stories.ts +2 -8
- package/stories/ox-input-angle.stories.ts +2 -8
- package/stories/ox-input-barcode.stories.ts +2 -9
- package/stories/ox-input-code.stories.ts +2 -9
- package/stories/ox-input-crontab.stories.ts +2 -13
- package/stories/ox-input-data.stories.ts +2 -9
- package/stories/ox-input-direction.stories.ts +2 -8
- package/stories/ox-input-duration.stories.ts +2 -8
- package/stories/ox-input-file.stories.ts +2 -9
- package/stories/ox-input-hashtags.stories.ts +2 -14
- package/stories/ox-input-i18n-label.stories.ts +2 -8
- package/stories/ox-input-key-values.stories.ts +2 -14
- package/stories/ox-input-mass-fraction.stories.ts +2 -9
- package/stories/ox-input-multiple-colors.stories.ts +2 -8
- package/stories/ox-input-options.stories.ts +2 -8
- package/stories/ox-input-partition-keys.stories.ts +2 -13
- package/stories/ox-input-privilege.stories.ts +2 -14
- package/stories/ox-input-quantifier.stories.ts +2 -8
- package/stories/ox-input-range.stories.ts +2 -9
- package/stories/ox-input-search.stories.ts +4 -10
- package/stories/ox-input-select-buttons.stories.ts +2 -9
- package/stories/ox-input-table-column-config.stories.ts +2 -13
- package/stories/ox-input-unit.stories.ts +2 -9
- package/stories/ox-input-value-map.stories.ts +2 -9
- package/stories/ox-input-value-ranges.stories.ts +2 -9
- package/stories/ox-input-work-shift.stories.ts +2 -8
- package/stories/ox-select-set-options.stories.ts +2 -9
- package/stories/ox-select.stories.ts +2 -9
- package/themes/app-theme.css +138 -0
- package/themes/calendar-theme.css +59 -0
- package/themes/dark.css +0 -100
- package/themes/grist-theme.css +45 -41
- package/themes/layout-theme.css +94 -0
- package/themes/light.css +3 -103
- package/themes/material-theme.css +23 -0
- package/themes/oops-theme.css +22 -0
- package/themes/report-theme.css +47 -0
- package/themes/spacing.css +7 -27
- package/themes/state-color.css +1 -1
- package/themes/tooltip-theme.css +11 -0
- package/themes/dark-hc.css +0 -151
- package/themes/dark-mc.css +0 -151
- package/themes/light-hc.css +0 -151
- package/themes/light-mc.css +0 -151
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
/* 어디에서 임포트하는 지는 모르지만, 아래 코멘트를 풀면 중복 정의 오류가 발생한다. */
|
2
|
+
// import '../src/ox-input-search.js'
|
2
3
|
import { html } from 'lit';
|
3
4
|
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles';
|
4
5
|
export default {
|
@@ -9,11 +10,10 @@ export default {
|
|
9
10
|
name: { control: 'text' },
|
10
11
|
value: { control: 'text' },
|
11
12
|
selectAfterChange: { control: 'boolean' },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
13
|
+
disabled: { control: 'boolean' }
|
14
14
|
}
|
15
15
|
};
|
16
|
-
const Template = ({ placeholder = 'Search', name = 'hello', value = '', selectAfterChange, disabled
|
16
|
+
const Template = ({ placeholder = 'Search', name = 'hello', value = '', selectAfterChange, disabled }) => html `
|
17
17
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
18
18
|
|
19
19
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -48,10 +48,6 @@ const Template = ({ placeholder = 'Search', name = 'hello', value = '', selectAf
|
|
48
48
|
}
|
49
49
|
</style>
|
50
50
|
|
51
|
-
<script>
|
52
|
-
document.body.classList.add('${theme}')
|
53
|
-
</script>
|
54
|
-
|
55
51
|
<div class="container md-typescale-body-large-prominent">
|
56
52
|
<ox-input-search
|
57
53
|
@change=${(e) => console.log('changed', e.target.value)}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-search.stories.js","sourceRoot":"","sources":["../../stories/ox-input-search.stories.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"ox-input-search.stories.js","sourceRoot":"","sources":["../../stories/ox-input-search.stories.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,qCAAqC;AAErC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,iBAAiB;IAC5B,QAAQ,EAAE;QACR,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAChC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC1B,iBAAiB,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QACzC,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAgBD,MAAM,QAAQ,GAAoB,CAAC,EACjC,WAAW,GAAG,QAAQ,EACtB,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,EAAE,EACV,iBAAiB,EACjB,QAAQ,EACC,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBd,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;gBAgBf,CAAC,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAG,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC;6BAC7D,iBAAiB;aACjC,IAAI;iBACA,KAAK;kBACJ,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,OAAO;IACb,iBAAiB,EAAE,KAAK;CACzB,CAAA","sourcesContent":["/* 어디에서 임포트하는 지는 모르지만, 아래 코멘트를 풀면 중복 정의 오류가 발생한다. */\n// import '../src/ox-input-search.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-search',\n component: 'ox-input-search',\n argTypes: {\n placeholder: { control: 'text' },\n name: { control: 'text' },\n value: { control: 'text' },\n selectAfterChange: { control: 'boolean' },\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 placeholder?: string\n name?: string\n value?: string\n selectAfterChange?: boolean\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n placeholder = 'Search',\n name = 'hello',\n value = '',\n selectAfterChange,\n disabled\n}: 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-search\n @change=${(e: Event) => console.log('changed', (e.target as HTMLInputElement).value)}\n ?select-after-change=${selectAfterChange}\n name=${name}\n .checked=${value}\n ?disabled=${disabled}\n >\n </ox-input-search>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n placeholder: 'label',\n name: 'label',\n selectAfterChange: false\n}\n"]}
|
@@ -19,10 +19,6 @@ declare const _default: {
|
|
19
19
|
disabled: {
|
20
20
|
control: string;
|
21
21
|
};
|
22
|
-
theme: {
|
23
|
-
control: string;
|
24
|
-
options: string[];
|
25
|
-
};
|
26
22
|
};
|
27
23
|
};
|
28
24
|
export default _default;
|
@@ -37,7 +33,6 @@ interface ArgTypes {
|
|
37
33
|
options: object;
|
38
34
|
multiple?: boolean;
|
39
35
|
disabled?: boolean;
|
40
|
-
theme?: string;
|
41
36
|
}
|
42
37
|
export declare const Regular: Story<ArgTypes>;
|
43
38
|
export declare const Multiple: Story<ArgTypes>;
|
@@ -9,11 +9,10 @@ export default {
|
|
9
9
|
options: { control: 'object' },
|
10
10
|
multiple: { control: 'boolean' },
|
11
11
|
name: { control: 'text' },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
};
|
16
|
-
const Template = ({ name = 'options', value, multiple = false, options = [], disabled
|
15
|
+
const Template = ({ name = 'options', value, multiple = false, options = [], disabled }) => html `
|
17
16
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
18
17
|
|
19
18
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -48,10 +47,6 @@ const Template = ({ name = 'options', value, multiple = false, options = [], dis
|
|
48
47
|
}
|
49
48
|
</style>
|
50
49
|
|
51
|
-
<script>
|
52
|
-
document.body.classList.add('${theme}')
|
53
|
-
</script>
|
54
|
-
|
55
50
|
<div class="container">
|
56
51
|
<ox-input-select-buttons
|
57
52
|
@change=${(e) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-select-buttons.stories.js","sourceRoot":"","sources":["../../stories/ox-input-select-buttons.stories.ts"],"names":[],"mappings":"AAAA,OAAO,mCAAmC,CAAA;AAE1C,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb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ACxC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;QACxC,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QAC1C,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;KACzC;CACF,CAAA","sourcesContent":["import '../src/ox-input-select-buttons.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-select-buttons',\n component: 'ox-input-select-buttons',\n argTypes: {\n value: { control: 'object' },\n options: { control: 'object' },\n multiple: { control: 'boolean' },\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 | string\n options: object\n multiple?: boolean\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n name = 'options',\n value,\n multiple = false,\n options = [],\n disabled\n}: 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\">\n <ox-input-select-buttons\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n .options=${options}\n ?multiple=${multiple}\n ?disabled=${disabled}\n >\n </ox-input-select-buttons>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'options',\n value: 'Clothes',\n options: [\n { display: 'SHOOSE', value: 'Shoose' },\n { display: 'CHOTHES', value: 'Clothes' },\n { display: 'GLOVES', value: 'Gloves' }\n ]\n}\n\nexport const Multiple = Template.bind({})\nMultiple.args = {\n name: 'options',\n value: ['Clothes'],\n multiple: true,\n options: [\n { display: 'SHOOSE1', value: 'Shoose1' },\n { display: 'CHOTHES1', value: 'Clothes1' },\n { display: 'GLOVES1', value: 'Gloves1' },\n { display: 'SHOOSE2', value: 'Shoose2' },\n { display: 'CHOTHES2', value: 'Clothes2' },\n { display: 'GLOVES2', value: 'Gloves2' },\n { display: 'SHOOSE3', value: 'Shoose3' },\n { display: 'CHOTHES3', value: 'Clothes3' },\n { display: 'GLOVES3', value: 'Gloves3' },\n { display: 'SHOOSE4', value: 'Shoose4' },\n { display: 'CHOTHES4', value: 'Clothes4' },\n { display: 'GLOVES4', value: 'Gloves4' }\n ]\n}\n"]}
|
@@ -13,10 +13,6 @@ declare const _default: {
|
|
13
13
|
disabled: {
|
14
14
|
control: string;
|
15
15
|
};
|
16
|
-
theme: {
|
17
|
-
control: string;
|
18
|
-
options: string[];
|
19
|
-
};
|
20
16
|
};
|
21
17
|
};
|
22
18
|
export default _default;
|
@@ -29,6 +25,5 @@ interface ArgTypes {
|
|
29
25
|
name?: string;
|
30
26
|
value?: object;
|
31
27
|
disabled?: boolean;
|
32
|
-
theme?: string;
|
33
28
|
}
|
34
29
|
export declare const Regular: Story<ArgTypes>;
|
@@ -7,11 +7,10 @@ export default {
|
|
7
7
|
argTypes: {
|
8
8
|
name: { control: 'text' },
|
9
9
|
value: { control: 'object' },
|
10
|
-
disabled: { control: 'boolean' }
|
11
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
10
|
+
disabled: { control: 'boolean' }
|
12
11
|
}
|
13
12
|
};
|
14
|
-
const Template = ({ name = 'table-column-config', value = {}, disabled
|
13
|
+
const Template = ({ name = 'table-column-config', value = {}, disabled }) => html `
|
15
14
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
16
15
|
|
17
16
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -46,10 +45,6 @@ const Template = ({ name = 'table-column-config', value = {}, disabled, theme =
|
|
46
45
|
}
|
47
46
|
</style>
|
48
47
|
|
49
|
-
<script>
|
50
|
-
document.body.classList.add('${theme}')
|
51
|
-
</script>
|
52
|
-
|
53
48
|
<div class="container md-typescale-body-large-prominent">
|
54
49
|
<ox-input-table-column-config
|
55
50
|
@change=${(e) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-table-column-config.stories.js","sourceRoot":"","sources":["../../stories/ox-input-table-column-config.stories.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAA;AAE/C,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,8BAA8B;IACzC,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"ox-input-table-column-config.stories.js","sourceRoot":"","sources":["../../stories/ox-input-table-column-config.stories.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAA;AAE/C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;YACV,KAAK,EAAE,CAAC;SACT;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,CAAC;SACT;KACF;CACF,CAAA","sourcesContent":["import '../src/ox-input-table-column-config.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-table-column-config',\n component: 'ox-input-table-column-config',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'object' },\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 = 'table-column-config', 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-table-column-config\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-table-column-config>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'table-column-config',\n value: [\n {\n name: 'section',\n label: 'Section',\n visible: true,\n width: 100,\n order: 1\n },\n {\n name: 'title',\n label: 'Title',\n visible: true,\n width: 110,\n order: 2\n },\n {\n name: 'startDate',\n label: 'Start Date',\n visible: true,\n width: 150,\n order: 3\n },\n {\n name: 'endDate',\n label: 'End Date',\n visible: true,\n width: 200,\n order: 4\n }\n ]\n}\n"]}
|
@@ -20,10 +20,6 @@ declare const _default: {
|
|
20
20
|
disabled: {
|
21
21
|
control: string;
|
22
22
|
};
|
23
|
-
theme: {
|
24
|
-
control: string;
|
25
|
-
options: string[];
|
26
|
-
};
|
27
23
|
};
|
28
24
|
};
|
29
25
|
export default _default;
|
@@ -39,7 +35,6 @@ interface ArgTypes {
|
|
39
35
|
stdUnit: string;
|
40
36
|
userUnit: string;
|
41
37
|
disabled?: boolean;
|
42
|
-
theme?: string;
|
43
38
|
}
|
44
39
|
export declare const Weight: Story<ArgTypes>;
|
45
40
|
export declare const Angle: Story<ArgTypes>;
|
@@ -40,11 +40,10 @@ export default {
|
|
40
40
|
'K'
|
41
41
|
]
|
42
42
|
},
|
43
|
-
disabled: { control: 'boolean' }
|
44
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
43
|
+
disabled: { control: 'boolean' }
|
45
44
|
}
|
46
45
|
};
|
47
|
-
const Template = ({ placeholder = 'unit', name = 'hello', value = 0, stdUnit = 'kg', userUnit, disabled
|
46
|
+
const Template = ({ placeholder = 'unit', name = 'hello', value = 0, stdUnit = 'kg', userUnit, disabled }) => html `
|
48
47
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
49
48
|
|
50
49
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -79,10 +78,6 @@ const Template = ({ placeholder = 'unit', name = 'hello', value = 0, stdUnit = '
|
|
79
78
|
}
|
80
79
|
</style>
|
81
80
|
|
82
|
-
<script>
|
83
|
-
document.body.classList.add('${theme}')
|
84
|
-
</script>
|
85
|
-
|
86
81
|
<div class="container md-typescale-body-large-prominent">
|
87
82
|
<ox-input-unit-number
|
88
83
|
name=${name}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-unit.stories.js","sourceRoot":"","sources":["../../stories/ox-input-unit.stories.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAA;AAEvC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,sBAAsB;IACjC,QAAQ,EAAE;QACR,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAChC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE;YACP,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE;gBACP,IAAI;gBACJ,KAAK;gBACL,GAAG;gBACH,OAAO;gBACP,IAAI;gBACJ,IAAI;gBACJ,OAAO;gBACP,OAAO;gBACP,GAAG;gBACH,IAAI;gBACJ,QAAQ;gBACR,WAAW;gBACX,SAAS;gBACT,YAAY;gBACZ,SAAS;gBACT,SAAS;gBACT,GAAG;gBACH,GAAG;gBACH,MAAM;gBACN,MAAM;gBACN,QAAQ;gBACR,OAAO;gBACP,QAAQ;gBACR,UAAU;gBACV,SAAS;gBACT,GAAG;gBACH,GAAG;aACJ;SACF;QACD,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"ox-input-unit.stories.js","sourceRoot":"","sources":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,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;kBACvC,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACvC,MAAM,CAAC,IAAI,GAAG;IACZ,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,IAAI;CACd,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACtC,KAAK,CAAC,IAAI,GAAG;IACX,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,KAAK;CACf,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC5C,WAAW,CAAC,IAAI,GAAG;IACjB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,IAAI;CACf,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,UAAU,CAAC,IAAI,GAAG;IAChB,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,GAAG;CACb,CAAA","sourcesContent":["import '../src/ox-input-unit-number.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-unit-number',\n component: 'ox-input-unit-number',\n argTypes: {\n placeholder: { control: 'text' },\n name: { control: 'text' },\n value: { control: 'number' },\n stdUnit: {\n control: 'select',\n options: [\n 'kg',\n 'rad',\n 'm',\n 'g/mol',\n 'm2',\n 'm3',\n 'kg/m3',\n 'm/sec',\n 'N',\n 'Pa',\n 'kg/sec',\n 'kg/m2/sec',\n 'mol/sec',\n 'mol/m2/sec',\n 'Sm3/sec',\n 'Nm3/sec',\n 'J',\n 'W',\n 'W/m2',\n 'J/kg',\n 'J/kg/K',\n 'W/m/K',\n 'W/m2/K',\n 'N sec/m2',\n 'm2 oC/W',\n '%',\n 'K'\n ]\n },\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 placeholder?: string\n name?: string\n value?: number\n stdUnit: string\n userUnit: string\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n placeholder = 'unit',\n name = 'hello',\n value = 0,\n stdUnit = 'kg',\n userUnit,\n disabled\n}: 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-unit-number\n name=${name}\n placeholder=${placeholder}\n .value=${value}\n std-unit=${stdUnit}\n user-unit=${userUnit}\n @change=${(e: CustomEvent) => console.log(e.detail)}\n ?disabled=${disabled}\n >\n </ox-input-unit-number>\n </div>\n`\n\nexport const Weight = Template.bind({})\nWeight.args = {\n placeholder: 'weight',\n name: 'weight',\n value: 0,\n stdUnit: 'kg'\n}\n\nexport const Angle = Template.bind({})\nAngle.args = {\n placeholder: 'angle',\n name: 'angle',\n value: 0,\n stdUnit: 'rad'\n}\n\nexport const Temperature = Template.bind({})\nTemperature.args = {\n placeholder: 'temperature',\n name: 'temperature',\n value: 0,\n stdUnit: 'K',\n userUnit: '°C'\n}\n\nexport const Percentage = Template.bind({})\nPercentage.args = {\n placeholder: 'percentage',\n name: 'percentage',\n value: 0,\n stdUnit: '%'\n}\n"]}
|
@@ -21,10 +21,6 @@ declare const _default: {
|
|
21
21
|
disabled: {
|
22
22
|
control: string;
|
23
23
|
};
|
24
|
-
theme: {
|
25
|
-
control: string;
|
26
|
-
options: string[];
|
27
|
-
};
|
28
24
|
};
|
29
25
|
};
|
30
26
|
export default _default;
|
@@ -39,6 +35,5 @@ interface ArgTypes {
|
|
39
35
|
valuetype?: string;
|
40
36
|
keytype?: string;
|
41
37
|
disabled?: boolean;
|
42
|
-
theme?: string;
|
43
38
|
}
|
44
39
|
export declare const Regular: Story<ArgTypes>;
|
@@ -9,11 +9,10 @@ export default {
|
|
9
9
|
value: { control: 'object' },
|
10
10
|
keytype: { control: 'select', options: ['string', 'number'] },
|
11
11
|
valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
};
|
16
|
-
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string', disabled
|
15
|
+
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string', disabled }) => html `
|
17
16
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
18
17
|
|
19
18
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -48,10 +47,6 @@ const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype =
|
|
48
47
|
}
|
49
48
|
</style>
|
50
49
|
|
51
|
-
<script>
|
52
|
-
document.body.classList.add('${theme}')
|
53
|
-
</script>
|
54
|
-
|
55
50
|
<div class="container md-typescale-body-large-prominent">
|
56
51
|
<ox-input-value-map
|
57
52
|
@change=${(e) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-value-map.stories.js","sourceRoot":"","sources":["../../stories/ox-input-value-map.stories.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAC7D,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;QAC3F,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"ox-input-value-map.stories.js","sourceRoot":"","sources":["../../stories/ox-input-value-map.stories.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,IAAI,E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plateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-value-map',\n component: 'ox-input-value-map',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'object' },\n keytype: { control: 'select', options: ['string', 'number'] },\n valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },\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 valuetype?: string\n keytype?: string\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n name = 'values',\n value = {},\n keytype = 'string',\n valuetype = 'string',\n disabled\n}: 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-value-map\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n keytype=${keytype}\n valuetype=${valuetype}\n ?disabled=${disabled}\n >\n </ox-input-value-map>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'values',\n value: {}\n}\n"]}
|
@@ -21,10 +21,6 @@ declare const _default: {
|
|
21
21
|
disabled: {
|
22
22
|
control: string;
|
23
23
|
};
|
24
|
-
theme: {
|
25
|
-
control: string;
|
26
|
-
options: string[];
|
27
|
-
};
|
28
24
|
};
|
29
25
|
};
|
30
26
|
export default _default;
|
@@ -39,6 +35,5 @@ interface ArgTypes {
|
|
39
35
|
valuetype?: string;
|
40
36
|
keytype?: string;
|
41
37
|
disabled?: boolean;
|
42
|
-
theme?: string;
|
43
38
|
}
|
44
39
|
export declare const Regular: Story<ArgTypes>;
|
@@ -9,11 +9,10 @@ export default {
|
|
9
9
|
value: { control: 'object' },
|
10
10
|
keytype: { control: 'select', options: ['string', 'number'] },
|
11
11
|
valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
};
|
16
|
-
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string', disabled
|
15
|
+
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string', disabled }) => html `
|
17
16
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
18
17
|
|
19
18
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -48,10 +47,6 @@ const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype =
|
|
48
47
|
}
|
49
48
|
</style>
|
50
49
|
|
51
|
-
<script>
|
52
|
-
document.body.classList.add('${theme}')
|
53
|
-
</script>
|
54
|
-
|
55
50
|
<div class="container md-typescale-body-large-prominent">
|
56
51
|
<ox-input-value-ranges
|
57
52
|
@change=${(e) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-value-ranges.stories.js","sourceRoot":"","sources":["../../stories/ox-input-value-ranges.stories.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAC7D,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;QAC3F,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"ox-input-value-ranges.stories.js","sourceRoot":"","sources":["../../stories/ox-input-value-ranges.stories.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAC7D,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;QAC3F,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAgBD,MAAM,QAAQ,GAAoB,CAAC,EACjC,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,QAAQ,EAClB,SAAS,GAAG,QAAQ,EACpB,QAAQ,EACC,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBd,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;gBACJ,OAAO;kBACL,SAAS;kBACT,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,EAAE;CACV,CAAA","sourcesContent":["import '../src/ox-input-value-ranges.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-value-ranges',\n component: 'ox-input-value-ranges',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'object' },\n keytype: { control: 'select', options: ['string', 'number'] },\n valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },\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 valuetype?: string\n keytype?: string\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n name = 'values',\n value = {},\n keytype = 'string',\n valuetype = 'string',\n disabled\n}: 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-value-ranges\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n keytype=${keytype}\n valuetype=${valuetype}\n ?disabled=${disabled}\n >\n </ox-input-value-ranges>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'values',\n value: {}\n}\n"]}
|
@@ -14,10 +14,6 @@ declare const _default: {
|
|
14
14
|
disabled: {
|
15
15
|
control: string;
|
16
16
|
};
|
17
|
-
theme: {
|
18
|
-
control: string;
|
19
|
-
options: string[];
|
20
|
-
};
|
21
17
|
};
|
22
18
|
};
|
23
19
|
export default _default;
|
@@ -30,6 +26,5 @@ interface ArgTypes {
|
|
30
26
|
name?: string;
|
31
27
|
value?: object;
|
32
28
|
disabled?: boolean;
|
33
|
-
theme?: string;
|
34
29
|
}
|
35
30
|
export declare const Regular: Story<ArgTypes>;
|
@@ -8,11 +8,10 @@ export default {
|
|
8
8
|
argTypes: {
|
9
9
|
value: { control: 'object' },
|
10
10
|
name: { control: 'text' },
|
11
|
-
disabled: { control: 'boolean' }
|
12
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
11
|
+
disabled: { control: 'boolean' }
|
13
12
|
}
|
14
13
|
};
|
15
|
-
const Template = ({ name = 'work-shift', value = [], disabled
|
14
|
+
const Template = ({ name = 'work-shift', value = [], disabled }) => html `
|
16
15
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
17
16
|
|
18
17
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -47,10 +46,6 @@ const Template = ({ name = 'work-shift', value = [], disabled, theme = 'light' }
|
|
47
46
|
}
|
48
47
|
</style>
|
49
48
|
|
50
|
-
<script>
|
51
|
-
document.body.classList.add('${theme}')
|
52
|
-
</script>
|
53
|
-
|
54
49
|
<div class="container md-typescale-body-large-prominent">
|
55
50
|
<locale-picker></locale-picker>
|
56
51
|
<br /><br />
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-input-work-shift.stories.js","sourceRoot":"","sources":["../../stories/ox-input-work-shift.stories.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AACtC,OAAO,gCAAgC,CAAA;AAEvC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,qBAAqB;IAChC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,QAAQ,EAAE,EAAE,OAA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Q,EAAE,CAAC;YACX,QAAQ,EAAE,OAAO;YACjB,MAAM,EAAE,CAAC;YACT,MAAM,EAAE,OAAO;SAChB;QACD;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,OAAO;YACjB,MAAM,EAAE,CAAC;YACT,MAAM,EAAE,OAAO;SAChB;KACF;CACF,CAAA","sourcesContent":["import '../src/ox-input-work-shift.js'\nimport '../src/locale/locale-picker.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-input-work-shift',\n component: 'ox-input-work-shift',\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 = 'work-shift', 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 <locale-picker></locale-picker>\n <br /><br />\n\n <ox-input-work-shift\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-work-shift>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'work-shift',\n value: [\n {\n name: 'DAY',\n fromDate: -1,\n fromTime: '22:00',\n toDate: 0,\n toTime: '06:00'\n },\n {\n name: 'SWING',\n fromDate: 0,\n fromTime: '06:00',\n toDate: 0,\n toTime: '14:00'\n },\n {\n name: 'NIGHT',\n fromDate: 0,\n fromTime: '14:00',\n toDate: 0,\n toTime: '22:00'\n }\n ]\n}\n"]}
|
@@ -23,10 +23,6 @@ declare const _default: {
|
|
23
23
|
disabled: {
|
24
24
|
control: string;
|
25
25
|
};
|
26
|
-
theme: {
|
27
|
-
control: string;
|
28
|
-
options: string[];
|
29
|
-
};
|
30
26
|
};
|
31
27
|
};
|
32
28
|
export default _default;
|
@@ -46,7 +42,6 @@ interface ArgTypes {
|
|
46
42
|
multiple?: boolean;
|
47
43
|
withSearch?: boolean;
|
48
44
|
disabled?: boolean;
|
49
|
-
theme?: string;
|
50
45
|
}
|
51
46
|
export declare const Regular: Story<ArgTypes>;
|
52
47
|
export declare const MultipleSelect: Story<ArgTypes>;
|
@@ -11,11 +11,10 @@ export default {
|
|
11
11
|
options: { control: 'object' },
|
12
12
|
multiple: { control: 'boolean' },
|
13
13
|
withSearch: { control: 'boolean' },
|
14
|
-
disabled: { control: 'boolean' }
|
15
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
14
|
+
disabled: { control: 'boolean' }
|
16
15
|
}
|
17
16
|
};
|
18
|
-
const Template = ({ placeholder = 'Checkbox', name = 'hello', value = '', options = [], multiple, withSearch, disabled
|
17
|
+
const Template = ({ placeholder = 'Checkbox', name = 'hello', value = '', options = [], multiple, withSearch, disabled }) => html `
|
19
18
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
20
19
|
|
21
20
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -50,10 +49,6 @@ const Template = ({ placeholder = 'Checkbox', name = 'hello', value = '', option
|
|
50
49
|
}
|
51
50
|
</style>
|
52
51
|
|
53
|
-
<script>
|
54
|
-
document.body.classList.add('${theme}')
|
55
|
-
</script>
|
56
|
-
|
57
52
|
<div class="container md-typescale-body-large-prominent">
|
58
53
|
<ox-select
|
59
54
|
name=${name}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ox-select-set-options.stories.js","sourceRoot":"","sources":["../../stories/ox-select-set-options.stories.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,uBAAuB,CAAA;AAG9B,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAE1F,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE;QACR,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAChC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC9B,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAChC,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAClC,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;
|
1
|
+
{"version":3,"file":"ox-select-set-options.stories.js","sourceRoot":"","sources":["../../stories/ox-select-set-options.stories.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,uBAAuB,CAAA;AAG9B,OAAO,EAAE,IAAI,EAAkB,MAAM,K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AAE,IAAI;IAChB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACtB,OAAO,EAAE;QACP;YACE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,GAAG;SACb;QACD;YACE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,GAAG;SACb;QACD;YACE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,GAAG;SACb;QACD;YACE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,GAAG;SACb;QACD;YACE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,GAAG;SACb;QACD;YACE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,GAAG;SACb;QACD;YACE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,GAAG;SACb;QACD;YACE,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,gBAAgB;SAC1B;KACF;CACF,CAAA","sourcesContent":["import '../src/ox-select.js'\nimport '../src/ox-checkbox.js'\n\nimport { OxSelect } from '../src/ox-select.js'\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'\n\nexport default {\n title: 'ox-select-set-options',\n component: 'ox-select',\n argTypes: {\n placeholder: { control: 'text' },\n name: { control: 'text' },\n options: { control: 'object' },\n multiple: { control: 'boolean' },\n withSearch: { control: 'boolean' },\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 placeholder?: string\n name?: string\n value?: object | string\n options?: string[] | { display: string; value: string }[]\n multiple?: boolean\n withSearch?: boolean\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n placeholder = 'Checkbox',\n name = 'hello',\n value = '',\n options = [],\n multiple,\n withSearch,\n disabled\n}: 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-select\n name=${name}\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n placeholder=${placeholder}\n .value=${value}\n ?disabled=${disabled}\n >\n </ox-select>\n\n <input\n type=\"button\"\n value=\"set options\"\n @click=${() => {\n const select = document.querySelector('ox-select') as OxSelect\n select.setOptions(options, { multiple, withSearch })\n select.value = JSON.parse(JSON.stringify(value))\n }}\n />\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n placeholder: 'single select',\n name: 'label',\n value: '',\n multiple: false,\n options: [\n {\n value: 'A',\n display: 'LABEL-A'\n },\n {\n value: 'B',\n display: 'LABEL-B'\n },\n {\n value: 'C',\n display: 'LABEL-C'\n },\n {\n value: 'TOO LONG VALUE',\n display: 'LABEL-TOO LONG VALUE'\n }\n ]\n}\n\nexport const MultipleSelect = Template.bind({})\nMultipleSelect.args = {\n placeholder: 'multiple select',\n name: 'multiple',\n multiple: true,\n withSearch: true,\n value: ['B', 'TOO LONG VALUE'],\n options: [\n 'A',\n 'B',\n 'C',\n 'D',\n 'E',\n 'F',\n 'G',\n 'H',\n 'I',\n 'J',\n 'K',\n 'L',\n 'M',\n 'O',\n 'P',\n 'Q',\n 'R',\n 'S',\n 'T',\n 'U',\n 'V',\n 'W',\n 'X',\n 'Y',\n 'Z',\n 'TOO LONG VALUE'\n ]\n}\n\nexport const MultipleWithCheckbox = Template.bind({})\nMultipleWithCheckbox.args = {\n placeholder: 'multiple with checkbox',\n name: 'multiple',\n multiple: true,\n withSearch: true,\n value: ['B', 'C', 'F'],\n options: [\n {\n value: 'A',\n display: 'A'\n },\n {\n value: 'B',\n display: 'B'\n },\n {\n value: 'C',\n display: 'C'\n },\n {\n value: 'D',\n display: 'D'\n },\n {\n value: 'E',\n display: 'E'\n },\n {\n value: 'F',\n display: 'F'\n },\n {\n value: 'G',\n display: 'G'\n },\n {\n value: 'TOO LONG VALUE',\n display: 'TOO LONG VALUE'\n }\n ]\n}\n"]}
|
@@ -14,10 +14,6 @@ declare const _default: {
|
|
14
14
|
disabled: {
|
15
15
|
control: string;
|
16
16
|
};
|
17
|
-
theme: {
|
18
|
-
control: string;
|
19
|
-
options: string[];
|
20
|
-
};
|
21
17
|
};
|
22
18
|
};
|
23
19
|
export default _default;
|
@@ -32,7 +28,6 @@ interface ArgTypes {
|
|
32
28
|
value?: object | string;
|
33
29
|
slot?: TemplateResult;
|
34
30
|
disabled?: boolean;
|
35
|
-
theme?: string;
|
36
31
|
}
|
37
32
|
export declare const Regular: Story<ArgTypes>;
|
38
33
|
export declare const MultipleSelect: Story<ArgTypes>;
|