@design.estate/dees-wcctools 1.0.100 → 1.1.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 +700 -129
- package/dist_bundle/bundle.js.map +3 -3
- package/dist_ts_web/00_commitinfo_data.js +2 -2
- package/dist_ts_web/elements/wcc-dashboard.d.ts +3 -2
- package/dist_ts_web/elements/wcc-dashboard.js +14 -9
- package/dist_ts_web/elements/wcc-frame.d.ts +1 -0
- package/dist_ts_web/elements/wcc-frame.js +11 -2
- package/dist_ts_web/elements/wcc-properties.d.ts +13 -0
- package/dist_ts_web/elements/wcc-properties.js +592 -92
- package/dist_ts_web/elements/wcc-sidebar.js +93 -32
- package/dist_watch/bundle.js +919 -128
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +1 -1
- package/readme.hints.md +102 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/wcc-dashboard.ts +16 -6
- package/ts_web/elements/wcc-frame.ts +5 -1
- package/ts_web/elements/wcc-properties.ts +631 -106
- package/ts_web/elements/wcc-sidebar.ts +92 -31
package/dist_bundle/bundle.js
CHANGED
|
@@ -42883,10 +42883,16 @@ var cssManager = new CssManager();
|
|
|
42883
42883
|
|
|
42884
42884
|
// ts_web/elements/wcc-frame.ts
|
|
42885
42885
|
var WccFrame = class extends DeesElement {
|
|
42886
|
+
constructor() {
|
|
42887
|
+
super(...arguments);
|
|
42888
|
+
this.advancedEditorOpen = false;
|
|
42889
|
+
}
|
|
42886
42890
|
render() {
|
|
42887
42891
|
return x`
|
|
42888
42892
|
<style>
|
|
42889
42893
|
:host {
|
|
42894
|
+
bottom: ${this.advancedEditorOpen ? "400px" : "100px"};
|
|
42895
|
+
transition: bottom 0.3s ease;
|
|
42890
42896
|
${(() => {
|
|
42891
42897
|
switch (this.viewport) {
|
|
42892
42898
|
case "desktop":
|
|
@@ -42956,7 +42962,6 @@ WccFrame.styles = [
|
|
|
42956
42962
|
left: 200px;
|
|
42957
42963
|
right: 0px;
|
|
42958
42964
|
top: 0px;
|
|
42959
|
-
bottom: 100px;
|
|
42960
42965
|
overflow-y: auto;
|
|
42961
42966
|
overflow-x: auto;
|
|
42962
42967
|
overscroll-behavior: contain;
|
|
@@ -42973,6 +42978,9 @@ WccFrame.styles = [
|
|
|
42973
42978
|
__decorateClass([
|
|
42974
42979
|
n4()
|
|
42975
42980
|
], WccFrame.prototype, "viewport", 2);
|
|
42981
|
+
__decorateClass([
|
|
42982
|
+
n4({ type: Boolean })
|
|
42983
|
+
], WccFrame.prototype, "advancedEditorOpen", 2);
|
|
42976
42984
|
WccFrame = __decorateClass([
|
|
42977
42985
|
t4("wcc-frame")
|
|
42978
42986
|
], WccFrame);
|
|
@@ -42981,31 +42989,68 @@ WccFrame = __decorateClass([
|
|
|
42981
42989
|
var WccSidebar = class extends DeesElement {
|
|
42982
42990
|
render() {
|
|
42983
42991
|
return x`
|
|
42984
|
-
<link href="https://fonts.googleapis.com/
|
|
42992
|
+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet" />
|
|
42985
42993
|
<style>
|
|
42986
42994
|
:host {
|
|
42995
|
+
/* CSS Variables - Always dark theme to match wcc-properties */
|
|
42996
|
+
--background: #0a0a0a;
|
|
42997
|
+
--foreground: #e5e5e5;
|
|
42998
|
+
--card: #0f0f0f;
|
|
42999
|
+
--card-foreground: #f0f0f0;
|
|
43000
|
+
--muted: #1a1a1a;
|
|
43001
|
+
--muted-foreground: #666;
|
|
43002
|
+
--accent: #222;
|
|
43003
|
+
--accent-foreground: #fff;
|
|
43004
|
+
--border: rgba(255, 255, 255, 0.06);
|
|
43005
|
+
--input: #141414;
|
|
43006
|
+
--primary: #3b82f6;
|
|
43007
|
+
--primary-foreground: #fff;
|
|
43008
|
+
--ring: #3b82f6;
|
|
43009
|
+
--radius: 4px;
|
|
43010
|
+
|
|
42987
43011
|
display: block;
|
|
42988
|
-
border-right: 1px solid
|
|
42989
|
-
font-family: '
|
|
42990
|
-
font-size:
|
|
43012
|
+
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
43013
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
43014
|
+
font-size: 14px;
|
|
42991
43015
|
box-sizing: border-box;
|
|
42992
43016
|
position: absolute;
|
|
42993
43017
|
left: 0px;
|
|
42994
43018
|
width: 200px;
|
|
42995
43019
|
top: 0px;
|
|
42996
43020
|
bottom: 0px;
|
|
42997
|
-
overflow-y:
|
|
43021
|
+
overflow-y: auto;
|
|
42998
43022
|
overflow-x: hidden;
|
|
42999
|
-
background:
|
|
43000
|
-
color:
|
|
43001
|
-
|
|
43023
|
+
background: var(--background);
|
|
43024
|
+
color: var(--foreground);
|
|
43025
|
+
}
|
|
43026
|
+
|
|
43027
|
+
.menu {
|
|
43028
|
+
padding: 0.5rem 0;
|
|
43029
|
+
}
|
|
43030
|
+
|
|
43031
|
+
h3 {
|
|
43032
|
+
padding: 0.3rem 0.75rem;
|
|
43033
|
+
font-size: 0.65rem;
|
|
43034
|
+
font-weight: 500;
|
|
43035
|
+
text-transform: uppercase;
|
|
43036
|
+
letter-spacing: 0.08em;
|
|
43037
|
+
color: #888;
|
|
43038
|
+
margin: 0;
|
|
43039
|
+
margin-top: 0.5rem;
|
|
43040
|
+
background: rgba(59, 130, 246, 0.03);
|
|
43041
|
+
border-bottom: 1px solid var(--border);
|
|
43042
|
+
border-top: 1px solid var(--border);
|
|
43043
|
+
}
|
|
43044
|
+
|
|
43045
|
+
h3:first-child {
|
|
43046
|
+
margin-top: 0;
|
|
43002
43047
|
}
|
|
43003
43048
|
|
|
43004
43049
|
.material-symbols-outlined {
|
|
43005
43050
|
font-family: 'Material Symbols Outlined';
|
|
43006
43051
|
font-weight: normal;
|
|
43007
43052
|
font-style: normal;
|
|
43008
|
-
font-size:
|
|
43053
|
+
font-size: 16px;
|
|
43009
43054
|
display: inline-block;
|
|
43010
43055
|
line-height: 1;
|
|
43011
43056
|
text-transform: none;
|
|
@@ -43013,51 +43058,75 @@ var WccSidebar = class extends DeesElement {
|
|
|
43013
43058
|
word-wrap: normal;
|
|
43014
43059
|
white-space: nowrap;
|
|
43015
43060
|
direction: ltr;
|
|
43016
|
-
font-variation-settings: 'FILL'
|
|
43061
|
+
font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
|
|
43062
|
+
opacity: 0.5;
|
|
43017
43063
|
}
|
|
43018
43064
|
|
|
43019
43065
|
.selectOption {
|
|
43020
43066
|
user-select: none;
|
|
43021
43067
|
position: relative;
|
|
43022
|
-
|
|
43023
|
-
padding:
|
|
43024
|
-
transition: all 0.
|
|
43068
|
+
margin: 0.125rem 0.5rem;
|
|
43069
|
+
padding: 0.5rem 0.75rem;
|
|
43070
|
+
transition: all 0.15s ease;
|
|
43025
43071
|
display: grid;
|
|
43026
|
-
grid-template-columns:
|
|
43072
|
+
grid-template-columns: 20px 1fr;
|
|
43073
|
+
align-items: center;
|
|
43074
|
+
gap: 0.5rem;
|
|
43075
|
+
border-radius: var(--radius);
|
|
43076
|
+
cursor: pointer;
|
|
43077
|
+
font-size: 0.75rem;
|
|
43078
|
+
color: #999;
|
|
43079
|
+
background: transparent;
|
|
43027
43080
|
}
|
|
43081
|
+
|
|
43028
43082
|
.selectOption:hover {
|
|
43029
|
-
|
|
43030
|
-
color: #
|
|
43031
|
-
|
|
43083
|
+
background: rgba(59, 130, 246, 0.05);
|
|
43084
|
+
color: #bbb;
|
|
43085
|
+
}
|
|
43086
|
+
|
|
43087
|
+
.selectOption:hover .material-symbols-outlined {
|
|
43088
|
+
opacity: 0.7;
|
|
43032
43089
|
}
|
|
43033
43090
|
|
|
43034
43091
|
.selectOption.selected {
|
|
43035
|
-
background:
|
|
43092
|
+
background: rgba(59, 130, 246, 0.15);
|
|
43093
|
+
color: var(--primary);
|
|
43094
|
+
}
|
|
43095
|
+
|
|
43096
|
+
.selectOption.selected .material-symbols-outlined {
|
|
43097
|
+
opacity: 1;
|
|
43098
|
+
font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
43036
43099
|
}
|
|
43037
43100
|
|
|
43038
43101
|
.selectOption.selected:hover {
|
|
43039
|
-
|
|
43040
|
-
|
|
43102
|
+
background: rgba(59, 130, 246, 0.2);
|
|
43103
|
+
color: var(--primary);
|
|
43041
43104
|
}
|
|
43042
43105
|
|
|
43043
|
-
.selectOption .
|
|
43044
|
-
color: #666;
|
|
43106
|
+
.selectOption .text {
|
|
43045
43107
|
display: block;
|
|
43046
|
-
|
|
43108
|
+
overflow: hidden;
|
|
43109
|
+
text-overflow: ellipsis;
|
|
43110
|
+
white-space: nowrap;
|
|
43111
|
+
font-weight: 400;
|
|
43047
43112
|
}
|
|
43048
43113
|
|
|
43049
|
-
|
|
43050
|
-
|
|
43114
|
+
::-webkit-scrollbar {
|
|
43115
|
+
width: 8px;
|
|
43051
43116
|
}
|
|
43052
43117
|
|
|
43053
|
-
|
|
43054
|
-
|
|
43055
|
-
word-wrap: break-word;
|
|
43056
|
-
word-break: break-all;
|
|
43057
|
-
max-width: 100%;
|
|
43118
|
+
::-webkit-scrollbar-track {
|
|
43119
|
+
background: transparent;
|
|
43058
43120
|
}
|
|
43059
43121
|
|
|
43060
|
-
|
|
43122
|
+
::-webkit-scrollbar-thumb {
|
|
43123
|
+
background: rgba(255, 255, 255, 0.1);
|
|
43124
|
+
border-radius: 4px;
|
|
43125
|
+
}
|
|
43126
|
+
|
|
43127
|
+
::-webkit-scrollbar-thumb:hover {
|
|
43128
|
+
background: rgba(255, 255, 255, 0.2);
|
|
43129
|
+
}
|
|
43061
43130
|
</style>
|
|
43062
43131
|
<div class="menu">
|
|
43063
43132
|
<h3>Pages</h3>
|
|
@@ -43150,32 +43219,56 @@ var WccProperties = class extends DeesElement {
|
|
|
43150
43219
|
this.selectedTheme = "dark";
|
|
43151
43220
|
this.warning = null;
|
|
43152
43221
|
this.propertyContent = [];
|
|
43222
|
+
this.editingProperties = [];
|
|
43223
|
+
this.editorHeight = 300;
|
|
43153
43224
|
}
|
|
43154
43225
|
render() {
|
|
43155
43226
|
return x`
|
|
43156
43227
|
<style>
|
|
43157
43228
|
:host {
|
|
43158
|
-
|
|
43229
|
+
/* CSS Variables - Always dark theme */
|
|
43230
|
+
--background: #0a0a0a;
|
|
43231
|
+
--foreground: #e5e5e5;
|
|
43232
|
+
--card: #0f0f0f;
|
|
43233
|
+
--card-foreground: #f0f0f0;
|
|
43234
|
+
--muted: #1a1a1a;
|
|
43235
|
+
--muted-foreground: #666;
|
|
43236
|
+
--accent: #222;
|
|
43237
|
+
--accent-foreground: #fff;
|
|
43238
|
+
--border: rgba(255, 255, 255, 0.06);
|
|
43239
|
+
--input: #141414;
|
|
43240
|
+
--primary: #3b82f6;
|
|
43241
|
+
--primary-foreground: #fff;
|
|
43242
|
+
--ring: #3b82f6;
|
|
43243
|
+
--radius: 4px;
|
|
43244
|
+
--radius-sm: 2px;
|
|
43245
|
+
--radius-md: 4px;
|
|
43246
|
+
--radius-lg: 6px;
|
|
43247
|
+
|
|
43248
|
+
/* Base styles */
|
|
43249
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
43159
43250
|
box-sizing: border-box;
|
|
43160
43251
|
position: absolute;
|
|
43161
43252
|
left: 200px;
|
|
43162
|
-
height:
|
|
43253
|
+
height: ${this.editingProperties.length > 0 ? 100 + this.editorHeight : 100}px;
|
|
43163
43254
|
bottom: 0px;
|
|
43164
43255
|
right: 0px;
|
|
43165
43256
|
overflow: hidden;
|
|
43166
|
-
background:
|
|
43167
|
-
color:
|
|
43257
|
+
background: var(--background);
|
|
43258
|
+
color: var(--foreground);
|
|
43168
43259
|
}
|
|
43169
43260
|
.grid {
|
|
43170
43261
|
display: grid;
|
|
43171
|
-
grid-template-columns:
|
|
43262
|
+
grid-template-columns: 1fr 150px 300px 70px;
|
|
43263
|
+
height: 100%;
|
|
43172
43264
|
}
|
|
43173
43265
|
.properties {
|
|
43174
|
-
|
|
43175
|
-
height: 100px;
|
|
43266
|
+
background: transparent;
|
|
43176
43267
|
overflow-y: auto;
|
|
43177
43268
|
display: grid;
|
|
43178
|
-
grid-template-columns:
|
|
43269
|
+
grid-template-columns: repeat(3, 1fr);
|
|
43270
|
+
border-right: 1px solid var(--border);
|
|
43271
|
+
align-content: start;
|
|
43179
43272
|
}
|
|
43180
43273
|
|
|
43181
43274
|
.material-symbols-outlined {
|
|
@@ -43194,149 +43287,540 @@ var WccProperties = class extends DeesElement {
|
|
|
43194
43287
|
}
|
|
43195
43288
|
|
|
43196
43289
|
.properties .property {
|
|
43197
|
-
padding:
|
|
43198
|
-
background:
|
|
43199
|
-
border: 1px solid
|
|
43290
|
+
padding: 0.4rem;
|
|
43291
|
+
background: transparent;
|
|
43292
|
+
border-right: 1px solid var(--border);
|
|
43293
|
+
border-bottom: 1px solid var(--border);
|
|
43294
|
+
transition: all 0.15s ease;
|
|
43295
|
+
}
|
|
43296
|
+
|
|
43297
|
+
.properties .property:hover {
|
|
43298
|
+
background: rgba(255, 255, 255, 0.02);
|
|
43299
|
+
}
|
|
43300
|
+
|
|
43301
|
+
.properties .property-label {
|
|
43302
|
+
font-size: 0.65rem;
|
|
43303
|
+
font-weight: 400;
|
|
43304
|
+
color: #888;
|
|
43305
|
+
margin-bottom: 0.2rem;
|
|
43306
|
+
text-transform: capitalize;
|
|
43307
|
+
white-space: nowrap;
|
|
43308
|
+
overflow: hidden;
|
|
43309
|
+
text-overflow: ellipsis;
|
|
43200
43310
|
}
|
|
43201
43311
|
|
|
43202
|
-
.properties input,
|
|
43312
|
+
.properties input[type="text"],
|
|
43313
|
+
.properties input[type="number"],
|
|
43203
43314
|
.properties select {
|
|
43204
43315
|
display: block;
|
|
43205
43316
|
width: 100%;
|
|
43206
|
-
|
|
43207
|
-
|
|
43208
|
-
|
|
43317
|
+
padding: 0.25rem 0.4rem;
|
|
43318
|
+
background: var(--input);
|
|
43319
|
+
border: 1px solid transparent;
|
|
43320
|
+
color: var(--foreground);
|
|
43321
|
+
border-radius: var(--radius-sm);
|
|
43322
|
+
font-size: 0.7rem;
|
|
43323
|
+
transition: all 0.15s ease;
|
|
43324
|
+
outline: none;
|
|
43325
|
+
}
|
|
43326
|
+
|
|
43327
|
+
.properties input[type="text"]:focus,
|
|
43328
|
+
.properties input[type="number"]:focus,
|
|
43329
|
+
.properties select:focus {
|
|
43330
|
+
border-color: var(--primary);
|
|
43331
|
+
background: rgba(59, 130, 246, 0.1);
|
|
43332
|
+
}
|
|
43333
|
+
|
|
43334
|
+
.properties input[type="checkbox"] {
|
|
43335
|
+
width: 1rem;
|
|
43336
|
+
height: 1rem;
|
|
43337
|
+
cursor: pointer;
|
|
43338
|
+
accent-color: var(--primary);
|
|
43339
|
+
}
|
|
43340
|
+
|
|
43341
|
+
.properties .editor-button {
|
|
43342
|
+
padding: 0.25rem 0.5rem;
|
|
43343
|
+
background: var(--input);
|
|
43344
|
+
border: 1px solid transparent;
|
|
43345
|
+
border-radius: var(--radius-sm);
|
|
43346
|
+
color: var(--foreground);
|
|
43347
|
+
font-size: 0.7rem;
|
|
43348
|
+
cursor: pointer;
|
|
43349
|
+
transition: all 0.15s ease;
|
|
43350
|
+
text-align: center;
|
|
43351
|
+
}
|
|
43352
|
+
|
|
43353
|
+
.properties .editor-button:hover {
|
|
43354
|
+
border-color: var(--primary);
|
|
43355
|
+
background: rgba(59, 130, 246, 0.1);
|
|
43209
43356
|
}
|
|
43210
43357
|
|
|
43211
43358
|
.viewportSelector,
|
|
43212
43359
|
.themeSelector {
|
|
43213
43360
|
user-select: none;
|
|
43214
|
-
|
|
43361
|
+
background: transparent;
|
|
43362
|
+
display: flex;
|
|
43363
|
+
flex-direction: column;
|
|
43364
|
+
border-right: 1px solid var(--border);
|
|
43215
43365
|
}
|
|
43216
43366
|
.selectorButtons2 {
|
|
43217
43367
|
display: grid;
|
|
43218
|
-
grid-template-columns:
|
|
43368
|
+
grid-template-columns: 1fr 1fr;
|
|
43369
|
+
flex: 1;
|
|
43219
43370
|
}
|
|
43220
43371
|
.selectorButtons4 {
|
|
43221
43372
|
display: grid;
|
|
43222
|
-
grid-template-columns:
|
|
43373
|
+
grid-template-columns: repeat(4, 1fr);
|
|
43374
|
+
flex: 1;
|
|
43223
43375
|
}
|
|
43224
43376
|
.button {
|
|
43225
|
-
|
|
43377
|
+
display: flex;
|
|
43378
|
+
flex-direction: column;
|
|
43379
|
+
align-items: center;
|
|
43380
|
+
justify-content: center;
|
|
43381
|
+
padding: 0.5rem 0.25rem;
|
|
43226
43382
|
text-align: center;
|
|
43227
|
-
|
|
43228
|
-
|
|
43383
|
+
background: transparent;
|
|
43384
|
+
border: 1px solid var(--border);
|
|
43385
|
+
transition: all 0.15s ease;
|
|
43386
|
+
cursor: pointer;
|
|
43387
|
+
font-size: 0.65rem;
|
|
43388
|
+
gap: 0.2rem;
|
|
43389
|
+
color: #999;
|
|
43229
43390
|
}
|
|
43391
|
+
|
|
43230
43392
|
.button:hover {
|
|
43231
|
-
|
|
43232
|
-
|
|
43393
|
+
background: rgba(59, 130, 246, 0.05);
|
|
43394
|
+
color: #bbb;
|
|
43233
43395
|
}
|
|
43234
43396
|
|
|
43235
43397
|
.button.selected {
|
|
43236
|
-
background:
|
|
43398
|
+
background: rgba(59, 130, 246, 0.15);
|
|
43399
|
+
color: var(--primary);
|
|
43400
|
+
border-color: rgba(59, 130, 246, 0.3);
|
|
43237
43401
|
}
|
|
43238
43402
|
|
|
43239
43403
|
.button.selected:hover {
|
|
43240
|
-
|
|
43241
|
-
|
|
43404
|
+
background: rgba(59, 130, 246, 0.2);
|
|
43405
|
+
}
|
|
43406
|
+
|
|
43407
|
+
.button .material-symbols-outlined {
|
|
43408
|
+
font-size: 18px;
|
|
43409
|
+
font-variation-settings: 'FILL' 0, 'wght' 300;
|
|
43410
|
+
}
|
|
43411
|
+
|
|
43412
|
+
.button.selected .material-symbols-outlined {
|
|
43413
|
+
font-variation-settings: 'FILL' 1, 'wght' 400;
|
|
43242
43414
|
}
|
|
43243
43415
|
|
|
43244
43416
|
.panelheading {
|
|
43245
|
-
padding:
|
|
43246
|
-
font-weight:
|
|
43247
|
-
|
|
43248
|
-
|
|
43417
|
+
padding: 0.3rem 0.5rem;
|
|
43418
|
+
font-weight: 500;
|
|
43419
|
+
font-size: 0.65rem;
|
|
43420
|
+
background: rgba(59, 130, 246, 0.03);
|
|
43421
|
+
border-bottom: 1px solid var(--border);
|
|
43422
|
+
color: #888;
|
|
43423
|
+
text-transform: uppercase;
|
|
43424
|
+
letter-spacing: 0.08em;
|
|
43249
43425
|
}
|
|
43250
43426
|
.docs {
|
|
43251
|
-
|
|
43252
|
-
|
|
43427
|
+
display: flex;
|
|
43428
|
+
align-items: center;
|
|
43429
|
+
justify-content: center;
|
|
43253
43430
|
text-transform: uppercase;
|
|
43431
|
+
background: transparent;
|
|
43432
|
+
cursor: pointer;
|
|
43433
|
+
font-size: 0.65rem;
|
|
43434
|
+
font-weight: 500;
|
|
43435
|
+
letter-spacing: 0.08em;
|
|
43436
|
+
transition: all 0.15s ease;
|
|
43437
|
+
color: #666;
|
|
43254
43438
|
}
|
|
43255
43439
|
|
|
43256
43440
|
.docs:hover {
|
|
43257
|
-
|
|
43258
|
-
|
|
43441
|
+
background: rgba(59, 130, 246, 0.05);
|
|
43442
|
+
color: #999;
|
|
43259
43443
|
}
|
|
43260
43444
|
|
|
43261
43445
|
.warning {
|
|
43262
43446
|
position: absolute;
|
|
43263
|
-
background:
|
|
43264
|
-
color: #
|
|
43265
|
-
top:
|
|
43266
|
-
bottom:
|
|
43267
|
-
left:
|
|
43268
|
-
right: 520px;
|
|
43269
|
-
|
|
43270
|
-
|
|
43271
|
-
|
|
43447
|
+
background: rgba(20, 20, 20, 0.8);
|
|
43448
|
+
color: #888;
|
|
43449
|
+
top: 0.5rem;
|
|
43450
|
+
bottom: 0.5rem;
|
|
43451
|
+
left: 0.5rem;
|
|
43452
|
+
right: calc(520px + 0.5rem);
|
|
43453
|
+
display: flex;
|
|
43454
|
+
align-items: center;
|
|
43455
|
+
justify-content: center;
|
|
43456
|
+
padding: 1.5rem;
|
|
43457
|
+
font-size: 0.85rem;
|
|
43458
|
+
border-radius: var(--radius-md);
|
|
43459
|
+
border: 1px solid var(--border);
|
|
43460
|
+
backdrop-filter: blur(8px);
|
|
43461
|
+
}
|
|
43462
|
+
|
|
43463
|
+
.advanced-editor-container {
|
|
43464
|
+
position: absolute;
|
|
43465
|
+
left: 0;
|
|
43466
|
+
right: 0;
|
|
43467
|
+
top: 0;
|
|
43468
|
+
height: ${this.editorHeight}px;
|
|
43469
|
+
background: #050505;
|
|
43470
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
43471
|
+
display: flex;
|
|
43472
|
+
flex-direction: column;
|
|
43473
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
43474
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
|
|
43475
|
+
}
|
|
43476
|
+
|
|
43477
|
+
.editor-header-bar {
|
|
43478
|
+
padding: 0.5rem 0.75rem;
|
|
43479
|
+
background: transparent;
|
|
43480
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
43481
|
+
display: flex;
|
|
43482
|
+
justify-content: space-between;
|
|
43483
|
+
align-items: center;
|
|
43484
|
+
height: 36px;
|
|
43485
|
+
}
|
|
43486
|
+
|
|
43487
|
+
.editor-header-title {
|
|
43488
|
+
font-size: 0.7rem;
|
|
43489
|
+
font-weight: 500;
|
|
43490
|
+
color: #666;
|
|
43491
|
+
text-transform: uppercase;
|
|
43492
|
+
letter-spacing: 0.08em;
|
|
43493
|
+
}
|
|
43494
|
+
|
|
43495
|
+
.editor-close-all {
|
|
43496
|
+
padding: 0.25rem 0.5rem;
|
|
43497
|
+
background: transparent;
|
|
43498
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
43499
|
+
border-radius: var(--radius-sm);
|
|
43500
|
+
color: #999;
|
|
43501
|
+
font-size: 0.65rem;
|
|
43502
|
+
font-weight: 500;
|
|
43503
|
+
cursor: pointer;
|
|
43504
|
+
transition: all 0.15s ease;
|
|
43505
|
+
}
|
|
43506
|
+
|
|
43507
|
+
.editor-close-all:hover {
|
|
43508
|
+
background: rgba(255, 255, 255, 0.05);
|
|
43509
|
+
border-color: rgba(255, 255, 255, 0.12);
|
|
43510
|
+
color: #f87171;
|
|
43511
|
+
}
|
|
43512
|
+
|
|
43513
|
+
.editors-container {
|
|
43514
|
+
flex: 1;
|
|
43515
|
+
display: flex;
|
|
43516
|
+
overflow-x: auto;
|
|
43517
|
+
overflow-y: hidden;
|
|
43518
|
+
gap: 0;
|
|
43519
|
+
background: rgba(255, 255, 255, 0.02);
|
|
43520
|
+
padding: 0.75rem;
|
|
43521
|
+
}
|
|
43522
|
+
|
|
43523
|
+
.editors-container::-webkit-scrollbar {
|
|
43524
|
+
height: 8px;
|
|
43525
|
+
}
|
|
43526
|
+
|
|
43527
|
+
.editors-container::-webkit-scrollbar-track {
|
|
43528
|
+
background: rgba(255, 255, 255, 0.02);
|
|
43529
|
+
border-radius: 4px;
|
|
43530
|
+
}
|
|
43531
|
+
|
|
43532
|
+
.editors-container::-webkit-scrollbar-thumb {
|
|
43533
|
+
background: rgba(255, 255, 255, 0.08);
|
|
43534
|
+
border-radius: 4px;
|
|
43535
|
+
}
|
|
43536
|
+
|
|
43537
|
+
.editors-container::-webkit-scrollbar-thumb:hover {
|
|
43538
|
+
background: rgba(255, 255, 255, 0.12);
|
|
43539
|
+
}
|
|
43540
|
+
|
|
43541
|
+
.editor-instance {
|
|
43542
|
+
min-width: 320px;
|
|
43543
|
+
flex: 1;
|
|
43544
|
+
max-width: 480px;
|
|
43545
|
+
background: rgba(10, 10, 10, 0.6);
|
|
43546
|
+
display: flex;
|
|
43547
|
+
flex-direction: column;
|
|
43548
|
+
border-radius: var(--radius);
|
|
43549
|
+
overflow: hidden;
|
|
43550
|
+
margin-right: 0.75rem;
|
|
43551
|
+
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
43552
|
+
transition: all 0.2s ease;
|
|
43553
|
+
}
|
|
43554
|
+
|
|
43555
|
+
.editor-instance:hover {
|
|
43556
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
43557
|
+
}
|
|
43558
|
+
|
|
43559
|
+
.editor-instance:last-child {
|
|
43560
|
+
margin-right: 0;
|
|
43561
|
+
}
|
|
43562
|
+
|
|
43563
|
+
.editor-header {
|
|
43564
|
+
padding: 0.5rem 0.75rem;
|
|
43565
|
+
background: rgba(255, 255, 255, 0.02);
|
|
43566
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
43567
|
+
display: flex;
|
|
43568
|
+
justify-content: space-between;
|
|
43569
|
+
align-items: center;
|
|
43570
|
+
height: 36px;
|
|
43571
|
+
}
|
|
43572
|
+
|
|
43573
|
+
.editor-title {
|
|
43574
|
+
font-size: 0.75rem;
|
|
43575
|
+
font-weight: 500;
|
|
43576
|
+
color: #999;
|
|
43577
|
+
overflow: hidden;
|
|
43578
|
+
text-overflow: ellipsis;
|
|
43579
|
+
white-space: nowrap;
|
|
43580
|
+
font-family: 'Consolas', 'Monaco', monospace;
|
|
43581
|
+
}
|
|
43582
|
+
|
|
43583
|
+
.editor-actions {
|
|
43584
|
+
display: flex;
|
|
43585
|
+
gap: 0.25rem;
|
|
43586
|
+
}
|
|
43587
|
+
|
|
43588
|
+
.editor-button {
|
|
43589
|
+
width: 24px;
|
|
43590
|
+
height: 24px;
|
|
43591
|
+
padding: 0;
|
|
43592
|
+
background: transparent;
|
|
43593
|
+
border: none;
|
|
43594
|
+
color: #666;
|
|
43595
|
+
font-size: 1rem;
|
|
43596
|
+
cursor: pointer;
|
|
43597
|
+
transition: all 0.15s ease;
|
|
43598
|
+
border-radius: var(--radius-sm);
|
|
43599
|
+
display: flex;
|
|
43600
|
+
align-items: center;
|
|
43601
|
+
justify-content: center;
|
|
43602
|
+
}
|
|
43603
|
+
|
|
43604
|
+
.editor-button:hover {
|
|
43605
|
+
background: rgba(255, 255, 255, 0.05);
|
|
43606
|
+
color: #999;
|
|
43607
|
+
}
|
|
43608
|
+
|
|
43609
|
+
.editor-button.primary {
|
|
43610
|
+
color: #4ade80;
|
|
43611
|
+
}
|
|
43612
|
+
|
|
43613
|
+
.editor-button.primary:hover {
|
|
43614
|
+
background: rgba(74, 222, 128, 0.1);
|
|
43615
|
+
}
|
|
43616
|
+
|
|
43617
|
+
.editor-content {
|
|
43618
|
+
flex: 1;
|
|
43619
|
+
display: flex;
|
|
43620
|
+
flex-direction: column;
|
|
43621
|
+
overflow: hidden;
|
|
43622
|
+
min-height: 0;
|
|
43623
|
+
position: relative;
|
|
43624
|
+
}
|
|
43625
|
+
|
|
43626
|
+
.editor-textarea {
|
|
43627
|
+
width: 100%;
|
|
43628
|
+
height: 100%;
|
|
43629
|
+
background: transparent;
|
|
43630
|
+
border: none;
|
|
43631
|
+
color: #d0d0d0;
|
|
43632
|
+
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
|
|
43633
|
+
font-size: 0.8125rem;
|
|
43634
|
+
line-height: 1.6;
|
|
43635
|
+
padding: 0.75rem;
|
|
43636
|
+
resize: none;
|
|
43637
|
+
outline: none;
|
|
43638
|
+
transition: all 0.15s ease;
|
|
43639
|
+
overflow: auto;
|
|
43640
|
+
}
|
|
43641
|
+
|
|
43642
|
+
.editor-textarea:focus {
|
|
43643
|
+
background: rgba(255, 255, 255, 0.01);
|
|
43644
|
+
}
|
|
43645
|
+
|
|
43646
|
+
.editor-textarea::selection {
|
|
43647
|
+
background: rgba(59, 130, 246, 0.3);
|
|
43648
|
+
}
|
|
43649
|
+
|
|
43650
|
+
.editor-error {
|
|
43651
|
+
position: absolute;
|
|
43652
|
+
bottom: 0;
|
|
43653
|
+
left: 0;
|
|
43654
|
+
right: 0;
|
|
43655
|
+
padding: 0.5rem 0.75rem;
|
|
43656
|
+
background: rgba(239, 68, 68, 0.9);
|
|
43657
|
+
backdrop-filter: blur(4px);
|
|
43658
|
+
color: #fff;
|
|
43659
|
+
font-size: 0.7rem;
|
|
43660
|
+
font-weight: 500;
|
|
43661
|
+
display: flex;
|
|
43662
|
+
align-items: center;
|
|
43663
|
+
gap: 0.375rem;
|
|
43664
|
+
border-top: 1px solid rgba(239, 68, 68, 0.5);
|
|
43665
|
+
}
|
|
43666
|
+
|
|
43667
|
+
.editor-error::before {
|
|
43668
|
+
content: '!';
|
|
43669
|
+
display: inline-flex;
|
|
43670
|
+
width: 16px;
|
|
43671
|
+
height: 16px;
|
|
43672
|
+
align-items: center;
|
|
43673
|
+
justify-content: center;
|
|
43674
|
+
background: rgba(255, 255, 255, 0.2);
|
|
43675
|
+
border-radius: 50%;
|
|
43676
|
+
font-size: 0.65rem;
|
|
43677
|
+
font-weight: bold;
|
|
43678
|
+
}
|
|
43679
|
+
|
|
43680
|
+
.main-content {
|
|
43681
|
+
position: absolute;
|
|
43682
|
+
left: 0;
|
|
43683
|
+
right: 0;
|
|
43684
|
+
bottom: 0;
|
|
43685
|
+
height: 100px;
|
|
43272
43686
|
}
|
|
43273
43687
|
</style>
|
|
43274
|
-
|
|
43275
|
-
<div class="
|
|
43276
|
-
<div class="
|
|
43277
|
-
|
|
43688
|
+
${this.editingProperties.length > 0 ? x`
|
|
43689
|
+
<div class="advanced-editor-container">
|
|
43690
|
+
<div class="editor-header-bar">
|
|
43691
|
+
<div class="editor-header-title">Property Editors</div>
|
|
43692
|
+
<button class="editor-close-all" @click=${this.closeAllEditors}>
|
|
43693
|
+
Close All
|
|
43694
|
+
</button>
|
|
43695
|
+
</div>
|
|
43696
|
+
<div class="editors-container">
|
|
43697
|
+
${this.editingProperties.length === 0 ? x`
|
|
43698
|
+
<div style="
|
|
43699
|
+
flex: 1;
|
|
43700
|
+
display: flex;
|
|
43701
|
+
align-items: center;
|
|
43702
|
+
justify-content: center;
|
|
43703
|
+
color: #666;
|
|
43704
|
+
font-size: 0.875rem;
|
|
43705
|
+
text-align: center;
|
|
43706
|
+
padding: 2rem;
|
|
43707
|
+
">
|
|
43708
|
+
<div>
|
|
43709
|
+
<div style="margin-bottom: 0.5rem; font-size: 1.5rem; opacity: 0.5;">{ }</div>
|
|
43710
|
+
<div>No properties being edited</div>
|
|
43711
|
+
<div style="font-size: 0.75rem; margin-top: 0.25rem; opacity: 0.7;">Click "Edit Object/Array" buttons to start editing</div>
|
|
43712
|
+
</div>
|
|
43713
|
+
</div>
|
|
43714
|
+
` : null}
|
|
43715
|
+
${this.editingProperties.map((prop) => x`
|
|
43716
|
+
<div class="editor-instance">
|
|
43717
|
+
<div class="editor-header">
|
|
43718
|
+
<div class="editor-title">${prop.name}</div>
|
|
43719
|
+
<div class="editor-actions">
|
|
43720
|
+
<button class="editor-button" @click=${() => this.handleEditorCancel(prop.id)}>✕</button>
|
|
43721
|
+
<button class="editor-button primary" @click=${() => this.handleEditorSave(prop.id)}>✓</button>
|
|
43722
|
+
</div>
|
|
43723
|
+
</div>
|
|
43724
|
+
<div class="editor-content">
|
|
43725
|
+
<textarea
|
|
43726
|
+
class="editor-textarea"
|
|
43727
|
+
.value=${prop.editorValue}
|
|
43728
|
+
@input=${(e8) => {
|
|
43729
|
+
const editor = this.editingProperties.find((p5) => p5.id === prop.id);
|
|
43730
|
+
if (editor) {
|
|
43731
|
+
editor.editorValue = e8.target.value;
|
|
43732
|
+
editor.editorError = "";
|
|
43733
|
+
this.requestUpdate();
|
|
43734
|
+
}
|
|
43735
|
+
}}
|
|
43736
|
+
@keydown=${(e8) => {
|
|
43737
|
+
if (e8.key === "Tab") {
|
|
43738
|
+
e8.preventDefault();
|
|
43739
|
+
const target = e8.target;
|
|
43740
|
+
const start = target.selectionStart;
|
|
43741
|
+
const end = target.selectionEnd;
|
|
43742
|
+
const value2 = target.value;
|
|
43743
|
+
target.value = value2.substring(0, start) + " " + value2.substring(end);
|
|
43744
|
+
target.selectionStart = target.selectionEnd = start + 2;
|
|
43745
|
+
}
|
|
43746
|
+
}}
|
|
43747
|
+
></textarea>
|
|
43748
|
+
${prop.editorError ? x`
|
|
43749
|
+
<div class="editor-error">${prop.editorError}</div>
|
|
43750
|
+
` : null}
|
|
43751
|
+
</div>
|
|
43752
|
+
</div>
|
|
43753
|
+
`)}
|
|
43754
|
+
</div>
|
|
43278
43755
|
</div>
|
|
43279
|
-
|
|
43280
|
-
|
|
43281
|
-
|
|
43282
|
-
|
|
43283
|
-
|
|
43284
|
-
|
|
43756
|
+
` : null}
|
|
43757
|
+
<div class="main-content">
|
|
43758
|
+
<div class="grid">
|
|
43759
|
+
<div class="properties">
|
|
43760
|
+
${this.propertyContent}
|
|
43761
|
+
</div>
|
|
43762
|
+
<div class="themeSelector">
|
|
43763
|
+
<div class="panelheading">Theme</div>
|
|
43764
|
+
<div class="selectorButtons2">
|
|
43765
|
+
<div
|
|
43766
|
+
class="button ${this.selectedTheme === "dark" ? "selected" : null}"
|
|
43767
|
+
@click=${() => {
|
|
43285
43768
|
this.selectTheme("dark");
|
|
43286
43769
|
}}
|
|
43287
|
-
|
|
43288
|
-
|
|
43289
|
-
|
|
43290
|
-
|
|
43291
|
-
|
|
43292
|
-
|
|
43770
|
+
>
|
|
43771
|
+
Dark<i class="material-symbols-outlined">brightness_3</i>
|
|
43772
|
+
</div>
|
|
43773
|
+
<div
|
|
43774
|
+
class="button ${this.selectedTheme === "bright" ? "selected" : null}"
|
|
43775
|
+
@click=${() => {
|
|
43293
43776
|
this.selectTheme("bright");
|
|
43294
43777
|
}}
|
|
43295
|
-
|
|
43296
|
-
|
|
43778
|
+
>
|
|
43779
|
+
Bright<i class="material-symbols-outlined">flare</i>
|
|
43780
|
+
</div>
|
|
43297
43781
|
</div>
|
|
43298
43782
|
</div>
|
|
43299
|
-
|
|
43300
|
-
|
|
43301
|
-
|
|
43302
|
-
|
|
43303
|
-
|
|
43304
|
-
|
|
43305
|
-
@click=${() => {
|
|
43783
|
+
<div class="viewportSelector">
|
|
43784
|
+
<div class="panelheading">Viewport</div>
|
|
43785
|
+
<div class="selectorButtons4">
|
|
43786
|
+
<div
|
|
43787
|
+
class="button ${this.selectedViewport === "phone" ? "selected" : null}"
|
|
43788
|
+
@click=${() => {
|
|
43306
43789
|
this.selectViewport("phone");
|
|
43307
43790
|
}}
|
|
43308
|
-
|
|
43309
|
-
|
|
43310
|
-
|
|
43311
|
-
|
|
43312
|
-
|
|
43313
|
-
|
|
43791
|
+
>
|
|
43792
|
+
Phone<i class="material-symbols-outlined">smartphone</i>
|
|
43793
|
+
</div>
|
|
43794
|
+
<div
|
|
43795
|
+
class="button ${this.selectedViewport === "phablet" ? "selected" : null}"
|
|
43796
|
+
@click=${() => {
|
|
43314
43797
|
this.selectViewport("phablet");
|
|
43315
43798
|
}}
|
|
43316
|
-
|
|
43317
|
-
|
|
43318
|
-
|
|
43319
|
-
|
|
43320
|
-
|
|
43321
|
-
|
|
43799
|
+
>
|
|
43800
|
+
Phablet<i class="material-symbols-outlined">smartphone</i>
|
|
43801
|
+
</div>
|
|
43802
|
+
<div
|
|
43803
|
+
class="button ${this.selectedViewport === "tablet" ? "selected" : null}"
|
|
43804
|
+
@click=${() => {
|
|
43322
43805
|
this.selectViewport("tablet");
|
|
43323
43806
|
}}
|
|
43324
|
-
|
|
43325
|
-
|
|
43326
|
-
|
|
43327
|
-
|
|
43328
|
-
|
|
43329
|
-
|
|
43807
|
+
>
|
|
43808
|
+
Tablet<i class="material-symbols-outlined">tablet</i>
|
|
43809
|
+
</div>
|
|
43810
|
+
<div
|
|
43811
|
+
class="button ${this.selectedViewport === "desktop" || this.selectedViewport === "native" ? "selected" : null}"
|
|
43812
|
+
@click=${() => {
|
|
43330
43813
|
this.selectViewport("native");
|
|
43331
43814
|
}}
|
|
43332
|
-
|
|
43333
|
-
|
|
43815
|
+
>
|
|
43816
|
+
Desktop<i class="material-symbols-outlined">desktop_windows</i>
|
|
43817
|
+
</div>
|
|
43334
43818
|
</div>
|
|
43335
43819
|
</div>
|
|
43820
|
+
<div class="docs">Docs</div>
|
|
43336
43821
|
</div>
|
|
43337
|
-
|
|
43822
|
+
${this.warning ? x`<div class="warning">${this.warning}</div>` : null}
|
|
43338
43823
|
</div>
|
|
43339
|
-
${this.warning ? x`<div class="warning">${this.warning}</div>` : null}
|
|
43340
43824
|
`;
|
|
43341
43825
|
}
|
|
43342
43826
|
async findElementRecursively(container, elementClass, maxDepth = 5) {
|
|
@@ -43447,7 +43931,7 @@ var WccProperties = class extends DeesElement {
|
|
|
43447
43931
|
propertyArray.push(
|
|
43448
43932
|
x`
|
|
43449
43933
|
<div class="property">
|
|
43450
|
-
|
|
43934
|
+
<div class="property-label">${key2} (${propertyTypeString})</div>
|
|
43451
43935
|
${(() => {
|
|
43452
43936
|
switch (propertyTypeString) {
|
|
43453
43937
|
case "Boolean":
|
|
@@ -43492,6 +43976,17 @@ var WccProperties = class extends DeesElement {
|
|
|
43492
43976
|
`;
|
|
43493
43977
|
})}
|
|
43494
43978
|
</select>`;
|
|
43979
|
+
case "Object":
|
|
43980
|
+
case "Array":
|
|
43981
|
+
return x`<button
|
|
43982
|
+
class="editor-button"
|
|
43983
|
+
style="width: 100%; margin-top: 0.25rem;"
|
|
43984
|
+
@click="${() => this.openAdvancedEditor(key2, firstFoundInstantiatedElement[key2], firstFoundInstantiatedElement)}"
|
|
43985
|
+
>
|
|
43986
|
+
Edit ${propertyTypeString}
|
|
43987
|
+
</button>`;
|
|
43988
|
+
default:
|
|
43989
|
+
return x`<div style="color: #666; font-size: 0.7rem;">Unsupported type</div>`;
|
|
43495
43990
|
}
|
|
43496
43991
|
})()}
|
|
43497
43992
|
</div>
|
|
@@ -43537,6 +44032,73 @@ var WccProperties = class extends DeesElement {
|
|
|
43537
44032
|
);
|
|
43538
44033
|
this.dashboardRef.buildUrl();
|
|
43539
44034
|
}
|
|
44035
|
+
openAdvancedEditor(propertyName, value2, element4) {
|
|
44036
|
+
const existingEditor = this.editingProperties.find((p5) => p5.name === propertyName && p5.element === element4);
|
|
44037
|
+
if (existingEditor) {
|
|
44038
|
+
return;
|
|
44039
|
+
}
|
|
44040
|
+
const newEditor = {
|
|
44041
|
+
id: `${propertyName}-${Date.now()}`,
|
|
44042
|
+
name: propertyName,
|
|
44043
|
+
value: value2,
|
|
44044
|
+
element: element4,
|
|
44045
|
+
editorValue: JSON.stringify(value2, null, 2),
|
|
44046
|
+
editorError: ""
|
|
44047
|
+
};
|
|
44048
|
+
this.editingProperties = [...this.editingProperties, newEditor];
|
|
44049
|
+
if (this.editingProperties.length === 1) {
|
|
44050
|
+
this.dispatchEvent(
|
|
44051
|
+
new CustomEvent("editorStateChanged", {
|
|
44052
|
+
detail: { isOpen: true },
|
|
44053
|
+
bubbles: true
|
|
44054
|
+
})
|
|
44055
|
+
);
|
|
44056
|
+
}
|
|
44057
|
+
}
|
|
44058
|
+
handleEditorSave(editorId) {
|
|
44059
|
+
const editor = this.editingProperties.find((p5) => p5.id === editorId);
|
|
44060
|
+
if (!editor) return;
|
|
44061
|
+
try {
|
|
44062
|
+
const parsedValue = JSON.parse(editor.editorValue);
|
|
44063
|
+
editor.element[editor.name] = parsedValue;
|
|
44064
|
+
this.editingProperties = this.editingProperties.filter((p5) => p5.id !== editorId);
|
|
44065
|
+
if (this.editingProperties.length === 0) {
|
|
44066
|
+
this.dispatchEvent(
|
|
44067
|
+
new CustomEvent("editorStateChanged", {
|
|
44068
|
+
detail: { isOpen: false },
|
|
44069
|
+
bubbles: true
|
|
44070
|
+
})
|
|
44071
|
+
);
|
|
44072
|
+
}
|
|
44073
|
+
this.createProperties();
|
|
44074
|
+
} catch (error) {
|
|
44075
|
+
const editorIndex = this.editingProperties.findIndex((p5) => p5.id === editorId);
|
|
44076
|
+
if (editorIndex !== -1) {
|
|
44077
|
+
this.editingProperties[editorIndex].editorError = `Invalid JSON: ${error.message}`;
|
|
44078
|
+
this.requestUpdate();
|
|
44079
|
+
}
|
|
44080
|
+
}
|
|
44081
|
+
}
|
|
44082
|
+
handleEditorCancel(editorId) {
|
|
44083
|
+
this.editingProperties = this.editingProperties.filter((p5) => p5.id !== editorId);
|
|
44084
|
+
if (this.editingProperties.length === 0) {
|
|
44085
|
+
this.dispatchEvent(
|
|
44086
|
+
new CustomEvent("editorStateChanged", {
|
|
44087
|
+
detail: { isOpen: false },
|
|
44088
|
+
bubbles: true
|
|
44089
|
+
})
|
|
44090
|
+
);
|
|
44091
|
+
}
|
|
44092
|
+
}
|
|
44093
|
+
closeAllEditors() {
|
|
44094
|
+
this.editingProperties = [];
|
|
44095
|
+
this.dispatchEvent(
|
|
44096
|
+
new CustomEvent("editorStateChanged", {
|
|
44097
|
+
detail: { isOpen: false },
|
|
44098
|
+
bubbles: true
|
|
44099
|
+
})
|
|
44100
|
+
);
|
|
44101
|
+
}
|
|
43540
44102
|
};
|
|
43541
44103
|
__decorateClass([
|
|
43542
44104
|
n4({
|
|
@@ -43558,6 +44120,9 @@ __decorateClass([
|
|
|
43558
44120
|
__decorateClass([
|
|
43559
44121
|
r5()
|
|
43560
44122
|
], WccProperties.prototype, "propertyContent", 2);
|
|
44123
|
+
__decorateClass([
|
|
44124
|
+
r5()
|
|
44125
|
+
], WccProperties.prototype, "editingProperties", 2);
|
|
43561
44126
|
WccProperties = __decorateClass([
|
|
43562
44127
|
t4("wcc-properties")
|
|
43563
44128
|
], WccProperties);
|
|
@@ -43574,6 +44139,7 @@ var WccDashboard2 = class extends DeesElement {
|
|
|
43574
44139
|
this.frameScrollY = 0;
|
|
43575
44140
|
this.sidebarScrollY = 0;
|
|
43576
44141
|
this.scrollPositionsApplied = false;
|
|
44142
|
+
this.scrollListenersAttached = false;
|
|
43577
44143
|
if (elementsArg) {
|
|
43578
44144
|
this.elements = elementsArg;
|
|
43579
44145
|
console.log("got elements:");
|
|
@@ -43620,6 +44186,13 @@ var WccDashboard2 = class extends DeesElement {
|
|
|
43620
44186
|
}}
|
|
43621
44187
|
@selectedTheme=${(eventArg) => {
|
|
43622
44188
|
this.selectedTheme = eventArg.detail;
|
|
44189
|
+
}}
|
|
44190
|
+
@editorStateChanged=${async (eventArg) => {
|
|
44191
|
+
const frame = await this.wccFrame;
|
|
44192
|
+
if (frame) {
|
|
44193
|
+
frame.advancedEditorOpen = eventArg.detail.isOpen;
|
|
44194
|
+
frame.requestUpdate();
|
|
44195
|
+
}
|
|
43623
44196
|
}}
|
|
43624
44197
|
></wcc-properties>
|
|
43625
44198
|
<wcc-frame id="wccFrame" viewport=${this.selectedViewport}>
|
|
@@ -43721,6 +44294,9 @@ var WccDashboard2 = class extends DeesElement {
|
|
|
43721
44294
|
this.domtools.router.pushUrl(fullUrl);
|
|
43722
44295
|
}
|
|
43723
44296
|
async setupScrollListeners() {
|
|
44297
|
+
if (this.scrollListenersAttached) {
|
|
44298
|
+
return;
|
|
44299
|
+
}
|
|
43724
44300
|
const wccFrame = await this.wccFrame;
|
|
43725
44301
|
const wccSidebar = this.shadowRoot.querySelector("wcc-sidebar");
|
|
43726
44302
|
if (wccFrame) {
|
|
@@ -43728,6 +44304,7 @@ var WccDashboard2 = class extends DeesElement {
|
|
|
43728
44304
|
this.frameScrollY = wccFrame.scrollTop;
|
|
43729
44305
|
this.debouncedScrollUpdate();
|
|
43730
44306
|
});
|
|
44307
|
+
this.scrollListenersAttached = true;
|
|
43731
44308
|
}
|
|
43732
44309
|
if (wccSidebar) {
|
|
43733
44310
|
wccSidebar.addEventListener("scroll", () => {
|
|
@@ -43794,12 +44371,6 @@ __decorateClass([
|
|
|
43794
44371
|
__decorateClass([
|
|
43795
44372
|
n4()
|
|
43796
44373
|
], WccDashboard2.prototype, "warning", 2);
|
|
43797
|
-
__decorateClass([
|
|
43798
|
-
n4()
|
|
43799
|
-
], WccDashboard2.prototype, "frameScrollY", 2);
|
|
43800
|
-
__decorateClass([
|
|
43801
|
-
n4()
|
|
43802
|
-
], WccDashboard2.prototype, "sidebarScrollY", 2);
|
|
43803
44374
|
__decorateClass([
|
|
43804
44375
|
r6("wcc-frame")
|
|
43805
44376
|
], WccDashboard2.prototype, "wccFrame", 2);
|