@operato/input 9.0.0-beta.7 → 9.0.0-beta.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +249 -0
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/ox-form-field.d.ts +2 -5
- package/dist/src/ox-form-field.js +2 -5
- package/dist/src/ox-form-field.js.map +1 -1
- package/dist/src/ox-input-angle.js +1 -3
- package/dist/src/ox-input-angle.js.map +1 -1
- package/dist/src/ox-input-background-pattern.d.ts +36 -0
- package/dist/src/ox-input-background-pattern.js +114 -0
- package/dist/src/ox-input-background-pattern.js.map +1 -0
- package/dist/src/ox-input-color-gradient.d.ts +12 -10
- package/dist/src/ox-input-color-gradient.js +104 -222
- package/dist/src/ox-input-color-gradient.js.map +1 -1
- package/dist/src/ox-input-color-stops.d.ts +26 -22
- package/dist/src/ox-input-color-stops.js +122 -151
- package/dist/src/ox-input-color-stops.js.map +1 -1
- package/dist/src/ox-input-color.d.ts +13 -5
- package/dist/src/ox-input-color.js +169 -96
- package/dist/src/ox-input-color.js.map +1 -1
- package/dist/src/ox-input-crontab.js +1 -0
- package/dist/src/ox-input-crontab.js.map +1 -1
- package/dist/src/ox-input-direction.js +1 -0
- package/dist/src/ox-input-direction.js.map +1 -1
- package/dist/src/ox-input-duration.js +4 -0
- package/dist/src/ox-input-duration.js.map +1 -1
- package/dist/src/ox-input-fill-style.d.ts +48 -0
- package/dist/src/ox-input-fill-style.js +330 -0
- package/dist/src/ox-input-fill-style.js.map +1 -0
- package/dist/src/ox-input-multiple-colors.js +2 -2
- package/dist/src/ox-input-multiple-colors.js.map +1 -1
- package/dist/src/ox-input-options.js +0 -1
- package/dist/src/ox-input-options.js.map +1 -1
- package/dist/src/ox-input-privilege.js +1 -0
- package/dist/src/ox-input-privilege.js.map +1 -1
- package/dist/src/ox-input-range.js +2 -0
- package/dist/src/ox-input-range.js.map +1 -1
- package/dist/src/ox-input-select-buttons.d.ts +1 -1
- package/dist/src/ox-input-select-buttons.js +2 -2
- package/dist/src/ox-input-select-buttons.js.map +1 -1
- package/dist/src/ox-input-table.d.ts +20 -2
- package/dist/src/ox-input-table.js +67 -160
- package/dist/src/ox-input-table.js.map +1 -1
- package/dist/src/ox-input-unit-number.js +2 -1
- package/dist/src/ox-input-unit-number.js.map +1 -1
- package/dist/src/ox-input-value-map.js +7 -3
- package/dist/src/ox-input-value-map.js.map +1 -1
- package/dist/src/ox-select-floor.js +1 -0
- package/dist/src/ox-select-floor.js.map +1 -1
- package/dist/src/ox-select.d.ts +3 -0
- package/dist/src/ox-select.js +19 -9
- package/dist/src/ox-select.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -25
- package/dist/stories/image-for-select-floor.d.ts +0 -1
- package/dist/stories/image-for-select-floor.js +0 -2
- package/dist/stories/image-for-select-floor.js.map +0 -1
- package/dist/stories/ox-buttons-radio.stories.d.ts +0 -26
- package/dist/stories/ox-buttons-radio.stories.js +0 -75
- package/dist/stories/ox-buttons-radio.stories.js.map +0 -1
- package/dist/stories/ox-checkbox.stories.d.ts +0 -44
- package/dist/stories/ox-checkbox.stories.js +0 -84
- package/dist/stories/ox-checkbox.stories.js.map +0 -1
- package/dist/stories/ox-input-3axis.stories.d.ts +0 -26
- package/dist/stories/ox-input-3axis.stories.js +0 -63
- package/dist/stories/ox-input-3axis.stories.js.map +0 -1
- package/dist/stories/ox-input-3dish.stories.d.ts +0 -30
- package/dist/stories/ox-input-3dish.stories.js +0 -91
- package/dist/stories/ox-input-3dish.stories.js.map +0 -1
- package/dist/stories/ox-input-angle.stories.d.ts +0 -30
- package/dist/stories/ox-input-angle.stories.js +0 -69
- package/dist/stories/ox-input-angle.stories.js.map +0 -1
- package/dist/stories/ox-input-barcode.stories.d.ts +0 -47
- package/dist/stories/ox-input-barcode.stories.js +0 -89
- package/dist/stories/ox-input-barcode.stories.js.map +0 -1
- package/dist/stories/ox-input-code.stories.d.ts +0 -38
- package/dist/stories/ox-input-code.stories.js +0 -76
- package/dist/stories/ox-input-code.stories.js.map +0 -1
- package/dist/stories/ox-input-crontab.stories.d.ts +0 -29
- package/dist/stories/ox-input-crontab.stories.js +0 -67
- package/dist/stories/ox-input-crontab.stories.js.map +0 -1
- package/dist/stories/ox-input-data.stories.d.ts +0 -29
- package/dist/stories/ox-input-data.stories.js +0 -67
- package/dist/stories/ox-input-data.stories.js.map +0 -1
- package/dist/stories/ox-input-direction.stories.d.ts +0 -29
- package/dist/stories/ox-input-direction.stories.js +0 -76
- package/dist/stories/ox-input-direction.stories.js.map +0 -1
- package/dist/stories/ox-input-duration.stories.d.ts +0 -30
- package/dist/stories/ox-input-duration.stories.js +0 -69
- package/dist/stories/ox-input-duration.stories.js.map +0 -1
- package/dist/stories/ox-input-file.stories.d.ts +0 -53
- package/dist/stories/ox-input-file.stories.js +0 -80
- package/dist/stories/ox-input-file.stories.js.map +0 -1
- package/dist/stories/ox-input-hashtags.stories.d.ts +0 -33
- package/dist/stories/ox-input-hashtags.stories.js +0 -66
- package/dist/stories/ox-input-hashtags.stories.js.map +0 -1
- package/dist/stories/ox-input-i18n-label.stories.d.ts +0 -29
- package/dist/stories/ox-input-i18n-label.stories.js +0 -88
- package/dist/stories/ox-input-i18n-label.stories.js.map +0 -1
- package/dist/stories/ox-input-key-values.stories.d.ts +0 -33
- package/dist/stories/ox-input-key-values.stories.js +0 -81
- package/dist/stories/ox-input-key-values.stories.js.map +0 -1
- package/dist/stories/ox-input-mass-fraction.stories.d.ts +0 -37
- package/dist/stories/ox-input-mass-fraction.stories.js +0 -79
- package/dist/stories/ox-input-mass-fraction.stories.js.map +0 -1
- package/dist/stories/ox-input-multiple-colors.stories.d.ts +0 -24
- package/dist/stories/ox-input-multiple-colors.stories.js +0 -59
- package/dist/stories/ox-input-multiple-colors.stories.js.map +0 -1
- package/dist/stories/ox-input-options.stories.d.ts +0 -29
- package/dist/stories/ox-input-options.stories.js +0 -65
- package/dist/stories/ox-input-options.stories.js.map +0 -1
- package/dist/stories/ox-input-partition-keys.stories.d.ts +0 -29
- package/dist/stories/ox-input-partition-keys.stories.js +0 -69
- package/dist/stories/ox-input-partition-keys.stories.js.map +0 -1
- package/dist/stories/ox-input-privilege.stories.d.ts +0 -40
- package/dist/stories/ox-input-privilege.stories.js +0 -87
- package/dist/stories/ox-input-privilege.stories.js.map +0 -1
- package/dist/stories/ox-input-quantifier.stories.d.ts +0 -29
- package/dist/stories/ox-input-quantifier.stories.js +0 -63
- package/dist/stories/ox-input-quantifier.stories.js.map +0 -1
- package/dist/stories/ox-input-range.stories.d.ts +0 -41
- package/dist/stories/ox-input-range.stories.js +0 -64
- package/dist/stories/ox-input-range.stories.js.map +0 -1
- package/dist/stories/ox-input-search.stories.d.ts +0 -36
- package/dist/stories/ox-input-search.stories.js +0 -68
- package/dist/stories/ox-input-search.stories.js.map +0 -1
- package/dist/stories/ox-input-select-buttons.stories.d.ts +0 -38
- package/dist/stories/ox-input-select-buttons.stories.js +0 -94
- package/dist/stories/ox-input-select-buttons.stories.js.map +0 -1
- package/dist/stories/ox-input-signature.stories.d.ts +0 -25
- package/dist/stories/ox-input-signature.stories.js +0 -60
- package/dist/stories/ox-input-signature.stories.js.map +0 -1
- package/dist/stories/ox-input-switch.stories.d.ts +0 -38
- package/dist/stories/ox-input-switch.stories.js +0 -68
- package/dist/stories/ox-input-switch.stories.js.map +0 -1
- package/dist/stories/ox-input-table-column-config.stories.d.ts +0 -29
- package/dist/stories/ox-input-table-column-config.stories.js +0 -94
- package/dist/stories/ox-input-table-column-config.stories.js.map +0 -1
- package/dist/stories/ox-input-unit.stories.d.ts +0 -42
- package/dist/stories/ox-input-unit.stories.js +0 -123
- package/dist/stories/ox-input-unit.stories.js.map +0 -1
- package/dist/stories/ox-input-value-map.stories.d.ts +0 -39
- package/dist/stories/ox-input-value-map.stories.js +0 -69
- package/dist/stories/ox-input-value-map.stories.js.map +0 -1
- package/dist/stories/ox-input-value-ranges.stories.d.ts +0 -39
- package/dist/stories/ox-input-value-ranges.stories.js +0 -69
- package/dist/stories/ox-input-value-ranges.stories.js.map +0 -1
- package/dist/stories/ox-input-work-shift.stories.d.ts +0 -30
- package/dist/stories/ox-input-work-shift.stories.js +0 -91
- package/dist/stories/ox-input-work-shift.stories.js.map +0 -1
- package/dist/stories/ox-select-floor.stories.d.ts +0 -45
- package/dist/stories/ox-select-floor.stories.js +0 -166
- package/dist/stories/ox-select-floor.stories.js.map +0 -1
- package/dist/stories/ox-select-set-options.stories.d.ts +0 -48
- package/dist/stories/ox-select-set-options.stories.js +0 -178
- package/dist/stories/ox-select-set-options.stories.js.map +0 -1
- package/dist/stories/ox-select.stories.d.ts +0 -34
- package/dist/stories/ox-select.stories.js +0 -151
- package/dist/stories/ox-select.stories.js.map +0 -1
@@ -1,42 +0,0 @@
|
|
1
|
-
import '../src/ox-input-unit-number.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
|
-
disabled: {
|
21
|
-
control: string;
|
22
|
-
};
|
23
|
-
};
|
24
|
-
};
|
25
|
-
export default _default;
|
26
|
-
interface Story<T> {
|
27
|
-
(args: T): TemplateResult;
|
28
|
-
args?: Partial<T>;
|
29
|
-
argTypes?: Record<string, unknown>;
|
30
|
-
}
|
31
|
-
interface ArgTypes {
|
32
|
-
placeholder?: string;
|
33
|
-
name?: string;
|
34
|
-
value?: number;
|
35
|
-
stdUnit: string;
|
36
|
-
userUnit: string;
|
37
|
-
disabled?: boolean;
|
38
|
-
}
|
39
|
-
export declare const Weight: Story<ArgTypes>;
|
40
|
-
export declare const Angle: Story<ArgTypes>;
|
41
|
-
export declare const Temperature: Story<ArgTypes>;
|
42
|
-
export declare const Percentage: Story<ArgTypes>;
|
@@ -1,123 +0,0 @@
|
|
1
|
-
import '../src/ox-input-unit-number.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-unit-number',
|
6
|
-
component: 'ox-input-unit-number',
|
7
|
-
argTypes: {
|
8
|
-
placeholder: { control: 'text' },
|
9
|
-
name: { control: 'text' },
|
10
|
-
value: { control: 'number' },
|
11
|
-
stdUnit: {
|
12
|
-
control: 'select',
|
13
|
-
options: [
|
14
|
-
'kg',
|
15
|
-
'rad',
|
16
|
-
'm',
|
17
|
-
'g/mol',
|
18
|
-
'm2',
|
19
|
-
'm3',
|
20
|
-
'kg/m3',
|
21
|
-
'm/sec',
|
22
|
-
'N',
|
23
|
-
'Pa',
|
24
|
-
'kg/sec',
|
25
|
-
'kg/m2/sec',
|
26
|
-
'mol/sec',
|
27
|
-
'mol/m2/sec',
|
28
|
-
'Sm3/sec',
|
29
|
-
'Nm3/sec',
|
30
|
-
'J',
|
31
|
-
'W',
|
32
|
-
'W/m2',
|
33
|
-
'J/kg',
|
34
|
-
'J/kg/K',
|
35
|
-
'W/m/K',
|
36
|
-
'W/m2/K',
|
37
|
-
'N sec/m2',
|
38
|
-
'm2 oC/W',
|
39
|
-
'%',
|
40
|
-
'K'
|
41
|
-
]
|
42
|
-
},
|
43
|
-
disabled: { control: 'boolean' }
|
44
|
-
}
|
45
|
-
};
|
46
|
-
const Template = ({ placeholder = 'unit', name = 'hello', value = 0, stdUnit = 'kg', userUnit, disabled }) => html `
|
47
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
48
|
-
|
49
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
50
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
51
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
52
|
-
|
53
|
-
<link
|
54
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
55
|
-
rel="stylesheet"
|
56
|
-
/>
|
57
|
-
<link
|
58
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
59
|
-
rel="stylesheet"
|
60
|
-
/>
|
61
|
-
<link
|
62
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
63
|
-
rel="stylesheet"
|
64
|
-
/>
|
65
|
-
|
66
|
-
<style>
|
67
|
-
${MDTypeScaleStyles.cssText}
|
68
|
-
</style>
|
69
|
-
|
70
|
-
<style>
|
71
|
-
.container {
|
72
|
-
height: 500px;
|
73
|
-
text-align: center;
|
74
|
-
padding: 20px;
|
75
|
-
|
76
|
-
background-color: var(--md-sys-color-primary-container);
|
77
|
-
color: var(--md-sys-color-on-primary-container);
|
78
|
-
}
|
79
|
-
</style>
|
80
|
-
|
81
|
-
<div class="container md-typescale-body-large-prominent">
|
82
|
-
<ox-input-unit-number
|
83
|
-
name=${name}
|
84
|
-
placeholder=${placeholder}
|
85
|
-
.value=${value}
|
86
|
-
std-unit=${stdUnit}
|
87
|
-
user-unit=${userUnit}
|
88
|
-
@change=${(e) => console.log(e.detail)}
|
89
|
-
?disabled=${disabled}
|
90
|
-
>
|
91
|
-
</ox-input-unit-number>
|
92
|
-
</div>
|
93
|
-
`;
|
94
|
-
export const Weight = Template.bind({});
|
95
|
-
Weight.args = {
|
96
|
-
placeholder: 'weight',
|
97
|
-
name: 'weight',
|
98
|
-
value: 0,
|
99
|
-
stdUnit: 'kg'
|
100
|
-
};
|
101
|
-
export const Angle = Template.bind({});
|
102
|
-
Angle.args = {
|
103
|
-
placeholder: 'angle',
|
104
|
-
name: 'angle',
|
105
|
-
value: 0,
|
106
|
-
stdUnit: 'rad'
|
107
|
-
};
|
108
|
-
export const Temperature = Template.bind({});
|
109
|
-
Temperature.args = {
|
110
|
-
placeholder: 'temperature',
|
111
|
-
name: 'temperature',
|
112
|
-
value: 0,
|
113
|
-
stdUnit: 'K',
|
114
|
-
userUnit: '°C'
|
115
|
-
};
|
116
|
-
export const Percentage = Template.bind({});
|
117
|
-
Percentage.args = {
|
118
|
-
placeholder: 'percentage',
|
119
|
-
name: 'percentage',
|
120
|
-
value: 0,
|
121
|
-
stdUnit: '%'
|
122
|
-
};
|
123
|
-
//# sourceMappingURL=ox-input-unit.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-unit.stories.js","sourceRoot":"","sources":["../../stories/ox-input-unit.stories.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAA;AAEvC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,sBAAsB;IACjC,QAAQ,EAAE;QACR,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAChC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE;YACP,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE;gBACP,IAAI;gBACJ,KAAK;gBACL,GAAG;gBACH,OAAO;gBACP,IAAI;gBACJ,IAAI;gBACJ,OAAO;gBACP,OAAO;gBACP,GAAG;gBACH,IAAI;gBACJ,QAAQ;gBACR,WAAW;gBACX,SAAS;gBACT,YAAY;gBACZ,SAAS;gBACT,SAAS;gBACT,GAAG;gBACH,GAAG;gBACH,MAAM;gBACN,MAAM;gBACN,QAAQ;gBACR,OAAO;gBACP,QAAQ;gBACR,UAAU;gBACV,SAAS;gBACT,GAAG;gBACH,GAAG;aACJ;SACF;QACD,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAiBD,MAAM,QAAQ,GAAoB,CAAC,EACjC,WAAW,GAAG,MAAM,EACpB,IAAI,GAAG,OAAO,EACd,KAAK,GAAG,CAAC,EACT,OAAO,GAAG,IAAI,EACd,QAAQ,EACR,QAAQ,EACC,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBd,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;aAgBlB,IAAI;oBACG,WAAW;eAChB,KAAK;iBACH,OAAO;kBACN,QAAQ;gBACV,CAAC,CAAc,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;kBACvC,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACvC,MAAM,CAAC,IAAI,GAAG;IACZ,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,IAAI;CACd,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACtC,KAAK,CAAC,IAAI,GAAG;IACX,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,KAAK;CACf,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC5C,WAAW,CAAC,IAAI,GAAG;IACjB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,IAAI;CACf,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC3C,UAAU,CAAC,IAAI,GAAG;IAChB,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,GAAG;CACb,CAAA","sourcesContent":["import '../src/ox-input-unit-number.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-unit-number',\n component: 'ox-input-unit-number',\n argTypes: {\n placeholder: { control: 'text' },\n name: { control: 'text' },\n value: { control: 'number' },\n stdUnit: {\n control: 'select',\n options: [\n 'kg',\n 'rad',\n 'm',\n 'g/mol',\n 'm2',\n 'm3',\n 'kg/m3',\n 'm/sec',\n 'N',\n 'Pa',\n 'kg/sec',\n 'kg/m2/sec',\n 'mol/sec',\n 'mol/m2/sec',\n 'Sm3/sec',\n 'Nm3/sec',\n 'J',\n 'W',\n 'W/m2',\n 'J/kg',\n 'J/kg/K',\n 'W/m/K',\n 'W/m2/K',\n 'N sec/m2',\n 'm2 oC/W',\n '%',\n 'K'\n ]\n },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n placeholder?: string\n name?: string\n value?: number\n stdUnit: string\n userUnit: string\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n placeholder = 'unit',\n name = 'hello',\n value = 0,\n stdUnit = 'kg',\n userUnit,\n disabled\n}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-input-unit-number\n name=${name}\n placeholder=${placeholder}\n .value=${value}\n std-unit=${stdUnit}\n user-unit=${userUnit}\n @change=${(e: CustomEvent) => console.log(e.detail)}\n ?disabled=${disabled}\n >\n </ox-input-unit-number>\n </div>\n`\n\nexport const Weight = Template.bind({})\nWeight.args = {\n placeholder: 'weight',\n name: 'weight',\n value: 0,\n stdUnit: 'kg'\n}\n\nexport const Angle = Template.bind({})\nAngle.args = {\n placeholder: 'angle',\n name: 'angle',\n value: 0,\n stdUnit: 'rad'\n}\n\nexport const Temperature = Template.bind({})\nTemperature.args = {\n placeholder: 'temperature',\n name: 'temperature',\n value: 0,\n stdUnit: 'K',\n userUnit: '°C'\n}\n\nexport const Percentage = Template.bind({})\nPercentage.args = {\n placeholder: 'percentage',\n name: 'percentage',\n value: 0,\n stdUnit: '%'\n}\n"]}
|
@@ -1,39 +0,0 @@
|
|
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
|
-
disabled: {
|
22
|
-
control: 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
|
-
name?: string;
|
34
|
-
value?: object;
|
35
|
-
valuetype?: string;
|
36
|
-
keytype?: string;
|
37
|
-
disabled?: boolean;
|
38
|
-
}
|
39
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import '../src/ox-input-value-map.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-value-map',
|
6
|
-
component: 'ox-input-value-map',
|
7
|
-
argTypes: {
|
8
|
-
name: { control: 'text' },
|
9
|
-
value: { control: 'object' },
|
10
|
-
keytype: { control: 'select', options: ['string', 'number'] },
|
11
|
-
valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
}
|
14
|
-
};
|
15
|
-
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string', disabled }) => html `
|
16
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
17
|
-
|
18
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
19
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
20
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
21
|
-
|
22
|
-
<link
|
23
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
24
|
-
rel="stylesheet"
|
25
|
-
/>
|
26
|
-
<link
|
27
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
28
|
-
rel="stylesheet"
|
29
|
-
/>
|
30
|
-
<link
|
31
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
32
|
-
rel="stylesheet"
|
33
|
-
/>
|
34
|
-
|
35
|
-
<style>
|
36
|
-
${MDTypeScaleStyles.cssText}
|
37
|
-
</style>
|
38
|
-
|
39
|
-
<style>
|
40
|
-
.container {
|
41
|
-
height: 500px;
|
42
|
-
text-align: center;
|
43
|
-
padding: 20px;
|
44
|
-
|
45
|
-
background-color: var(--md-sys-color-primary-container);
|
46
|
-
color: var(--md-sys-color-on-primary-container);
|
47
|
-
}
|
48
|
-
</style>
|
49
|
-
|
50
|
-
<div class="container md-typescale-body-large-prominent">
|
51
|
-
<ox-input-value-map
|
52
|
-
@change=${(e) => {
|
53
|
-
console.log(e.target.value);
|
54
|
-
}}
|
55
|
-
name=${name}
|
56
|
-
.value=${value}
|
57
|
-
keytype=${keytype}
|
58
|
-
valuetype=${valuetype}
|
59
|
-
?disabled=${disabled}
|
60
|
-
>
|
61
|
-
</ox-input-value-map>
|
62
|
-
</div>
|
63
|
-
`;
|
64
|
-
export const Regular = Template.bind({});
|
65
|
-
Regular.args = {
|
66
|
-
name: 'values',
|
67
|
-
value: {}
|
68
|
-
};
|
69
|
-
//# sourceMappingURL=ox-input-value-map.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-value-map.stories.js","sourceRoot":"","sources":["../../stories/ox-input-value-map.stories.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AAErC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EAAE,oBAAoB;IAC/B,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAC7D,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;QAC3F,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAgBD,MAAM,QAAQ,GAAoB,CAAC,EACjC,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,QAAQ,EAClB,SAAS,GAAG,QAAQ,EACpB,QAAQ,EACC,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBd,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;gBAgBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;gBACJ,OAAO;kBACL,SAAS;kBACT,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,EAAE;CACV,CAAA","sourcesContent":["import '../src/ox-input-value-map.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-value-map',\n component: 'ox-input-value-map',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'object' },\n keytype: { control: 'select', options: ['string', 'number'] },\n valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n value?: object\n valuetype?: string\n keytype?: string\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n name = 'values',\n value = {},\n keytype = 'string',\n valuetype = 'string',\n disabled\n}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-input-value-map\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n keytype=${keytype}\n valuetype=${valuetype}\n ?disabled=${disabled}\n >\n </ox-input-value-map>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'values',\n value: {}\n}\n"]}
|
@@ -1,39 +0,0 @@
|
|
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
|
-
disabled: {
|
22
|
-
control: 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
|
-
name?: string;
|
34
|
-
value?: object;
|
35
|
-
valuetype?: string;
|
36
|
-
keytype?: string;
|
37
|
-
disabled?: boolean;
|
38
|
-
}
|
39
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import '../src/ox-input-value-ranges.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
4
|
-
export default {
|
5
|
-
title: 'ox-input-value-ranges',
|
6
|
-
component: 'ox-input-value-ranges',
|
7
|
-
argTypes: {
|
8
|
-
name: { control: 'text' },
|
9
|
-
value: { control: 'object' },
|
10
|
-
keytype: { control: 'select', options: ['string', 'number'] },
|
11
|
-
valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
}
|
14
|
-
};
|
15
|
-
const Template = ({ name = 'values', value = {}, keytype = 'string', valuetype = 'string', disabled }) => html `
|
16
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
17
|
-
|
18
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
19
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
20
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
21
|
-
|
22
|
-
<link
|
23
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
24
|
-
rel="stylesheet"
|
25
|
-
/>
|
26
|
-
<link
|
27
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
28
|
-
rel="stylesheet"
|
29
|
-
/>
|
30
|
-
<link
|
31
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
32
|
-
rel="stylesheet"
|
33
|
-
/>
|
34
|
-
|
35
|
-
<style>
|
36
|
-
${MDTypeScaleStyles.cssText}
|
37
|
-
</style>
|
38
|
-
|
39
|
-
<style>
|
40
|
-
.container {
|
41
|
-
height: 500px;
|
42
|
-
text-align: center;
|
43
|
-
padding: 20px;
|
44
|
-
|
45
|
-
background-color: var(--md-sys-color-primary-container);
|
46
|
-
color: var(--md-sys-color-on-primary-container);
|
47
|
-
}
|
48
|
-
</style>
|
49
|
-
|
50
|
-
<div class="container md-typescale-body-large-prominent">
|
51
|
-
<ox-input-value-ranges
|
52
|
-
@change=${(e) => {
|
53
|
-
console.log(e.target.value);
|
54
|
-
}}
|
55
|
-
name=${name}
|
56
|
-
.value=${value}
|
57
|
-
keytype=${keytype}
|
58
|
-
valuetype=${valuetype}
|
59
|
-
?disabled=${disabled}
|
60
|
-
>
|
61
|
-
</ox-input-value-ranges>
|
62
|
-
</div>
|
63
|
-
`;
|
64
|
-
export const Regular = Template.bind({});
|
65
|
-
Regular.args = {
|
66
|
-
name: 'values',
|
67
|
-
value: {}
|
68
|
-
};
|
69
|
-
//# sourceMappingURL=ox-input-value-ranges.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-value-ranges.stories.js","sourceRoot":"","sources":["../../stories/ox-input-value-ranges.stories.ts"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAA;AAExC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,uBAAuB;IAClC,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;QAC7D,SAAS,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE;QAC3F,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAgBD,MAAM,QAAQ,GAAoB,CAAC,EACjC,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,EAAE,EACV,OAAO,GAAG,QAAQ,EAClB,SAAS,GAAG,QAAQ,EACpB,QAAQ,EACC,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqBd,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;gBAgBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;gBACJ,OAAO;kBACL,SAAS;kBACT,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,EAAE;CACV,CAAA","sourcesContent":["import '../src/ox-input-value-ranges.js'\n\nimport { html, TemplateResult } from 'lit'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-value-ranges',\n component: 'ox-input-value-ranges',\n argTypes: {\n name: { control: 'text' },\n value: { control: 'object' },\n keytype: { control: 'select', options: ['string', 'number'] },\n valuetype: { control: 'select', options: ['string', 'boolean', 'number', 'color', 'date'] },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n value?: object\n valuetype?: string\n keytype?: string\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({\n name = 'values',\n value = {},\n keytype = 'string',\n valuetype = 'string',\n disabled\n}: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <ox-input-value-ranges\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n keytype=${keytype}\n valuetype=${valuetype}\n ?disabled=${disabled}\n >\n </ox-input-value-ranges>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'values',\n value: {}\n}\n"]}
|
@@ -1,30 +0,0 @@
|
|
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
|
-
disabled: {
|
15
|
-
control: string;
|
16
|
-
};
|
17
|
-
};
|
18
|
-
};
|
19
|
-
export default _default;
|
20
|
-
interface Story<T> {
|
21
|
-
(args: T): TemplateResult;
|
22
|
-
args?: Partial<T>;
|
23
|
-
argTypes?: Record<string, unknown>;
|
24
|
-
}
|
25
|
-
interface ArgTypes {
|
26
|
-
name?: string;
|
27
|
-
value?: object;
|
28
|
-
disabled?: boolean;
|
29
|
-
}
|
30
|
-
export declare const Regular: Story<ArgTypes>;
|
@@ -1,91 +0,0 @@
|
|
1
|
-
import '../src/ox-input-work-shift.js';
|
2
|
-
import '../src/locale/locale-picker.js';
|
3
|
-
import { html } from 'lit';
|
4
|
-
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js';
|
5
|
-
export default {
|
6
|
-
title: 'ox-input-work-shift',
|
7
|
-
component: 'ox-input-work-shift',
|
8
|
-
argTypes: {
|
9
|
-
value: { control: 'object' },
|
10
|
-
name: { control: 'text' },
|
11
|
-
disabled: { control: 'boolean' }
|
12
|
-
}
|
13
|
-
};
|
14
|
-
const Template = ({ name = 'work-shift', value = [], disabled }) => html `
|
15
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
16
|
-
|
17
|
-
<link href="/themes/light.css" rel="stylesheet" />
|
18
|
-
<link href="/themes/dark.css" rel="stylesheet" />
|
19
|
-
<link href="/themes/spacing.css" rel="stylesheet" />
|
20
|
-
|
21
|
-
<link
|
22
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
23
|
-
rel="stylesheet"
|
24
|
-
/>
|
25
|
-
<link
|
26
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
27
|
-
rel="stylesheet"
|
28
|
-
/>
|
29
|
-
<link
|
30
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
31
|
-
rel="stylesheet"
|
32
|
-
/>
|
33
|
-
|
34
|
-
<style>
|
35
|
-
${MDTypeScaleStyles.cssText}
|
36
|
-
</style>
|
37
|
-
|
38
|
-
<style>
|
39
|
-
.container {
|
40
|
-
height: 500px;
|
41
|
-
text-align: center;
|
42
|
-
padding: 20px;
|
43
|
-
|
44
|
-
background-color: var(--md-sys-color-primary-container);
|
45
|
-
color: var(--md-sys-color-on-primary-container);
|
46
|
-
}
|
47
|
-
</style>
|
48
|
-
|
49
|
-
<div class="container md-typescale-body-large-prominent">
|
50
|
-
<locale-picker></locale-picker>
|
51
|
-
<br /><br />
|
52
|
-
|
53
|
-
<ox-input-work-shift
|
54
|
-
@change=${(e) => {
|
55
|
-
console.log(e.target.value);
|
56
|
-
}}
|
57
|
-
name=${name}
|
58
|
-
.value=${value}
|
59
|
-
?disabled=${disabled}
|
60
|
-
>
|
61
|
-
</ox-input-work-shift>
|
62
|
-
</div>
|
63
|
-
`;
|
64
|
-
export const Regular = Template.bind({});
|
65
|
-
Regular.args = {
|
66
|
-
name: 'work-shift',
|
67
|
-
value: [
|
68
|
-
{
|
69
|
-
name: 'DAY',
|
70
|
-
fromDate: -1,
|
71
|
-
fromTime: '22:00',
|
72
|
-
toDate: 0,
|
73
|
-
toTime: '06:00'
|
74
|
-
},
|
75
|
-
{
|
76
|
-
name: 'SWING',
|
77
|
-
fromDate: 0,
|
78
|
-
fromTime: '06:00',
|
79
|
-
toDate: 0,
|
80
|
-
toTime: '14:00'
|
81
|
-
},
|
82
|
-
{
|
83
|
-
name: 'NIGHT',
|
84
|
-
fromDate: 0,
|
85
|
-
fromTime: '14:00',
|
86
|
-
toDate: 0,
|
87
|
-
toTime: '22:00'
|
88
|
-
}
|
89
|
-
]
|
90
|
-
};
|
91
|
-
//# sourceMappingURL=ox-input-work-shift.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ox-input-work-shift.stories.js","sourceRoot":"","sources":["../../stories/ox-input-work-shift.stories.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AACtC,OAAO,gCAAgC,CAAA;AAEvC,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAA;AAC1C,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,iDAAiD,CAAA;AAE7F,eAAe;IACb,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,qBAAqB;IAChC,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC5B,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QACzB,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAA;AAcD,MAAM,QAAQ,GAAoB,CAAC,EAAE,IAAI,GAAG,YAAY,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;;;MAqB7F,iBAAiB,CAAC,OAAO;;;;;;;;;;;;;;;;;;;gBAmBf,CAAC,CAAQ,EAAE,EAAE;IACrB,OAAO,CAAC,GAAG,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAA;AACnD,CAAC;aACM,IAAI;eACF,KAAK;kBACF,QAAQ;;;;CAIzB,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,OAAO,CAAC,IAAI,GAAG;IACb,IAAI,EAAE,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'\nimport { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles.js'\n\nexport default {\n title: 'ox-input-work-shift',\n component: 'ox-input-work-shift',\n argTypes: {\n value: { control: 'object' },\n name: { control: 'text' },\n disabled: { control: 'boolean' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n name?: string\n value?: object\n disabled?: boolean\n}\n\nconst Template: Story<ArgTypes> = ({ name = 'work-shift', value = [], disabled }: ArgTypes) => html`\n <link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap\" rel=\"stylesheet\" />\n\n <link href=\"/themes/light.css\" rel=\"stylesheet\" />\n <link href=\"/themes/dark.css\" rel=\"stylesheet\" />\n <link href=\"/themes/spacing.css\" rel=\"stylesheet\" />\n\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n <link\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1\"\n rel=\"stylesheet\"\n />\n\n <style>\n ${MDTypeScaleStyles.cssText}\n </style>\n\n <style>\n .container {\n height: 500px;\n text-align: center;\n padding: 20px;\n\n background-color: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n </style>\n\n <div class=\"container md-typescale-body-large-prominent\">\n <locale-picker></locale-picker>\n <br /><br />\n\n <ox-input-work-shift\n @change=${(e: Event) => {\n console.log((e.target as HTMLInputElement).value)\n }}\n name=${name}\n .value=${value}\n ?disabled=${disabled}\n >\n </ox-input-work-shift>\n </div>\n`\n\nexport const Regular = Template.bind({})\nRegular.args = {\n name: 'work-shift',\n value: [\n {\n name: 'DAY',\n fromDate: -1,\n fromTime: '22:00',\n toDate: 0,\n toTime: '06:00'\n },\n {\n name: 'SWING',\n fromDate: 0,\n fromTime: '06:00',\n toDate: 0,\n toTime: '14:00'\n },\n {\n name: 'NIGHT',\n fromDate: 0,\n fromTime: '14:00',\n toDate: 0,\n toTime: '22:00'\n }\n ]\n}\n"]}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
import '../src/ox-select-floor.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
disabled: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
value: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
bottomLimit: {
|
14
|
-
control: string;
|
15
|
-
};
|
16
|
-
perspective: {
|
17
|
-
control: string;
|
18
|
-
};
|
19
|
-
rotateX: {
|
20
|
-
control: string;
|
21
|
-
};
|
22
|
-
rotateXForActive: {
|
23
|
-
control: string;
|
24
|
-
};
|
25
|
-
interval: {
|
26
|
-
control: string;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
};
|
30
|
-
export default _default;
|
31
|
-
interface Story<T> {
|
32
|
-
(args: T): TemplateResult;
|
33
|
-
args?: Partial<T>;
|
34
|
-
argTypes?: Record<string, unknown>;
|
35
|
-
}
|
36
|
-
interface ArgTypes {
|
37
|
-
value?: string;
|
38
|
-
bottomLimit?: number;
|
39
|
-
perspective?: number;
|
40
|
-
rotateX?: number;
|
41
|
-
rotateXForActive?: number;
|
42
|
-
disabled?: boolean;
|
43
|
-
interval?: number;
|
44
|
-
}
|
45
|
-
export declare const Regular: Story<ArgTypes>;
|