@operato/input 1.0.0-beta.9 → 1.0.6

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 (182) hide show
  1. package/.storybook/main.js +2 -2
  2. package/.storybook/server.mjs +4 -4
  3. package/CHANGELOG.md +449 -0
  4. package/demo/index-multiple-colors.html +4 -1
  5. package/demo/index-partition-keys.html +2 -5
  6. package/demo/index.html +4 -0
  7. package/dist/src/index.d.ts +4 -2
  8. package/dist/src/index.js +4 -2
  9. package/dist/src/index.js.map +1 -1
  10. package/dist/src/locales/en.d.ts +8 -0
  11. package/dist/src/locales/en.js +8 -0
  12. package/dist/src/locales/en.js.map +1 -1
  13. package/dist/src/locales/ko.d.ts +8 -0
  14. package/dist/src/locales/ko.js +8 -0
  15. package/dist/src/locales/ko.js.map +1 -1
  16. package/dist/src/locales/ms.d.ts +8 -0
  17. package/dist/src/locales/ms.js +8 -0
  18. package/dist/src/locales/ms.js.map +1 -1
  19. package/dist/src/locales/zh.d.ts +8 -0
  20. package/dist/src/locales/zh.js +8 -0
  21. package/dist/src/locales/zh.js.map +1 -1
  22. package/dist/src/ox-input-3dish.js +24 -8
  23. package/dist/src/ox-input-3dish.js.map +1 -1
  24. package/dist/src/ox-input-barcode.d.ts +5 -2
  25. package/dist/src/ox-input-barcode.js +61 -31
  26. package/dist/src/ox-input-barcode.js.map +1 -1
  27. package/dist/src/ox-input-color.js +16 -11
  28. package/dist/src/ox-input-color.js.map +1 -1
  29. package/dist/src/ox-input-crontab.js +28 -10
  30. package/dist/src/ox-input-crontab.js.map +1 -1
  31. package/dist/src/ox-input-data.js +1 -1
  32. package/dist/src/ox-input-data.js.map +1 -1
  33. package/dist/src/ox-input-duration.d.ts +13 -0
  34. package/dist/src/ox-input-duration.js +163 -0
  35. package/dist/src/ox-input-duration.js.map +1 -0
  36. package/dist/src/ox-input-file.js +5 -3
  37. package/dist/src/ox-input-file.js.map +1 -1
  38. package/dist/src/ox-input-key-values.d.ts +41 -0
  39. package/dist/src/ox-input-key-values.js +233 -0
  40. package/dist/src/ox-input-key-values.js.map +1 -0
  41. package/dist/src/ox-input-multiple-colors.d.ts +1 -0
  42. package/dist/src/ox-input-multiple-colors.js +29 -21
  43. package/dist/src/ox-input-multiple-colors.js.map +1 -1
  44. package/dist/src/ox-input-options.d.ts +1 -0
  45. package/dist/src/ox-input-options.js +55 -14
  46. package/dist/src/ox-input-options.js.map +1 -1
  47. package/dist/src/ox-input-partition-keys.d.ts +1 -0
  48. package/dist/src/ox-input-partition-keys.js +51 -23
  49. package/dist/src/ox-input-partition-keys.js.map +1 -1
  50. package/dist/src/ox-input-quantifier.d.ts +11 -0
  51. package/dist/src/ox-input-quantifier.js +67 -0
  52. package/dist/src/ox-input-quantifier.js.map +1 -0
  53. package/dist/src/ox-input-range.js +35 -38
  54. package/dist/src/ox-input-range.js.map +1 -1
  55. package/dist/src/ox-input-search.d.ts +1 -0
  56. package/dist/src/ox-input-search.js +27 -3
  57. package/dist/src/ox-input-search.js.map +1 -1
  58. package/dist/src/ox-input-unit.d.ts +17 -0
  59. package/dist/src/ox-input-unit.js +122 -0
  60. package/dist/src/ox-input-unit.js.map +1 -0
  61. package/dist/src/ox-input-value-map.d.ts +2 -2
  62. package/dist/src/ox-input-value-map.js +51 -15
  63. package/dist/src/ox-input-value-map.js.map +1 -1
  64. package/dist/src/ox-input-value-ranges.d.ts +2 -2
  65. package/dist/src/ox-input-value-ranges.js +50 -23
  66. package/dist/src/ox-input-value-ranges.js.map +1 -1
  67. package/dist/src/ox-input-work-shift.js +79 -44
  68. package/dist/src/ox-input-work-shift.js.map +1 -1
  69. package/dist/src/ox-select.js +12 -3
  70. package/dist/src/ox-select.js.map +1 -1
  71. package/dist/stories/ox-checkbox.stories.d.ts +39 -0
  72. package/dist/stories/ox-checkbox.stories.js +44 -0
  73. package/dist/stories/ox-checkbox.stories.js.map +1 -0
  74. package/dist/stories/ox-input-3dish.stories.d.ts +26 -0
  75. package/dist/stories/ox-input-3dish.stories.js +59 -0
  76. package/dist/stories/ox-input-3dish.stories.js.map +1 -0
  77. package/dist/stories/ox-input-barcode.stories.d.ts +43 -0
  78. package/dist/stories/ox-input-barcode.stories.js +59 -0
  79. package/dist/stories/ox-input-barcode.stories.js.map +1 -0
  80. package/dist/stories/ox-input-crontab.stories.d.ts +25 -0
  81. package/dist/stories/ox-input-crontab.stories.js +35 -0
  82. package/dist/stories/ox-input-crontab.stories.js.map +1 -0
  83. package/dist/stories/ox-input-duration.stories.d.ts +26 -0
  84. package/dist/stories/ox-input-duration.stories.js +37 -0
  85. package/dist/stories/ox-input-duration.stories.js.map +1 -0
  86. package/dist/stories/ox-input-file.stories.d.ts +49 -0
  87. package/dist/stories/ox-input-file.stories.js +48 -0
  88. package/dist/stories/ox-input-file.stories.js.map +1 -0
  89. package/dist/stories/{index.stories.d.ts → ox-input-key-values.stories.d.ts} +7 -11
  90. package/dist/stories/ox-input-key-values.stories.js +49 -0
  91. package/dist/stories/ox-input-key-values.stories.js.map +1 -0
  92. package/dist/stories/ox-input-multiple-colors.stories.d.ts +20 -0
  93. package/dist/stories/ox-input-multiple-colors.stories.js +167 -0
  94. package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -0
  95. package/dist/stories/ox-input-options.stories.d.ts +25 -0
  96. package/dist/stories/ox-input-options.stories.js +33 -0
  97. package/dist/stories/ox-input-options.stories.js.map +1 -0
  98. package/dist/stories/ox-input-partition-keys.stories.d.ts +25 -0
  99. package/dist/stories/ox-input-partition-keys.stories.js +37 -0
  100. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -0
  101. package/dist/stories/ox-input-quantifier.stories.d.ts +25 -0
  102. package/dist/stories/ox-input-quantifier.stories.js +27 -0
  103. package/dist/stories/ox-input-quantifier.stories.js.map +1 -0
  104. package/dist/stories/ox-input-range.stories.d.ts +37 -0
  105. package/dist/stories/ox-input-range.stories.js +28 -0
  106. package/dist/stories/ox-input-range.stories.js.map +1 -0
  107. package/dist/stories/ox-input-search.stories.d.ts +33 -0
  108. package/dist/stories/ox-input-search.stories.js +35 -0
  109. package/dist/stories/ox-input-search.stories.js.map +1 -0
  110. package/dist/stories/ox-input-unit.stories.d.ts +40 -0
  111. package/dist/stories/ox-input-unit.stories.js +42 -0
  112. package/dist/stories/ox-input-unit.stories.js.map +1 -0
  113. package/dist/stories/ox-input-value-map.stories.d.ts +35 -0
  114. package/dist/stories/ox-input-value-map.stories.js +37 -0
  115. package/dist/stories/ox-input-value-map.stories.js.map +1 -0
  116. package/dist/stories/ox-input-value-ranges.stories.d.ts +35 -0
  117. package/dist/stories/ox-input-value-ranges.stories.js +37 -0
  118. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -0
  119. package/dist/stories/ox-input-work-shift.stories.d.ts +26 -0
  120. package/dist/stories/ox-input-work-shift.stories.js +59 -0
  121. package/dist/stories/ox-input-work-shift.stories.js.map +1 -0
  122. package/dist/stories/ox-select.stories.d.ts +30 -0
  123. package/dist/stories/ox-select.stories.js +83 -0
  124. package/dist/stories/ox-select.stories.js.map +1 -0
  125. package/dist/tsconfig.tsbuildinfo +1 -1
  126. package/package.json +23 -19
  127. package/src/index.ts +4 -2
  128. package/src/locales/en.ts +8 -0
  129. package/src/locales/ko.ts +8 -0
  130. package/src/locales/ms.ts +8 -0
  131. package/src/locales/zh.ts +8 -0
  132. package/src/ox-input-3dish.ts +24 -8
  133. package/src/ox-input-barcode.ts +67 -34
  134. package/src/ox-input-color.ts +17 -11
  135. package/src/ox-input-crontab.ts +30 -10
  136. package/src/ox-input-data.ts +2 -2
  137. package/src/ox-input-duration.ts +168 -0
  138. package/src/ox-input-file.ts +7 -6
  139. package/src/ox-input-key-values.ts +270 -0
  140. package/src/ox-input-multiple-colors.ts +29 -21
  141. package/src/ox-input-options.ts +54 -13
  142. package/src/ox-input-partition-keys.ts +51 -22
  143. package/src/ox-input-quantifier.ts +62 -0
  144. package/src/ox-input-range.ts +35 -38
  145. package/src/ox-input-search.ts +29 -3
  146. package/src/ox-input-unit.ts +123 -0
  147. package/src/ox-input-value-map.ts +52 -16
  148. package/src/ox-input-value-ranges.ts +52 -25
  149. package/src/ox-input-work-shift.ts +81 -44
  150. package/src/ox-select.ts +19 -5
  151. package/stories/ox-checkbox.stories.ts +69 -0
  152. package/stories/ox-input-3dish.stories.ts +73 -0
  153. package/stories/ox-input-barcode.stories.ts +85 -0
  154. package/stories/ox-input-code.stories.ts_ +51 -0
  155. package/stories/ox-input-crontab.stories.ts +49 -0
  156. package/stories/ox-input-duration.stories.ts +51 -0
  157. package/stories/ox-input-file.stories.ts +77 -0
  158. package/stories/ox-input-key-values.stories.ts +64 -0
  159. package/stories/ox-input-multiple-colors.stories.ts +178 -0
  160. package/stories/ox-input-options.stories.ts +47 -0
  161. package/stories/ox-input-partition-keys.stories.ts +51 -0
  162. package/stories/ox-input-quantifier.stories.ts +43 -0
  163. package/stories/ox-input-range.stories.ts +45 -0
  164. package/stories/ox-input-search.stories.ts +56 -0
  165. package/stories/ox-input-unit.stories.ts +66 -0
  166. package/stories/ox-input-value-map.stories.ts +58 -0
  167. package/stories/ox-input-value-ranges.stories.ts +58 -0
  168. package/stories/ox-input-work-shift.stories.ts +73 -0
  169. package/stories/ox-select.stories.ts +101 -0
  170. package/themes/app-theme.css +142 -0
  171. package/themes/input-theme.css +19 -0
  172. package/translations/en.json +45 -1
  173. package/translations/ko.json +43 -1
  174. package/translations/ms.json +43 -1
  175. package/translations/zh.json +43 -1
  176. package/xliff/en.xlf +24 -0
  177. package/xliff/ko.xlf +32 -0
  178. package/xliff/ms.xlf +24 -0
  179. package/xliff/zh.xlf +24 -0
  180. package/dist/stories/index.stories.js +0 -33
  181. package/dist/stories/index.stories.js.map +0 -1
  182. package/stories/index.stories.ts +0 -52
