@design.estate/dees-catalog 3.56.1 → 3.57.0
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/dist_bundle/bundle.js +140 -173
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-input/dees-input-fileupload/component.d.ts +1 -1
- package/dist_ts_web/elements/00group-input/dees-input-fileupload/component.js +34 -48
- package/dist_ts_web/elements/00group-input/dees-input-fileupload/styles.js +106 -130
- package/dist_ts_web/elements/00theme.js +2 -1
- package/dist_watch/bundle.js +138 -171
- package/dist_watch/bundle.js.map +3 -3
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-input/dees-input-fileupload/component.ts +33 -48
- package/ts_web/elements/00group-input/dees-input-fileupload/styles.ts +105 -129
- package/ts_web/elements/00theme.ts +1 -0
package/dist_bundle/bundle.js
CHANGED
|
@@ -57136,6 +57136,7 @@ var init_theme = __esm({
|
|
|
57136
57136
|
--dees-color-hover: ${cssManager.bdTheme("rgba(0, 0, 0, 0.04)", "rgba(255, 255, 255, 0.06)")};
|
|
57137
57137
|
--dees-color-active: ${cssManager.bdTheme("rgba(0, 0, 0, 0.06)", "rgba(255, 255, 255, 0.08)")};
|
|
57138
57138
|
--dees-color-pressed: ${cssManager.bdTheme("rgba(0, 0, 0, 0.08)", "rgba(255, 255, 255, 0.12)")};
|
|
57139
|
+
--dees-color-row-hover: ${cssManager.bdTheme("hsl(222.2 47.4% 51.2% / 0.06)", "hsl(217.2 91.2% 59.8% / 0.08)")};
|
|
57139
57140
|
|
|
57140
57141
|
/* ========================================
|
|
57141
57142
|
* Colors — Focus Ring
|
|
@@ -146021,201 +146022,158 @@ var demoFunc19 = /* @__PURE__ */ __name(() => b2`
|
|
|
146021
146022
|
|
|
146022
146023
|
// ts_web/elements/00group-input/dees-input-fileupload/styles.ts
|
|
146023
146024
|
init_dist_ts30();
|
|
146025
|
+
init_theme();
|
|
146024
146026
|
var fileuploadStyles = [
|
|
146025
|
-
|
|
146027
|
+
themeDefaultStyles,
|
|
146026
146028
|
...DeesInputBase.baseStyles,
|
|
146029
|
+
cssManager.defaultStyles,
|
|
146027
146030
|
i`
|
|
146028
146031
|
:host {
|
|
146029
146032
|
position: relative;
|
|
146030
146033
|
display: block;
|
|
146031
146034
|
}
|
|
146032
146035
|
|
|
146033
|
-
|
|
146034
146036
|
.input-wrapper {
|
|
146035
146037
|
display: flex;
|
|
146036
146038
|
flex-direction: column;
|
|
146037
146039
|
gap: 12px;
|
|
146038
146040
|
}
|
|
146039
146041
|
|
|
146040
|
-
|
|
146041
|
-
|
|
146042
|
-
|
|
146043
|
-
border-radius: 12px;
|
|
146044
|
-
border: 1.5px dashed ${cssManager.bdTheme("hsl(215 16% 80%)", "hsl(217 20% 25%)")};
|
|
146045
|
-
background: ${cssManager.bdTheme("hsl(0 0% 100%)", "hsl(215 20% 12%)")};
|
|
146046
|
-
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
|
146047
|
-
cursor: pointer;
|
|
146048
|
-
outline: none;
|
|
146049
|
-
}
|
|
146050
|
-
|
|
146051
|
-
.dropzone:focus-visible {
|
|
146052
|
-
box-shadow: 0 0 0 2px ${cssManager.bdTheme("hsl(0 0% 100%)", "hsl(215 20% 12%)")},
|
|
146053
|
-
0 0 0 4px ${cssManager.bdTheme("hsl(217 91% 60% / 0.5)", "hsl(213 93% 68% / 0.4)")};
|
|
146054
|
-
border-color: ${cssManager.bdTheme("hsl(217 91% 60%)", "hsl(213 93% 68%)")};
|
|
146042
|
+
/* ── Tile integration ── */
|
|
146043
|
+
dees-tile {
|
|
146044
|
+
cursor: default;
|
|
146055
146045
|
}
|
|
146056
146046
|
|
|
146057
|
-
|
|
146058
|
-
border-color:
|
|
146059
|
-
box-shadow: 0 12px 32px ${cssManager.bdTheme("rgba(15, 23, 42, 0.12)", "rgba(0, 0, 0, 0.35)")};
|
|
146060
|
-
background: ${cssManager.bdTheme("hsl(217 91% 60% / 0.06)", "hsl(213 93% 68% / 0.12)")};
|
|
146047
|
+
dees-tile:hover::part(outer) {
|
|
146048
|
+
border-color: var(--dees-color-border-strong);
|
|
146061
146049
|
}
|
|
146062
146050
|
|
|
146063
|
-
.
|
|
146064
|
-
|
|
146051
|
+
dees-tile.dragover::part(outer) {
|
|
146052
|
+
border-color: var(--dees-color-accent-primary);
|
|
146053
|
+
box-shadow: 0 0 0 2px ${cssManager.bdTheme("hsl(217 91% 60% / 0.15)", "hsl(213 93% 68% / 0.15)")};
|
|
146065
146054
|
}
|
|
146066
146055
|
|
|
146067
|
-
|
|
146056
|
+
:host([disabled]) dees-tile {
|
|
146068
146057
|
opacity: 0.6;
|
|
146069
|
-
pointer-events: none;
|
|
146070
146058
|
cursor: not-allowed;
|
|
146059
|
+
pointer-events: none;
|
|
146071
146060
|
}
|
|
146072
146061
|
|
|
146073
|
-
|
|
146074
|
-
|
|
146075
|
-
align-items: center;
|
|
146076
|
-
gap: 16px;
|
|
146077
|
-
}
|
|
146078
|
-
|
|
146079
|
-
.dropzone__icon {
|
|
146080
|
-
width: 48px;
|
|
146081
|
-
height: 48px;
|
|
146082
|
-
border-radius: 16px;
|
|
146062
|
+
/* ── Header slot: sleek toolbar ── */
|
|
146063
|
+
.dropzone-header {
|
|
146083
146064
|
display: flex;
|
|
146084
146065
|
align-items: center;
|
|
146085
|
-
|
|
146086
|
-
|
|
146087
|
-
|
|
146088
|
-
position: relative;
|
|
146089
|
-
flex-shrink: 0;
|
|
146066
|
+
gap: 8px;
|
|
146067
|
+
height: 32px;
|
|
146068
|
+
padding: 0 12px;
|
|
146090
146069
|
}
|
|
146091
146070
|
|
|
146092
|
-
.
|
|
146093
|
-
|
|
146071
|
+
.dropzone-header dees-icon {
|
|
146072
|
+
width: 14px;
|
|
146073
|
+
height: 14px;
|
|
146074
|
+
color: var(--dees-color-text-muted);
|
|
146094
146075
|
}
|
|
146095
146076
|
|
|
146096
|
-
.
|
|
146097
|
-
width:
|
|
146098
|
-
height:
|
|
146099
|
-
border-radius:
|
|
146077
|
+
.dropzone-loader {
|
|
146078
|
+
width: 14px;
|
|
146079
|
+
height: 14px;
|
|
146080
|
+
border-radius: var(--dees-radius-full);
|
|
146100
146081
|
border: 2px solid ${cssManager.bdTheme("rgba(15, 23, 42, 0.15)", "rgba(255, 255, 255, 0.15)")};
|
|
146101
|
-
border-top-color:
|
|
146082
|
+
border-top-color: var(--dees-color-accent-primary);
|
|
146102
146083
|
animation: loader-spin 0.6s linear infinite;
|
|
146103
146084
|
}
|
|
146104
146085
|
|
|
146105
|
-
.
|
|
146106
|
-
display: flex;
|
|
146107
|
-
flex-direction: column;
|
|
146108
|
-
gap: 4px;
|
|
146109
|
-
min-width: 0;
|
|
146110
|
-
}
|
|
146111
|
-
|
|
146112
|
-
.dropzone__headline {
|
|
146113
|
-
font-size: 15px;
|
|
146114
|
-
font-weight: 600;
|
|
146115
|
-
color: ${cssManager.bdTheme("hsl(222 47% 11%)", "hsl(210 20% 96%)")};
|
|
146116
|
-
}
|
|
146117
|
-
|
|
146118
|
-
.dropzone__subline {
|
|
146086
|
+
.dropzone-title {
|
|
146119
146087
|
font-size: 13px;
|
|
146120
|
-
color:
|
|
146088
|
+
color: var(--dees-color-text-muted);
|
|
146121
146089
|
}
|
|
146122
146090
|
|
|
146123
|
-
.
|
|
146091
|
+
.dropzone-browse {
|
|
146124
146092
|
appearance: none;
|
|
146125
146093
|
border: none;
|
|
146126
146094
|
background: none;
|
|
146127
146095
|
padding: 0;
|
|
146128
|
-
|
|
146129
|
-
|
|
146096
|
+
font-size: 13px;
|
|
146097
|
+
font-family: inherit;
|
|
146130
146098
|
font-weight: 600;
|
|
146099
|
+
color: var(--dees-color-accent-primary);
|
|
146131
146100
|
cursor: pointer;
|
|
146132
|
-
text-decoration: none;
|
|
146133
146101
|
}
|
|
146134
146102
|
|
|
146135
|
-
.
|
|
146103
|
+
.dropzone-browse:hover {
|
|
146136
146104
|
text-decoration: underline;
|
|
146137
146105
|
}
|
|
146138
146106
|
|
|
146139
|
-
.
|
|
146107
|
+
.dropzone-browse:disabled {
|
|
146140
146108
|
cursor: not-allowed;
|
|
146141
|
-
opacity: 0.
|
|
146109
|
+
opacity: 0.5;
|
|
146142
146110
|
}
|
|
146143
146111
|
|
|
146144
|
-
|
|
146145
|
-
|
|
146112
|
+
/* ── Content slot: file list in rounded inset ── */
|
|
146113
|
+
.file-list-empty {
|
|
146146
146114
|
display: flex;
|
|
146147
|
-
flex-
|
|
146115
|
+
flex-direction: column;
|
|
146116
|
+
align-items: center;
|
|
146117
|
+
justify-content: center;
|
|
146148
146118
|
gap: 8px;
|
|
146149
|
-
|
|
146150
|
-
color:
|
|
146119
|
+
padding: 24px 16px;
|
|
146120
|
+
color: var(--dees-color-text-muted);
|
|
146121
|
+
font-size: 13px;
|
|
146151
146122
|
}
|
|
146152
146123
|
|
|
146153
|
-
.
|
|
146154
|
-
|
|
146155
|
-
|
|
146156
|
-
background: ${cssManager.bdTheme("hsl(217 91% 95%)", "hsl(213 93% 18%)")};
|
|
146157
|
-
border: 1px solid ${cssManager.bdTheme("hsl(217 91% 90%)", "hsl(213 93% 24%)")};
|
|
146124
|
+
.file-list-empty dees-icon {
|
|
146125
|
+
font-size: 24px;
|
|
146126
|
+
opacity: 0.4;
|
|
146158
146127
|
}
|
|
146159
146128
|
|
|
146160
146129
|
.file-list {
|
|
146161
146130
|
display: flex;
|
|
146162
146131
|
flex-direction: column;
|
|
146163
|
-
gap: 12px;
|
|
146164
|
-
margin-top: 20px;
|
|
146165
|
-
padding-top: 20px;
|
|
146166
|
-
border-top: 1px solid ${cssManager.bdTheme("hsl(217 91% 90%)", "hsl(213 93% 24%)")};
|
|
146167
146132
|
}
|
|
146168
146133
|
|
|
146169
|
-
.file-
|
|
146134
|
+
.file-list-header {
|
|
146170
146135
|
display: flex;
|
|
146171
146136
|
align-items: center;
|
|
146172
146137
|
justify-content: space-between;
|
|
146173
|
-
|
|
146138
|
+
padding: 8px 12px;
|
|
146139
|
+
font-size: 12px;
|
|
146174
146140
|
font-weight: 500;
|
|
146175
|
-
color:
|
|
146141
|
+
color: var(--dees-color-text-muted);
|
|
146176
146142
|
}
|
|
146177
146143
|
|
|
146178
|
-
.file-
|
|
146144
|
+
.file-list-clear {
|
|
146179
146145
|
appearance: none;
|
|
146180
146146
|
border: none;
|
|
146181
146147
|
background: none;
|
|
146182
|
-
color:
|
|
146148
|
+
color: var(--dees-color-accent-primary);
|
|
146183
146149
|
cursor: pointer;
|
|
146184
146150
|
font-weight: 500;
|
|
146185
|
-
font-size:
|
|
146151
|
+
font-size: 12px;
|
|
146186
146152
|
padding: 0;
|
|
146153
|
+
font-family: inherit;
|
|
146187
146154
|
}
|
|
146188
146155
|
|
|
146189
|
-
.file-
|
|
146156
|
+
.file-list-clear:hover {
|
|
146190
146157
|
text-decoration: underline;
|
|
146191
146158
|
}
|
|
146192
146159
|
|
|
146193
|
-
.file-list__items {
|
|
146194
|
-
display: flex;
|
|
146195
|
-
flex-direction: column;
|
|
146196
|
-
gap: 12px;
|
|
146197
|
-
}
|
|
146198
|
-
|
|
146199
146160
|
.file-row {
|
|
146200
146161
|
display: flex;
|
|
146201
146162
|
align-items: center;
|
|
146202
146163
|
gap: 12px;
|
|
146203
|
-
padding:
|
|
146204
|
-
|
|
146205
|
-
border: 1px solid ${cssManager.bdTheme("hsl(213 27% 92%)", "hsl(217 25% 26%)")};
|
|
146206
|
-
border-radius: 8px;
|
|
146207
|
-
transition: background 0.15s ease;
|
|
146164
|
+
padding: 6px 12px;
|
|
146165
|
+
transition: background var(--dees-transition-fast) ease;
|
|
146208
146166
|
}
|
|
146209
146167
|
|
|
146210
146168
|
.file-row:hover {
|
|
146211
|
-
background:
|
|
146169
|
+
background: var(--dees-color-row-hover);
|
|
146212
146170
|
}
|
|
146213
146171
|
|
|
146214
146172
|
.file-thumb {
|
|
146215
|
-
width:
|
|
146216
|
-
height:
|
|
146217
|
-
border-radius:
|
|
146218
|
-
background:
|
|
146173
|
+
width: 32px;
|
|
146174
|
+
height: 32px;
|
|
146175
|
+
border-radius: var(--dees-radius-sm);
|
|
146176
|
+
background: var(--dees-color-bg-tertiary);
|
|
146219
146177
|
display: flex;
|
|
146220
146178
|
align-items: center;
|
|
146221
146179
|
justify-content: center;
|
|
@@ -146224,16 +146182,15 @@ var fileuploadStyles = [
|
|
|
146224
146182
|
}
|
|
146225
146183
|
|
|
146226
146184
|
.file-thumb dees-icon {
|
|
146227
|
-
font-size:
|
|
146228
|
-
color:
|
|
146185
|
+
font-size: 16px;
|
|
146186
|
+
color: var(--dees-color-text-muted);
|
|
146229
146187
|
display: block;
|
|
146230
|
-
width:
|
|
146231
|
-
height:
|
|
146188
|
+
width: 16px;
|
|
146189
|
+
height: 16px;
|
|
146232
146190
|
line-height: 1;
|
|
146233
146191
|
flex-shrink: 0;
|
|
146234
146192
|
}
|
|
146235
146193
|
|
|
146236
|
-
|
|
146237
146194
|
.thumb-image {
|
|
146238
146195
|
width: 100%;
|
|
146239
146196
|
height: 100%;
|
|
@@ -146243,14 +146200,14 @@ var fileuploadStyles = [
|
|
|
146243
146200
|
.file-meta {
|
|
146244
146201
|
display: flex;
|
|
146245
146202
|
flex-direction: column;
|
|
146246
|
-
gap:
|
|
146203
|
+
gap: 2px;
|
|
146247
146204
|
min-width: 0;
|
|
146248
146205
|
}
|
|
146249
146206
|
|
|
146250
146207
|
.file-name {
|
|
146251
|
-
font-weight:
|
|
146252
|
-
font-size:
|
|
146253
|
-
color:
|
|
146208
|
+
font-weight: 500;
|
|
146209
|
+
font-size: 13px;
|
|
146210
|
+
color: var(--dees-color-text-primary);
|
|
146254
146211
|
white-space: nowrap;
|
|
146255
146212
|
overflow: hidden;
|
|
146256
146213
|
text-overflow: ellipsis;
|
|
@@ -146261,8 +146218,8 @@ var fileuploadStyles = [
|
|
|
146261
146218
|
align-items: center;
|
|
146262
146219
|
gap: 8px;
|
|
146263
146220
|
flex-wrap: wrap;
|
|
146264
|
-
font-size:
|
|
146265
|
-
color:
|
|
146221
|
+
font-size: 11px;
|
|
146222
|
+
color: var(--dees-color-text-muted);
|
|
146266
146223
|
}
|
|
146267
146224
|
|
|
146268
146225
|
.file-size {
|
|
@@ -146270,39 +146227,40 @@ var fileuploadStyles = [
|
|
|
146270
146227
|
}
|
|
146271
146228
|
|
|
146272
146229
|
.file-type {
|
|
146273
|
-
padding:
|
|
146274
|
-
border-radius:
|
|
146275
|
-
border: 1px solid
|
|
146276
|
-
color:
|
|
146230
|
+
padding: 1px 6px;
|
|
146231
|
+
border-radius: var(--dees-radius-full);
|
|
146232
|
+
border: 1px solid var(--dees-color-border-default);
|
|
146233
|
+
color: var(--dees-color-text-muted);
|
|
146277
146234
|
text-transform: uppercase;
|
|
146278
146235
|
letter-spacing: 0.08em;
|
|
146279
146236
|
line-height: 1;
|
|
146237
|
+
font-size: 10px;
|
|
146280
146238
|
}
|
|
146281
146239
|
|
|
146282
146240
|
.file-actions {
|
|
146283
146241
|
display: flex;
|
|
146284
146242
|
align-items: center;
|
|
146285
|
-
gap: 8px;
|
|
146286
146243
|
margin-left: auto;
|
|
146287
146244
|
}
|
|
146288
146245
|
|
|
146289
146246
|
.remove-button {
|
|
146290
|
-
width:
|
|
146291
|
-
height:
|
|
146292
|
-
border-radius:
|
|
146247
|
+
width: 24px;
|
|
146248
|
+
height: 24px;
|
|
146249
|
+
border-radius: var(--dees-radius-xs);
|
|
146293
146250
|
background: transparent;
|
|
146294
146251
|
border: none;
|
|
146295
146252
|
cursor: pointer;
|
|
146296
146253
|
display: flex;
|
|
146297
146254
|
align-items: center;
|
|
146298
146255
|
justify-content: center;
|
|
146299
|
-
transition: background
|
|
146300
|
-
|
|
146256
|
+
transition: background var(--dees-transition-fast) ease,
|
|
146257
|
+
color var(--dees-transition-fast) ease;
|
|
146258
|
+
color: var(--dees-color-text-muted);
|
|
146301
146259
|
}
|
|
146302
146260
|
|
|
146303
146261
|
.remove-button:hover {
|
|
146304
146262
|
background: ${cssManager.bdTheme("hsl(0 72% 50% / 0.08)", "hsl(0 62% 32% / 0.15)")};
|
|
146305
|
-
color:
|
|
146263
|
+
color: var(--dees-color-accent-error);
|
|
146306
146264
|
}
|
|
146307
146265
|
|
|
146308
146266
|
.remove-button:active {
|
|
@@ -146318,9 +146276,28 @@ var fileuploadStyles = [
|
|
|
146318
146276
|
flex-shrink: 0;
|
|
146319
146277
|
}
|
|
146320
146278
|
|
|
146279
|
+
/* ── Footer slot: meta chips ── */
|
|
146280
|
+
.dropzone-footer {
|
|
146281
|
+
display: flex;
|
|
146282
|
+
flex-wrap: wrap;
|
|
146283
|
+
gap: 6px;
|
|
146284
|
+
padding: 6px 12px;
|
|
146285
|
+
align-items: center;
|
|
146286
|
+
}
|
|
146287
|
+
|
|
146288
|
+
.meta-chip {
|
|
146289
|
+
font-size: 11px;
|
|
146290
|
+
padding: 2px 8px;
|
|
146291
|
+
border-radius: var(--dees-radius-full);
|
|
146292
|
+
color: var(--dees-color-text-muted);
|
|
146293
|
+
background: var(--dees-color-bg-tertiary);
|
|
146294
|
+
border: 1px solid var(--dees-color-border-subtle);
|
|
146295
|
+
}
|
|
146296
|
+
|
|
146297
|
+
/* ── Validation ── */
|
|
146321
146298
|
.validation-message {
|
|
146322
146299
|
font-size: 13px;
|
|
146323
|
-
color:
|
|
146300
|
+
color: var(--dees-color-accent-error);
|
|
146324
146301
|
line-height: 1.5;
|
|
146325
146302
|
}
|
|
146326
146303
|
|
|
@@ -146365,18 +146342,12 @@ var _DeesInputFileupload = class _DeesInputFileupload extends (_a27 = DeesInputB
|
|
|
146365
146342
|
if (this.disabled) {
|
|
146366
146343
|
return;
|
|
146367
146344
|
}
|
|
146368
|
-
|
|
146345
|
+
const target = event.target;
|
|
146346
|
+
if (target.closest(".file-list, .dropzone-header, .dropzone-footer")) {
|
|
146369
146347
|
return;
|
|
146370
146348
|
}
|
|
146371
146349
|
this.openFileSelector();
|
|
146372
146350
|
}, "handleDropzoneClick"));
|
|
146373
|
-
__publicField(this, "handleBrowseClick", /* @__PURE__ */ __name((event) => {
|
|
146374
|
-
if (this.disabled) {
|
|
146375
|
-
return;
|
|
146376
|
-
}
|
|
146377
|
-
event.stopPropagation();
|
|
146378
|
-
this.openFileSelector();
|
|
146379
|
-
}, "handleBrowseClick"));
|
|
146380
146351
|
__publicField(this, "handleDropzoneKeydown", /* @__PURE__ */ __name((event) => {
|
|
146381
146352
|
if (this.disabled) {
|
|
146382
146353
|
return;
|
|
@@ -146446,14 +146417,13 @@ var _DeesInputFileupload = class _DeesInputFileupload extends (_a27 = DeesInputB
|
|
|
146446
146417
|
.description=${this.description}
|
|
146447
146418
|
.required=${this.required}
|
|
146448
146419
|
></dees-label>
|
|
146449
|
-
<
|
|
146450
|
-
class="
|
|
146451
|
-
|
|
146420
|
+
<dees-tile
|
|
146421
|
+
class="${this.state === "dragOver" ? "dragover" : ""}"
|
|
146422
|
+
@click=${this.handleDropzoneClick}
|
|
146423
|
+
@keydown=${this.handleDropzoneKeydown}
|
|
146452
146424
|
tabindex=${this.disabled ? -1 : 0}
|
|
146453
146425
|
aria-disabled=${this.disabled}
|
|
146454
146426
|
aria-label=${`Select files${acceptedSummary ? ` (${acceptedSummary})` : ""}`}
|
|
146455
|
-
@click=${this.handleDropzoneClick}
|
|
146456
|
-
@keydown=${this.handleDropzoneKeydown}
|
|
146457
146427
|
>
|
|
146458
146428
|
<input
|
|
146459
146429
|
class="file-input"
|
|
@@ -146465,47 +146435,44 @@ var _DeesInputFileupload = class _DeesInputFileupload extends (_a27 = DeesInputB
|
|
|
146465
146435
|
@change=${this.handleFileInputChange}
|
|
146466
146436
|
tabindex="-1"
|
|
146467
146437
|
/>
|
|
146468
|
-
<div class="
|
|
146469
|
-
|
|
146470
|
-
|
|
146471
|
-
|
|
146472
|
-
|
|
146473
|
-
|
|
146474
|
-
|
|
146475
|
-
|
|
146476
|
-
|
|
146477
|
-
|
|
146478
|
-
|
|
146479
|
-
|
|
146480
|
-
?disabled=${this.disabled}
|
|
146481
|
-
>
|
|
146482
|
-
browse
|
|
146483
|
-
</button>
|
|
146484
|
-
</span>
|
|
146485
|
-
</div>
|
|
146486
|
-
</div>
|
|
146487
|
-
<div class="dropzone__meta">
|
|
146488
|
-
${metaEntries.map((entry) => b2`<span>${entry}</span>`)}
|
|
146438
|
+
<div slot="header" class="dropzone-header">
|
|
146439
|
+
${this.isLoading ? b2`<span class="dropzone-loader" aria-hidden="true"></span>` : b2`<dees-icon icon="lucide:Upload"></dees-icon>`}
|
|
146440
|
+
<span class="dropzone-title">Drop files here or</span>
|
|
146441
|
+
<button
|
|
146442
|
+
type="button"
|
|
146443
|
+
class="dropzone-browse"
|
|
146444
|
+
@click=${(e11) => {
|
|
146445
|
+
e11.stopPropagation();
|
|
146446
|
+
this.openFileSelector();
|
|
146447
|
+
}}
|
|
146448
|
+
?disabled=${this.disabled}
|
|
146449
|
+
>browse</button>
|
|
146489
146450
|
</div>
|
|
146490
146451
|
${this.renderFileList()}
|
|
146491
|
-
|
|
146452
|
+
<div slot="footer" class="dropzone-footer">
|
|
146453
|
+
${metaEntries.map((entry) => b2`<span class="meta-chip">${entry}</span>`)}
|
|
146454
|
+
</div>
|
|
146455
|
+
</dees-tile>
|
|
146492
146456
|
${this.validationMessage ? b2`<div class="validation-message" aria-live="polite">${this.validationMessage}</div>` : b2``}
|
|
146493
146457
|
</div>
|
|
146494
146458
|
`;
|
|
146495
146459
|
}
|
|
146496
146460
|
renderFileList() {
|
|
146497
146461
|
if (this.value.length === 0) {
|
|
146498
|
-
return b2
|
|
146462
|
+
return b2`
|
|
146463
|
+
<div class="file-list-empty">
|
|
146464
|
+
<dees-icon icon="lucide:FileStack"></dees-icon>
|
|
146465
|
+
<span>No files selected</span>
|
|
146466
|
+
</div>
|
|
146467
|
+
`;
|
|
146499
146468
|
}
|
|
146500
146469
|
return b2`
|
|
146501
146470
|
<div class="file-list">
|
|
146502
|
-
<div class="file-
|
|
146471
|
+
<div class="file-list-header">
|
|
146503
146472
|
<span>${this.value.length} file${this.value.length === 1 ? "" : "s"} selected</span>
|
|
146504
|
-
|
|
146505
|
-
</div>
|
|
146506
|
-
<div class="file-list__items">
|
|
146507
|
-
${this.value.map((file) => this.renderFileRow(file))}
|
|
146473
|
+
<button type="button" class="file-list-clear" @click=${this.handleClearAll}>Clear ${this.value.length > 1 ? "all" : ""}</button>
|
|
146508
146474
|
</div>
|
|
146475
|
+
${this.value.map((file) => this.renderFileRow(file))}
|
|
146509
146476
|
</div>
|
|
146510
146477
|
`;
|
|
146511
146478
|
}
|
|
@@ -146554,7 +146521,7 @@ var _DeesInputFileupload = class _DeesInputFileupload extends (_a27 = DeesInputB
|
|
|
146554
146521
|
});
|
|
146555
146522
|
}
|
|
146556
146523
|
rebindInteractiveElements() {
|
|
146557
|
-
const newDropArea = this.shadowRoot?.querySelector("
|
|
146524
|
+
const newDropArea = this.shadowRoot?.querySelector("dees-tile");
|
|
146558
146525
|
if (newDropArea !== this.dropArea) {
|
|
146559
146526
|
this.detachDropListeners();
|
|
146560
146527
|
this.dropArea = newDropArea;
|
|
@@ -198591,7 +198558,7 @@ init_group_runtime();
|
|
|
198591
198558
|
// ts_web/00_commitinfo_data.ts
|
|
198592
198559
|
var commitinfo = {
|
|
198593
198560
|
name: "@design.estate/dees-catalog",
|
|
198594
|
-
version: "3.
|
|
198561
|
+
version: "3.57.0",
|
|
198595
198562
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
198596
198563
|
};
|
|
198597
198564
|
export {
|
|
@@ -200563,4 +200530,4 @@ ibantools/jsnext/ibantools.js:
|
|
|
200563
200530
|
* @preferred
|
|
200564
200531
|
*)
|
|
200565
200532
|
*/
|
|
200566
|
-
//# sourceMappingURL=bundle-
|
|
200533
|
+
//# sourceMappingURL=bundle-1775347250789.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '3.
|
|
6
|
+
version: '3.57.0',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsNkJBQTZCO0lBQ25DLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSxzSkFBc0o7Q0FDcEssQ0FBQSJ9
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DeesInputBase } from '../dees-input-base/dees-input-base.js';
|
|
2
2
|
import '../../00group-utility/dees-icon/dees-icon.js';
|
|
3
3
|
import '../../00group-layout/dees-label/dees-label.js';
|
|
4
|
+
import '../../00group-layout/dees-tile/dees-tile.js';
|
|
4
5
|
import { type TemplateResult } from '@design.estate/dees-element';
|
|
5
6
|
declare global {
|
|
6
7
|
interface HTMLElementTagNameMap {
|
|
@@ -28,7 +29,6 @@ export declare class DeesInputFileupload extends DeesInputBase<DeesInputFileuplo
|
|
|
28
29
|
private renderFileRow;
|
|
29
30
|
private handleFileInputChange;
|
|
30
31
|
private handleDropzoneClick;
|
|
31
|
-
private handleBrowseClick;
|
|
32
32
|
private handleDropzoneKeydown;
|
|
33
33
|
private handleClearAll;
|
|
34
34
|
private handleDragEvent;
|