@design.estate/dees-catalog 3.66.0 → 3.67.1
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 +116 -10
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-dataview/dees-table/dees-table.js +48 -7
- package/dist_ts_web/elements/00group-dataview/dees-table/styles.js +3 -1
- package/dist_ts_web/elements/00group-dataview/dees-table/types.d.ts +1 -0
- package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown.d.ts +1 -0
- package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown.js +43 -2
- package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.d.ts +1 -0
- package/dist_ts_web/elements/00group-input/dees-input-text/dees-input-text.js +43 -2
- package/dist_watch/bundle.js +114 -8
- package/dist_watch/bundle.js.map +3 -3
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-dataview/dees-table/dees-table.ts +46 -7
- package/ts_web/elements/00group-dataview/dees-table/styles.ts +5 -0
- package/ts_web/elements/00group-dataview/dees-table/types.ts +1 -0
- package/ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown.ts +36 -0
- package/ts_web/elements/00group-input/dees-input-text/dees-input-text.ts +36 -0
package/dist_bundle/bundle.js
CHANGED
|
@@ -143197,7 +143197,7 @@ var demoFunc13 = /* @__PURE__ */ __name(() => b2`
|
|
|
143197
143197
|
// ts_web/elements/00group-input/dees-input-text/dees-input-text.ts
|
|
143198
143198
|
init_dist_ts30();
|
|
143199
143199
|
init_theme();
|
|
143200
|
-
var _validationFunction_dec, _validationText_dec, _validationState_dec, _showPasswordBool_dec, _isPasswordBool_dec, _value_dec4, _a21, _DeesInputText_decorators, _init19, _value4, _isPasswordBool, _showPasswordBool, _validationState, _validationText, _validationFunction;
|
|
143200
|
+
var _vintegrated_dec, _validationFunction_dec, _validationText_dec, _validationState_dec, _showPasswordBool_dec, _isPasswordBool_dec, _value_dec4, _a21, _DeesInputText_decorators, _init19, _value4, _isPasswordBool, _showPasswordBool, _validationState, _validationText, _validationFunction, _vintegrated;
|
|
143201
143201
|
_DeesInputText_decorators = [customElement("dees-input-text")];
|
|
143202
143202
|
var _DeesInputText = class _DeesInputText extends (_a21 = DeesInputBase, _value_dec4 = [n5({
|
|
143203
143203
|
type: String,
|
|
@@ -143213,7 +143213,10 @@ var _DeesInputText = class _DeesInputText extends (_a21 = DeesInputBase, _value_
|
|
|
143213
143213
|
reflect: true
|
|
143214
143214
|
})], _validationText_dec = [n5({
|
|
143215
143215
|
reflect: true
|
|
143216
|
-
})], _validationFunction_dec = [n5({})],
|
|
143216
|
+
})], _validationFunction_dec = [n5({})], _vintegrated_dec = [n5({
|
|
143217
|
+
type: Boolean,
|
|
143218
|
+
reflect: true
|
|
143219
|
+
})], _a21) {
|
|
143217
143220
|
constructor() {
|
|
143218
143221
|
super(...arguments);
|
|
143219
143222
|
__privateAdd(this, _value4, __runInitializers(_init19, 8, this, "")), __runInitializers(_init19, 11, this);
|
|
@@ -143222,6 +143225,7 @@ var _DeesInputText = class _DeesInputText extends (_a21 = DeesInputBase, _value_
|
|
|
143222
143225
|
__privateAdd(this, _validationState, __runInitializers(_init19, 20, this)), __runInitializers(_init19, 23, this);
|
|
143223
143226
|
__privateAdd(this, _validationText, __runInitializers(_init19, 24, this, "")), __runInitializers(_init19, 27, this);
|
|
143224
143227
|
__privateAdd(this, _validationFunction, __runInitializers(_init19, 28, this)), __runInitializers(_init19, 31, this);
|
|
143228
|
+
__privateAdd(this, _vintegrated, __runInitializers(_init19, 32, this, false)), __runInitializers(_init19, 35, this);
|
|
143225
143229
|
}
|
|
143226
143230
|
render() {
|
|
143227
143231
|
return b2`
|
|
@@ -143302,12 +143306,14 @@ _showPasswordBool = new WeakMap();
|
|
|
143302
143306
|
_validationState = new WeakMap();
|
|
143303
143307
|
_validationText = new WeakMap();
|
|
143304
143308
|
_validationFunction = new WeakMap();
|
|
143309
|
+
_vintegrated = new WeakMap();
|
|
143305
143310
|
__decorateElement(_init19, 4, "value", _value_dec4, _DeesInputText, _value4);
|
|
143306
143311
|
__decorateElement(_init19, 4, "isPasswordBool", _isPasswordBool_dec, _DeesInputText, _isPasswordBool);
|
|
143307
143312
|
__decorateElement(_init19, 4, "showPasswordBool", _showPasswordBool_dec, _DeesInputText, _showPasswordBool);
|
|
143308
143313
|
__decorateElement(_init19, 4, "validationState", _validationState_dec, _DeesInputText, _validationState);
|
|
143309
143314
|
__decorateElement(_init19, 4, "validationText", _validationText_dec, _DeesInputText, _validationText);
|
|
143310
143315
|
__decorateElement(_init19, 4, "validationFunction", _validationFunction_dec, _DeesInputText, _validationFunction);
|
|
143316
|
+
__decorateElement(_init19, 4, "vintegrated", _vintegrated_dec, _DeesInputText, _vintegrated);
|
|
143311
143317
|
_DeesInputText = __decorateElement(_init19, 0, "DeesInputText", _DeesInputText_decorators, _DeesInputText);
|
|
143312
143318
|
__name(_DeesInputText, "DeesInputText");
|
|
143313
143319
|
__publicField(_DeesInputText, "demo", demoFunc13);
|
|
@@ -143449,6 +143455,36 @@ __publicField(_DeesInputText, "styles", [
|
|
|
143449
143455
|
border-color: ${cssManager.bdTheme("hsl(142.1 76.2% 36.3%)", "hsl(142.1 70.6% 45.3%)")};
|
|
143450
143456
|
box-shadow: 0 0 0 2px ${cssManager.bdTheme("hsl(142.1 76.2% 36.3% / 0.05)", "hsl(142.1 70.6% 45.3% / 0.05)")};
|
|
143451
143457
|
}
|
|
143458
|
+
|
|
143459
|
+
/* Visually integrated mode: shed chrome to blend into a host component
|
|
143460
|
+
(e.g. a dees-table cell in edit mode). */
|
|
143461
|
+
:host([vintegrated]) dees-label,
|
|
143462
|
+
:host([vintegrated]) .validationContainer {
|
|
143463
|
+
display: none;
|
|
143464
|
+
}
|
|
143465
|
+
:host([vintegrated]) .maincontainer {
|
|
143466
|
+
height: 40px;
|
|
143467
|
+
}
|
|
143468
|
+
:host([vintegrated]) input {
|
|
143469
|
+
height: 40px;
|
|
143470
|
+
line-height: 24px;
|
|
143471
|
+
padding: 0 16px;
|
|
143472
|
+
font-size: 13px;
|
|
143473
|
+
border: none;
|
|
143474
|
+
border-radius: 0;
|
|
143475
|
+
background: transparent;
|
|
143476
|
+
box-shadow: none;
|
|
143477
|
+
transition: none;
|
|
143478
|
+
}
|
|
143479
|
+
:host([vintegrated]) input:hover:not(:disabled):not(:focus),
|
|
143480
|
+
:host([vintegrated]) input:focus {
|
|
143481
|
+
border: none;
|
|
143482
|
+
box-shadow: none;
|
|
143483
|
+
background: transparent;
|
|
143484
|
+
}
|
|
143485
|
+
:host([vintegrated]) .showPassword {
|
|
143486
|
+
display: none;
|
|
143487
|
+
}
|
|
143452
143488
|
`
|
|
143453
143489
|
]);
|
|
143454
143490
|
__runInitializers(_init19, 1, _DeesInputText);
|
|
@@ -145824,17 +145860,21 @@ var DeesInputDropdownPopup = _DeesInputDropdownPopup;
|
|
|
145824
145860
|
// ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown.ts
|
|
145825
145861
|
init_dist_ts30();
|
|
145826
145862
|
init_theme();
|
|
145827
|
-
var _isOpened_dec2, _enableSearch_dec2, _selectedOption_dec2, _options_dec4, _a27, _DeesInputDropdown_decorators, _init25, _options4, _selectedOption2, _enableSearch2, _isOpened2;
|
|
145863
|
+
var _isOpened_dec2, _vintegrated_dec2, _enableSearch_dec2, _selectedOption_dec2, _options_dec4, _a27, _DeesInputDropdown_decorators, _init25, _options4, _selectedOption2, _enableSearch2, _vintegrated2, _isOpened2;
|
|
145828
145864
|
_DeesInputDropdown_decorators = [customElement("dees-input-dropdown")];
|
|
145829
145865
|
var _DeesInputDropdown = class _DeesInputDropdown extends (_a27 = DeesInputBase, _options_dec4 = [n5()], _selectedOption_dec2 = [n5()], _enableSearch_dec2 = [n5({
|
|
145830
145866
|
type: Boolean
|
|
145867
|
+
})], _vintegrated_dec2 = [n5({
|
|
145868
|
+
type: Boolean,
|
|
145869
|
+
reflect: true
|
|
145831
145870
|
})], _isOpened_dec2 = [r5()], _a27) {
|
|
145832
145871
|
constructor() {
|
|
145833
145872
|
super(...arguments);
|
|
145834
145873
|
__privateAdd(this, _options4, __runInitializers(_init25, 8, this, [])), __runInitializers(_init25, 11, this);
|
|
145835
145874
|
__privateAdd(this, _selectedOption2, __runInitializers(_init25, 12, this, null)), __runInitializers(_init25, 15, this);
|
|
145836
145875
|
__privateAdd(this, _enableSearch2, __runInitializers(_init25, 16, this, true)), __runInitializers(_init25, 19, this);
|
|
145837
|
-
__privateAdd(this,
|
|
145876
|
+
__privateAdd(this, _vintegrated2, __runInitializers(_init25, 20, this, false)), __runInitializers(_init25, 23, this);
|
|
145877
|
+
__privateAdd(this, _isOpened2, __runInitializers(_init25, 24, this, false)), __runInitializers(_init25, 27, this);
|
|
145838
145878
|
__publicField(this, "popupInstance", null);
|
|
145839
145879
|
__publicField(this, "handleOptionSelected", /* @__PURE__ */ __name((event) => {
|
|
145840
145880
|
const detail = event.detail;
|
|
@@ -145976,10 +146016,12 @@ _init25 = __decoratorStart(_a27);
|
|
|
145976
146016
|
_options4 = new WeakMap();
|
|
145977
146017
|
_selectedOption2 = new WeakMap();
|
|
145978
146018
|
_enableSearch2 = new WeakMap();
|
|
146019
|
+
_vintegrated2 = new WeakMap();
|
|
145979
146020
|
_isOpened2 = new WeakMap();
|
|
145980
146021
|
__decorateElement(_init25, 4, "options", _options_dec4, _DeesInputDropdown, _options4);
|
|
145981
146022
|
__decorateElement(_init25, 4, "selectedOption", _selectedOption_dec2, _DeesInputDropdown, _selectedOption2);
|
|
145982
146023
|
__decorateElement(_init25, 4, "enableSearch", _enableSearch_dec2, _DeesInputDropdown, _enableSearch2);
|
|
146024
|
+
__decorateElement(_init25, 4, "vintegrated", _vintegrated_dec2, _DeesInputDropdown, _vintegrated2);
|
|
145983
146025
|
__decorateElement(_init25, 4, "isOpened", _isOpened_dec2, _DeesInputDropdown, _isOpened2);
|
|
145984
146026
|
_DeesInputDropdown = __decorateElement(_init25, 0, "DeesInputDropdown", _DeesInputDropdown_decorators, _DeesInputDropdown);
|
|
145985
146027
|
__name(_DeesInputDropdown, "DeesInputDropdown");
|
|
@@ -146060,6 +146102,36 @@ __publicField(_DeesInputDropdown, "styles", [
|
|
|
146060
146102
|
.selectedBox.open::after {
|
|
146061
146103
|
transform: translateY(-50%) rotate(180deg);
|
|
146062
146104
|
}
|
|
146105
|
+
|
|
146106
|
+
/* Visually integrated mode: shed chrome to blend into a host component
|
|
146107
|
+
(e.g. a dees-table cell in edit mode). */
|
|
146108
|
+
:host([vintegrated]) dees-label {
|
|
146109
|
+
display: none;
|
|
146110
|
+
}
|
|
146111
|
+
:host([vintegrated]) .maincontainer {
|
|
146112
|
+
height: 40px;
|
|
146113
|
+
}
|
|
146114
|
+
:host([vintegrated]) .selectedBox {
|
|
146115
|
+
height: 40px;
|
|
146116
|
+
line-height: 40px;
|
|
146117
|
+
padding: 0 32px 0 16px;
|
|
146118
|
+
font-size: 13px;
|
|
146119
|
+
border: none;
|
|
146120
|
+
border-radius: 0;
|
|
146121
|
+
background: transparent;
|
|
146122
|
+
box-shadow: none;
|
|
146123
|
+
transition: none;
|
|
146124
|
+
}
|
|
146125
|
+
:host([vintegrated]) .selectedBox:hover:not(.disabled),
|
|
146126
|
+
:host([vintegrated]) .selectedBox:focus-visible {
|
|
146127
|
+
border: none;
|
|
146128
|
+
box-shadow: none;
|
|
146129
|
+
background: transparent;
|
|
146130
|
+
}
|
|
146131
|
+
:host([vintegrated]) .selectedBox::after {
|
|
146132
|
+
right: 12px;
|
|
146133
|
+
opacity: 0.6;
|
|
146134
|
+
}
|
|
146063
146135
|
`
|
|
146064
146136
|
]);
|
|
146065
146137
|
__runInitializers(_init25, 1, _DeesInputDropdown);
|
|
@@ -164217,6 +164289,11 @@ var tableStyles = [
|
|
|
164217
164289
|
}
|
|
164218
164290
|
td.editingCell {
|
|
164219
164291
|
padding: 0;
|
|
164292
|
+
outline: 2px solid ${cssManager.bdTheme(
|
|
164293
|
+
"hsl(222.2 47.4% 51.2% / 0.6)",
|
|
164294
|
+
"hsl(217.2 91.2% 59.8% / 0.6)"
|
|
164295
|
+
)};
|
|
164296
|
+
outline-offset: -2px;
|
|
164220
164297
|
}
|
|
164221
164298
|
td.editingCell .innerCellContainer {
|
|
164222
164299
|
padding: 0;
|
|
@@ -165195,7 +165272,7 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
165195
165272
|
</th>
|
|
165196
165273
|
` : b2``}
|
|
165197
165274
|
${effectiveColumns.filter((c11) => !c11.hidden).map((col) => {
|
|
165198
|
-
const isSortable =
|
|
165275
|
+
const isSortable = col.sortable !== false;
|
|
165199
165276
|
const ariaSort = this.getAriaSort(col);
|
|
165200
165277
|
return b2`
|
|
165201
165278
|
<th
|
|
@@ -165423,10 +165500,16 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
165423
165500
|
headerHeight += realHeadRows[r11].getBoundingClientRect().height;
|
|
165424
165501
|
}
|
|
165425
165502
|
}
|
|
165426
|
-
const
|
|
165503
|
+
const distance = tableRect.bottom - stick.top;
|
|
165504
|
+
const shouldBeActive = tableRect.top < stick.top && distance > 0;
|
|
165427
165505
|
if (shouldBeActive !== this.__floatingActive) {
|
|
165428
165506
|
this.__floatingActive = shouldBeActive;
|
|
165429
165507
|
fh.classList.toggle("active", shouldBeActive);
|
|
165508
|
+
if (!shouldBeActive) {
|
|
165509
|
+
fh.style.height = "";
|
|
165510
|
+
const ft = this.__floatingTableEl;
|
|
165511
|
+
if (ft) ft.style.transform = "";
|
|
165512
|
+
}
|
|
165430
165513
|
if (shouldBeActive) {
|
|
165431
165514
|
this.updateComplete.then(() => this.__syncFloatingHeader());
|
|
165432
165515
|
return;
|
|
@@ -165455,8 +165538,12 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
165455
165538
|
fh.style.top = `${stick.top}px`;
|
|
165456
165539
|
fh.style.left = `${clipLeft}px`;
|
|
165457
165540
|
fh.style.width = `${clipWidth}px`;
|
|
165541
|
+
const visibleHeight = Math.min(headerHeight, distance);
|
|
165542
|
+
const exitOffset = headerHeight - visibleHeight;
|
|
165543
|
+
fh.style.height = `${visibleHeight}px`;
|
|
165458
165544
|
floatTable.style.width = `${tableRect.width}px`;
|
|
165459
165545
|
floatTable.style.marginLeft = `${tableRect.left - clipLeft}px`;
|
|
165546
|
+
floatTable.style.transform = exitOffset > 0 ? `translateY(-${exitOffset}px)` : "";
|
|
165460
165547
|
}
|
|
165461
165548
|
async disconnectedCallback() {
|
|
165462
165549
|
super.disconnectedCallback();
|
|
@@ -165768,7 +165855,7 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
165768
165855
|
const key2 = String(col.key);
|
|
165769
165856
|
const existing = this.getSortDescriptor(key2);
|
|
165770
165857
|
const cascadeLen = this.sortBy.length;
|
|
165771
|
-
const sortableColumnCount = effectiveColumns.filter((c11) =>
|
|
165858
|
+
const sortableColumnCount = effectiveColumns.filter((c11) => c11.sortable !== false).length;
|
|
165772
165859
|
const maxSlot = Math.min(
|
|
165773
165860
|
Math.max(cascadeLen + (existing ? 0 : 1), 1),
|
|
165774
165861
|
Math.max(sortableColumnCount, 1)
|
|
@@ -165862,6 +165949,16 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
165862
165949
|
}, "action")
|
|
165863
165950
|
});
|
|
165864
165951
|
}
|
|
165952
|
+
items.push({ divider: true });
|
|
165953
|
+
items.push({
|
|
165954
|
+
name: this.showColumnFilters ? "Hide column filters" : "Show column filters",
|
|
165955
|
+
iconName: this.showColumnFilters ? "lucide:filterX" : "lucide:filter",
|
|
165956
|
+
action: /* @__PURE__ */ __name(async () => {
|
|
165957
|
+
this.showColumnFilters = !this.showColumnFilters;
|
|
165958
|
+
this.requestUpdate();
|
|
165959
|
+
return null;
|
|
165960
|
+
}, "action")
|
|
165961
|
+
});
|
|
165865
165962
|
return items;
|
|
165866
165963
|
}
|
|
165867
165964
|
// ─── sort: indicator + ARIA ──────────────────────────────────────────
|
|
@@ -166130,6 +166227,9 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
166130
166227
|
".editingCell dees-input-text, .editingCell dees-input-checkbox, .editingCell dees-input-dropdown, .editingCell dees-input-datepicker, .editingCell dees-input-tags"
|
|
166131
166228
|
);
|
|
166132
166229
|
el?.focus?.();
|
|
166230
|
+
if (el?.tagName === "DEES-INPUT-DROPDOWN") {
|
|
166231
|
+
el.updateComplete?.then(() => el.toggleSelectionBox?.());
|
|
166232
|
+
}
|
|
166133
166233
|
});
|
|
166134
166234
|
}
|
|
166135
166235
|
/** Closes the editor without committing. */
|
|
@@ -166191,8 +166291,13 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
166191
166291
|
></dees-input-checkbox>`;
|
|
166192
166292
|
case "dropdown": {
|
|
166193
166293
|
const options2 = col.editorOptions?.options ?? [];
|
|
166194
|
-
const selected = options2.find((o13) =>
|
|
166294
|
+
const selected = options2.find((o13) => {
|
|
166295
|
+
if (o13 == null) return false;
|
|
166296
|
+
if (typeof o13 === "string") return o13 === raw2;
|
|
166297
|
+
return o13.key === raw2 || o13.option === raw2;
|
|
166298
|
+
}) ?? null;
|
|
166195
166299
|
return b2`<dees-input-dropdown
|
|
166300
|
+
.vintegrated=${true}
|
|
166196
166301
|
.options=${options2}
|
|
166197
166302
|
.selectedOption=${selected}
|
|
166198
166303
|
@selectedOption=${(e11) => {
|
|
@@ -166219,6 +166324,7 @@ var _DeesTable = class _DeesTable extends (_a42 = DeesElement, _heading1_dec = [
|
|
|
166219
166324
|
case "text":
|
|
166220
166325
|
default:
|
|
166221
166326
|
return b2`<dees-input-text
|
|
166327
|
+
.vintegrated=${true}
|
|
166222
166328
|
.value=${value2 == null ? "" : String(value2)}
|
|
166223
166329
|
@focusout=${(e11) => onTextCommit(e11.target)}
|
|
166224
166330
|
@keydown=${(e11) => this.__handleEditorKey(e11, item, col)}
|
|
@@ -200209,7 +200315,7 @@ init_group_runtime();
|
|
|
200209
200315
|
// ts_web/00_commitinfo_data.ts
|
|
200210
200316
|
var commitinfo = {
|
|
200211
200317
|
name: "@design.estate/dees-catalog",
|
|
200212
|
-
version: "3.
|
|
200318
|
+
version: "3.67.1",
|
|
200213
200319
|
description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
|
|
200214
200320
|
};
|
|
200215
200321
|
export {
|
|
@@ -202182,4 +202288,4 @@ ibantools/jsnext/ibantools.js:
|
|
|
202182
202288
|
* @preferred
|
|
202183
202289
|
*)
|
|
202184
202290
|
*/
|
|
202185
|
-
//# sourceMappingURL=bundle-
|
|
202291
|
+
//# sourceMappingURL=bundle-1775597736098.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '3.
|
|
6
|
+
version: '3.67.1',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUsNkJBQTZCO0lBQ25DLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSxzSkFBc0o7Q0FDcEssQ0FBQSJ9
|