@@ -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,25 @@
1
+ import '../src/ox-input-quantifier.js';
2
+ import { TemplateResult } from 'lit';
3
+ declare const _default: {
4
+ title: string;
5
+ component: string;
6
+ argTypes: {
7
+ name: {
8
+ control: string;
9
+ };
10
+ value: {
11
+ control: string;
12
+ };
13
+ };
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?: number[];
24
+ }
25
+ export declare const Regular: Story<ArgTypes>;
@@ -0,0 +1,27 @@
1
+ import '../src/ox-input-quantifier.js';
2
+ import { html } from 'lit';
3
+ export default {
4
+ title: 'ox-input-quantifier',
5
+ component: 'ox-input-quantifier',
6
+ argTypes: {
7
+ name: { control: 'text' },
8
+ value: { control: 'array' }
9
+ }
10
+ };
11
+ const Template = ({ name = 'quantifier', 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
+
15
+ <ox-input-quantifier
16
+ name=${name}
17
+ .value=${value}
18
+ @change=${(e) => console.log(e.target.value)}
19
+ >
20
+ </ox-input-quantifier>
21
+ `;
22
+ export const Regular = Template.bind({});
23
+ Regular.args = {
24
+ name: 'quantifier',
25
+ value: [10, 100]
26
+ };
27
+ //# sourceMappingURL=ox-input-quantifier.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ox-input-quantifier.stories.js","sourceRoot":"","sources":["../../stories/ox-input-quantifier.stories.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AAEtC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAI1C,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,qBAAqB;IAChC,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KAC5B;CACF,CAAA;AAaD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,YAAY,EAAE,KAAK,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;WAKzE,IAAI;aACF,KAAK;cACJ,CAAC,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA4B,CAAC,KAAK,CAAC;;;CAG7E,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC;CACjB,CAAA","sourcesContent":["import '../src/ox-input-quantifier.js'\n\nimport { html, TemplateResult } from 'lit'\n\nimport { OxInputQuantifier } from '../src/ox-input-quantifier.js'\n\nexport default {\n title: 'ox-input-quantifier',\n component: 'ox-input-quantifier',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'array' }\n }\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}\n\nconst Template: Story<ArgTypes> = ({ name = 'quantifier', 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\n <ox-input-quantifier\n name=${name}\n .value=${value}\n @change=${(e: Event) => console.log((e.target as OxInputQuantifier).value)}\n >\n </ox-input-quantifier>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'quantifier',\n value: [10, 100]\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,33 @@
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
+ selectAfterChange: {
17
+ control: string;
18
+ };
19
+ };
20
+ };
21
+ export default _default;
22
+ interface Story<T> {
23
+ (args: T): TemplateResult;
24
+ args?: Partial<T>;
25
+ argTypes?: Record<string, unknown>;
26
+ }
27
+ interface ArgTypes {
28
+ placeholder?: string;
29
+ name?: string;
30
+ value?: string;
31
+ selectAfterChange?: boolean;
32
+ }
33
+ export declare const Regular: Story<ArgTypes>;
@@ -0,0 +1,35 @@
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
+ selectAfterChange: { control: 'boolean' }
11
+ }
12
+ };
13
+ const Template = ({ placeholder = 'Search', name = 'hello', value = '', selectAfterChange }) => 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-search
22
+ @change=${(e) => console.log('changed', e.target.value)}
23
+ ?select-after-change=${selectAfterChange}
24
+ name=${name}
25
+ .checked=${value}
26
+ >
27
+ </ox-input-search>
28
+ `;
29
+ export const Regular = Template.bind({});
30
+ Regular.args = {
31
+ placeholder: 'label',
32
+ name: 'label',
33
+ selectAfterChange: false
34
+ };
35
+ //# 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;QAC1B,iBAAiB,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KAC1C;CACF,CAAA;AAeD,MAAM,QAAQ,GAAoB,CAAC,EACjC,WAAW,GAAG,QAAQ,EACtB,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,EAAE,EACV,iBAAiB,EACR,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;cASN,CAAC,CAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAG,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC;2BAC7D,iBAAiB;WACjC,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;IACb,iBAAiB,EAAE,KAAK;CACzB,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 selectAfterChange: { 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}\n\nconst Template: Story<ArgTypes> = ({\n placeholder = 'Search',\n name = 'hello',\n value = '',\n selectAfterChange\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-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 >\n </ox-input-search>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n placeholder: 'label',\n name: 'label',\n selectAfterChange: false\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.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-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"]}
@@ -0,0 +1,26 @@
1
+ import '../src/ox-input-work-shift.js';
2
+ import '../src/locale/locale-picker.js';
3
+ import { TemplateResult } from 'lit';
4
+ declare const _default: {
5
+ title: string;
6
+ component: string;
7
+ argTypes: {
8
+ value: {
9
+ control: string;
10
+ };
11
+ name: {
12
+ control: string;
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ interface Story<T> {
18
+ (args: T): TemplateResult;
19
+ args?: Partial<T>;
20
+ argTypes?: Record<string, unknown>;
21
+ }
22
+ interface ArgTypes {
23
+ name?: string;
24
+ value?: object;
25
+ }
26
+ export declare const Regular: Story<ArgTypes>;
@@ -0,0 +1,59 @@
1
+ import '../src/ox-input-work-shift.js';
2
+ import '../src/locale/locale-picker.js';
3
+ import { html } from 'lit';
4
+ export default {
5
+ title: 'ox-input-work-shift',
6
+ component: 'ox-input-work-shift',
7
+ argTypes: {
8
+ value: { control: 'object' },
9
+ name: { control: 'text' }
10
+ }
11
+ };
12
+ const Template = ({ name = 'work-shift', 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
+ <locale-picker></locale-picker>
21
+ <br /><br />
22
+
23
+ <ox-input-work-shift
24
+ @change=${(e) => {
25
+ console.log(e.target.value);
26
+ }}
27
+ name=${name}
28
+ .value=${value}
29
+ >
30
+ </ox-input-work-shift>
31
+ `;
32
+ export const Regular = Template.bind({});
33
+ Regular.args = {
34
+ name: 'work-shift',
35
+ value: [
36
+ {
37
+ name: 'DAY',
38
+ fromDate: -1,
39
+ fromTime: '22:00',
40
+ toDate: 0,
41
+ toTime: '06:00'
42
+ },
43
+ {
44
+ name: 'SWING',
45
+ fromDate: 0,
46
+ fromTime: '06:00',
47
+ toDate: 0,
48
+ toTime: '14:00'
49
+ },
50
+ {
51
+ name: 'NIGHT',
52
+ fromDate: 0,
53
+ fromTime: '14:00',
54
+ toDate: 0,
55
+ toTime: '22:00'
56
+ }
57
+ ]
58
+ };
59
+ //# sourceMappingURL=ox-input-work-shift.stories.js.map
@@ -0,0 +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;AAE1C,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;KAC1B;CACF,CAAA;AAaD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,YAAY,EAAE,KAAK,GAAG,EAAE,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;cAY3E,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,YAAY;IAClB,KAAK,EAAE;QACL;YACE,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,CAAC,CAAC;YACZ,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;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'\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 }\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 = 'work-shift', 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 <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 >\n </ox-input-work-shift>\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"]}
@@ -0,0 +1,30 @@
1
+ import '../src/ox-select.js';
2
+ import '../src/ox-checkbox.js';
3
+ import { TemplateResult } from 'lit';
4
+ declare const _default: {
5
+ title: string;
6
+ component: string;
7
+ argTypes: {
8
+ placeholder: {
9
+ control: string;
10
+ };
11
+ name: {
12
+ control: string;
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ interface Story<T> {
18
+ (args: T): TemplateResult;
19
+ args?: Partial<T>;
20
+ argTypes?: Record<string, unknown>;
21
+ }
22
+ interface ArgTypes {
23
+ placeholder?: string;
24
+ name?: string;
25
+ value?: object | string;
26
+ slot?: TemplateResult;
27
+ }
28
+ export declare const Regular: Story<ArgTypes>;
29
+ export declare const MultipleSelect: Story<ArgTypes>;
30
+ export declare const MultipleWithCheckbox: Story<ArgTypes>;