@design.estate/dees-catalog 24.4.0 → 24.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_bundle/bundle.js +105 -199
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-7CM7S6EQ.js → chunk-LRGVCS7F.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-R6EBIDCM.js → chunk-PKH6IGY6.js} +347 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-R6EBIDCM.js.map → chunk-PKH6IGY6.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-Z3DSEMNI.js → dees-modal-ORXOZADW.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-KPB3RVGL.js → dees-workspace-terminal-MUU2HDU3.js} +3 -3
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.d.ts +22 -1
- package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.demo.js +18 -1
- package/dist_ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.js +59 -13
- package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.d.ts +4 -13
- package/dist_ts_web/elements/00group-input/dees-input-tags/dees-input-tags.js +29 -174
- package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.d.ts +41 -0
- package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.js +16 -1
- package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.js +103 -3
- package/dist_ts_web/elements/00group-input/suggestion-list.d.ts +102 -0
- package/dist_ts_web/elements/00group-input/suggestion-list.js +300 -0
- package/package.json +2 -2
- package/readme.md +30 -2
- package/scripts/token-baseline.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.demo.ts +17 -0
- package/ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.ts +49 -12
- package/ts_web/elements/00group-input/dees-input-tags/dees-input-tags.ts +27 -171
- package/ts_web/elements/00group-input/dees-input-text/dees-input-text.demo.ts +17 -0
- package/ts_web/elements/00group-input/dees-input-text/dees-input-text.ts +106 -1
- package/ts_web/elements/00group-input/suggestion-list.ts +323 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-7CM7S6EQ.js.map → chunk-LRGVCS7F.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-Z3DSEMNI.js.map → dees-modal-ORXOZADW.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-KPB3RVGL.js.map → dees-workspace-terminal-MUU2HDU3.js.map} +0 -0
package/dist_bundle/bundle.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
ownAppuiLabels,
|
|
26
26
|
resolveAppuiLabels,
|
|
27
27
|
xtermStyles
|
|
28
|
-
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-
|
|
28
|
+
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-LRGVCS7F.js";
|
|
29
29
|
import {
|
|
30
30
|
ActionRunController,
|
|
31
31
|
BarInfoController,
|
|
@@ -54,6 +54,7 @@ import {
|
|
|
54
54
|
OverlayScrollbarController,
|
|
55
55
|
OverlayScrollbars,
|
|
56
56
|
ScrollEdgeShadowController,
|
|
57
|
+
SuggestionListController,
|
|
57
58
|
ZIndexRegistry,
|
|
58
59
|
actionControlStyles,
|
|
59
60
|
actionErrorEventName,
|
|
@@ -89,6 +90,7 @@ import {
|
|
|
89
90
|
getOverlayContainer,
|
|
90
91
|
getZIndex,
|
|
91
92
|
i,
|
|
93
|
+
inputSuggestion,
|
|
92
94
|
insetInlineStyles,
|
|
93
95
|
listenForScrollAround,
|
|
94
96
|
n,
|
|
@@ -114,6 +116,7 @@ import {
|
|
|
114
116
|
scrollEdgeShadowStyles,
|
|
115
117
|
showDemoResult,
|
|
116
118
|
smartstring_indent_exports,
|
|
119
|
+
suggestionListStyles,
|
|
117
120
|
systemFontFamily,
|
|
118
121
|
terminalFontFamily,
|
|
119
122
|
terminalTheme,
|
|
@@ -129,7 +132,7 @@ import {
|
|
|
129
132
|
workspaceVisibility,
|
|
130
133
|
zIndexLayers,
|
|
131
134
|
zIndexRegistry
|
|
132
|
-
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-
|
|
135
|
+
} from "./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/chunk-PKH6IGY6.js";
|
|
133
136
|
import {
|
|
134
137
|
dcMessages,
|
|
135
138
|
dcSourceI18n,
|
|
@@ -4262,6 +4265,23 @@ var demoFunc4 = /* @__PURE__ */ __name(() => demoPage("Segmented controls", "Cho
|
|
|
4262
4265
|
<dees-input-multitoggle label="Managed access" .options=${["Private", "Team", "Public"]} selectedOption="Team" disabled></dees-input-multitoggle>
|
|
4263
4266
|
</div>${demoOutput("Change a setting to inspect its value.")}
|
|
4264
4267
|
`)}
|
|
4268
|
+
${demoSection("Toned choices", "A choice whose state matters takes a tone while it is selected. Unselected, it looks like any other.", b`
|
|
4269
|
+
<dees-input-multitoggle label="Permission mode"
|
|
4270
|
+
.options=${[{ key: "ask", label: "Ask first" }, { key: "edits", label: "Accept edits", tone: "info" }, { key: "bypass", label: "Bypass", icon: "lucide:ShieldOff", tone: "warning", description: "Every action runs without asking." }]}
|
|
4271
|
+
.selectedOption=${"bypass"} @change=${changed}></dees-input-multitoggle>
|
|
4272
|
+
${demoOutput("bypass")}
|
|
4273
|
+
`)}
|
|
4274
|
+
${demoSection("Read-only and unset", "A read-only control shows its value at full contrast and dims the choices it does not offer; disabled dims the whole control. With allowEmpty, nothing is selected until the first choice.", b`
|
|
4275
|
+
<div class="dees-demo-grid">
|
|
4276
|
+
<dees-input-multitoggle label="Permission mode (read-only)" readOnly
|
|
4277
|
+
.options=${[{ key: "ask", label: "Ask first" }, { key: "edits", label: "Accept edits", tone: "info" }, { key: "bypass", label: "Bypass", tone: "warning" }]}
|
|
4278
|
+
.selectedOption=${"bypass"} @change=${changed}></dees-input-multitoggle>
|
|
4279
|
+
<dees-input-multitoggle label="Permission mode (disabled)" disabled
|
|
4280
|
+
.options=${[{ key: "ask", label: "Ask first" }, { key: "edits", label: "Accept edits", tone: "info" }, { key: "bypass", label: "Bypass", tone: "warning" }]}
|
|
4281
|
+
.selectedOption=${"bypass"}></dees-input-multitoggle>
|
|
4282
|
+
<dees-input-multitoggle label="Release channel" allowEmpty .options=${["Stable", "Beta", "Nightly"]} @change=${changed}></dees-input-multitoggle>
|
|
4283
|
+
</div>${demoOutput("Choose a release channel.")}
|
|
4284
|
+
`)}
|
|
4265
4285
|
${demoSection("Form values", "The form collects the selected key and the boolean value.", b`
|
|
4266
4286
|
<dees-form @formData=${(event) => showDemoResult(event.currentTarget, event.detail)}>
|
|
4267
4287
|
<dees-input-multitoggle key="view" label="Default view" .options=${[{ key: "list", label: "List" }, { key: "columns", label: "Columns" }]} selectedOption="list"></dees-input-multitoggle>
|
|
@@ -4272,9 +4292,9 @@ var demoFunc4 = /* @__PURE__ */ __name(() => demoPage("Segmented controls", "Cho
|
|
|
4272
4292
|
`), "demoFunc");
|
|
4273
4293
|
|
|
4274
4294
|
// ts_web/elements/00group-input/dees-input-multitoggle/dees-input-multitoggle.ts
|
|
4275
|
-
var _size_dec, _boolValue_dec, _selectedOption_dec, _options_dec, _booleanFalseName_dec, _booleanTrueName_dec, _type_dec2, _a6, _DeesInputMultitoggle_decorators, _init7, _type2, _booleanTrueName, _booleanFalseName, _options, _selectedOption, _boolValue, _size;
|
|
4295
|
+
var _allowEmpty_dec, _readOnly_dec, _size_dec, _boolValue_dec, _selectedOption_dec, _options_dec, _booleanFalseName_dec, _booleanTrueName_dec, _type_dec2, _a6, _DeesInputMultitoggle_decorators, _init7, _type2, _booleanTrueName, _booleanFalseName, _options, _selectedOption, _boolValue, _size, _readOnly, _allowEmpty;
|
|
4276
4296
|
_DeesInputMultitoggle_decorators = [customElement("dees-input-multitoggle")];
|
|
4277
|
-
var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInputBase, _type_dec2 = [n({ reflect: true })], _booleanTrueName_dec = [n({ reflect: true })], _booleanFalseName_dec = [n({ reflect: true })], _options_dec = [n({ type: Array })], _selectedOption_dec = [n()], _boolValue_dec = [n({ type: Boolean })], _size_dec = [n({ reflect: true })], _a6) {
|
|
4297
|
+
var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInputBase, _type_dec2 = [n({ reflect: true })], _booleanTrueName_dec = [n({ reflect: true })], _booleanFalseName_dec = [n({ reflect: true })], _options_dec = [n({ type: Array })], _selectedOption_dec = [n()], _boolValue_dec = [n({ type: Boolean })], _size_dec = [n({ reflect: true })], _readOnly_dec = [n({ type: Boolean, reflect: true })], _allowEmpty_dec = [n({ type: Boolean, reflect: true })], _a6) {
|
|
4278
4298
|
constructor() {
|
|
4279
4299
|
super();
|
|
4280
4300
|
__privateAdd(this, _type2, __runInitializers(_init7, 8, this, "multi")), __runInitializers(_init7, 11, this);
|
|
@@ -4284,6 +4304,8 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
|
|
|
4284
4304
|
__privateAdd(this, _selectedOption, __runInitializers(_init7, 24, this, "")), __runInitializers(_init7, 27, this);
|
|
4285
4305
|
__privateAdd(this, _boolValue, __runInitializers(_init7, 28, this, false)), __runInitializers(_init7, 31, this);
|
|
4286
4306
|
__privateAdd(this, _size, __runInitializers(_init7, 32, this, "default")), __runInitializers(_init7, 35, this);
|
|
4307
|
+
__privateAdd(this, _readOnly, __runInitializers(_init7, 36, this, false)), __runInitializers(_init7, 39, this);
|
|
4308
|
+
__privateAdd(this, _allowEmpty, __runInitializers(_init7, 40, this, false)), __runInitializers(_init7, 43, this);
|
|
4287
4309
|
this.registerStartupFunction(async (signal) => {
|
|
4288
4310
|
await this.updateComplete;
|
|
4289
4311
|
await document.fonts.ready;
|
|
@@ -4314,6 +4336,9 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
|
|
|
4314
4336
|
optionDisabled(option) {
|
|
4315
4337
|
return this.disabled || typeof option === "object" && !!option.disabled;
|
|
4316
4338
|
}
|
|
4339
|
+
optionTone(option) {
|
|
4340
|
+
return typeof option === "object" ? option.tone : void 0;
|
|
4341
|
+
}
|
|
4317
4342
|
willUpdate(changed3) {
|
|
4318
4343
|
if (this.type === "boolean") {
|
|
4319
4344
|
const oldTrue = String(changed3.get("booleanTrueName") ?? this.booleanTrueName);
|
|
@@ -4321,17 +4346,18 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
|
|
|
4321
4346
|
if (this.options.length !== 2 || this.options[0] !== this.booleanTrueName || this.options[1] !== this.booleanFalseName) this.options = [this.booleanTrueName, this.booleanFalseName];
|
|
4322
4347
|
this.selectedOption = truth ? this.booleanTrueName : this.booleanFalseName;
|
|
4323
4348
|
this.boolValue = truth;
|
|
4324
|
-
} else if (!this.selectedOption && this.options.length) {
|
|
4349
|
+
} else if (!this.selectedOption && this.options.length && !this.allowEmpty) {
|
|
4325
4350
|
const first = this.options.find((option) => !this.optionDisabled(option));
|
|
4326
4351
|
if (first) this.selectedOption = this.optionKey(first);
|
|
4327
4352
|
}
|
|
4328
4353
|
}
|
|
4329
4354
|
render() {
|
|
4355
|
+
const selectedTone = this.optionTone(this.options.find((option) => this.optionKey(option) === this.selectedOption));
|
|
4330
4356
|
const focusKey = this.options.some((option) => this.optionKey(option) === this.selectedOption && !this.optionDisabled(option)) ? this.selectedOption : this.options.find((option) => !this.optionDisabled(option));
|
|
4331
4357
|
return b`<div class="input-wrapper">
|
|
4332
4358
|
${this.labelPosition !== "none" && this.label ? this.renderLabel() : ""}
|
|
4333
|
-
<div class="selections input-container ${this.size === "sm" ? "small" : ""}" role="radiogroup" aria-label=${this.label || this.key || "Options"} aria-disabled=${this.disabled}>
|
|
4334
|
-
<div class="indicator" aria-hidden="true"></div>
|
|
4359
|
+
<div class="selections input-container ${this.size === "sm" ? "small" : ""}" role="radiogroup" aria-label=${this.label || this.key || "Options"} aria-disabled=${this.disabled} aria-readonly=${this.readOnly && !this.disabled}>
|
|
4360
|
+
<div class="indicator" aria-hidden="true" data-tone=${selectedTone ?? ""}></div>
|
|
4335
4361
|
${this.options.map((option) => {
|
|
4336
4362
|
const key = this.optionKey(option);
|
|
4337
4363
|
const label = this.optionLabel(option);
|
|
@@ -4339,7 +4365,8 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
|
|
|
4339
4365
|
const icon = typeof option === "string" ? void 0 : option.icon;
|
|
4340
4366
|
const badge = typeof option === "string" ? void 0 : option.badge;
|
|
4341
4367
|
const description = typeof option === "string" ? void 0 : option.description;
|
|
4342
|
-
|
|
4368
|
+
const tone = this.optionTone(option);
|
|
4369
|
+
return b`<button type="button" role="radio" class="option ${selected2 ? "selected" : ""}" data-option=${label} data-tone=${tone ?? ""} .title=${description ?? ""}
|
|
4343
4370
|
aria-checked=${selected2} ?disabled=${this.optionDisabled(option)} tabindex=${key === (typeof focusKey === "object" ? focusKey.key : focusKey) ? 0 : -1}
|
|
4344
4371
|
@click=${() => this.handleSelection(key)} @keydown=${this.handleKeydown}><span class="option-content">${icon ? b`<dees-icon .icon=${icon} iconSize="14" aria-hidden="true"></dees-icon>` : ""}<span class="option-label">${label}</span>${badge !== void 0 ? b`<span class="option-badge">${badge}</span>` : ""}</span></button>`;
|
|
4345
4372
|
})}
|
|
@@ -4352,7 +4379,7 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
|
|
|
4352
4379
|
}
|
|
4353
4380
|
async handleSelection(key) {
|
|
4354
4381
|
const option = this.options.find((option2) => this.optionKey(option2) === key);
|
|
4355
|
-
if (!option || this.optionDisabled(option)) return;
|
|
4382
|
+
if (!option || this.readOnly || this.optionDisabled(option)) return;
|
|
4356
4383
|
const changed3 = key !== this.selectedOption;
|
|
4357
4384
|
this.selectedOption = key;
|
|
4358
4385
|
if (this.type === "boolean") this.boolValue = key === this.booleanTrueName;
|
|
@@ -4373,10 +4400,9 @@ var _DeesInputMultitoggle = class _DeesInputMultitoggle extends (_a6 = DeesInput
|
|
|
4373
4400
|
const forward = event.key === "ArrowDown" || event.key === (rtl ? "ArrowLeft" : "ArrowRight");
|
|
4374
4401
|
const next = event.key === "Home" ? 0 : event.key === "End" ? controls.length - 1 : (index + (forward ? 1 : -1) + controls.length) % controls.length;
|
|
4375
4402
|
const control = controls[next];
|
|
4376
|
-
if (control)
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
}
|
|
4403
|
+
if (!control) return;
|
|
4404
|
+
control.focus();
|
|
4405
|
+
if (!this.readOnly) control.click();
|
|
4380
4406
|
}
|
|
4381
4407
|
/** Reposition the selected segment after external layout changes. */
|
|
4382
4408
|
async setIndicator() {
|
|
@@ -4404,6 +4430,8 @@ _options = new WeakMap();
|
|
|
4404
4430
|
_selectedOption = new WeakMap();
|
|
4405
4431
|
_boolValue = new WeakMap();
|
|
4406
4432
|
_size = new WeakMap();
|
|
4433
|
+
_readOnly = new WeakMap();
|
|
4434
|
+
_allowEmpty = new WeakMap();
|
|
4407
4435
|
__decorateElement(_init7, 4, "type", _type_dec2, _DeesInputMultitoggle, _type2);
|
|
4408
4436
|
__decorateElement(_init7, 4, "booleanTrueName", _booleanTrueName_dec, _DeesInputMultitoggle, _booleanTrueName);
|
|
4409
4437
|
__decorateElement(_init7, 4, "booleanFalseName", _booleanFalseName_dec, _DeesInputMultitoggle, _booleanFalseName);
|
|
@@ -4411,27 +4439,43 @@ __decorateElement(_init7, 4, "options", _options_dec, _DeesInputMultitoggle, _op
|
|
|
4411
4439
|
__decorateElement(_init7, 4, "selectedOption", _selectedOption_dec, _DeesInputMultitoggle, _selectedOption);
|
|
4412
4440
|
__decorateElement(_init7, 4, "boolValue", _boolValue_dec, _DeesInputMultitoggle, _boolValue);
|
|
4413
4441
|
__decorateElement(_init7, 4, "size", _size_dec, _DeesInputMultitoggle, _size);
|
|
4442
|
+
__decorateElement(_init7, 4, "readOnly", _readOnly_dec, _DeesInputMultitoggle, _readOnly);
|
|
4443
|
+
__decorateElement(_init7, 4, "allowEmpty", _allowEmpty_dec, _DeesInputMultitoggle, _allowEmpty);
|
|
4414
4444
|
_DeesInputMultitoggle = __decorateElement(_init7, 0, "DeesInputMultitoggle", _DeesInputMultitoggle_decorators, _DeesInputMultitoggle);
|
|
4415
4445
|
__name(_DeesInputMultitoggle, "DeesInputMultitoggle");
|
|
4416
4446
|
__publicField(_DeesInputMultitoggle, "demo", demoFunc4);
|
|
4417
4447
|
__publicField(_DeesInputMultitoggle, "demoGroups", ["Input"]);
|
|
4418
4448
|
__publicField(_DeesInputMultitoggle, "styles", [themeDefaultStyles, ...DeesInputBase.baseStyles, cssManager.defaultStyles, i`
|
|
4419
4449
|
:host { display: block; min-width: 0; font-family: var(--dees-font-family); color: var(--dees-color-text-primary); }
|
|
4420
|
-
|
|
4450
|
+
/* The tone is the component's own: reset inside the shadow tree, so a value set on an ancestor
|
|
4451
|
+
never reaches an untoned option, and set only on a toned option and the segment under it. */
|
|
4452
|
+
.selections { --multitoggle-tone: initial; position: relative; display: inline-flex; flex-wrap: wrap; align-items: stretch; gap: var(--dees-spacing-2xs); max-width: 100%; padding: var(--dees-spacing-2xs); border-radius: var(--dees-radius-lg); background: var(--dees-color-fill-tertiary); user-select: none; }
|
|
4421
4453
|
.option { position: relative; display: grid; place-items: center; flex: 1 0 auto; min-width: 0; max-width: 100%; min-height: calc(var(--dees-input-height) - 4px); padding: var(--dees-spacing-2xs) var(--dees-spacing-md); border: 0; border-radius: calc(var(--dees-radius-lg) - 2px); background: transparent; color: var(--dees-color-text-secondary); font: 13px/1.4 var(--dees-font-family); text-align: center; overflow-wrap: anywhere; cursor: pointer; z-index: 1; transition: color var(--dees-transition-fast) var(--dees-ease-standard), background-color var(--dees-transition-fast) var(--dees-ease-standard); }
|
|
4422
4454
|
.option-content, .option::after { grid-area: 1 / 1; }
|
|
4423
4455
|
.option-content { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
|
|
4424
4456
|
.option-content dees-icon { flex-shrink: 0; }
|
|
4425
4457
|
.option-badge { padding: 0 5px; border-radius: var(--dees-radius-sm); background: var(--dees-color-fill-tertiary); color: var(--dees-color-text-secondary); font-size: 10px; line-height: 16px; }
|
|
4426
4458
|
.option::after { content: attr(data-option); visibility: hidden; font-weight: 600; pointer-events: none; }
|
|
4427
|
-
.option.selected { color: var(--dees-color-text-primary); font-weight: 600; }
|
|
4459
|
+
.option.selected { color: var(--multitoggle-tone, var(--dees-color-text-primary)); font-weight: 600; }
|
|
4428
4460
|
.option:focus-visible { outline: var(--dees-line-width-focus-ring) solid var(--dees-color-focus-ring); outline-offset: 1px; }
|
|
4429
4461
|
.option:disabled { opacity: .5; cursor: default; }
|
|
4462
|
+
/* Read-only: the selected option keeps full contrast and its tone; the others are dimmed as a
|
|
4463
|
+
disabled option is, since none can be chosen. */
|
|
4464
|
+
.selections[aria-readonly='true'] .option { cursor: default; }
|
|
4465
|
+
.selections[aria-readonly='true'] .option:not(.selected) { opacity: .5; }
|
|
4466
|
+
[data-tone='neutral'] { --multitoggle-tone: var(--dees-color-text-secondary); }
|
|
4467
|
+
[data-tone='info'] { --multitoggle-tone: var(--dees-color-text-info); }
|
|
4468
|
+
[data-tone='success'] { --multitoggle-tone: var(--dees-color-text-success); }
|
|
4469
|
+
[data-tone='warning'] { --multitoggle-tone: var(--dees-color-text-warning); }
|
|
4470
|
+
[data-tone='error'] { --multitoggle-tone: var(--dees-color-text-error); }
|
|
4430
4471
|
.indicator { position: absolute; opacity: 0; border-radius: calc(var(--dees-radius-lg) - 2px); background: var(--dees-color-control-thumb); box-shadow: var(--dees-shadow-xs), inset 0 0 0 var(--dees-line-width-hairline) var(--dees-color-surface-highlight); pointer-events: none; transition: transform var(--dees-transition-fast) var(--dees-ease-standard), width var(--dees-transition-fast) var(--dees-ease-standard), height var(--dees-transition-fast) var(--dees-ease-standard); left: 0; top: 0; }
|
|
4472
|
+
/* A toned selection: the segment takes a tint of the tone over the surface and a hairline in it;
|
|
4473
|
+
the tone's text token reads on the tinted surface in both themes. */
|
|
4474
|
+
.indicator:not([data-tone='']) { background: color-mix(in srgb, var(--multitoggle-tone, transparent) 14%, var(--dees-color-bg-primary)); box-shadow: var(--dees-shadow-xs), inset 0 0 0 var(--dees-line-width-hairline) color-mix(in srgb, var(--multitoggle-tone, transparent) 45%, transparent); }
|
|
4431
4475
|
.selections[aria-disabled='true'] { opacity: .5; }
|
|
4432
4476
|
.selections[aria-disabled='true'] .option:disabled { opacity: 1; }
|
|
4433
4477
|
.small .option { min-height: 24px; padding: 1px 10px; font-size: 12px; }
|
|
4434
|
-
@media (hover: hover) { .option:not(:disabled):not(.selected):hover { background: var(--dees-color-hover); color: var(--dees-color-text-primary); } }
|
|
4478
|
+
@media (hover: hover) { .selections:not([aria-readonly='true']) .option:not(:disabled):not(.selected):hover { background: var(--dees-color-hover); color: var(--dees-color-text-primary); } }
|
|
4435
4479
|
@media (pointer: coarse) { .option, .small .option { min-height: var(--dees-control-height-touch); } }
|
|
4436
4480
|
@media (prefers-reduced-motion: reduce) { .indicator, .option { transition: none; } }
|
|
4437
4481
|
`]);
|
|
@@ -8967,10 +9011,10 @@ var tableStyles = [
|
|
|
8967
9011
|
var demoFunc11 = /* @__PURE__ */ __name(() => focusedInputDemo("tags"), "demoFunc");
|
|
8968
9012
|
|
|
8969
9013
|
// ts_web/elements/00group-input/dees-input-tags/dees-input-tags.ts
|
|
8970
|
-
var _validationText_dec2,
|
|
9014
|
+
var _validationText_dec2, _inputValue_dec, _suggestions_dec, _maxTags_dec, _placeholder_dec3, _value_dec4, _a15, _DeesInputTags_decorators, _init17, _value4, _placeholder3, _maxTags, _suggestions, _inputValue, _validationText2;
|
|
8971
9015
|
var tagRemoveGlyphPx = 10;
|
|
8972
9016
|
_DeesInputTags_decorators = [customElement("dees-input-tags")];
|
|
8973
|
-
var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_dec4 = [n({ type: Array })], _placeholder_dec3 = [n({ type: String, reflect: true })], _maxTags_dec = [n({ type: Number, reflect: true })], _suggestions_dec = [n({ type: Array })], _inputValue_dec = [r2()],
|
|
9017
|
+
var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_dec4 = [n({ type: Array })], _placeholder_dec3 = [n({ type: String, reflect: true })], _maxTags_dec = [n({ type: Number, reflect: true })], _suggestions_dec = [n({ type: Array })], _inputValue_dec = [r2()], _validationText_dec2 = [n({ type: String, reflect: true })], _a15) {
|
|
8974
9018
|
constructor() {
|
|
8975
9019
|
super(...arguments);
|
|
8976
9020
|
__publicField(this, "t", dcLocalize(this));
|
|
@@ -8979,49 +9023,23 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
|
|
|
8979
9023
|
__privateAdd(this, _maxTags, __runInitializers(_init17, 16, this, 0)), __runInitializers(_init17, 19, this);
|
|
8980
9024
|
__privateAdd(this, _suggestions, __runInitializers(_init17, 20, this, [])), __runInitializers(_init17, 23, this);
|
|
8981
9025
|
__privateAdd(this, _inputValue, __runInitializers(_init17, 24, this, "")), __runInitializers(_init17, 27, this);
|
|
8982
|
-
__privateAdd(this,
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
));
|
|
8992
|
-
/**
|
|
8993
|
-
* The open suggestions stand in the top layer, below the field or above it without room there,
|
|
8994
|
-
* so no scroll container or clipping ancestor around the field cuts them off. They follow the
|
|
8995
|
-
* field as it scrolls or grows and step out of view while none of it shows.
|
|
8996
|
-
*/
|
|
8997
|
-
__publicField(this, "placeSuggestions", /* @__PURE__ */ __name(() => {
|
|
8998
|
-
const list = this.shadowRoot?.querySelector(".suggestions-dropdown");
|
|
8999
|
-
const field = this.shadowRoot?.querySelector(".tags-container");
|
|
9000
|
-
if (!list || !field) return;
|
|
9001
|
-
const shown = visibleRect(field);
|
|
9002
|
-
if (!shown) {
|
|
9003
|
-
if (list.matches(":popover-open")) list.hidePopover();
|
|
9004
|
-
return;
|
|
9005
|
-
}
|
|
9006
|
-
if (!list.matches(":popover-open")) list.showPopover();
|
|
9007
|
-
const box = field.getBoundingClientRect();
|
|
9008
|
-
list.style.width = `${box.width}px`;
|
|
9009
|
-
const placed = placeAnchored({
|
|
9010
|
-
anchor: { left: box.left, right: box.right, top: shown.top, bottom: shown.bottom },
|
|
9011
|
-
width: box.width,
|
|
9012
|
-
height: list.offsetHeight,
|
|
9013
|
-
placement: "bottom",
|
|
9014
|
-
flip: true,
|
|
9015
|
-
gap: 4
|
|
9016
|
-
});
|
|
9017
|
-
list.style.left = `${placed.left}px`;
|
|
9018
|
-
list.style.top = `${placed.top}px`;
|
|
9019
|
-
}, "placeSuggestions"));
|
|
9026
|
+
__privateAdd(this, _validationText2, __runInitializers(_init17, 28, this, "")), __runInitializers(_init17, 31, this);
|
|
9027
|
+
/** The suggestions under the field, as a combobox list. */
|
|
9028
|
+
__publicField(this, "suggestionList", new SuggestionListController(this, {
|
|
9029
|
+
anchor: /* @__PURE__ */ __name(() => this.shadowRoot?.querySelector(".tags-container"), "anchor"),
|
|
9030
|
+
pick: /* @__PURE__ */ __name((index) => {
|
|
9031
|
+
const suggestion = this.filteredSuggestions[index];
|
|
9032
|
+
if (suggestion) this.addTag(suggestion);
|
|
9033
|
+
}, "pick")
|
|
9034
|
+
}));
|
|
9020
9035
|
}
|
|
9021
|
-
|
|
9022
|
-
|
|
9036
|
+
/** The suggestions not yet a tag that hold the typed text. */
|
|
9037
|
+
get filteredSuggestions() {
|
|
9038
|
+
return this.suggestions.filter(
|
|
9023
9039
|
(suggestion) => !this.value.includes(suggestion) && suggestion.toLowerCase().includes(this.inputValue.toLowerCase())
|
|
9024
9040
|
);
|
|
9041
|
+
}
|
|
9042
|
+
render() {
|
|
9025
9043
|
return b`
|
|
9026
9044
|
<div class="input-wrapper">
|
|
9027
9045
|
${this.renderLabel()}
|
|
@@ -9058,22 +9076,7 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
|
|
|
9058
9076
|
` : ""}
|
|
9059
9077
|
</div>
|
|
9060
9078
|
|
|
9061
|
-
${this.
|
|
9062
|
-
<div class="suggestions-dropdown" popover="manual"><div class="suggestions-list">
|
|
9063
|
-
${filteredSuggestions.map((suggestion, index) => b`
|
|
9064
|
-
<div
|
|
9065
|
-
class="suggestion ${index === this.highlightedSuggestionIndex ? "highlighted" : ""}"
|
|
9066
|
-
@mousedown=${(e2) => {
|
|
9067
|
-
e2.preventDefault();
|
|
9068
|
-
this.addTag(suggestion);
|
|
9069
|
-
}}
|
|
9070
|
-
@mouseenter=${() => this.highlightedSuggestionIndex = index}
|
|
9071
|
-
>
|
|
9072
|
-
${suggestion}
|
|
9073
|
-
</div>
|
|
9074
|
-
`)}
|
|
9075
|
-
</div></div>
|
|
9076
|
-
` : ""}
|
|
9079
|
+
${this.suggestionList.render(this.filteredSuggestions.map(inputSuggestion), this.label)}
|
|
9077
9080
|
|
|
9078
9081
|
${this.validationText ? b`
|
|
9079
9082
|
<div class="validation-message">${this.validationText}</div>
|
|
@@ -9085,28 +9088,10 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
|
|
|
9085
9088
|
}
|
|
9086
9089
|
updated(changedProperties) {
|
|
9087
9090
|
super.updated(changedProperties);
|
|
9088
|
-
const
|
|
9089
|
-
if (
|
|
9090
|
-
this.
|
|
9091
|
-
this.suggestionsTracking = void 0;
|
|
9092
|
-
return;
|
|
9093
|
-
}
|
|
9094
|
-
if (!this.suggestionsTracking) {
|
|
9095
|
-
const field = this.shadowRoot.querySelector(".tags-container");
|
|
9096
|
-
const tracking = new AbortController();
|
|
9097
|
-
this.suggestionsTracking = tracking;
|
|
9098
|
-
listenForScrollAround(field, this.placeSuggestions, tracking.signal);
|
|
9099
|
-
window.addEventListener("resize", this.placeSuggestions, { passive: true, signal: tracking.signal });
|
|
9100
|
-
const observer = new ResizeObserver(this.placeSuggestions);
|
|
9101
|
-
observer.observe(field);
|
|
9102
|
-
tracking.signal.addEventListener("abort", () => observer.disconnect());
|
|
9091
|
+
const input = this.shadowRoot.querySelector(".tag-input");
|
|
9092
|
+
if (input) {
|
|
9093
|
+
this.suggestionList.applyComboboxAttributes(input, this.filteredSuggestions.length, this.suggestions.length > 0);
|
|
9103
9094
|
}
|
|
9104
|
-
this.placeSuggestions();
|
|
9105
|
-
}
|
|
9106
|
-
async disconnectedCallback() {
|
|
9107
|
-
this.suggestionsTracking?.abort();
|
|
9108
|
-
this.suggestionsTracking = void 0;
|
|
9109
|
-
await super.disconnectedCallback();
|
|
9110
9095
|
}
|
|
9111
9096
|
handleContainerClick(e2) {
|
|
9112
9097
|
if (this.disabled) return;
|
|
@@ -9138,48 +9123,25 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
|
|
|
9138
9123
|
}
|
|
9139
9124
|
handleKeyDown(e2) {
|
|
9140
9125
|
if (this.disabled || e2.isComposing) return;
|
|
9141
|
-
|
|
9126
|
+
if (this.suggestionList.handleKeydown(e2, this.filteredSuggestions.length)) return;
|
|
9142
9127
|
if (e2.key === "Enter") {
|
|
9143
9128
|
e2.preventDefault();
|
|
9144
|
-
if (this.
|
|
9145
|
-
const filteredSuggestions = this.suggestions.filter(
|
|
9146
|
-
(suggestion) => !this.value.includes(suggestion) && suggestion.toLowerCase().includes(this.inputValue.toLowerCase())
|
|
9147
|
-
);
|
|
9148
|
-
if (filteredSuggestions[this.highlightedSuggestionIndex]) {
|
|
9149
|
-
this.addTag(filteredSuggestions[this.highlightedSuggestionIndex]);
|
|
9150
|
-
}
|
|
9151
|
-
} else if (this.inputValue.trim()) {
|
|
9129
|
+
if (this.inputValue.trim()) {
|
|
9152
9130
|
this.addTag(this.inputValue.trim());
|
|
9153
9131
|
}
|
|
9154
9132
|
} else if (e2.key === "Backspace" && !this.inputValue && this.value.length > 0) {
|
|
9155
9133
|
this.removeTag(e2, this.value[this.value.length - 1]);
|
|
9156
|
-
} else if (e2.key === "ArrowDown" && this.showSuggestions) {
|
|
9157
|
-
e2.preventDefault();
|
|
9158
|
-
const filteredCount = this.suggestions.filter(
|
|
9159
|
-
(s) => !this.value.includes(s) && s.toLowerCase().includes(this.inputValue.toLowerCase())
|
|
9160
|
-
).length;
|
|
9161
|
-
this.highlightedSuggestionIndex = Math.min(
|
|
9162
|
-
this.highlightedSuggestionIndex + 1,
|
|
9163
|
-
filteredCount - 1
|
|
9164
|
-
);
|
|
9165
|
-
} else if (e2.key === "ArrowUp" && this.showSuggestions) {
|
|
9166
|
-
e2.preventDefault();
|
|
9167
|
-
this.highlightedSuggestionIndex = Math.max(this.highlightedSuggestionIndex - 1, 0);
|
|
9168
9134
|
} else if (e2.key === "Tab") {
|
|
9169
9135
|
this.addPendingInput();
|
|
9170
|
-
} else if (e2.key === "Escape") {
|
|
9171
|
-
this.showSuggestions = false;
|
|
9172
|
-
this.highlightedSuggestionIndex = -1;
|
|
9173
9136
|
}
|
|
9174
9137
|
}
|
|
9175
9138
|
handleFocus() {
|
|
9176
9139
|
if (this.suggestions.length > 0) {
|
|
9177
|
-
this.
|
|
9140
|
+
this.suggestionList.show();
|
|
9178
9141
|
}
|
|
9179
9142
|
}
|
|
9180
9143
|
handleBlur(e2) {
|
|
9181
|
-
this.
|
|
9182
|
-
this.highlightedSuggestionIndex = -1;
|
|
9144
|
+
this.suggestionList.hide();
|
|
9183
9145
|
const input = e2.target;
|
|
9184
9146
|
if (this.shadowRoot?.activeElement === input) return;
|
|
9185
9147
|
this.addPendingInput();
|
|
@@ -9211,8 +9173,7 @@ var _DeesInputTags = class _DeesInputTags extends (_a15 = DeesInputBase, _value_
|
|
|
9211
9173
|
if (!tag || this.value.includes(tag)) return;
|
|
9212
9174
|
if (this.maxTags && this.value.length >= this.maxTags) return;
|
|
9213
9175
|
this.value = [...this.value, tag];
|
|
9214
|
-
this.
|
|
9215
|
-
this.highlightedSuggestionIndex = -1;
|
|
9176
|
+
this.suggestionList.hide();
|
|
9216
9177
|
this.clearInput();
|
|
9217
9178
|
this.emitChange();
|
|
9218
9179
|
}
|
|
@@ -9248,16 +9209,12 @@ _placeholder3 = new WeakMap();
|
|
|
9248
9209
|
_maxTags = new WeakMap();
|
|
9249
9210
|
_suggestions = new WeakMap();
|
|
9250
9211
|
_inputValue = new WeakMap();
|
|
9251
|
-
_showSuggestions = new WeakMap();
|
|
9252
|
-
_highlightedSuggestionIndex = new WeakMap();
|
|
9253
9212
|
_validationText2 = new WeakMap();
|
|
9254
9213
|
__decorateElement(_init17, 4, "value", _value_dec4, _DeesInputTags, _value4);
|
|
9255
9214
|
__decorateElement(_init17, 4, "placeholder", _placeholder_dec3, _DeesInputTags, _placeholder3);
|
|
9256
9215
|
__decorateElement(_init17, 4, "maxTags", _maxTags_dec, _DeesInputTags, _maxTags);
|
|
9257
9216
|
__decorateElement(_init17, 4, "suggestions", _suggestions_dec, _DeesInputTags, _suggestions);
|
|
9258
9217
|
__decorateElement(_init17, 4, "inputValue", _inputValue_dec, _DeesInputTags, _inputValue);
|
|
9259
|
-
__decorateElement(_init17, 4, "showSuggestions", _showSuggestions_dec, _DeesInputTags, _showSuggestions);
|
|
9260
|
-
__decorateElement(_init17, 4, "highlightedSuggestionIndex", _highlightedSuggestionIndex_dec, _DeesInputTags, _highlightedSuggestionIndex);
|
|
9261
9218
|
__decorateElement(_init17, 4, "validationText", _validationText_dec2, _DeesInputTags, _validationText2);
|
|
9262
9219
|
_DeesInputTags = __decorateElement(_init17, 0, "DeesInputTags", _DeesInputTags_decorators, _DeesInputTags);
|
|
9263
9220
|
__name(_DeesInputTags, "DeesInputTags");
|
|
@@ -9270,6 +9227,7 @@ __publicField(_DeesInputTags, "styles", [
|
|
|
9270
9227
|
...DeesInputBase.baseStyles,
|
|
9271
9228
|
cssManager.defaultStyles,
|
|
9272
9229
|
overlayScrollbarStyles,
|
|
9230
|
+
suggestionListStyles,
|
|
9273
9231
|
i`
|
|
9274
9232
|
:host {
|
|
9275
9233
|
display: block;
|
|
@@ -9377,58 +9335,6 @@ __publicField(_DeesInputTags, "styles", [
|
|
|
9377
9335
|
cursor: not-allowed;
|
|
9378
9336
|
}
|
|
9379
9337
|
|
|
9380
|
-
/* Suggestions: a popover in the top layer, placed below the field by placeSuggestions.
|
|
9381
|
-
The list scrolls inside it, the frame its scrollbar is placed in. */
|
|
9382
|
-
.suggestions-dropdown {
|
|
9383
|
-
position: fixed;
|
|
9384
|
-
inset: auto;
|
|
9385
|
-
margin: 0;
|
|
9386
|
-
padding: 0;
|
|
9387
|
-
color: inherit;
|
|
9388
|
-
background: var(--dees-material-regular-bg-opaque);
|
|
9389
|
-
border: var(--dees-line-width-hairline) solid var(--dees-color-border-default);
|
|
9390
|
-
border-radius: var(--dees-radius-lg);
|
|
9391
|
-
corner-shape: var(--dees-corner-shape);
|
|
9392
|
-
box-shadow: var(--dees-shadow-lg);
|
|
9393
|
-
overflow: hidden;
|
|
9394
|
-
}
|
|
9395
|
-
|
|
9396
|
-
.suggestions-list {
|
|
9397
|
-
max-height: calc(200px - 2 * var(--dees-line-width-hairline));
|
|
9398
|
-
overflow-y: auto;
|
|
9399
|
-
}
|
|
9400
|
-
|
|
9401
|
-
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
9402
|
-
.suggestions-dropdown {
|
|
9403
|
-
background: var(--dees-material-regular-bg-opaque);
|
|
9404
|
-
}
|
|
9405
|
-
}
|
|
9406
|
-
|
|
9407
|
-
@media (prefers-reduced-transparency: reduce) {
|
|
9408
|
-
.suggestions-dropdown {
|
|
9409
|
-
background: var(--dees-material-regular-bg-opaque);
|
|
9410
|
-
-webkit-backdrop-filter: none;
|
|
9411
|
-
backdrop-filter: none;
|
|
9412
|
-
}
|
|
9413
|
-
}
|
|
9414
|
-
|
|
9415
|
-
.suggestion {
|
|
9416
|
-
padding: 6px 10px;
|
|
9417
|
-
cursor: pointer;
|
|
9418
|
-
transition: background-color var(--dees-transition-fast) var(--dees-ease-standard);
|
|
9419
|
-
font-size: 14px;
|
|
9420
|
-
color: var(--dees-color-text-primary);
|
|
9421
|
-
}
|
|
9422
|
-
|
|
9423
|
-
.suggestion:hover {
|
|
9424
|
-
background: var(--dees-color-hover);
|
|
9425
|
-
}
|
|
9426
|
-
|
|
9427
|
-
.suggestion.highlighted {
|
|
9428
|
-
background: var(--dees-color-active);
|
|
9429
|
-
color: var(--dees-color-text-primary);
|
|
9430
|
-
}
|
|
9431
|
-
|
|
9432
9338
|
/* Validation styles */
|
|
9433
9339
|
.validation-message {
|
|
9434
9340
|
color: var(--dees-color-accent-error);
|
|
@@ -55645,7 +55551,7 @@ var demoFunc48 = /* @__PURE__ */ __name(() => {
|
|
|
55645
55551
|
}, "demoFunc");
|
|
55646
55552
|
|
|
55647
55553
|
// ts_web/elements/00group-harness/dees-harness-question-card/dees-harness-question-card.ts
|
|
55648
|
-
var _rejection_dec, _personResultsShown_dec, _personFieldsShown_dec, _personValues_dec, _personResults_dec, _copyFeedback_dec2, _credentialsShown_dec, _leftOut_dec, _itemsExpanded_dec2, _customText_dec, _selected_dec, _answered_dec2,
|
|
55554
|
+
var _rejection_dec, _personResultsShown_dec, _personFieldsShown_dec, _personValues_dec, _personResults_dec, _copyFeedback_dec2, _credentialsShown_dec, _leftOut_dec, _itemsExpanded_dec2, _customText_dec, _selected_dec, _answered_dec2, _readOnly_dec2, _frameless_dec13, _viewState_dec6, _busy_dec2, _request_dec2, _a70, _DeesHarnessQuestionCard_decorators, _init72, _request2, _busy2, _viewState6, _frameless13, _readOnly2, _answered2, _selected, _customText, _itemsExpanded2, _leftOut, _credentialsShown, _copyFeedback2, _personResults, _personValues, _personFieldsShown, _personResultsShown, _rejection;
|
|
55649
55555
|
var titleIcon = /* @__PURE__ */ __name((kindArg, severityArg) => severityArg === "danger" ? "lucide:OctagonAlert" : severityArg === "warning" ? "lucide:TriangleAlert" : kindArg === "proposal" ? "lucide:ListChecks" : "lucide:MessageCircleQuestionMark", "titleIcon");
|
|
55650
55556
|
var ITEM_ICON = {
|
|
55651
55557
|
warning: "lucide:TriangleAlert",
|
|
@@ -55669,7 +55575,7 @@ var STATE_BADGE = {
|
|
|
55669
55575
|
failed: "error"
|
|
55670
55576
|
};
|
|
55671
55577
|
_DeesHarnessQuestionCard_decorators = [customElement("dees-harness-question-card")];
|
|
55672
|
-
var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a70 = DeesElement, _request_dec2 = [n({ attribute: false })], _busy_dec2 = [n({ type: Boolean, reflect: true })], _viewState_dec6 = [n({ attribute: false })], _frameless_dec13 = [n({ type: Boolean, reflect: true })],
|
|
55578
|
+
var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a70 = DeesElement, _request_dec2 = [n({ attribute: false })], _busy_dec2 = [n({ type: Boolean, reflect: true })], _viewState_dec6 = [n({ attribute: false })], _frameless_dec13 = [n({ type: Boolean, reflect: true })], _readOnly_dec2 = [n({ type: Boolean, reflect: true })], _answered_dec2 = [r2()], _selected_dec = [r2()], _customText_dec = [r2()], _itemsExpanded_dec2 = [r2()], _leftOut_dec = [r2()], _credentialsShown_dec = [r2()], _copyFeedback_dec2 = [r2()], _personResults_dec = [n({ attribute: false })], _personValues_dec = [r2()], _personFieldsShown_dec = [r2()], _personResultsShown_dec = [r2()], _rejection_dec = [r2()], _a70) {
|
|
55673
55579
|
constructor() {
|
|
55674
55580
|
super(...arguments);
|
|
55675
55581
|
__publicField(this, "t", dcLocalize(this));
|
|
@@ -55677,7 +55583,7 @@ var _DeesHarnessQuestionCard = class _DeesHarnessQuestionCard extends (_a70 = De
|
|
|
55677
55583
|
__privateAdd(this, _busy2, __runInitializers(_init72, 12, this, false)), __runInitializers(_init72, 15, this);
|
|
55678
55584
|
__privateAdd(this, _viewState6, __runInitializers(_init72, 16, this)), __runInitializers(_init72, 19, this);
|
|
55679
55585
|
__privateAdd(this, _frameless13, __runInitializers(_init72, 20, this, false)), __runInitializers(_init72, 23, this);
|
|
55680
|
-
__privateAdd(this,
|
|
55586
|
+
__privateAdd(this, _readOnly2, __runInitializers(_init72, 24, this, false)), __runInitializers(_init72, 27, this);
|
|
55681
55587
|
__privateAdd(this, _answered2, __runInitializers(_init72, 28, this)), __runInitializers(_init72, 31, this);
|
|
55682
55588
|
__privateAdd(this, _selected, __runInitializers(_init72, 32, this, /* @__PURE__ */ new Set())), __runInitializers(_init72, 35, this);
|
|
55683
55589
|
__privateAdd(this, _customText, __runInitializers(_init72, 36, this, "")), __runInitializers(_init72, 39, this);
|
|
@@ -56287,7 +56193,7 @@ _request2 = new WeakMap();
|
|
|
56287
56193
|
_busy2 = new WeakMap();
|
|
56288
56194
|
_viewState6 = new WeakMap();
|
|
56289
56195
|
_frameless13 = new WeakMap();
|
|
56290
|
-
|
|
56196
|
+
_readOnly2 = new WeakMap();
|
|
56291
56197
|
_answered2 = new WeakMap();
|
|
56292
56198
|
_selected = new WeakMap();
|
|
56293
56199
|
_customText = new WeakMap();
|
|
@@ -56304,7 +56210,7 @@ __decorateElement(_init72, 4, "request", _request_dec2, _DeesHarnessQuestionCard
|
|
|
56304
56210
|
__decorateElement(_init72, 4, "busy", _busy_dec2, _DeesHarnessQuestionCard, _busy2);
|
|
56305
56211
|
__decorateElement(_init72, 4, "viewState", _viewState_dec6, _DeesHarnessQuestionCard, _viewState6);
|
|
56306
56212
|
__decorateElement(_init72, 4, "frameless", _frameless_dec13, _DeesHarnessQuestionCard, _frameless13);
|
|
56307
|
-
__decorateElement(_init72, 4, "readOnly",
|
|
56213
|
+
__decorateElement(_init72, 4, "readOnly", _readOnly_dec2, _DeesHarnessQuestionCard, _readOnly2);
|
|
56308
56214
|
__decorateElement(_init72, 4, "answered", _answered_dec2, _DeesHarnessQuestionCard, _answered2);
|
|
56309
56215
|
__decorateElement(_init72, 4, "selected", _selected_dec, _DeesHarnessQuestionCard, _selected);
|
|
56310
56216
|
__decorateElement(_init72, 4, "customText", _customText_dec, _DeesHarnessQuestionCard, _customText);
|
|
@@ -80734,7 +80640,7 @@ var demoFunc74 = /* @__PURE__ */ __name(() => demoPage(
|
|
|
80734
80640
|
), "demoFunc");
|
|
80735
80641
|
|
|
80736
80642
|
// ts_web/elements/00group-dataview/dees-thread/dees-thread.ts
|
|
80737
|
-
var _postErrors_dec, _postingThreads_dec, _revealed_dec, _timeFormat_dec3, _collapseAfter_dec, _error_dec3, _loading_dec7, _view_dec, _readOnlyReason_dec,
|
|
80643
|
+
var _postErrors_dec, _postingThreads_dec, _revealed_dec, _timeFormat_dec3, _collapseAfter_dec, _error_dec3, _loading_dec7, _view_dec, _readOnlyReason_dec, _readOnly_dec3, _placeholder_dec9, _draft_dec2, _referenceSearchLabel_dec2, _searchReferences_dec3, _format_dec2, _composerInfo_dec, _composerActions_dec, _submitLabel_dec, _onSubmit_dec, _currentUser_dec, _events_dec4, _entries_dec3, _threadId_dec, _a108, _DeesThread_decorators, _init109, _threadId, _entries3, _events4, _currentUser, _onSubmit, _submitLabel, _composerActions, _composerInfo, _format2, _searchReferences3, _referenceSearchLabel2, _draft2, _placeholder9, _readOnly3, _readOnlyReason, _view, _loading7, _error3, _collapseAfter, _timeFormat3, _revealed, _postingThreads, _postErrors;
|
|
80738
80644
|
var eventIcons = {
|
|
80739
80645
|
opened: "lucide:CircleDot",
|
|
80740
80646
|
answered: "lucide:Check",
|
|
@@ -80780,7 +80686,7 @@ var safeHref2 = /* @__PURE__ */ __name((hrefArg) => {
|
|
|
80780
80686
|
}
|
|
80781
80687
|
}, "safeHref");
|
|
80782
80688
|
_DeesThread_decorators = [customElement("dees-thread")];
|
|
80783
|
-
var _DeesThread = class _DeesThread extends (_a108 = DeesElement, _threadId_dec = [n({ type: String, reflect: true })], _entries_dec3 = [n({ attribute: false })], _events_dec4 = [n({ attribute: false })], _currentUser_dec = [n({ attribute: false })], _onSubmit_dec = [n({ attribute: false })], _submitLabel_dec = [n({ type: String, reflect: true })], _composerActions_dec = [n({ attribute: false })], _composerInfo_dec = [n({ attribute: false })], _format_dec2 = [n({ type: String, reflect: true })], _searchReferences_dec3 = [n({ attribute: false })], _referenceSearchLabel_dec2 = [n({ type: String, reflect: true })], _draft_dec2 = [n({ attribute: false })], _placeholder_dec9 = [n({ type: String, reflect: true })],
|
|
80689
|
+
var _DeesThread = class _DeesThread extends (_a108 = DeesElement, _threadId_dec = [n({ type: String, reflect: true })], _entries_dec3 = [n({ attribute: false })], _events_dec4 = [n({ attribute: false })], _currentUser_dec = [n({ attribute: false })], _onSubmit_dec = [n({ attribute: false })], _submitLabel_dec = [n({ type: String, reflect: true })], _composerActions_dec = [n({ attribute: false })], _composerInfo_dec = [n({ attribute: false })], _format_dec2 = [n({ type: String, reflect: true })], _searchReferences_dec3 = [n({ attribute: false })], _referenceSearchLabel_dec2 = [n({ type: String, reflect: true })], _draft_dec2 = [n({ attribute: false })], _placeholder_dec9 = [n({ type: String, reflect: true })], _readOnly_dec3 = [n({ type: Boolean, reflect: true })], _readOnlyReason_dec = [n({ type: String, reflect: true })], _view_dec = [n({ type: String, reflect: true })], _loading_dec7 = [n({ type: Boolean, reflect: true })], _error_dec3 = [n({ type: String, reflect: true })], _collapseAfter_dec = [n({ type: Number, reflect: true })], _timeFormat_dec3 = [n({ type: String, reflect: true })], _revealed_dec = [r2()], _postingThreads_dec = [r2()], _postErrors_dec = [r2()], _a108) {
|
|
80784
80690
|
constructor() {
|
|
80785
80691
|
super(...arguments);
|
|
80786
80692
|
__publicField(this, "t", dcLocalize(this));
|
|
@@ -80802,7 +80708,7 @@ var _DeesThread = class _DeesThread extends (_a108 = DeesElement, _threadId_dec
|
|
|
80802
80708
|
__privateAdd(this, _referenceSearchLabel2, __runInitializers(_init109, 48, this, "")), __runInitializers(_init109, 51, this);
|
|
80803
80709
|
__privateAdd(this, _draft2, __runInitializers(_init109, 52, this, "")), __runInitializers(_init109, 55, this);
|
|
80804
80710
|
__privateAdd(this, _placeholder9, __runInitializers(_init109, 56, this, "")), __runInitializers(_init109, 59, this);
|
|
80805
|
-
__privateAdd(this,
|
|
80711
|
+
__privateAdd(this, _readOnly3, __runInitializers(_init109, 60, this, false)), __runInitializers(_init109, 63, this);
|
|
80806
80712
|
__privateAdd(this, _readOnlyReason, __runInitializers(_init109, 64, this, "")), __runInitializers(_init109, 67, this);
|
|
80807
80713
|
__privateAdd(this, _view, __runInitializers(_init109, 68, this, "full")), __runInitializers(_init109, 71, this);
|
|
80808
80714
|
__privateAdd(this, _loading7, __runInitializers(_init109, 72, this, false)), __runInitializers(_init109, 75, this);
|
|
@@ -81302,7 +81208,7 @@ _searchReferences3 = new WeakMap();
|
|
|
81302
81208
|
_referenceSearchLabel2 = new WeakMap();
|
|
81303
81209
|
_draft2 = new WeakMap();
|
|
81304
81210
|
_placeholder9 = new WeakMap();
|
|
81305
|
-
|
|
81211
|
+
_readOnly3 = new WeakMap();
|
|
81306
81212
|
_readOnlyReason = new WeakMap();
|
|
81307
81213
|
_view = new WeakMap();
|
|
81308
81214
|
_loading7 = new WeakMap();
|
|
@@ -81325,7 +81231,7 @@ __decorateElement(_init109, 4, "searchReferences", _searchReferences_dec3, _Dees
|
|
|
81325
81231
|
__decorateElement(_init109, 4, "referenceSearchLabel", _referenceSearchLabel_dec2, _DeesThread, _referenceSearchLabel2);
|
|
81326
81232
|
__decorateElement(_init109, 4, "draft", _draft_dec2, _DeesThread, _draft2);
|
|
81327
81233
|
__decorateElement(_init109, 4, "placeholder", _placeholder_dec9, _DeesThread, _placeholder9);
|
|
81328
|
-
__decorateElement(_init109, 4, "readOnly",
|
|
81234
|
+
__decorateElement(_init109, 4, "readOnly", _readOnly_dec3, _DeesThread, _readOnly3);
|
|
81329
81235
|
__decorateElement(_init109, 4, "readOnlyReason", _readOnlyReason_dec, _DeesThread, _readOnlyReason);
|
|
81330
81236
|
__decorateElement(_init109, 4, "view", _view_dec, _DeesThread, _view);
|
|
81331
81237
|
__decorateElement(_init109, 4, "loading", _loading_dec7, _DeesThread, _loading7);
|
|
@@ -83171,7 +83077,7 @@ var _DeesHarnessConversationPicker = class _DeesHarnessConversationPicker extend
|
|
|
83171
83077
|
* cancelled. Focus returns to whatever had it when the picker opened.
|
|
83172
83078
|
*/
|
|
83173
83079
|
static async pick(optionsArg = {}) {
|
|
83174
|
-
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-
|
|
83080
|
+
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-ORXOZADW.js");
|
|
83175
83081
|
const picker = new _DeesHarnessConversationPicker();
|
|
83176
83082
|
picker.sessions = optionsArg.sessions ?? [];
|
|
83177
83083
|
picker.groups = optionsArg.groups ?? [];
|
|
@@ -83640,7 +83546,7 @@ var handleResourceContext = /* @__PURE__ */ __name(async (event) => {
|
|
|
83640
83546
|
list.selectedResourceId = event.detail.resource.id;
|
|
83641
83547
|
}, "handleResourceContext");
|
|
83642
83548
|
var openModal = /* @__PURE__ */ __name(async (sessions, groups) => {
|
|
83643
|
-
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-
|
|
83549
|
+
const { DeesModal: DeesModal2 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-modal-ORXOZADW.js");
|
|
83644
83550
|
const content = document.createElement("dees-harness-resource-list");
|
|
83645
83551
|
content.sessions = sessions;
|
|
83646
83552
|
content.groups = groups;
|
|
@@ -88493,9 +88399,9 @@ var kanbanFeedStyles = i`
|
|
|
88493
88399
|
`;
|
|
88494
88400
|
|
|
88495
88401
|
// ts_web/elements/00group-kanban/dees-kanban-discussion/dees-kanban-discussion.ts
|
|
88496
|
-
var _answering_dec, _showHeader_dec2, _error_dec4,
|
|
88402
|
+
var _answering_dec, _showHeader_dec2, _error_dec4, _readOnly_dec4, _loading_dec11, _answerQuestion_dec, _askQuestion_dec, _addComment_dec, _view_dec2, _currentPerson_dec, _searchTickets_dec, _draft_dec3, _comments_dec, _ticketId_dec, _a118, _DeesKanbanDiscussion_decorators, _init120, _ticketId, _comments, _draft3, _searchTickets, _currentPerson, _view2, _addComment, _askQuestion, _answerQuestion, _loading11, _readOnly4, _error4, _showHeader2, _answering;
|
|
88497
88403
|
_DeesKanbanDiscussion_decorators = [customElement("dees-kanban-discussion")];
|
|
88498
|
-
var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a118 = DeesElement, _ticketId_dec = [n({ type: String, reflect: true })], _comments_dec = [n({ attribute: false })], _draft_dec3 = [n({ attribute: false })], _searchTickets_dec = [n({ attribute: false })], _currentPerson_dec = [n({ attribute: false })], _view_dec2 = [n({ type: String, reflect: true })], _addComment_dec = [n({ attribute: false })], _askQuestion_dec = [n({ attribute: false })], _answerQuestion_dec = [n({ attribute: false })], _loading_dec11 = [n({ type: Boolean, reflect: true })],
|
|
88404
|
+
var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a118 = DeesElement, _ticketId_dec = [n({ type: String, reflect: true })], _comments_dec = [n({ attribute: false })], _draft_dec3 = [n({ attribute: false })], _searchTickets_dec = [n({ attribute: false })], _currentPerson_dec = [n({ attribute: false })], _view_dec2 = [n({ type: String, reflect: true })], _addComment_dec = [n({ attribute: false })], _askQuestion_dec = [n({ attribute: false })], _answerQuestion_dec = [n({ attribute: false })], _loading_dec11 = [n({ type: Boolean, reflect: true })], _readOnly_dec4 = [n({ type: Boolean, reflect: true })], _error_dec4 = [n({ type: String, reflect: true })], _showHeader_dec2 = [n({ type: Boolean, reflect: true })], _answering_dec = [r2()], _a118) {
|
|
88499
88405
|
constructor() {
|
|
88500
88406
|
super(...arguments);
|
|
88501
88407
|
__publicField(this, "t", dcLocalize(this));
|
|
@@ -88509,7 +88415,7 @@ var _DeesKanbanDiscussion = class _DeesKanbanDiscussion extends (_a118 = DeesEle
|
|
|
88509
88415
|
__privateAdd(this, _askQuestion, __runInitializers(_init120, 36, this)), __runInitializers(_init120, 39, this);
|
|
88510
88416
|
__privateAdd(this, _answerQuestion, __runInitializers(_init120, 40, this)), __runInitializers(_init120, 43, this);
|
|
88511
88417
|
__privateAdd(this, _loading11, __runInitializers(_init120, 44, this, false)), __runInitializers(_init120, 47, this);
|
|
88512
|
-
__privateAdd(this,
|
|
88418
|
+
__privateAdd(this, _readOnly4, __runInitializers(_init120, 48, this, false)), __runInitializers(_init120, 51, this);
|
|
88513
88419
|
__privateAdd(this, _error4, __runInitializers(_init120, 52, this, "")), __runInitializers(_init120, 55, this);
|
|
88514
88420
|
__privateAdd(this, _showHeader2, __runInitializers(_init120, 56, this, true)), __runInitializers(_init120, 59, this);
|
|
88515
88421
|
__privateAdd(this, _answering, __runInitializers(_init120, 60, this, /* @__PURE__ */ new Set())), __runInitializers(_init120, 63, this);
|
|
@@ -88735,7 +88641,7 @@ _addComment = new WeakMap();
|
|
|
88735
88641
|
_askQuestion = new WeakMap();
|
|
88736
88642
|
_answerQuestion = new WeakMap();
|
|
88737
88643
|
_loading11 = new WeakMap();
|
|
88738
|
-
|
|
88644
|
+
_readOnly4 = new WeakMap();
|
|
88739
88645
|
_error4 = new WeakMap();
|
|
88740
88646
|
_showHeader2 = new WeakMap();
|
|
88741
88647
|
_answering = new WeakMap();
|
|
@@ -88749,7 +88655,7 @@ __decorateElement(_init120, 4, "addComment", _addComment_dec, _DeesKanbanDiscuss
|
|
|
88749
88655
|
__decorateElement(_init120, 4, "askQuestion", _askQuestion_dec, _DeesKanbanDiscussion, _askQuestion);
|
|
88750
88656
|
__decorateElement(_init120, 4, "answerQuestion", _answerQuestion_dec, _DeesKanbanDiscussion, _answerQuestion);
|
|
88751
88657
|
__decorateElement(_init120, 4, "loading", _loading_dec11, _DeesKanbanDiscussion, _loading11);
|
|
88752
|
-
__decorateElement(_init120, 4, "readOnly",
|
|
88658
|
+
__decorateElement(_init120, 4, "readOnly", _readOnly_dec4, _DeesKanbanDiscussion, _readOnly4);
|
|
88753
88659
|
__decorateElement(_init120, 4, "error", _error_dec4, _DeesKanbanDiscussion, _error4);
|
|
88754
88660
|
__decorateElement(_init120, 4, "showHeader", _showHeader_dec2, _DeesKanbanDiscussion, _showHeader2);
|
|
88755
88661
|
__decorateElement(_init120, 4, "answering", _answering_dec, _DeesKanbanDiscussion, _answering);
|
|
@@ -131095,7 +131001,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a154 = DeesElement,
|
|
|
131095
131001
|
this.terminalOpen = true;
|
|
131096
131002
|
const request = ++this.terminalRequest;
|
|
131097
131003
|
try {
|
|
131098
|
-
const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-
|
|
131004
|
+
const { DeesWorkspaceTerminal: DeesWorkspaceTerminal3 } = await import("./chunks/U6Ua8p1giFoD1s7vrUZUdpbg/dees-workspace-terminal-MUU2HDU3.js");
|
|
131099
131005
|
await this.updateComplete;
|
|
131100
131006
|
if (!this.isConnected || request !== this.terminalRequest) return;
|
|
131101
131007
|
const terminal = new DeesWorkspaceTerminal3();
|
|
@@ -137067,7 +136973,7 @@ var bright = {
|
|
|
137067
136973
|
// ts_web/00_commitinfo_data.ts
|
|
137068
136974
|
var commitinfo = {
|
|
137069
136975
|
name: "@design.estate/dees-catalog",
|
|
137070
|
-
version: "24.
|
|
136976
|
+
version: "24.6.0",
|
|
137071
136977
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
137072
136978
|
};
|
|
137073
136979
|
export {
|