@breadstone/mosaik-elements-foundation 0.0.268 → 0.0.270
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/Controls/Components/Forms/FormFieldElementTemplate.d.ts.map +1 -1
- package/Controls/Components/Forms/FormFieldElementTemplate.js +6 -3
- package/Controls/Components/Forms/FormFieldElementTemplate.js.map +1 -1
- package/Controls/Components/Inputs/Calendar/CalendarElement.d.ts +2 -2
- package/Controls/Components/Inputs/Calendar/CalendarElement.js +2 -2
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.d.ts +9 -2
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.js +9 -2
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/FileBox/Accessors/FileBoxElementValueAccessor.d.ts +29 -0
- package/Controls/Components/Inputs/FileBox/Accessors/FileBoxElementValueAccessor.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileBox/Accessors/FileBoxElementValueAccessor.js +44 -0
- package/Controls/Components/Inputs/FileBox/Accessors/FileBoxElementValueAccessor.js.map +1 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElement.d.ts +301 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElement.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElement.js +577 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElement.js.map +1 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElementTemplate.d.ts +9 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElementTemplate.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElementTemplate.js +80 -0
- package/Controls/Components/Inputs/FileBox/FileBoxElementTemplate.js.map +1 -0
- package/Controls/Components/Inputs/FileBox/IFileBoxElementProps.d.ts +25 -0
- package/Controls/Components/Inputs/FileBox/IFileBoxElementProps.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileBox/IFileBoxElementProps.js +3 -0
- package/Controls/Components/Inputs/FileBox/IFileBoxElementProps.js.map +1 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Cosmopolitan.d.ts +6 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Cosmopolitan.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Cosmopolitan.js +222 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Cosmopolitan.js.map +1 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Joy.d.ts +6 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Joy.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Joy.js +407 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Joy.js.map +1 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Memphis.d.ts +6 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Memphis.d.ts.map +1 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Memphis.js +231 -0
- package/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Memphis.js.map +1 -0
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Cosmopolitan.js +1 -0
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Joy.js +1 -0
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Memphis.d.ts.map +1 -1
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Memphis.js +1 -0
- package/Controls/Components/Inputs/FileUpload/Themes/FilePickerElement.Memphis.js.map +1 -1
- package/Controls/Components/Layouts/Page/PageHeaderElement.d.ts +3 -0
- package/Controls/Components/Layouts/Page/PageHeaderElement.d.ts.map +1 -1
- package/Controls/Components/Layouts/Page/PageHeaderElement.js +3 -0
- package/Controls/Components/Layouts/Page/PageHeaderElement.js.map +1 -1
- package/Controls/Components/Layouts/TileManager/TileManagerTileElement.d.ts +3 -3
- package/Controls/Components/Layouts/TileManager/TileManagerTileElement.js +3 -3
- package/Controls/Components/Overlays/MessageBox/MessageBoxElement.d.ts +6 -6
- package/Controls/Components/Overlays/MessageBox/MessageBoxElement.js +6 -6
- package/Controls/events/FileEvents.d.ts +18 -0
- package/Controls/events/FileEvents.d.ts.map +1 -1
- package/Controls/events/index.d.ts +1 -1
- package/Controls/events/index.d.ts.map +1 -1
- package/Index.d.ts +2 -0
- package/Index.d.ts.map +1 -1
- package/Index.js +2 -0
- package/Index.js.map +1 -1
- package/Resources/Icons.js +1 -0
- package/Resources/Icons.js.map +1 -1
- package/custom-elements.json +1329 -52
- package/package.json +3 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IAppearanceableProps } from '../../../Behaviors/Appearanceable';
|
|
2
|
+
import type { IClearableProps } from '../../../Behaviors/Clearable';
|
|
3
|
+
import type { IDisableableProps } from '../../../Behaviors/Disableable';
|
|
4
|
+
import type { IInvalidableProps } from '../../../Behaviors/Invalidable';
|
|
5
|
+
import type { ILabelableProps } from '../../../Behaviors/Labelable';
|
|
6
|
+
import type { IValueableProps } from '../../../Behaviors/Valueable';
|
|
7
|
+
import type { IVariantableProps } from '../../../Behaviors/Variantable';
|
|
8
|
+
/**
|
|
9
|
+
* Represents the `IFileBoxElementProps` interface.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export interface IFileBoxElementProps extends IValueableProps, IDisableableProps, IVariantableProps, ILabelableProps, IInvalidableProps, IAppearanceableProps, IClearableProps {
|
|
14
|
+
value: string;
|
|
15
|
+
readonly: boolean;
|
|
16
|
+
required: boolean;
|
|
17
|
+
autofocus: boolean;
|
|
18
|
+
name: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
multiple: boolean;
|
|
21
|
+
accept: Array<string>;
|
|
22
|
+
directory: boolean;
|
|
23
|
+
files: ReadonlyArray<File>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=IFileBoxElementProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFileBoxElementProps.d.ts","sourceRoot":"","sources":["../../../../../src/Controls/Components/Inputs/FileBox/IFileBoxElementProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAIxE;;;;GAIG;AACH,MAAM,WAAW,oBACb,SAAQ,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,eAAe;IAIxI,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,OAAO,CAAC;IAElB,QAAQ,EAAE,OAAO,CAAC;IAElB,SAAS,EAAE,OAAO,CAAC;IAEnB,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAE,OAAO,CAAC;IAElB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB,SAAS,EAAE,OAAO,CAAC;IAEnB,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CAI9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFileBoxElementProps.js","sourceRoot":"","sources":["../../../../../src/Controls/Components/Inputs/FileBox/IFileBoxElementProps.ts"],"names":[],"mappings":"AAAA,kBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileBoxElement.Cosmopolitan.d.ts","sourceRoot":"","sources":["../../../../../../src/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Cosmopolitan.ts"],"names":[],"mappings":"AASA,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAI7D;;GAEG;AACH,wBAAgB,+BAA+B,IAAI,SAAS,CAgN3D"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// ------------------------------------------------------------------------------
|
|
2
|
+
// <auto-generated>
|
|
3
|
+
// This code was generated by a tool.
|
|
4
|
+
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5
|
+
// </auto-generated>
|
|
6
|
+
// ------------------------------------------------------------------------------
|
|
7
|
+
// #region Imports
|
|
8
|
+
import { css } from '../../../../../Dom/Css';
|
|
9
|
+
// #endregion
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export function fileBoxElementCosmopolitanStyle() {
|
|
14
|
+
return css `
|
|
15
|
+
:host {
|
|
16
|
+
--filebox-background-color: unset;
|
|
17
|
+
--filebox-border-color: unset;
|
|
18
|
+
--filebox-border-radius: unset;
|
|
19
|
+
--filebox-border-style: unset;
|
|
20
|
+
--filebox-border-width: unset;
|
|
21
|
+
--filebox-focus-ring-width: 0px;
|
|
22
|
+
--filebox-font-family: var(--cosmopolitan-font-family);
|
|
23
|
+
--filebox-font-letter-spacing: unset;
|
|
24
|
+
--filebox-font-line-height: unset;
|
|
25
|
+
--filebox-font-size: 16px;
|
|
26
|
+
--filebox-font-text-decoration: unset;
|
|
27
|
+
--filebox-font-text-transform: unset;
|
|
28
|
+
--filebox-font-weight: normal;
|
|
29
|
+
--filebox-foreground-color: unset;
|
|
30
|
+
--filebox-gap: var(--cosmopolitan-layout-space);
|
|
31
|
+
--filebox-height: unset;
|
|
32
|
+
--filebox-padding-bottom: var(--cosmopolitan-layout-space);
|
|
33
|
+
--filebox-padding-left: calc(var(--cosmopolitan-layout-space) * 1.5);
|
|
34
|
+
--filebox-padding-right: calc(var(--cosmopolitan-layout-space) * 1.5);
|
|
35
|
+
--filebox-padding-top: var(--cosmopolitan-layout-space);
|
|
36
|
+
--filebox-shadow: var(--cosmopolitan-elevation-semilight-offset-x-0) var(--cosmopolitan-elevation-semilight-offset-y-0) var(--cosmopolitan-elevation-semilight-blur-0) var(--cosmopolitan-elevation-semilight-spread-0) var(--cosmopolitan-elevation-semilight-color-0);
|
|
37
|
+
--filebox-shadow-blur: var(--cosmopolitan-elevation-semilight-blur-0);
|
|
38
|
+
--filebox-shadow-color: var(--cosmopolitan-elevation-semilight-color-0);
|
|
39
|
+
--filebox-shadow-offset-x: var(--cosmopolitan-elevation-semilight-offset-x-0);
|
|
40
|
+
--filebox-shadow-offset-y: var(--cosmopolitan-elevation-semilight-offset-y-0);
|
|
41
|
+
--filebox-shadow-spread: var(--cosmopolitan-elevation-semilight-spread-0);
|
|
42
|
+
--filebox-transition-duration: var(--cosmopolitan-duration-short);
|
|
43
|
+
--filebox-transition-mode: ease;
|
|
44
|
+
--filebox-transition-property: background-color, color, border-color, opacity, box-shadow;
|
|
45
|
+
--filebox-translate: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
49
|
+
:host {
|
|
50
|
+
transition-duration: .01ms;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host {
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
display: block;
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host *, :host :before, :host :after {
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
background-repeat: no-repeat;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host :before, :host :after {
|
|
66
|
+
text-decoration: inherit;
|
|
67
|
+
vertical-align: inherit;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([hidden]) {
|
|
71
|
+
display: none !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host input {
|
|
75
|
+
font-family: inherit;
|
|
76
|
+
font-size: inherit;
|
|
77
|
+
line-height: inherit;
|
|
78
|
+
cursor: inherit;
|
|
79
|
+
margin: 0;
|
|
80
|
+
overflow: visible;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host {
|
|
84
|
+
font-family: var(--filebox-font-family);
|
|
85
|
+
font-size: var(--filebox-font-size);
|
|
86
|
+
line-height: var(--filebox-font-line-height);
|
|
87
|
+
font-weight: var(--filebox-font-weight);
|
|
88
|
+
letter-spacing: var(--filebox-font-letter-spacing);
|
|
89
|
+
-webkit-text-decoration: var(--filebox-font-text-decoration);
|
|
90
|
+
text-decoration: var(--filebox-font-text-decoration);
|
|
91
|
+
text-transform: var(--filebox-font-text-transform);
|
|
92
|
+
padding-top: var(--filebox-padding-top);
|
|
93
|
+
padding-right: var(--filebox-padding-right);
|
|
94
|
+
padding-bottom: var(--filebox-padding-bottom);
|
|
95
|
+
padding-left: var(--filebox-padding-left);
|
|
96
|
+
gap: var(--filebox-gap);
|
|
97
|
+
transition-duration: var(--filebox-transition-duration);
|
|
98
|
+
transition-timing-function: var(--filebox-transition-mode);
|
|
99
|
+
transition-property: var(--filebox-transition-property);
|
|
100
|
+
translate: var(--filebox-translate);
|
|
101
|
+
background: var(--filebox-background-color);
|
|
102
|
+
color: var(--filebox-foreground-color);
|
|
103
|
+
border-color: var(--filebox-border-color);
|
|
104
|
+
border-width: var(--filebox-border-width);
|
|
105
|
+
border-radius: var(--filebox-border-radius);
|
|
106
|
+
border-style: var(--filebox-border-style);
|
|
107
|
+
min-height: var(--filebox-height);
|
|
108
|
+
cursor: text;
|
|
109
|
+
z-index: 0;
|
|
110
|
+
outline: none;
|
|
111
|
+
flex-direction: row;
|
|
112
|
+
align-items: center;
|
|
113
|
+
display: flex;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host [part="prefix"] {
|
|
117
|
+
gap: var(--filebox-gap);
|
|
118
|
+
flex-grow: 0;
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
align-items: center;
|
|
121
|
+
display: flex;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host [part="prefix"][hidden] {
|
|
125
|
+
display: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host [part="inner"] {
|
|
129
|
+
width: 100%;
|
|
130
|
+
height: 100%;
|
|
131
|
+
padding: var(--filebox-padding-top) var(--filebox-padding-right) var(--filebox-padding-bottom) var(--filebox-padding-left);
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
flex: 1;
|
|
134
|
+
display: flex;
|
|
135
|
+
position: relative;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host [part="label"] {
|
|
140
|
+
-webkit-user-select: none;
|
|
141
|
+
-moz-user-select: none;
|
|
142
|
+
user-select: none;
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
transform-origin: 0 0;
|
|
145
|
+
text-align: left;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
will-change: transform;
|
|
149
|
+
transition-property: transform, font-size, color, letter-spacing, top;
|
|
150
|
+
transition-duration: .2s;
|
|
151
|
+
transition-timing-function: ease;
|
|
152
|
+
display: block;
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: 10px;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
transform: translateY(0);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:host [part="label"].floating {
|
|
160
|
+
top: unset;
|
|
161
|
+
font-size: 12px;
|
|
162
|
+
transform: translateY(-50%);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:host [part="suffix"] {
|
|
166
|
+
gap: var(--filebox-gap);
|
|
167
|
+
flex-grow: 0;
|
|
168
|
+
flex-shrink: 0;
|
|
169
|
+
align-items: center;
|
|
170
|
+
display: flex;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:host [part="suffix"][hidden] {
|
|
174
|
+
display: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:host [part="input"] {
|
|
178
|
+
color: inherit;
|
|
179
|
+
-webkit-appearance: none;
|
|
180
|
+
-moz-appearance: none;
|
|
181
|
+
appearance: none;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
background: none;
|
|
184
|
+
border: none;
|
|
185
|
+
outline: none;
|
|
186
|
+
width: 100%;
|
|
187
|
+
margin: 0;
|
|
188
|
+
padding: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:host [part="clear"], :host [part="browse"] {
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:host([has-label]) [part="inner"] [part="input"] {
|
|
196
|
+
padding-top: 12px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:host([has-label]) [part="inner"] {
|
|
200
|
+
padding-bottom: unset;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:host([required]) [part="label"]:after {
|
|
204
|
+
content: "*";
|
|
205
|
+
margin-left: 2px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([text-align="left"]) [part="input"] {
|
|
209
|
+
text-align: left;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:host([text-align="center"]) [part="input"] {
|
|
213
|
+
text-align: center;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:host([text-align="right"]) [part="input"] {
|
|
217
|
+
text-align: right;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
`;
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=FileBoxElement.Cosmopolitan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileBoxElement.Cosmopolitan.js","sourceRoot":"","sources":["../../../../../../src/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Cosmopolitan.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,mBAAmB;AACnB,yCAAyC;AACzC,qGAAqG;AACrG,oBAAoB;AACpB,iFAAiF;AAEjF,kBAAkB;AAElB,OAAO,EAAE,GAAG,EAAkB,MAAM,wBAAwB,CAAC;AAE7D,aAAa;AAEb;;GAEG;AACH,MAAM,UAAU,+BAA+B;IAC3C,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8MT,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileBoxElement.Joy.d.ts","sourceRoot":"","sources":["../../../../../../src/Controls/Components/Inputs/FileBox/Themes/FileBoxElement.Joy.ts"],"names":[],"mappings":"AASA,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAI7D;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,SAAS,CAyYlD"}
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
// ------------------------------------------------------------------------------
|
|
2
|
+
// <auto-generated>
|
|
3
|
+
// This code was generated by a tool.
|
|
4
|
+
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5
|
+
// </auto-generated>
|
|
6
|
+
// ------------------------------------------------------------------------------
|
|
7
|
+
// #region Imports
|
|
8
|
+
import { css } from '../../../../../Dom/Css';
|
|
9
|
+
// #endregion
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export function fileBoxElementJoyStyle() {
|
|
14
|
+
return css `
|
|
15
|
+
:host {
|
|
16
|
+
--filebox-background-color: var(--joy-scheme-background);
|
|
17
|
+
--filebox-border-color: var(--joy-scheme-highlight);
|
|
18
|
+
--filebox-border-radius: var(--joy-layout-radius);
|
|
19
|
+
--filebox-border-style: solid;
|
|
20
|
+
--filebox-border-width: var(--joy-layout-thickness);
|
|
21
|
+
--filebox-focus-ring-width: 0px;
|
|
22
|
+
--filebox-font-family: var(--joy-font-family);
|
|
23
|
+
--filebox-font-letter-spacing: unset;
|
|
24
|
+
--filebox-font-line-height: unset;
|
|
25
|
+
--filebox-font-size: var(--joy-typography-body1-font-size);
|
|
26
|
+
--filebox-font-text-decoration: unset;
|
|
27
|
+
--filebox-font-text-transform: unset;
|
|
28
|
+
--filebox-font-weight: normal;
|
|
29
|
+
--filebox-foreground-color: var(--joy-scheme-foreground);
|
|
30
|
+
--filebox-gap: var(--joy-layout-space);
|
|
31
|
+
--filebox-height: 56px;
|
|
32
|
+
--filebox-padding-bottom: var(--joy-layout-space);
|
|
33
|
+
--filebox-padding-left: calc(var(--joy-layout-space) * 1.5);
|
|
34
|
+
--filebox-padding-right: calc(var(--joy-layout-space) * 1.5);
|
|
35
|
+
--filebox-padding-top: var(--joy-layout-space);
|
|
36
|
+
--filebox-shadow: var(--joy-elevation-semilight-offset-x-0) var(--joy-elevation-semilight-offset-y-0) var(--joy-elevation-semilight-blur-0) var(--joy-elevation-semilight-spread-0) var(--joy-elevation-semilight-color-0);
|
|
37
|
+
--filebox-shadow-blur: var(--joy-elevation-semilight-blur-0);
|
|
38
|
+
--filebox-shadow-color: var(--joy-elevation-semilight-color-0);
|
|
39
|
+
--filebox-shadow-offset-x: var(--joy-elevation-semilight-offset-x-0);
|
|
40
|
+
--filebox-shadow-offset-y: var(--joy-elevation-semilight-offset-y-0);
|
|
41
|
+
--filebox-shadow-spread: var(--joy-elevation-semilight-spread-0);
|
|
42
|
+
--filebox-transition-duration: var(--joy-duration-short);
|
|
43
|
+
--filebox-transition-mode: ease;
|
|
44
|
+
--filebox-transition-property: background-color, color, border-color, opacity, box-shadow;
|
|
45
|
+
--filebox-translate: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
49
|
+
:host {
|
|
50
|
+
transition-duration: .01ms;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host {
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
display: block;
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host *, :host :before, :host :after {
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
background-repeat: no-repeat;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host :before, :host :after {
|
|
66
|
+
text-decoration: inherit;
|
|
67
|
+
vertical-align: inherit;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([hidden]) {
|
|
71
|
+
display: none !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host input {
|
|
75
|
+
font-family: inherit;
|
|
76
|
+
font-size: inherit;
|
|
77
|
+
line-height: inherit;
|
|
78
|
+
cursor: inherit;
|
|
79
|
+
margin: 0;
|
|
80
|
+
overflow: visible;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host {
|
|
84
|
+
font-family: var(--filebox-font-family);
|
|
85
|
+
font-size: var(--filebox-font-size);
|
|
86
|
+
line-height: var(--filebox-font-line-height);
|
|
87
|
+
font-weight: var(--filebox-font-weight);
|
|
88
|
+
letter-spacing: var(--filebox-font-letter-spacing);
|
|
89
|
+
-webkit-text-decoration: var(--filebox-font-text-decoration);
|
|
90
|
+
text-decoration: var(--filebox-font-text-decoration);
|
|
91
|
+
text-transform: var(--filebox-font-text-transform);
|
|
92
|
+
padding-top: var(--filebox-padding-top);
|
|
93
|
+
padding-right: var(--filebox-padding-right);
|
|
94
|
+
padding-bottom: var(--filebox-padding-bottom);
|
|
95
|
+
padding-left: var(--filebox-padding-left);
|
|
96
|
+
gap: var(--filebox-gap);
|
|
97
|
+
transition-duration: var(--filebox-transition-duration);
|
|
98
|
+
transition-timing-function: var(--filebox-transition-mode);
|
|
99
|
+
transition-property: var(--filebox-transition-property);
|
|
100
|
+
translate: var(--filebox-translate);
|
|
101
|
+
background: var(--filebox-background-color);
|
|
102
|
+
color: var(--filebox-foreground-color);
|
|
103
|
+
border-color: var(--filebox-border-color);
|
|
104
|
+
border-width: var(--filebox-border-width);
|
|
105
|
+
border-radius: var(--filebox-border-radius);
|
|
106
|
+
border-style: var(--filebox-border-style);
|
|
107
|
+
min-height: var(--filebox-height);
|
|
108
|
+
cursor: text;
|
|
109
|
+
z-index: 0;
|
|
110
|
+
outline: none;
|
|
111
|
+
flex-direction: row;
|
|
112
|
+
align-items: center;
|
|
113
|
+
display: flex;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host [part="prefix"] {
|
|
117
|
+
gap: var(--filebox-gap);
|
|
118
|
+
flex-grow: 0;
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
align-items: center;
|
|
121
|
+
display: flex;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host [part="prefix"][hidden] {
|
|
125
|
+
display: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host [part="inner"] {
|
|
129
|
+
width: 100%;
|
|
130
|
+
height: 100%;
|
|
131
|
+
padding: var(--filebox-padding-top) var(--filebox-padding-right) var(--filebox-padding-bottom) var(--filebox-padding-left);
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
flex: 1;
|
|
134
|
+
display: flex;
|
|
135
|
+
position: relative;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host [part="label"] {
|
|
140
|
+
-webkit-user-select: none;
|
|
141
|
+
-moz-user-select: none;
|
|
142
|
+
user-select: none;
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
transform-origin: 0 0;
|
|
145
|
+
text-align: left;
|
|
146
|
+
text-overflow: ellipsis;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
will-change: transform;
|
|
149
|
+
transition-property: transform, font-size, color, letter-spacing, top;
|
|
150
|
+
transition-duration: .2s;
|
|
151
|
+
transition-timing-function: ease;
|
|
152
|
+
display: block;
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: 10px;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
transform: translateY(0);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:host [part="label"].floating {
|
|
160
|
+
top: unset;
|
|
161
|
+
font-size: 12px;
|
|
162
|
+
transform: translateY(-50%);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:host [part="suffix"] {
|
|
166
|
+
gap: var(--filebox-gap);
|
|
167
|
+
flex-grow: 0;
|
|
168
|
+
flex-shrink: 0;
|
|
169
|
+
align-items: center;
|
|
170
|
+
display: flex;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:host [part="suffix"][hidden] {
|
|
174
|
+
display: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:host [part="input"] {
|
|
178
|
+
color: inherit;
|
|
179
|
+
-webkit-appearance: none;
|
|
180
|
+
-moz-appearance: none;
|
|
181
|
+
appearance: none;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
background: none;
|
|
184
|
+
border: none;
|
|
185
|
+
outline: none;
|
|
186
|
+
width: 100%;
|
|
187
|
+
margin: 0;
|
|
188
|
+
padding: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:host [part="clear"], :host [part="browse"] {
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:host([has-label]) [part="inner"] [part="input"] {
|
|
196
|
+
padding-top: 12px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
:host([has-label]) [part="inner"] {
|
|
200
|
+
padding-bottom: unset;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:host([required]) [part="label"]:after {
|
|
204
|
+
content: "*";
|
|
205
|
+
margin-left: 2px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([text-align="left"]) [part="input"] {
|
|
209
|
+
text-align: left;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:host([text-align="center"]) [part="input"] {
|
|
213
|
+
text-align: center;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:host([text-align="right"]) [part="input"] {
|
|
217
|
+
text-align: right;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:host [part="label"] {
|
|
221
|
+
color: var(--joy-scheme-middlelight);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host [part="input"]::-moz-selection {
|
|
225
|
+
background-color: var(--joy-scheme-selection);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
:host [part="input"]::selection {
|
|
229
|
+
background-color: var(--joy-scheme-selection);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host [part="browse"] {
|
|
233
|
+
margin-right: var(--joy-layout-space);
|
|
234
|
+
margin-left: var(--joy-layout-space);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host([disabled]:not([disabled="false"])), :host([readonly]) {
|
|
238
|
+
cursor: default;
|
|
239
|
+
--filebox-border-color: var(--joy-scheme-disabled);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host([disabled]:not([disabled="false"])) {
|
|
243
|
+
--filebox-background-color: var(--joy-scheme-semi-transparent);
|
|
244
|
+
--filebox-foreground-color: var(--joy-scheme-disabled);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:host([invalid]) {
|
|
248
|
+
--filebox-border-color: var(--joy-color-danger-500);
|
|
249
|
+
--filebox-foreground-color: var(--joy-color-danger-500);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
253
|
+
--filebox-border-color: var(--joy-color-primary-500);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
257
|
+
color: var(--joy-color-primary-500);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
261
|
+
--filebox-border-color: var(--joy-color-primary-500);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
265
|
+
color: var(--joy-color-primary-500);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
269
|
+
--filebox-border-color: var(--joy-color-secondary-500);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
273
|
+
color: var(--joy-color-secondary-500);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
277
|
+
--filebox-border-color: var(--joy-color-secondary-500);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
281
|
+
color: var(--joy-color-secondary-500);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
285
|
+
--filebox-border-color: var(--joy-color-tertiary-500);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
289
|
+
color: var(--joy-color-tertiary-500);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
293
|
+
--filebox-border-color: var(--joy-color-tertiary-500);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
297
|
+
color: var(--joy-color-tertiary-500);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
301
|
+
--filebox-border-color: var(--joy-color-danger-500);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
305
|
+
color: var(--joy-color-danger-500);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
309
|
+
--filebox-border-color: var(--joy-color-danger-500);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
313
|
+
color: var(--joy-color-danger-500);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
317
|
+
--filebox-border-color: var(--joy-color-warning-500);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
321
|
+
color: var(--joy-color-warning-500);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
325
|
+
--filebox-border-color: var(--joy-color-warning-500);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
329
|
+
color: var(--joy-color-warning-500);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
333
|
+
--filebox-border-color: var(--joy-color-success-500);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
337
|
+
color: var(--joy-color-success-500);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
341
|
+
--filebox-border-color: var(--joy-color-success-500);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
345
|
+
color: var(--joy-color-success-500);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
349
|
+
--filebox-border-color: var(--joy-color-info-500);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
353
|
+
color: var(--joy-color-info-500);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
357
|
+
--filebox-border-color: var(--joy-color-info-500);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
361
|
+
color: var(--joy-color-info-500);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
365
|
+
--filebox-border-color: var(--joy-color-highlight-500);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
369
|
+
color: var(--joy-color-highlight-500);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
373
|
+
--filebox-border-color: var(--joy-color-highlight-500);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
377
|
+
color: var(--joy-color-highlight-500);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
381
|
+
--filebox-border-color: var(--joy-color-neutral-500);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
|
|
385
|
+
color: var(--joy-color-neutral-500);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
|
|
389
|
+
--filebox-border-color: var(--joy-color-neutral-500);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
|
|
393
|
+
color: var(--joy-color-neutral-500);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
:host([appearance="plain"]) {
|
|
397
|
+
--filebox-border-width: 0;
|
|
398
|
+
--filebox-background-color: var(--joy-scheme-transparent);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
:host([appearance="soft"]), :host([appearance="solid"]) {
|
|
402
|
+
--filebox-background-color: var(--joy-scheme-highlight);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
`;
|
|
406
|
+
}
|
|
407
|
+
//# sourceMappingURL=FileBoxElement.Joy.js.map
|