@operato/input 1.0.0-beta.2 → 1.0.0-beta.22
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/main.js +2 -2
- package/.storybook/server.mjs +4 -4
- package/CHANGELOG.md +417 -0
- package/demo/index-multiple-colors.html +4 -1
- package/demo/index-partition-keys.html +2 -5
- package/demo/index-select.html +1 -1
- package/demo/index.html +4 -0
- package/dist/src/locales/en.d.ts +8 -0
- package/dist/src/locales/en.js +8 -0
- package/dist/src/locales/en.js.map +1 -1
- package/dist/src/locales/ko.d.ts +8 -0
- package/dist/src/locales/ko.js +8 -0
- package/dist/src/locales/ko.js.map +1 -1
- package/dist/src/locales/ms.d.ts +8 -0
- package/dist/src/locales/ms.js +8 -0
- package/dist/src/locales/ms.js.map +1 -1
- package/dist/src/locales/zh.d.ts +8 -0
- package/dist/src/locales/zh.js +8 -0
- package/dist/src/locales/zh.js.map +1 -1
- package/dist/src/ox-input-3dish.js +24 -8
- package/dist/src/ox-input-3dish.js.map +1 -1
- package/dist/src/ox-input-color.js +16 -11
- package/dist/src/ox-input-color.js.map +1 -1
- package/dist/src/ox-input-crontab.js +28 -10
- package/dist/src/ox-input-crontab.js.map +1 -1
- package/dist/src/ox-input-file.js +5 -3
- package/dist/src/ox-input-file.js.map +1 -1
- package/dist/src/ox-input-key-values.d.ts +41 -0
- package/dist/src/ox-input-key-values.js +233 -0
- package/dist/src/ox-input-key-values.js.map +1 -0
- package/dist/src/ox-input-multiple-colors.d.ts +1 -0
- package/dist/src/ox-input-multiple-colors.js +29 -21
- package/dist/src/ox-input-multiple-colors.js.map +1 -1
- package/dist/src/ox-input-options.d.ts +1 -0
- package/dist/src/ox-input-options.js +54 -14
- package/dist/src/ox-input-options.js.map +1 -1
- package/dist/src/ox-input-partition-keys.d.ts +1 -0
- package/dist/src/ox-input-partition-keys.js +51 -23
- package/dist/src/ox-input-partition-keys.js.map +1 -1
- package/dist/src/ox-input-range.js +35 -38
- package/dist/src/ox-input-range.js.map +1 -1
- package/dist/src/ox-input-search.d.ts +0 -1
- package/dist/src/ox-input-search.js +14 -7
- package/dist/src/ox-input-search.js.map +1 -1
- package/dist/src/ox-input-unit.d.ts +17 -0
- package/dist/src/ox-input-unit.js +122 -0
- package/dist/src/ox-input-unit.js.map +1 -0
- package/dist/src/ox-input-value-map.d.ts +2 -2
- package/dist/src/ox-input-value-map.js +1 -1
- package/dist/src/ox-input-value-map.js.map +1 -1
- package/dist/src/ox-input-value-ranges.d.ts +2 -2
- package/dist/src/ox-input-value-ranges.js.map +1 -1
- package/dist/src/ox-input-work-shift.js +77 -43
- package/dist/src/ox-input-work-shift.js.map +1 -1
- package/dist/src/ox-select.js +12 -1
- package/dist/src/ox-select.js.map +1 -1
- package/dist/stories/ox-checkbox.stories.d.ts +39 -0
- package/dist/stories/ox-checkbox.stories.js +44 -0
- package/dist/stories/ox-checkbox.stories.js.map +1 -0
- package/dist/stories/ox-input-3dish.stories.d.ts +26 -0
- package/dist/stories/ox-input-3dish.stories.js +59 -0
- package/dist/stories/ox-input-3dish.stories.js.map +1 -0
- package/dist/stories/{index.stories.d.ts → ox-input-barcode.stories.d.ts} +11 -11
- package/dist/stories/ox-input-barcode.stories.js +22 -0
- package/dist/stories/ox-input-barcode.stories.js.map +1 -0
- package/dist/stories/ox-input-conntab.stories.d.ts +26 -0
- package/dist/stories/ox-input-conntab.stories.js +37 -0
- package/dist/stories/ox-input-conntab.stories.js.map +1 -0
- package/dist/stories/ox-input-crontab.stories.d.ts +26 -0
- package/dist/stories/ox-input-crontab.stories.js +37 -0
- package/dist/stories/ox-input-crontab.stories.js.map +1 -0
- package/dist/stories/ox-input-file.stories.d.ts +49 -0
- package/dist/stories/ox-input-file.stories.js +48 -0
- package/dist/stories/ox-input-file.stories.js.map +1 -0
- package/dist/stories/ox-input-key-values.stories.d.ts +29 -0
- package/dist/stories/ox-input-key-values.stories.js +49 -0
- package/dist/stories/ox-input-key-values.stories.js.map +1 -0
- package/dist/stories/ox-input-multiple-colors.stories.d.ts +20 -0
- package/dist/stories/ox-input-multiple-colors.stories.js +167 -0
- package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -0
- package/dist/stories/ox-input-options.stories.d.ts +25 -0
- package/dist/stories/ox-input-options.stories.js +33 -0
- package/dist/stories/ox-input-options.stories.js.map +1 -0
- package/dist/stories/ox-input-partition-keys.stories.d.ts +25 -0
- package/dist/stories/ox-input-partition-keys.stories.js +37 -0
- package/dist/stories/ox-input-partition-keys.stories.js.map +1 -0
- package/dist/stories/ox-input-range.stories.d.ts +37 -0
- package/dist/stories/ox-input-range.stories.js +28 -0
- package/dist/stories/ox-input-range.stories.js.map +1 -0
- package/dist/stories/ox-input-search.stories.d.ts +29 -0
- package/dist/stories/ox-input-search.stories.js +32 -0
- package/dist/stories/ox-input-search.stories.js.map +1 -0
- package/dist/stories/ox-input-unit.stories.d.ts +40 -0
- package/dist/stories/ox-input-unit.stories.js +42 -0
- package/dist/stories/ox-input-unit.stories.js.map +1 -0
- package/dist/stories/ox-input-value-map.stories copy.d.ts +35 -0
- package/dist/stories/ox-input-value-map.stories copy.js +37 -0
- package/dist/stories/ox-input-value-map.stories copy.js.map +1 -0
- package/dist/stories/ox-input-value-map.stories.d.ts +35 -0
- package/dist/stories/ox-input-value-map.stories.js +37 -0
- package/dist/stories/ox-input-value-map.stories.js.map +1 -0
- package/dist/stories/ox-input-value-range.stories.d.ts +35 -0
- package/dist/stories/ox-input-value-range.stories.js +37 -0
- package/dist/stories/ox-input-value-range.stories.js.map +1 -0
- package/dist/stories/ox-input-value-ranges.stories.d.ts +35 -0
- package/dist/stories/ox-input-value-ranges.stories.js +37 -0
- package/dist/stories/ox-input-value-ranges.stories.js.map +1 -0
- package/dist/stories/ox-input-work-shift.stories.d.ts +26 -0
- package/dist/stories/ox-input-work-shift.stories.js +59 -0
- package/dist/stories/ox-input-work-shift.stories.js.map +1 -0
- package/dist/stories/ox-select.stories.d.ts +30 -0
- package/dist/stories/ox-select.stories.js +83 -0
- package/dist/stories/ox-select.stories.js.map +1 -0
- package/dist/themes/common-grist-styles.d.ts +1 -0
- package/dist/themes/common-grist-styles.js +110 -0
- package/dist/themes/common-grist-styles.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -11
- package/src/locales/en.ts +8 -0
- package/src/locales/ko.ts +8 -0
- package/src/locales/ms.ts +8 -0
- package/src/locales/zh.ts +8 -0
- package/src/ox-input-3dish.ts +24 -8
- package/src/ox-input-color.ts +17 -11
- package/src/ox-input-crontab.ts +30 -10
- package/src/ox-input-file.ts +7 -6
- package/src/ox-input-key-values.ts +270 -0
- package/src/ox-input-multiple-colors.ts +29 -21
- package/src/ox-input-options.ts +53 -13
- package/src/ox-input-partition-keys.ts +51 -22
- package/src/ox-input-range.ts +35 -38
- package/src/ox-input-search.ts +14 -8
- package/src/ox-input-unit.ts +123 -0
- package/src/ox-input-value-map.ts +2 -2
- package/src/ox-input-value-ranges.ts +2 -2
- package/src/ox-input-work-shift.ts +78 -43
- package/src/ox-select.ts +15 -3
- package/stories/ox-checkbox.stories.ts +69 -0
- package/stories/ox-input-3dish.stories.ts +73 -0
- package/stories/ox-input-barcode.stories.ts +38 -0
- package/stories/ox-input-code.stories.ts_ +51 -0
- package/stories/ox-input-crontab.stories.ts +51 -0
- package/stories/ox-input-file.stories.ts +77 -0
- package/stories/ox-input-key-values.stories.ts +64 -0
- package/stories/ox-input-multiple-colors.stories.ts +178 -0
- package/stories/ox-input-options.stories.ts +47 -0
- package/stories/ox-input-partition-keys.stories.ts +51 -0
- package/stories/ox-input-range.stories.ts +45 -0
- package/stories/ox-input-search.stories.ts +47 -0
- package/stories/ox-input-unit.stories.ts +66 -0
- package/stories/ox-input-value-map.stories.ts +58 -0
- package/stories/ox-input-value-ranges.stories.ts +58 -0
- package/stories/ox-input-work-shift.stories.ts +73 -0
- package/stories/ox-select.stories.ts +101 -0
- package/themes/app-theme.css +142 -0
- package/themes/common-grist-styles.ts +110 -0
- package/themes/input-theme.css +19 -0
- package/xliff/en.xlf +24 -0
- package/xliff/ko.xlf +32 -0
- package/xliff/ms.xlf +24 -0
- package/xliff/zh.xlf +24 -0
- package/dist/stories/index.stories.js +0 -33
- package/dist/stories/index.stories.js.map +0 -1
- package/stories/index.stories.ts +0 -52
@@ -0,0 +1 @@
|
|
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;AAE1C,eAAe;IACb,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,0BAA0B;IACrC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KAC5B;CACF,CAAA;AAUD,MAAM,QAAQ,GAAoB,CAAC,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqJ3C,CAAC,KAAK,EAAE,QAAQ,CAAC;cAChB,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;;;CAGJ,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'\n\nexport default {\n title: 'ox-input-multiple-colors',\n component: 'ox-input-multiple-colors',\n argTypes: {\n value: { control: 'array' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {}\n\nconst Template: Story<ArgTypes> = ({}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n\n <style>\n body {\n /* theme color */\n --primary-color-rgb: 56, 162, 91;\n --primary-color: rgb(var(--primary-color-rgb));\n --secondary-color-rgb: 71, 97, 114;\n --secondary-color: rgb(var(--secondary-color-rgb));\n --focus-color: var(--theme-white-color);\n --primary-background-color: var(--secondary-color);\n --secondary-background-color: #183936;\n --main-section-background-color: #f7f6f4;\n --theme-white-color: #fff;\n --theme-black-color: rgba(0, 0, 0, 0.9);\n\n --focus-background-color: var(--primary-color);\n --primary-text-color: var(--theme-black-color);\n --secondary-text-color: #218f62;\n\n --opacity-dark-color: rgba(0, 0, 0, 0.4);\n --opacity-light-color: rgba(255, 255, 255, 0.8);\n\n /* status color */\n --status-success-color: #35a24a;\n --status-warning-color: #ee8d03;\n --status-danger-color: #d14946;\n --status-info-color: #398ace;\n\n /* common style */\n --border-radius: 4px;\n --border-dark-color: 1px solid rgba(0, 0, 0, 0.15);\n --border-light-color: 1px solid rgba(255, 255, 255, 0.3);\n\n --box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.1);\n\n --theme-font: 'Noto', Helvetica;\n\n --margin-default: 9px;\n --margin-narrow: 4px;\n --margin-wide: 15px;\n --padding-default: var(--margin-default);\n --padding-narrow: var(--margin-narrow);\n --padding-wide: var(--margin-wide);\n\n --scrollbar-thumb-color: rgba(57, 78, 100, 0.5);\n --scrollbar-thumb-hover-color: var(--primary-color);\n\n --fontsize-default: 14px;\n --fontsize-small: 13px;\n --fontsize-large: 16px;\n\n /* app layout style */\n --app-grid-template-area: 'header header header' 'nav main aside' 'nav footer aside';\n\n /* title & description style */\n --title-margin: var(--margin-narrow) 0;\n --title-font: bold 24px var(--theme-font);\n --title-text-color: var(--secondary-color);\n --title-font-mobile: bold 20px var(--theme-font);\n\n --page-description-margin: var(--margin-narrow) 0 var(--margin-wide) 0;\n --page-description-font: normal var(--fontsize-default) / 1.2rem var(--theme-font);\n --page-description-color: var(--secondary-text-color);\n\n --subtitle-padding: 12px 5px 3px 5px;\n --subtitle-font: bold 18px var(--theme-font);\n --subtitle-text-color: var(--primary-color);\n --subtitle-border-bottom: 1px solid var(--primary-color);\n\n /* icon style */\n --icon-tiny-size: 24px;\n --icon-default-size: 36px;\n --icon-big-size: 48px;\n --icon-default-color: var(--theme-white-color);\n\n /* material design component themes */\n --mdc-theme-on-primary: var(--theme-white-color);\n --mdc-theme-primary: var(--secondary-text-color);\n --mdc-theme-on-secondary: var(--theme-white-color);\n --mdc-theme-secondary: var(--primary-color);\n --mdc-button-outline-color: var(--primary-color);\n --mdc-danger-button-primary-color: var(--status-danger-color);\n --mdc-danger-button-outline-color: var(--status-danger-color);\n --mdc-button-outline-width: 1px;\n --mdc-button-horizontal-padding: 16px;\n\n /* button style */\n --button-background-color: #fafbfc;\n --button-background-focus-color: var(--primary-color);\n --button-border: var(--border-dark-color);\n --button-border-radius: var(--border-radius);\n --button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;\n --button-padding: var(--padding-default);\n --button-color: var(--secondary-color);\n --button-font: normal 15px var(--theme-font);\n --button-text-transform: capitalize;\n --button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);\n --button-activ-border: 1px solid var(--primary-color);\n\n --button-primary-background-color: var(--primary-color);\n --button-primary-active-background-color: var(--status-success-color);\n --button-primary-padding: var(--margin-default) var(--margin-wide);\n --button-primary-color: var(--theme-white-color);\n --button-primary-font: bold 16px var(--theme-font);\n\n /* table style */\n --th-padding: var(--padding-default) 0 var(--padding-default) var(--padding-default);\n --th-border-top: 2px solid var(--secondary-color);\n --th-text-transform: capitalize;\n --th-font: bold var(--fontsize-small) var(--theme-font);\n --th-color: rgba(var(--secondary-color-rgb), 0.8);\n\n --tr-background-color: var(--theme-white-color);\n --tr-background-odd-color: rgba(255, 255, 255, 0.4);\n --tr-background-hover-color: #e1f5fe;\n --td-border-bottom: 1px solid rgba(0, 0, 0, 0.09);\n --td-padding: var(--padding-default);\n --td-font: normal 13px var(--theme-font);\n --td-color: var(--secondary-color);\n\n /* form style */\n --label-font: normal var(--fontsize-default) var(--theme-font);\n --label-color: var(--secondary-color);\n --label-text-transform: capitalize;\n --input-margin: var(--margin-narrow) 0;\n --input-padding: var(--padding-default);\n --input-min-width: 200px;\n --input-font: normal var(--fontsize-default) var(--theme-font);\n --input-hint-font: normal var(--fontsize-small) var(--theme-font);\n --input-hint-color: #666;\n --input-container-max-width: 900px;\n --fieldset-margin: var(--padding-wide) 0;\n --fieldset-padding: 0 var(--padding-wide) var(--padding-wide) var(--padding-wide);\n --legend-padding: var(--padding-default) 0;\n --legend-color: var(--secondary-text-color);\n --legend-font: bold 16px var(--theme-font);\n }\n\n @media only screen and (max-width: 460px) {\n body {\n /* subtitle style */\n --subtitle-margin: 0;\n }\n }\n </style>\n\n <ox-input-multiple-colors\n .value=${['red', 'yellow']}\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n >\n </ox-input-multiple-colors>\n`\n\nexport const Regular = Template.bind({})\n"]}
|
@@ -0,0 +1,25 @@
|
|
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
|
+
};
|
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
|
+
name?: string;
|
23
|
+
value?: object;
|
24
|
+
}
|
25
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import '../src/ox-input-options.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-options',
|
5
|
+
component: 'ox-input-options',
|
6
|
+
argTypes: {
|
7
|
+
value: { control: 'object' },
|
8
|
+
name: { control: 'text' }
|
9
|
+
}
|
10
|
+
};
|
11
|
+
const Template = ({ name = 'options', value = {} }) => html `
|
12
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
13
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
14
|
+
<style>
|
15
|
+
body {
|
16
|
+
}
|
17
|
+
</style>
|
18
|
+
|
19
|
+
<ox-input-options
|
20
|
+
@change=${(e) => {
|
21
|
+
console.log(e.target.value);
|
22
|
+
}}
|
23
|
+
name=${name}
|
24
|
+
.value=${value}
|
25
|
+
>
|
26
|
+
</ox-input-options>
|
27
|
+
`;
|
28
|
+
export const Regular = Template.bind({});
|
29
|
+
Regular.args = {
|
30
|
+
name: 'options',
|
31
|
+
value: [{ text: 'SHOOSE', value: 'Shoose' }]
|
32
|
+
};
|
33
|
+
//# sourceMappingURL=ox-input-options.stories.js.map
|
@@ -0,0 +1 @@
|
|
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;AAE1C,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;KAC1B;CACF,CAAA;AAaD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;cASxE,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;WACM,IAAI;aACF,KAAK;;;CAGjB,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'\n\nexport default {\n title: 'ox-input-options',\n component: 'ox-input-options',\n argTypes: {\n value: { control: 'object' },\n name: { control: 'text' }\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}\n\nconst Template: Story<ArgTypes> = ({ name = 'options', value = {} }: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n <style>\n body {\n }\n </style>\n\n <ox-input-options\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n >\n </ox-input-options>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'options',\n value: [{ text: 'SHOOSE', value: 'Shoose' }]\n}\n"]}
|
@@ -0,0 +1,25 @@
|
|
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
|
+
};
|
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
|
+
name?: string;
|
23
|
+
value?: object;
|
24
|
+
}
|
25
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import '../src/ox-input-partition-keys.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-partition-keys',
|
5
|
+
component: 'ox-input-partition-keys',
|
6
|
+
argTypes: {
|
7
|
+
value: { control: 'object' },
|
8
|
+
name: { control: 'text' }
|
9
|
+
}
|
10
|
+
};
|
11
|
+
const Template = ({ name = 'partition-keys', value = {} }) => html `
|
12
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
13
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
14
|
+
<style>
|
15
|
+
body {
|
16
|
+
}
|
17
|
+
</style>
|
18
|
+
|
19
|
+
<ox-input-partition-keys
|
20
|
+
@change=${(e) => {
|
21
|
+
console.log(e.target.value);
|
22
|
+
}}
|
23
|
+
name=${name}
|
24
|
+
.value=${value}
|
25
|
+
>
|
26
|
+
</ox-input-partition-keys>
|
27
|
+
`;
|
28
|
+
export const Regular = Template.bind({});
|
29
|
+
Regular.args = {
|
30
|
+
name: 'partition-keys',
|
31
|
+
value: {
|
32
|
+
A: 'A',
|
33
|
+
B: 'B',
|
34
|
+
C: 'C'
|
35
|
+
}
|
36
|
+
};
|
37
|
+
//# sourceMappingURL=ox-input-partition-keys.stories.js.map
|
@@ -0,0 +1 @@
|
|
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;AAE1C,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;KAC1B;CACF,CAAA;AAaD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,gBAAgB,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;cAS/E,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;WACM,IAAI;aACF,KAAK;;;CAGjB,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'\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 }\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}\n\nconst Template: Story<ArgTypes> = ({ name = 'partition-keys', value = {} }: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n <style>\n body {\n }\n </style>\n\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 >\n </ox-input-partition-keys>\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"]}
|
@@ -0,0 +1,37 @@
|
|
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
|
+
};
|
23
|
+
};
|
24
|
+
export default _default;
|
25
|
+
interface Story<T> {
|
26
|
+
(args: T): TemplateResult;
|
27
|
+
args?: Partial<T>;
|
28
|
+
argTypes?: Record<string, unknown>;
|
29
|
+
}
|
30
|
+
interface ArgTypes {
|
31
|
+
name?: string;
|
32
|
+
value?: number;
|
33
|
+
step?: number;
|
34
|
+
min?: number;
|
35
|
+
max?: number;
|
36
|
+
}
|
37
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import '../src/ox-input-range.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-range',
|
5
|
+
component: 'ox-input-range',
|
6
|
+
argTypes: {
|
7
|
+
name: { control: 'text' },
|
8
|
+
value: { control: 'number' },
|
9
|
+
step: { control: 'number' },
|
10
|
+
min: { control: 'number' },
|
11
|
+
max: { control: 'number' }
|
12
|
+
}
|
13
|
+
};
|
14
|
+
const Template = ({ name = 'range', value = 0, step = 1, min = 0, max = 100 }) => html `
|
15
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
16
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
17
|
+
|
18
|
+
<ox-input-range name=${name} value=${value} step=${step} min=${min} max=${max}> </ox-input-range>
|
19
|
+
`;
|
20
|
+
export const Regular = Template.bind({});
|
21
|
+
Regular.args = {
|
22
|
+
name: 'range',
|
23
|
+
value: 0,
|
24
|
+
step: 1,
|
25
|
+
min: 0,
|
26
|
+
max: 100
|
27
|
+
};
|
28
|
+
//# sourceMappingURL=ox-input-range.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ox-input-range.stories.js","sourceRoot":"","sources":["../../stories/ox-input-range.stories.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAE1C,eAAe;IACb,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC3B,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC1B,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;KAC3B;CACF,CAAA;AAgBD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;yBAIxF,IAAI,UAAU,KAAK,SAAS,IAAI,QAAQ,GAAG,QAAQ,GAAG;CAC9E,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,GAAG;CACT,CAAA","sourcesContent":["import '../src/ox-input-range.js'\n\nimport { html, TemplateResult } from 'lit'\n\nexport default {\n title: 'ox-input-range',\n component: 'ox-input-range',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'number' },\n step: { control: 'number' },\n min: { control: 'number' },\n max: { control: 'number' }\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 step?: number\n min?: number\n max?: number\n}\n\nconst Template: Story<ArgTypes> = ({ name = 'range', value = 0, step = 1, min = 0, max = 100 }: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n\n <ox-input-range name=${name} value=${value} step=${step} min=${min} max=${max}> </ox-input-range>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'range',\n value: 0,\n step: 1,\n min: 0,\n max: 100\n}\n"]}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import '../src/ox-input-search.js';
|
2
|
+
import { TemplateResult } from 'lit';
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: string;
|
6
|
+
argTypes: {
|
7
|
+
placeholder: {
|
8
|
+
control: string;
|
9
|
+
};
|
10
|
+
name: {
|
11
|
+
control: string;
|
12
|
+
};
|
13
|
+
value: {
|
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
|
+
placeholder?: string;
|
26
|
+
name?: string;
|
27
|
+
value?: string;
|
28
|
+
}
|
29
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import '../src/ox-input-search.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-search',
|
5
|
+
component: 'ox-input-search',
|
6
|
+
argTypes: {
|
7
|
+
placeholder: { control: 'text' },
|
8
|
+
name: { control: 'text' },
|
9
|
+
value: { control: 'text' }
|
10
|
+
}
|
11
|
+
};
|
12
|
+
const Template = ({ placeholder = 'Search', name = 'hello', value = '' }) => html `
|
13
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
14
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
15
|
+
<style>
|
16
|
+
body {
|
17
|
+
}
|
18
|
+
</style>
|
19
|
+
|
20
|
+
<ox-input-search
|
21
|
+
@change=${(e) => console.log('changed', e.target.value)}
|
22
|
+
name=${name}
|
23
|
+
.checked=${value}
|
24
|
+
>
|
25
|
+
</ox-input-search>
|
26
|
+
`;
|
27
|
+
export const Regular = Template.bind({});
|
28
|
+
Regular.args = {
|
29
|
+
placeholder: 'label',
|
30
|
+
name: 'label'
|
31
|
+
};
|
32
|
+
//# sourceMappingURL=ox-input-search.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ox-input-search.stories.js","sourceRoot":"","sources":["../../stories/ox-input-search.stories.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAA;AAElC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAE1C,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;KAC3B;CACF,CAAA;AAcD,MAAM,QAAQ,GAAoB,CAAC,EAAE,WAAW,GAAG,QAAQ,EAAE,IAAI,GAAG,OAAO,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;cAS9F,CAAC,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAG,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC;WAC7E,IAAI;eACA,KAAK;;;CAGnB,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;CACd,CAAA","sourcesContent":["import '../src/ox-input-search.js'\n\nimport { html, TemplateResult } from 'lit'\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 }\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}\n\nconst Template: Story<ArgTypes> = ({ placeholder = 'Search', name = 'hello', value = '' }: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n <style>\n body {\n }\n </style>\n\n <ox-input-search\n @change=${(e: Event) => console.log('changed', (e.target as HTMLInputElement).value)}\n name=${name}\n .checked=${value}\n >\n </ox-input-search>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n placeholder: 'label',\n name: 'label'\n}\n"]}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import '../src/ox-input-unit.js';
|
2
|
+
import { TemplateResult } from 'lit';
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: string;
|
6
|
+
argTypes: {
|
7
|
+
placeholder: {
|
8
|
+
control: string;
|
9
|
+
};
|
10
|
+
name: {
|
11
|
+
control: string;
|
12
|
+
};
|
13
|
+
value: {
|
14
|
+
control: string;
|
15
|
+
};
|
16
|
+
stdUnit: {
|
17
|
+
control: string;
|
18
|
+
options: string[];
|
19
|
+
};
|
20
|
+
userUnit: {
|
21
|
+
control: string;
|
22
|
+
options: string[];
|
23
|
+
};
|
24
|
+
};
|
25
|
+
};
|
26
|
+
export default _default;
|
27
|
+
interface Story<T> {
|
28
|
+
(args: T): TemplateResult;
|
29
|
+
args?: Partial<T>;
|
30
|
+
argTypes?: Record<string, unknown>;
|
31
|
+
}
|
32
|
+
interface ArgTypes {
|
33
|
+
placeholder?: string;
|
34
|
+
name?: string;
|
35
|
+
value?: number;
|
36
|
+
stdUnit: string;
|
37
|
+
userUnit?: string;
|
38
|
+
}
|
39
|
+
export declare const Weight: Story<ArgTypes>;
|
40
|
+
export declare const Angle: Story<ArgTypes>;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import '../src/ox-input-unit.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-unit',
|
5
|
+
component: 'ox-input-unit',
|
6
|
+
argTypes: {
|
7
|
+
placeholder: { control: 'text' },
|
8
|
+
name: { control: 'text' },
|
9
|
+
value: { control: 'number' },
|
10
|
+
stdUnit: { control: 'select', options: ['kg', 'rad'] },
|
11
|
+
userUnit: { control: 'select', options: ['mg', 'g', 'ton', 'degree'] }
|
12
|
+
}
|
13
|
+
};
|
14
|
+
const Template = ({ placeholder = 'unit', name = 'hello', value = 0, stdUnit = 'kg', userUnit }) => html `
|
15
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
16
|
+
<ox-input-unit
|
17
|
+
name=${name}
|
18
|
+
placeholder=${placeholder}
|
19
|
+
.value=${value}
|
20
|
+
std-unit=${stdUnit}
|
21
|
+
user-unit=${userUnit}
|
22
|
+
@change=${(e) => console.log(e.detail)}
|
23
|
+
>
|
24
|
+
</ox-input-unit>
|
25
|
+
`;
|
26
|
+
export const Weight = Template.bind({});
|
27
|
+
Weight.args = {
|
28
|
+
placeholder: 'weight',
|
29
|
+
name: 'weight',
|
30
|
+
value: 0,
|
31
|
+
stdUnit: 'kg',
|
32
|
+
userUnit: 'g'
|
33
|
+
};
|
34
|
+
export const Angle = Template.bind({});
|
35
|
+
Angle.args = {
|
36
|
+
placeholder: 'angle',
|
37
|
+
name: 'angle',
|
38
|
+
value: 0,
|
39
|
+
stdUnit: 'rad',
|
40
|
+
userUnit: 'degree'
|
41
|
+
};
|
42
|
+
//# sourceMappingURL=ox-input-unit.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ox-input-unit.stories.js","sourceRoot":"","sources":["../../stories/ox-input-unit.stories.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA;AAEhC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAE1C,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,eAAe;IAC1B,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,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;QACtD,QAAQ,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE;KACvE;CACF,CAAA;AAgBD,MAAM,QAAQ,GAAoB,CAAC,EACjC,WAAW,GAAG,MAAM,EACpB,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,CAAC,EACT,OAAO,GAAG,IAAI,EACd,QAAQ,EACC,EAAE,EAAE,CAAC,IAAI,CAAA;;;WAGT,IAAI;kBACG,WAAW;aAChB,KAAK;eACH,OAAO;gBACN,QAAQ;cACV,CAAC,CAAc,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;;;CAGtD,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;IACb,QAAQ,EAAE,GAAG;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;IACd,QAAQ,EAAE,QAAQ;CACnB,CAAA","sourcesContent":["import '../src/ox-input-unit.js'\n\nimport { html, TemplateResult } from 'lit'\n\nexport default {\n title: 'ox-input-unit',\n component: 'ox-input-unit',\n argTypes: {\n placeholder: { control: 'text' },\n name: { control: 'text' },\n value: { control: 'number' },\n stdUnit: { control: 'select', options: ['kg', 'rad'] },\n userUnit: { control: 'select', options: ['mg', 'g', 'ton', 'degree'] }\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}\n\nconst Template: Story<ArgTypes> = ({\n placeholder = 'unit',\n name = 'hello',\n value = 0,\n stdUnit = 'kg',\n userUnit\n}: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <ox-input-unit\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 >\n </ox-input-unit>\n`\n\nexport const Weight = Template.bind({})\nWeight.args = {\n placeholder: 'weight',\n name: 'weight',\n value: 0,\n stdUnit: 'kg',\n userUnit: 'g'\n}\n\nexport const Angle = Template.bind({})\nAngle.args = {\n placeholder: 'angle',\n name: 'angle',\n value: 0,\n stdUnit: 'rad',\n userUnit: 'degree'\n}\n"]}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import '../src/ox-input-value-map.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
|
+
keytype: {
|
14
|
+
control: string;
|
15
|
+
options: string[];
|
16
|
+
};
|
17
|
+
valuetype: {
|
18
|
+
control: string;
|
19
|
+
options: string[];
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
23
|
+
export default _default;
|
24
|
+
interface Story<T> {
|
25
|
+
(args: T): TemplateResult;
|
26
|
+
args?: Partial<T>;
|
27
|
+
argTypes?: Record<string, unknown>;
|
28
|
+
}
|
29
|
+
interface ArgTypes {
|
30
|
+
name?: string;
|
31
|
+
value?: object;
|
32
|
+
valuetype?: string;
|
33
|
+
keytype?: string;
|
34
|
+
}
|
35
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import '../src/ox-input-value-map.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-value-map',
|
5
|
+
component: 'ox-input-value-map',
|
6
|
+
argTypes: {
|
7
|
+
name: { control: 'text' },
|
8
|
+
value: { control: 'object' },
|
9
|
+
keytype: { control: 'select', options: ['string', 'number'] },
|
10
|
+
valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] }
|
11
|
+
}
|
12
|
+
};
|
13
|
+
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string' }) => html `
|
14
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
15
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
16
|
+
<style>
|
17
|
+
body {
|
18
|
+
}
|
19
|
+
</style>
|
20
|
+
|
21
|
+
<ox-input-value-map
|
22
|
+
@change=${(e) => {
|
23
|
+
console.log(e.target.value);
|
24
|
+
}}
|
25
|
+
name=${name}
|
26
|
+
.value=${value}
|
27
|
+
keytype=${keytype}
|
28
|
+
valuetype=${valuetype}
|
29
|
+
>
|
30
|
+
</ox-input-value-map>
|
31
|
+
`;
|
32
|
+
export const Regular = Template.bind({});
|
33
|
+
Regular.args = {
|
34
|
+
name: 'values',
|
35
|
+
value: {}
|
36
|
+
};
|
37
|
+
//# sourceMappingURL=ox-input-value-map.stories%20copy.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ox-input-value-map.stories copy.js","sourceRoot":"","sources":["../../stories/ox-input-value-map.stories copy.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAE1C,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;KAC5F;CACF,CAAA;AAeD,MAAM,QAAQ,GAAoB,CAAC,EACjC,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,QAAQ,EAClB,SAAS,GAAG,QAAQ,EACX,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;cASN,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;WACM,IAAI;aACF,KAAK;cACJ,OAAO;gBACL,SAAS;;;CAGxB,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-map.js'\n\nimport { html, TemplateResult } from 'lit'\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 }\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}\n\nconst Template: Story<ArgTypes> = ({\n name = 'values',\n value = {},\n keytype = 'string',\n valuetype = 'string'\n}: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n <style>\n body {\n }\n </style>\n\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 >\n </ox-input-value-map>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'values',\n value: {}\n}\n"]}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import '../src/ox-input-value-map.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
|
+
keytype: {
|
14
|
+
control: string;
|
15
|
+
options: string[];
|
16
|
+
};
|
17
|
+
valuetype: {
|
18
|
+
control: string;
|
19
|
+
options: string[];
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
23
|
+
export default _default;
|
24
|
+
interface Story<T> {
|
25
|
+
(args: T): TemplateResult;
|
26
|
+
args?: Partial<T>;
|
27
|
+
argTypes?: Record<string, unknown>;
|
28
|
+
}
|
29
|
+
interface ArgTypes {
|
30
|
+
name?: string;
|
31
|
+
value?: object;
|
32
|
+
valuetype?: string;
|
33
|
+
keytype?: string;
|
34
|
+
}
|
35
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import '../src/ox-input-value-map.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-value-map',
|
5
|
+
component: 'ox-input-value-map',
|
6
|
+
argTypes: {
|
7
|
+
name: { control: 'text' },
|
8
|
+
value: { control: 'object' },
|
9
|
+
keytype: { control: 'select', options: ['string', 'number'] },
|
10
|
+
valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] }
|
11
|
+
}
|
12
|
+
};
|
13
|
+
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string' }) => html `
|
14
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
15
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
16
|
+
<style>
|
17
|
+
body {
|
18
|
+
}
|
19
|
+
</style>
|
20
|
+
|
21
|
+
<ox-input-value-map
|
22
|
+
@change=${(e) => {
|
23
|
+
console.log(e.target.value);
|
24
|
+
}}
|
25
|
+
name=${name}
|
26
|
+
.value=${value}
|
27
|
+
keytype=${keytype}
|
28
|
+
valuetype=${valuetype}
|
29
|
+
>
|
30
|
+
</ox-input-value-map>
|
31
|
+
`;
|
32
|
+
export const Regular = Template.bind({});
|
33
|
+
Regular.args = {
|
34
|
+
name: 'values',
|
35
|
+
value: {}
|
36
|
+
};
|
37
|
+
//# sourceMappingURL=ox-input-value-map.stories.js.map
|
@@ -0,0 +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;AAE1C,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;KAC5F;CACF,CAAA;AAeD,MAAM,QAAQ,GAAoB,CAAC,EACjC,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,QAAQ,EAClB,SAAS,GAAG,QAAQ,EACX,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;cASN,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;WACM,IAAI;aACF,KAAK;cACJ,OAAO;gBACL,SAAS;;;CAGxB,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-map.js'\n\nimport { html, TemplateResult } from 'lit'\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 }\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}\n\nconst Template: Story<ArgTypes> = ({\n name = 'values',\n value = {},\n keytype = 'string',\n valuetype = 'string'\n}: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n <style>\n body {\n }\n </style>\n\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 >\n </ox-input-value-map>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'values',\n value: {}\n}\n"]}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import '../src/ox-input-value-ranges.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
|
+
keytype: {
|
14
|
+
control: string;
|
15
|
+
options: string[];
|
16
|
+
};
|
17
|
+
valuetype: {
|
18
|
+
control: string;
|
19
|
+
options: string[];
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
23
|
+
export default _default;
|
24
|
+
interface Story<T> {
|
25
|
+
(args: T): TemplateResult;
|
26
|
+
args?: Partial<T>;
|
27
|
+
argTypes?: Record<string, unknown>;
|
28
|
+
}
|
29
|
+
interface ArgTypes {
|
30
|
+
name?: string;
|
31
|
+
value?: object;
|
32
|
+
valuetype?: string;
|
33
|
+
keytype?: string;
|
34
|
+
}
|
35
|
+
export declare const Regular: Story<ArgTypes>;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import '../src/ox-input-value-ranges.js';
|
2
|
+
import { html } from 'lit';
|
3
|
+
export default {
|
4
|
+
title: 'ox-input-value-ranges',
|
5
|
+
component: 'ox-input-value-ranges',
|
6
|
+
argTypes: {
|
7
|
+
name: { control: 'text' },
|
8
|
+
value: { control: 'object' },
|
9
|
+
keytype: { control: 'select', options: ['string', 'number'] },
|
10
|
+
valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] }
|
11
|
+
}
|
12
|
+
};
|
13
|
+
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string' }) => html `
|
14
|
+
<link href="/themes/app-theme.css" rel="stylesheet" />
|
15
|
+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
|
16
|
+
<style>
|
17
|
+
body {
|
18
|
+
}
|
19
|
+
</style>
|
20
|
+
|
21
|
+
<ox-input-value-ranges
|
22
|
+
@change=${(e) => {
|
23
|
+
console.log(e.target.value);
|
24
|
+
}}
|
25
|
+
name=${name}
|
26
|
+
.value=${value}
|
27
|
+
keytype=${keytype}
|
28
|
+
valuetype=${valuetype}
|
29
|
+
>
|
30
|
+
</ox-input-value-ranges>
|
31
|
+
`;
|
32
|
+
export const Regular = Template.bind({});
|
33
|
+
Regular.args = {
|
34
|
+
name: 'values',
|
35
|
+
value: {}
|
36
|
+
};
|
37
|
+
//# sourceMappingURL=ox-input-value-range.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ox-input-value-range.stories.js","sourceRoot":"","sources":["../../stories/ox-input-value-range.stories.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAE1C,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;KAC5F;CACF,CAAA;AAeD,MAAM,QAAQ,GAAoB,CAAC,EACjC,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,QAAQ,EAClB,SAAS,GAAG,QAAQ,EACX,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;cASN,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;WACM,IAAI;aACF,KAAK;cACJ,OAAO;gBACL,SAAS;;;CAGxB,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'\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 }\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}\n\nconst Template: Story<ArgTypes> = ({\n name = 'values',\n value = {},\n keytype = 'string',\n valuetype = 'string'\n}: ArgTypes) => html`\n <link href=\"/themes/app-theme.css\" rel=\"stylesheet\" />\n <link href=\"https://fonts.googleapis.com/css?family=Material+Icons&display=block\" rel=\"stylesheet\" />\n <style>\n body {\n }\n </style>\n\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 >\n </ox-input-value-ranges>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'values',\n value: {}\n}\n"]}
|