@serve.zone/catalog 2.4.0 → 2.6.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_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/sz-config-section.d.ts +7 -0
- package/dist_ts_web/elements/sz-config-section.js +49 -2
- package/dist_ts_web/elements/sz-demo-view-config.js +2 -1
- package/dist_ts_web/elements/sz-service-create-view.d.ts +6 -0
- package/dist_ts_web/elements/sz-service-create-view.js +206 -2
- package/dist_watch/bundle.js +48 -5
- 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/sz-config-section.ts +49 -0
- package/ts_web/elements/sz-demo-view-config.ts +2 -1
- package/ts_web/elements/sz-service-create-view.ts +192 -0
package/dist_watch/bundle.js
CHANGED
|
@@ -106483,9 +106483,9 @@ __runInitializers(_init31, 1, SzRouteListView);
|
|
|
106483
106483
|
|
|
106484
106484
|
// ts_web/elements/sz-config-section.ts
|
|
106485
106485
|
init_dist_ts29();
|
|
106486
|
-
var _isCollapsed_dec, _collapsed_dec, _collapsible_dec, _fields_dec, _status_dec2, _icon_dec2, _subtitle_dec2, _title_dec2, _a32, _SzConfigSection_decorators, _init32, _title2, _subtitle2, _icon2, _status2, _fields, _collapsible, _collapsed, _isCollapsed;
|
|
106486
|
+
var _isCollapsed_dec, _collapsed_dec, _collapsible_dec, _actions_dec3, _fields_dec, _status_dec2, _icon_dec2, _subtitle_dec2, _title_dec2, _a32, _SzConfigSection_decorators, _init32, _title2, _subtitle2, _icon2, _status2, _fields, _actions3, _collapsible, _collapsed, _isCollapsed;
|
|
106487
106487
|
_SzConfigSection_decorators = [t4("sz-config-section")];
|
|
106488
|
-
var SzConfigSection = class extends (_a32 = DeesElement, _title_dec2 = [n5({ type: String })], _subtitle_dec2 = [n5({ type: String })], _icon_dec2 = [n5({ type: String })], _status_dec2 = [n5({ type: String })], _fields_dec = [n5({ type: Array })], _collapsible_dec = [n5({ type: Boolean })], _collapsed_dec = [n5({ type: Boolean })], _isCollapsed_dec = [r5()], _a32) {
|
|
106488
|
+
var SzConfigSection = class extends (_a32 = DeesElement, _title_dec2 = [n5({ type: String })], _subtitle_dec2 = [n5({ type: String })], _icon_dec2 = [n5({ type: String })], _status_dec2 = [n5({ type: String })], _fields_dec = [n5({ type: Array })], _actions_dec3 = [n5({ type: Array })], _collapsible_dec = [n5({ type: Boolean })], _collapsed_dec = [n5({ type: Boolean })], _isCollapsed_dec = [r5()], _a32) {
|
|
106489
106489
|
constructor() {
|
|
106490
106490
|
super(...arguments);
|
|
106491
106491
|
__privateAdd(this, _title2, __runInitializers(_init32, 8, this, "")), __runInitializers(_init32, 11, this);
|
|
@@ -106493,9 +106493,10 @@ var SzConfigSection = class extends (_a32 = DeesElement, _title_dec2 = [n5({ typ
|
|
|
106493
106493
|
__privateAdd(this, _icon2, __runInitializers(_init32, 16, this, "")), __runInitializers(_init32, 19, this);
|
|
106494
106494
|
__privateAdd(this, _status2, __runInitializers(_init32, 20, this, "enabled")), __runInitializers(_init32, 23, this);
|
|
106495
106495
|
__privateAdd(this, _fields, __runInitializers(_init32, 24, this, [])), __runInitializers(_init32, 27, this);
|
|
106496
|
-
__privateAdd(this,
|
|
106497
|
-
__privateAdd(this,
|
|
106498
|
-
__privateAdd(this,
|
|
106496
|
+
__privateAdd(this, _actions3, __runInitializers(_init32, 28, this, [])), __runInitializers(_init32, 31, this);
|
|
106497
|
+
__privateAdd(this, _collapsible, __runInitializers(_init32, 32, this, false)), __runInitializers(_init32, 35, this);
|
|
106498
|
+
__privateAdd(this, _collapsed, __runInitializers(_init32, 36, this, false)), __runInitializers(_init32, 39, this);
|
|
106499
|
+
__privateAdd(this, _isCollapsed, __runInitializers(_init32, 40, this, false)), __runInitializers(_init32, 43, this);
|
|
106499
106500
|
}
|
|
106500
106501
|
async connectedCallback() {
|
|
106501
106502
|
await super.connectedCallback();
|
|
@@ -106539,6 +106540,19 @@ var SzConfigSection = class extends (_a32 = DeesElement, _title_dec2 = [n5({ typ
|
|
|
106539
106540
|
${statusLabels[this.status] || this.status}
|
|
106540
106541
|
</span>
|
|
106541
106542
|
` : ""}
|
|
106543
|
+
${this.actions.map((action) => b2`
|
|
106544
|
+
<button class="header-action" @click=${(e11) => {
|
|
106545
|
+
e11.stopPropagation();
|
|
106546
|
+
this.dispatchEvent(new CustomEvent(action.event || "action", {
|
|
106547
|
+
detail: action.detail || { label: action.label },
|
|
106548
|
+
bubbles: true,
|
|
106549
|
+
composed: true
|
|
106550
|
+
}));
|
|
106551
|
+
}}>
|
|
106552
|
+
${action.icon ? b2`<dees-icon .icon=${action.icon}></dees-icon>` : ""}
|
|
106553
|
+
${action.label}
|
|
106554
|
+
</button>
|
|
106555
|
+
`)}
|
|
106542
106556
|
${this.collapsible ? b2`
|
|
106543
106557
|
<span class="chevron ${this.isCollapsed ? "collapsed" : ""}">
|
|
106544
106558
|
<dees-icon .icon=${"lucide:chevronDown"}></dees-icon>
|
|
@@ -106624,6 +106638,7 @@ _subtitle2 = new WeakMap();
|
|
|
106624
106638
|
_icon2 = new WeakMap();
|
|
106625
106639
|
_status2 = new WeakMap();
|
|
106626
106640
|
_fields = new WeakMap();
|
|
106641
|
+
_actions3 = new WeakMap();
|
|
106627
106642
|
_collapsible = new WeakMap();
|
|
106628
106643
|
_collapsed = new WeakMap();
|
|
106629
106644
|
_isCollapsed = new WeakMap();
|
|
@@ -106632,6 +106647,7 @@ __decorateElement(_init32, 4, "subtitle", _subtitle_dec2, SzConfigSection, _subt
|
|
|
106632
106647
|
__decorateElement(_init32, 4, "icon", _icon_dec2, SzConfigSection, _icon2);
|
|
106633
106648
|
__decorateElement(_init32, 4, "status", _status_dec2, SzConfigSection, _status2);
|
|
106634
106649
|
__decorateElement(_init32, 4, "fields", _fields_dec, SzConfigSection, _fields);
|
|
106650
|
+
__decorateElement(_init32, 4, "actions", _actions_dec3, SzConfigSection, _actions3);
|
|
106635
106651
|
__decorateElement(_init32, 4, "collapsible", _collapsible_dec, SzConfigSection, _collapsible);
|
|
106636
106652
|
__decorateElement(_init32, 4, "collapsed", _collapsed_dec, SzConfigSection, _collapsed);
|
|
106637
106653
|
__decorateElement(_init32, 4, "isCollapsed", _isCollapsed_dec, SzConfigSection, _isCollapsed);
|
|
@@ -106811,6 +106827,32 @@ __publicField(SzConfigSection, "styles", [
|
|
|
106811
106827
|
background: ${cssManager.bdTheme("#f59e0b", "#fbbf24")};
|
|
106812
106828
|
}
|
|
106813
106829
|
|
|
106830
|
+
/* Action buttons */
|
|
106831
|
+
.header-action {
|
|
106832
|
+
display: inline-flex;
|
|
106833
|
+
align-items: center;
|
|
106834
|
+
gap: 5px;
|
|
106835
|
+
padding: 4px 12px;
|
|
106836
|
+
border-radius: 6px;
|
|
106837
|
+
font-size: 12px;
|
|
106838
|
+
font-weight: 500;
|
|
106839
|
+
color: ${cssManager.bdTheme("#2563eb", "#60a5fa")};
|
|
106840
|
+
background: transparent;
|
|
106841
|
+
border: none;
|
|
106842
|
+
cursor: pointer;
|
|
106843
|
+
transition: background 150ms ease;
|
|
106844
|
+
white-space: nowrap;
|
|
106845
|
+
font-family: inherit;
|
|
106846
|
+
}
|
|
106847
|
+
|
|
106848
|
+
.header-action:hover {
|
|
106849
|
+
background: ${cssManager.bdTheme("rgba(37,99,235,0.08)", "rgba(96,165,250,0.1)")};
|
|
106850
|
+
}
|
|
106851
|
+
|
|
106852
|
+
.header-action dees-icon {
|
|
106853
|
+
font-size: 14px;
|
|
106854
|
+
}
|
|
106855
|
+
|
|
106814
106856
|
/* Chevron */
|
|
106815
106857
|
.chevron {
|
|
106816
106858
|
display: flex;
|
|
@@ -109158,6 +109200,7 @@ var SzDemoViewConfig = class extends (_a42 = DeesElement) {
|
|
|
109158
109200
|
icon="lucide:network"
|
|
109159
109201
|
status="enabled"
|
|
109160
109202
|
.fields=${proxyFields}
|
|
109203
|
+
.actions=${[{ label: "View Routes", icon: "lucide:arrow-right", event: "navigate", detail: { view: "routes" } }]}
|
|
109161
109204
|
></sz-config-section>
|
|
109162
109205
|
|
|
109163
109206
|
<sz-config-section
|