@operato/input 1.0.0-beta.19 → 1.0.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/src/ox-input-key-values.d.ts +41 -0
  3. package/dist/src/ox-input-key-values.js +232 -0
  4. package/dist/src/ox-input-key-values.js.map +1 -0
  5. package/dist/src/ox-input-value-map.d.ts +2 -2
  6. package/dist/src/ox-input-value-map.js +1 -1
  7. package/dist/src/ox-input-value-map.js.map +1 -1
  8. package/dist/src/ox-input-value-ranges.d.ts +2 -2
  9. package/dist/src/ox-input-value-ranges.js.map +1 -1
  10. package/dist/stories/ox-input-key-values.stories.d.ts +29 -0
  11. package/dist/stories/ox-input-key-values.stories.js +49 -0
  12. package/dist/stories/ox-input-key-values.stories.js.map +1 -0
  13. package/dist/stories/ox-input-partition-keys.stories.d.ts +0 -2
  14. package/dist/stories/ox-input-partition-keys.stories.js +0 -18
  15. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
  16. package/dist/stories/ox-input-value-map.stories copy.d.ts +35 -0
  17. package/dist/stories/ox-input-value-map.stories copy.js +37 -0
  18. package/dist/stories/ox-input-value-map.stories copy.js.map +1 -0
  19. package/dist/stories/ox-input-value-map.stories.d.ts +35 -0
  20. package/dist/stories/ox-input-value-map.stories.js +37 -0
  21. package/dist/stories/ox-input-value-map.stories.js.map +1 -0
  22. package/dist/stories/ox-input-value-range.stories.d.ts +35 -0
  23. package/dist/stories/ox-input-value-range.stories.js +37 -0
  24. package/dist/stories/ox-input-value-range.stories.js.map +1 -0
  25. package/dist/stories/ox-input-value-ranges.stories.d.ts +35 -0
  26. package/dist/stories/ox-input-value-ranges.stories.js +37 -0
  27. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -0
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +8 -7
  30. package/src/ox-input-key-values.ts +269 -0
  31. package/src/ox-input-value-map.ts +2 -2
  32. package/src/ox-input-value-ranges.ts +2 -2
  33. package/stories/ox-input-code.stories.ts_ +0 -20
  34. package/stories/ox-input-key-values.stories.ts +64 -0
  35. package/stories/ox-input-partition-keys.stories.ts +0 -20
  36. package/stories/ox-input-value-map.stories.ts +58 -0
  37. package/stories/ox-input-value-ranges.stories.ts +58 -0
@@ -1 +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;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC9C,aAAa,CAAC,IAAI,GAAG;IACnB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE;QACL,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,IAAI;KACR;CACF,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC5C,WAAW,CAAC,IAAI,GAAG;IACjB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE;QACL,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,QAAQ;QACX,CAAC,EAAE,MAAM;KACV;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\nexport const BooleanValues = Template.bind({})\nBooleanValues.args = {\n name: 'partition-keys',\n value: {\n A: true,\n B: false,\n C: true\n }\n}\n\nexport const ColorValues = Template.bind({})\nColorValues.args = {\n name: 'partition-keys',\n value: {\n A: 'red',\n B: 'yellow',\n C: 'blue'\n }\n}\n"]}
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,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"]}
@@ -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-ranges.stories.js.map
@@ -0,0 +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;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"]}