@design.estate/dees-catalog 1.0.188 → 1.0.190
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 +284 -249
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/dees-contextmenu.demo.d.ts +1 -0
- package/dist_ts_web/elements/dees-contextmenu.demo.js +56 -0
- package/dist_ts_web/elements/dees-contextmenu.js +12 -58
- package/dist_ts_web/elements/dees-simple-appdash.d.ts +13 -1
- package/dist_ts_web/elements/dees-simple-appdash.demo.d.ts +1 -0
- package/dist_ts_web/elements/dees-simple-appdash.demo.js +5 -0
- package/dist_ts_web/elements/dees-simple-appdash.js +70 -2
- package/dist_ts_web/elements/dees-simple-login.demo.d.ts +1 -0
- package/dist_ts_web/elements/dees-simple-login.demo.js +3 -0
- package/dist_ts_web/elements/dees-simple-login.js +3 -6
- package/dist_ts_web/elements/dees-table.d.ts +4 -3
- package/dist_ts_web/elements/dees-table.demo.d.ts +1 -0
- package/dist_ts_web/elements/dees-table.demo.js +113 -0
- package/dist_ts_web/elements/dees-table.js +34 -126
- package/dist_ts_web/elements/index.d.ts +1 -0
- package/dist_ts_web/elements/index.js +2 -1
- package/dist_watch/bundle.js +342 -255
- package/dist_watch/bundle.js.map +4 -4
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/dees-contextmenu.demo.ts +57 -0
- package/ts_web/elements/dees-contextmenu.ts +12 -57
- package/ts_web/elements/dees-simple-appdash.demo.ts +5 -0
- package/ts_web/elements/dees-simple-appdash.ts +74 -0
- package/ts_web/elements/dees-simple-login.demo.ts +3 -0
- package/ts_web/elements/dees-simple-login.ts +3 -5
- package/ts_web/elements/dees-table.demo.ts +113 -0
- package/ts_web/elements/dees-table.ts +39 -130
- package/ts_web/elements/index.ts +1 -0
package/dist_watch/bundle.js
CHANGED
|
@@ -8492,7 +8492,7 @@ var require_core = __commonJS({
|
|
|
8492
8492
|
var HLJS = function(hljs) {
|
|
8493
8493
|
const languages = /* @__PURE__ */ Object.create(null);
|
|
8494
8494
|
const aliases = /* @__PURE__ */ Object.create(null);
|
|
8495
|
-
const
|
|
8495
|
+
const plugins8 = [];
|
|
8496
8496
|
let SAFE_MODE = true;
|
|
8497
8497
|
const LANGUAGE_NOT_FOUND = "Could not find the language '{}', did you forget to load/include a language module?";
|
|
8498
8498
|
const PLAINTEXT_LANGUAGE = { disableAutodetect: true, name: "Plain text", contains: [] };
|
|
@@ -9061,17 +9061,17 @@ var require_core = __commonJS({
|
|
|
9061
9061
|
}
|
|
9062
9062
|
function addPlugin(plugin) {
|
|
9063
9063
|
upgradePluginAPI(plugin);
|
|
9064
|
-
|
|
9064
|
+
plugins8.push(plugin);
|
|
9065
9065
|
}
|
|
9066
9066
|
function removePlugin(plugin) {
|
|
9067
|
-
const index =
|
|
9067
|
+
const index = plugins8.indexOf(plugin);
|
|
9068
9068
|
if (index !== -1) {
|
|
9069
|
-
|
|
9069
|
+
plugins8.splice(index, 1);
|
|
9070
9070
|
}
|
|
9071
9071
|
}
|
|
9072
9072
|
function fire(event, args) {
|
|
9073
9073
|
const cb = event;
|
|
9074
|
-
|
|
9074
|
+
plugins8.forEach(function(plugin) {
|
|
9075
9075
|
if (plugin[cb]) {
|
|
9076
9076
|
plugin[cb](args);
|
|
9077
9077
|
}
|
|
@@ -59178,7 +59178,7 @@ var Action = function(_super) {
|
|
|
59178
59178
|
function Action2(scheduler, work) {
|
|
59179
59179
|
return _super.call(this) || this;
|
|
59180
59180
|
}
|
|
59181
|
-
Action2.prototype.schedule = function(
|
|
59181
|
+
Action2.prototype.schedule = function(state6, delay) {
|
|
59182
59182
|
if (delay === void 0) {
|
|
59183
59183
|
delay = 0;
|
|
59184
59184
|
}
|
|
@@ -59217,7 +59217,7 @@ var AsyncAction = function(_super) {
|
|
|
59217
59217
|
_this.pending = false;
|
|
59218
59218
|
return _this;
|
|
59219
59219
|
}
|
|
59220
|
-
AsyncAction2.prototype.schedule = function(
|
|
59220
|
+
AsyncAction2.prototype.schedule = function(state6, delay) {
|
|
59221
59221
|
var _a2;
|
|
59222
59222
|
if (delay === void 0) {
|
|
59223
59223
|
delay = 0;
|
|
@@ -59225,7 +59225,7 @@ var AsyncAction = function(_super) {
|
|
|
59225
59225
|
if (this.closed) {
|
|
59226
59226
|
return this;
|
|
59227
59227
|
}
|
|
59228
|
-
this.state =
|
|
59228
|
+
this.state = state6;
|
|
59229
59229
|
var id = this.id;
|
|
59230
59230
|
var scheduler = this.scheduler;
|
|
59231
59231
|
if (id != null) {
|
|
@@ -59254,23 +59254,23 @@ var AsyncAction = function(_super) {
|
|
|
59254
59254
|
}
|
|
59255
59255
|
return void 0;
|
|
59256
59256
|
};
|
|
59257
|
-
AsyncAction2.prototype.execute = function(
|
|
59257
|
+
AsyncAction2.prototype.execute = function(state6, delay) {
|
|
59258
59258
|
if (this.closed) {
|
|
59259
59259
|
return new Error("executing a cancelled action");
|
|
59260
59260
|
}
|
|
59261
59261
|
this.pending = false;
|
|
59262
|
-
var error = this._execute(
|
|
59262
|
+
var error = this._execute(state6, delay);
|
|
59263
59263
|
if (error) {
|
|
59264
59264
|
return error;
|
|
59265
59265
|
} else if (this.pending === false && this.id != null) {
|
|
59266
59266
|
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
59267
59267
|
}
|
|
59268
59268
|
};
|
|
59269
|
-
AsyncAction2.prototype._execute = function(
|
|
59269
|
+
AsyncAction2.prototype._execute = function(state6, _delay) {
|
|
59270
59270
|
var errored = false;
|
|
59271
59271
|
var errorValue;
|
|
59272
59272
|
try {
|
|
59273
|
-
this.work(
|
|
59273
|
+
this.work(state6);
|
|
59274
59274
|
} catch (e12) {
|
|
59275
59275
|
errored = true;
|
|
59276
59276
|
errorValue = e12 ? e12 : new Error("Scheduled action threw falsy error");
|
|
@@ -59306,11 +59306,11 @@ var Scheduler = function() {
|
|
|
59306
59306
|
this.schedulerActionCtor = schedulerActionCtor;
|
|
59307
59307
|
this.now = now2;
|
|
59308
59308
|
}
|
|
59309
|
-
Scheduler2.prototype.schedule = function(work, delay,
|
|
59309
|
+
Scheduler2.prototype.schedule = function(work, delay, state6) {
|
|
59310
59310
|
if (delay === void 0) {
|
|
59311
59311
|
delay = 0;
|
|
59312
59312
|
}
|
|
59313
|
-
return new this.schedulerActionCtor(this, work).schedule(
|
|
59313
|
+
return new this.schedulerActionCtor(this, work).schedule(state6, delay);
|
|
59314
59314
|
};
|
|
59315
59315
|
Scheduler2.now = dateTimestampProvider.now;
|
|
59316
59316
|
return Scheduler2;
|
|
@@ -64077,18 +64077,18 @@ var isNode = Object.prototype.toString.call(typeof process !== "undefined" ? pro
|
|
|
64077
64077
|
var microSeconds2 = microSeconds;
|
|
64078
64078
|
var type = "native";
|
|
64079
64079
|
function create(channelName) {
|
|
64080
|
-
var
|
|
64080
|
+
var state6 = {
|
|
64081
64081
|
messagesCallback: null,
|
|
64082
64082
|
bc: new BroadcastChannel(channelName),
|
|
64083
64083
|
subFns: []
|
|
64084
64084
|
// subscriberFunctions
|
|
64085
64085
|
};
|
|
64086
|
-
|
|
64087
|
-
if (
|
|
64088
|
-
|
|
64086
|
+
state6.bc.onmessage = function(msg) {
|
|
64087
|
+
if (state6.messagesCallback) {
|
|
64088
|
+
state6.messagesCallback(msg.data);
|
|
64089
64089
|
}
|
|
64090
64090
|
};
|
|
64091
|
-
return
|
|
64091
|
+
return state6;
|
|
64092
64092
|
}
|
|
64093
64093
|
function close(channelState) {
|
|
64094
64094
|
channelState.bc.close();
|
|
@@ -64332,7 +64332,7 @@ function cleanOldMessages(db, ttl) {
|
|
|
64332
64332
|
function create2(channelName, options) {
|
|
64333
64333
|
options = fillOptionsWithDefaults(options);
|
|
64334
64334
|
return createDatabase(channelName).then(function(db) {
|
|
64335
|
-
var
|
|
64335
|
+
var state6 = {
|
|
64336
64336
|
closed: false,
|
|
64337
64337
|
lastCursorId: 0,
|
|
64338
64338
|
channelName,
|
|
@@ -64351,54 +64351,54 @@ function create2(channelName, options) {
|
|
|
64351
64351
|
db
|
|
64352
64352
|
};
|
|
64353
64353
|
db.onclose = function() {
|
|
64354
|
-
|
|
64354
|
+
state6.closed = true;
|
|
64355
64355
|
if (options.idb.onclose)
|
|
64356
64356
|
options.idb.onclose();
|
|
64357
64357
|
};
|
|
64358
|
-
_readLoop(
|
|
64359
|
-
return
|
|
64358
|
+
_readLoop(state6);
|
|
64359
|
+
return state6;
|
|
64360
64360
|
});
|
|
64361
64361
|
}
|
|
64362
|
-
function _readLoop(
|
|
64363
|
-
if (
|
|
64362
|
+
function _readLoop(state6) {
|
|
64363
|
+
if (state6.closed)
|
|
64364
64364
|
return;
|
|
64365
|
-
readNewMessages(
|
|
64366
|
-
return sleep(
|
|
64365
|
+
readNewMessages(state6).then(function() {
|
|
64366
|
+
return sleep(state6.options.idb.fallbackInterval);
|
|
64367
64367
|
}).then(function() {
|
|
64368
|
-
return _readLoop(
|
|
64368
|
+
return _readLoop(state6);
|
|
64369
64369
|
});
|
|
64370
64370
|
}
|
|
64371
|
-
function _filterMessage(msgObj,
|
|
64372
|
-
if (msgObj.uuid ===
|
|
64371
|
+
function _filterMessage(msgObj, state6) {
|
|
64372
|
+
if (msgObj.uuid === state6.uuid)
|
|
64373
64373
|
return false;
|
|
64374
|
-
if (
|
|
64374
|
+
if (state6.eMIs.has(msgObj.id))
|
|
64375
64375
|
return false;
|
|
64376
|
-
if (msgObj.data.time <
|
|
64376
|
+
if (msgObj.data.time < state6.messagesCallbackTime)
|
|
64377
64377
|
return false;
|
|
64378
64378
|
return true;
|
|
64379
64379
|
}
|
|
64380
|
-
function readNewMessages(
|
|
64381
|
-
if (
|
|
64380
|
+
function readNewMessages(state6) {
|
|
64381
|
+
if (state6.closed)
|
|
64382
64382
|
return Promise.resolve();
|
|
64383
|
-
if (!
|
|
64383
|
+
if (!state6.messagesCallback)
|
|
64384
64384
|
return Promise.resolve();
|
|
64385
|
-
return getMessagesHigherThan(
|
|
64385
|
+
return getMessagesHigherThan(state6.db, state6.lastCursorId).then(function(newerMessages) {
|
|
64386
64386
|
var useMessages = newerMessages.filter(function(msgObj) {
|
|
64387
64387
|
return !!msgObj;
|
|
64388
64388
|
}).map(function(msgObj) {
|
|
64389
|
-
if (msgObj.id >
|
|
64390
|
-
|
|
64389
|
+
if (msgObj.id > state6.lastCursorId) {
|
|
64390
|
+
state6.lastCursorId = msgObj.id;
|
|
64391
64391
|
}
|
|
64392
64392
|
return msgObj;
|
|
64393
64393
|
}).filter(function(msgObj) {
|
|
64394
|
-
return _filterMessage(msgObj,
|
|
64394
|
+
return _filterMessage(msgObj, state6);
|
|
64395
64395
|
}).sort(function(msgObjA, msgObjB) {
|
|
64396
64396
|
return msgObjA.time - msgObjB.time;
|
|
64397
64397
|
});
|
|
64398
64398
|
useMessages.forEach(function(msgObj) {
|
|
64399
|
-
if (
|
|
64400
|
-
|
|
64401
|
-
|
|
64399
|
+
if (state6.messagesCallback) {
|
|
64400
|
+
state6.eMIs.add(msgObj.id);
|
|
64401
|
+
state6.messagesCallback(msgObj.data);
|
|
64402
64402
|
}
|
|
64403
64403
|
});
|
|
64404
64404
|
return Promise.resolve();
|
|
@@ -64504,25 +64504,25 @@ function create3(channelName, options) {
|
|
|
64504
64504
|
}
|
|
64505
64505
|
var uuid = randomToken();
|
|
64506
64506
|
var eMIs = new ObliviousSet(options.localstorage.removeTimeout);
|
|
64507
|
-
var
|
|
64507
|
+
var state6 = {
|
|
64508
64508
|
channelName,
|
|
64509
64509
|
uuid,
|
|
64510
64510
|
eMIs
|
|
64511
64511
|
// emittedMessagesIds
|
|
64512
64512
|
};
|
|
64513
|
-
|
|
64514
|
-
if (!
|
|
64513
|
+
state6.listener = addStorageEventListener(channelName, function(msgObj) {
|
|
64514
|
+
if (!state6.messagesCallback)
|
|
64515
64515
|
return;
|
|
64516
64516
|
if (msgObj.uuid === uuid)
|
|
64517
64517
|
return;
|
|
64518
64518
|
if (!msgObj.token || eMIs.has(msgObj.token))
|
|
64519
64519
|
return;
|
|
64520
|
-
if (msgObj.data.time && msgObj.data.time <
|
|
64520
|
+
if (msgObj.data.time && msgObj.data.time < state6.messagesCallbackTime)
|
|
64521
64521
|
return;
|
|
64522
64522
|
eMIs.add(msgObj.token);
|
|
64523
|
-
|
|
64523
|
+
state6.messagesCallback(msgObj.data);
|
|
64524
64524
|
});
|
|
64525
|
-
return
|
|
64525
|
+
return state6;
|
|
64526
64526
|
}
|
|
64527
64527
|
function close3(channelState) {
|
|
64528
64528
|
removeStorageEventListener(channelState.listener);
|
|
@@ -64570,12 +64570,12 @@ var microSeconds5 = microSeconds;
|
|
|
64570
64570
|
var type4 = "simulate";
|
|
64571
64571
|
var SIMULATE_CHANNELS = /* @__PURE__ */ new Set();
|
|
64572
64572
|
function create4(channelName) {
|
|
64573
|
-
var
|
|
64573
|
+
var state6 = {
|
|
64574
64574
|
name: channelName,
|
|
64575
64575
|
messagesCallback: null
|
|
64576
64576
|
};
|
|
64577
|
-
SIMULATE_CHANNELS.add(
|
|
64578
|
-
return
|
|
64577
|
+
SIMULATE_CHANNELS.add(state6);
|
|
64578
|
+
return state6;
|
|
64579
64579
|
}
|
|
64580
64580
|
function close4(channelState) {
|
|
64581
64581
|
SIMULATE_CHANNELS["delete"](channelState);
|
|
@@ -68071,11 +68071,11 @@ var SmartRouter = class {
|
|
|
68071
68071
|
/**
|
|
68072
68072
|
* Push route state to history stack
|
|
68073
68073
|
*/
|
|
68074
|
-
async pushUrl(url3 = "/",
|
|
68074
|
+
async pushUrl(url3 = "/", state6 = {}) {
|
|
68075
68075
|
if (url3 !== window.location.pathname) {
|
|
68076
|
-
window.history.pushState(
|
|
68076
|
+
window.history.pushState(state6, window.document.title, url3);
|
|
68077
68077
|
} else {
|
|
68078
|
-
window.history.replaceState(
|
|
68078
|
+
window.history.replaceState(state6, window.document.title, url3);
|
|
68079
68079
|
}
|
|
68080
68080
|
await this._handleRouteState();
|
|
68081
68081
|
}
|
|
@@ -68205,7 +68205,7 @@ var StatePart = class {
|
|
|
68205
68205
|
*/
|
|
68206
68206
|
select(selectorFn) {
|
|
68207
68207
|
if (!selectorFn) {
|
|
68208
|
-
selectorFn = (
|
|
68208
|
+
selectorFn = (state6) => state6;
|
|
68209
68209
|
}
|
|
68210
68210
|
const mapped = this.state.pipe(dist_ts_exports2.rxjs.ops.startWith(this.getState()), dist_ts_exports2.rxjs.ops.map((stateArg) => {
|
|
68211
68211
|
try {
|
|
@@ -70707,6 +70707,7 @@ __export(elements_exports, {
|
|
|
70707
70707
|
DeesInputText: () => DeesInputText,
|
|
70708
70708
|
DeesMobilenavigation: () => DeesMobilenavigation,
|
|
70709
70709
|
DeesPdf: () => DeesPdf,
|
|
70710
|
+
DeesSimpleAppDash: () => DeesSimpleAppDash,
|
|
70710
70711
|
DeesSimpleLogin: () => DeesSimpleLogin,
|
|
70711
70712
|
DeesSpeechbubble: () => DeesSpeechbubble,
|
|
70712
70713
|
DeesSpinner: () => DeesSpinner,
|
|
@@ -71063,6 +71064,65 @@ DeesChips = __decorateClass([
|
|
|
71063
71064
|
e7("dees-chips")
|
|
71064
71065
|
], DeesChips);
|
|
71065
71066
|
|
|
71067
|
+
// ts_web/elements/dees-contextmenu.demo.ts
|
|
71068
|
+
var demoFunc = () => x`
|
|
71069
|
+
<style>
|
|
71070
|
+
.withMargin {
|
|
71071
|
+
display: block;
|
|
71072
|
+
margin: 20px;
|
|
71073
|
+
}
|
|
71074
|
+
</style>
|
|
71075
|
+
<dees-button @contextmenu=${(eventArg) => {
|
|
71076
|
+
DeesContextmenu.openContextMenuWithOptions(eventArg, [
|
|
71077
|
+
{
|
|
71078
|
+
name: "copy",
|
|
71079
|
+
iconName: "copySolid",
|
|
71080
|
+
action: async () => {
|
|
71081
|
+
return null;
|
|
71082
|
+
}
|
|
71083
|
+
},
|
|
71084
|
+
{
|
|
71085
|
+
name: "edit",
|
|
71086
|
+
iconName: "penToSquare",
|
|
71087
|
+
action: async () => {
|
|
71088
|
+
return null;
|
|
71089
|
+
}
|
|
71090
|
+
},
|
|
71091
|
+
{
|
|
71092
|
+
name: "paste",
|
|
71093
|
+
iconName: "pasteSolid",
|
|
71094
|
+
action: async () => {
|
|
71095
|
+
return null;
|
|
71096
|
+
}
|
|
71097
|
+
}
|
|
71098
|
+
]);
|
|
71099
|
+
}}>Hello</dees-button>
|
|
71100
|
+
<dees-contextmenu class="withMargin"></dees-contextmenu>
|
|
71101
|
+
<dees-contextmenu
|
|
71102
|
+
class="withMargin"
|
|
71103
|
+
.menuItems=${[
|
|
71104
|
+
{
|
|
71105
|
+
name: "copy",
|
|
71106
|
+
iconName: "copySolid",
|
|
71107
|
+
action: async () => {
|
|
71108
|
+
}
|
|
71109
|
+
},
|
|
71110
|
+
{
|
|
71111
|
+
name: "edit",
|
|
71112
|
+
iconName: "penToSquare",
|
|
71113
|
+
action: async () => {
|
|
71114
|
+
}
|
|
71115
|
+
},
|
|
71116
|
+
{
|
|
71117
|
+
name: "paste",
|
|
71118
|
+
iconName: "pasteSolid",
|
|
71119
|
+
action: async () => {
|
|
71120
|
+
}
|
|
71121
|
+
}
|
|
71122
|
+
]}
|
|
71123
|
+
></dees-contextmenu>
|
|
71124
|
+
`;
|
|
71125
|
+
|
|
71066
71126
|
// ts_web/elements/dees-windowlayer.ts
|
|
71067
71127
|
var DeesWindowLayer = class extends DeesElement {
|
|
71068
71128
|
constructor() {
|
|
@@ -71158,6 +71218,7 @@ var DeesContextmenu = class extends DeesElement {
|
|
|
71158
71218
|
// STATIC
|
|
71159
71219
|
static async openContextMenuWithOptions(eventArg, menuItemsArg) {
|
|
71160
71220
|
eventArg.preventDefault();
|
|
71221
|
+
eventArg.stopPropagation();
|
|
71161
71222
|
const contextMenu = new DeesContextmenu();
|
|
71162
71223
|
contextMenu.style.position = "absolute";
|
|
71163
71224
|
contextMenu.style.zIndex = "2000";
|
|
@@ -71187,14 +71248,18 @@ var DeesContextmenu = class extends DeesElement {
|
|
|
71187
71248
|
</div>
|
|
71188
71249
|
`;
|
|
71189
71250
|
})}
|
|
71251
|
+
${this.menuItems.length === 0 ? x`
|
|
71252
|
+
<div class="menuitem" @click=${() => {
|
|
71253
|
+
alert("No menu items...");
|
|
71254
|
+
}}>
|
|
71255
|
+
<dees-icon .iconFA=${"xmark"}></dees-icon
|
|
71256
|
+
>No menu item present...
|
|
71257
|
+
</div>
|
|
71258
|
+
` : x``}
|
|
71190
71259
|
</div>
|
|
71191
71260
|
`;
|
|
71192
71261
|
}
|
|
71193
71262
|
async firstUpdated() {
|
|
71194
|
-
if (!this.menuItems || this.menuItems.length === 0) {
|
|
71195
|
-
const mainbox = this.shadowRoot.querySelector(".mainbox");
|
|
71196
|
-
mainbox.textContent = "no menu items present";
|
|
71197
|
-
}
|
|
71198
71263
|
}
|
|
71199
71264
|
async handleClick(menuItem) {
|
|
71200
71265
|
menuItem.action();
|
|
@@ -71211,63 +71276,7 @@ var DeesContextmenu = class extends DeesElement {
|
|
|
71211
71276
|
}
|
|
71212
71277
|
};
|
|
71213
71278
|
// DEMO
|
|
71214
|
-
DeesContextmenu.demo =
|
|
71215
|
-
<style>
|
|
71216
|
-
.withMargin {
|
|
71217
|
-
display: block;
|
|
71218
|
-
margin: 20px;
|
|
71219
|
-
}
|
|
71220
|
-
</style>
|
|
71221
|
-
<dees-button @contextmenu=${(eventArg) => {
|
|
71222
|
-
DeesContextmenu.openContextMenuWithOptions(eventArg, [
|
|
71223
|
-
{
|
|
71224
|
-
name: "copy",
|
|
71225
|
-
iconName: "copySolid",
|
|
71226
|
-
action: async () => {
|
|
71227
|
-
return null;
|
|
71228
|
-
}
|
|
71229
|
-
},
|
|
71230
|
-
{
|
|
71231
|
-
name: "edit",
|
|
71232
|
-
iconName: "penToSquare",
|
|
71233
|
-
action: async () => {
|
|
71234
|
-
return null;
|
|
71235
|
-
}
|
|
71236
|
-
},
|
|
71237
|
-
{
|
|
71238
|
-
name: "paste",
|
|
71239
|
-
iconName: "pasteSolid",
|
|
71240
|
-
action: async () => {
|
|
71241
|
-
return null;
|
|
71242
|
-
}
|
|
71243
|
-
}
|
|
71244
|
-
]);
|
|
71245
|
-
}}>Hello</dees-button>
|
|
71246
|
-
<dees-contextmenu class="withMargin"></dees-contextmenu>
|
|
71247
|
-
<dees-contextmenu
|
|
71248
|
-
class="withMargin"
|
|
71249
|
-
.menuItems=${[
|
|
71250
|
-
{
|
|
71251
|
-
name: "copy",
|
|
71252
|
-
iconName: "copySolid",
|
|
71253
|
-
action: async () => {
|
|
71254
|
-
}
|
|
71255
|
-
},
|
|
71256
|
-
{
|
|
71257
|
-
name: "edit",
|
|
71258
|
-
iconName: "penToSquare",
|
|
71259
|
-
action: async () => {
|
|
71260
|
-
}
|
|
71261
|
-
},
|
|
71262
|
-
{
|
|
71263
|
-
name: "paste",
|
|
71264
|
-
iconName: "pasteSolid",
|
|
71265
|
-
action: async () => {
|
|
71266
|
-
}
|
|
71267
|
-
}
|
|
71268
|
-
]}
|
|
71269
|
-
></dees-contextmenu>
|
|
71270
|
-
`;
|
|
71279
|
+
DeesContextmenu.demo = demoFunc;
|
|
71271
71280
|
DeesContextmenu.styles = [
|
|
71272
71281
|
cssManager.defaultStyles,
|
|
71273
71282
|
i`
|
|
@@ -71281,7 +71290,7 @@ DeesContextmenu.styles = [
|
|
|
71281
71290
|
font-size: 14px;
|
|
71282
71291
|
width: 200px;
|
|
71283
71292
|
border: 1px solid #444;
|
|
71284
|
-
min-height:
|
|
71293
|
+
min-height: 34px;
|
|
71285
71294
|
border-radius: 3px;
|
|
71286
71295
|
background: #222;
|
|
71287
71296
|
box-shadow: 0px 1px 4px #000;
|
|
@@ -71320,7 +71329,7 @@ DeesContextmenu = __decorateClass([
|
|
|
71320
71329
|
], DeesContextmenu);
|
|
71321
71330
|
|
|
71322
71331
|
// ts_web/elements/dees-dataview-codebox.demo.ts
|
|
71323
|
-
var
|
|
71332
|
+
var demoFunc2 = () => x` <style>
|
|
71324
71333
|
.demoWrapper {
|
|
71325
71334
|
box-sizing: border-box;
|
|
71326
71335
|
position: absolute;
|
|
@@ -71517,7 +71526,7 @@ var DeesDataviewCodebox = class extends DeesElement {
|
|
|
71517
71526
|
localCodeNode.innerHTML = html.value;
|
|
71518
71527
|
}
|
|
71519
71528
|
};
|
|
71520
|
-
DeesDataviewCodebox.demo =
|
|
71529
|
+
DeesDataviewCodebox.demo = demoFunc2;
|
|
71521
71530
|
__decorateClass([
|
|
71522
71531
|
n5()
|
|
71523
71532
|
], DeesDataviewCodebox.prototype, "progLang", 2);
|
|
@@ -71535,7 +71544,7 @@ DeesDataviewCodebox = __decorateClass([
|
|
|
71535
71544
|
], DeesDataviewCodebox);
|
|
71536
71545
|
|
|
71537
71546
|
// ts_web/elements/dees-dataview-statusobject.demo.ts
|
|
71538
|
-
var
|
|
71547
|
+
var demoFunc3 = () => x`<dees-dataview-statusobject
|
|
71539
71548
|
.statusObject=${{
|
|
71540
71549
|
id: "1",
|
|
71541
71550
|
name: "Demo Item",
|
|
@@ -71598,7 +71607,7 @@ var DeesDataviewStatusobject = class extends DeesElement {
|
|
|
71598
71607
|
async firstUpdated() {
|
|
71599
71608
|
}
|
|
71600
71609
|
};
|
|
71601
|
-
DeesDataviewStatusobject.demo =
|
|
71610
|
+
DeesDataviewStatusobject.demo = demoFunc3;
|
|
71602
71611
|
DeesDataviewStatusobject.styles = [
|
|
71603
71612
|
cssManager.defaultStyles,
|
|
71604
71613
|
i`
|
|
@@ -74951,8 +74960,8 @@ var SvgSymbols = {
|
|
|
74951
74960
|
};
|
|
74952
74961
|
}
|
|
74953
74962
|
};
|
|
74954
|
-
var
|
|
74955
|
-
registerPlugins(
|
|
74963
|
+
var plugins4 = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
|
|
74964
|
+
registerPlugins(plugins4, {
|
|
74956
74965
|
mixoutsTo: api
|
|
74957
74966
|
});
|
|
74958
74967
|
var noAuto$1 = api.noAuto;
|
|
@@ -75923,6 +75932,72 @@ DeesPdf = __decorateClass([
|
|
|
75923
75932
|
e7("dees-pdf")
|
|
75924
75933
|
], DeesPdf);
|
|
75925
75934
|
|
|
75935
|
+
// ts_web/elements/dees-simple-appdash.demo.ts
|
|
75936
|
+
var demoFunc4 = () => x`
|
|
75937
|
+
<dees-simple-appdash>Hello there</dees-simple-appdash>
|
|
75938
|
+
`;
|
|
75939
|
+
|
|
75940
|
+
// ts_web/elements/dees-simple-appdash.ts
|
|
75941
|
+
var DeesSimpleAppDash = class extends DeesElement {
|
|
75942
|
+
constructor() {
|
|
75943
|
+
super(...arguments);
|
|
75944
|
+
this.title = "Dees Simple Login";
|
|
75945
|
+
}
|
|
75946
|
+
render() {
|
|
75947
|
+
return x`
|
|
75948
|
+
<div class="appbar">
|
|
75949
|
+
configvault v1.2.3
|
|
75950
|
+
</div>
|
|
75951
|
+
<div class="appcontent">
|
|
75952
|
+
<slot></slot>
|
|
75953
|
+
</div>
|
|
75954
|
+
`;
|
|
75955
|
+
}
|
|
75956
|
+
async firstUpdated(_changedProperties) {
|
|
75957
|
+
const domtools6 = await this.domtoolsPromise;
|
|
75958
|
+
super.firstUpdated(_changedProperties);
|
|
75959
|
+
}
|
|
75960
|
+
};
|
|
75961
|
+
// STATIC
|
|
75962
|
+
DeesSimpleAppDash.demo = demoFunc4;
|
|
75963
|
+
DeesSimpleAppDash.styles = [
|
|
75964
|
+
cssManager.defaultStyles,
|
|
75965
|
+
i`
|
|
75966
|
+
:host {
|
|
75967
|
+
color: ${cssManager.bdTheme("#333", "#fff")};
|
|
75968
|
+
user-select: none;
|
|
75969
|
+
}
|
|
75970
|
+
.appbar {
|
|
75971
|
+
position: absolute;
|
|
75972
|
+
top: 0;
|
|
75973
|
+
height: 40px;
|
|
75974
|
+
width: 100%;
|
|
75975
|
+
background: ${cssManager.bdTheme("#eeeeeb", "#000")};
|
|
75976
|
+
border-bottom: 1px solid ${cssManager.bdTheme("#ccc", "#333")};
|
|
75977
|
+
font-size: 14px;
|
|
75978
|
+
line-height: 40px;
|
|
75979
|
+
font-family: 'Hubot Sans', 'Inter', sans-serif;
|
|
75980
|
+
padding: 0px 16px;
|
|
75981
|
+
}
|
|
75982
|
+
.appcontent {
|
|
75983
|
+
position: absolute;
|
|
75984
|
+
top: 40px;
|
|
75985
|
+
bottom: 0;
|
|
75986
|
+
width: 100%;
|
|
75987
|
+
background: ${cssManager.bdTheme("#eeeeeb", "#000")};
|
|
75988
|
+
}
|
|
75989
|
+
`
|
|
75990
|
+
];
|
|
75991
|
+
__decorateClass([
|
|
75992
|
+
n5()
|
|
75993
|
+
], DeesSimpleAppDash.prototype, "title", 2);
|
|
75994
|
+
DeesSimpleAppDash = __decorateClass([
|
|
75995
|
+
e7("dees-simple-appdash")
|
|
75996
|
+
], DeesSimpleAppDash);
|
|
75997
|
+
|
|
75998
|
+
// ts_web/elements/dees-simple-login.demo.ts
|
|
75999
|
+
var demoFunc5 = () => x` <dees-simple-login> Hello there </dees-simple-login> `;
|
|
76000
|
+
|
|
75926
76001
|
// ts_web/elements/dees-simple-login.ts
|
|
75927
76002
|
var DeesSimpleLogin = class extends DeesElement {
|
|
75928
76003
|
constructor() {
|
|
@@ -75978,11 +76053,7 @@ var DeesSimpleLogin = class extends DeesElement {
|
|
|
75978
76053
|
}
|
|
75979
76054
|
};
|
|
75980
76055
|
// STATIC
|
|
75981
|
-
DeesSimpleLogin.demo =
|
|
75982
|
-
<dees-simple-login>
|
|
75983
|
-
Hello there
|
|
75984
|
-
</dees-simple-login>
|
|
75985
|
-
`;
|
|
76056
|
+
DeesSimpleLogin.demo = demoFunc5;
|
|
75986
76057
|
DeesSimpleLogin.styles = [
|
|
75987
76058
|
cssManager.defaultStyles,
|
|
75988
76059
|
i`
|
|
@@ -76493,6 +76564,120 @@ DeesStepper = __decorateClass([
|
|
|
76493
76564
|
e7("dees-stepper")
|
|
76494
76565
|
], DeesStepper);
|
|
76495
76566
|
|
|
76567
|
+
// ts_web/elements/dees-table.demo.ts
|
|
76568
|
+
var demoFunc6 = () => x`
|
|
76569
|
+
<style>
|
|
76570
|
+
.demoWrapper {
|
|
76571
|
+
box-sizing: border-box;
|
|
76572
|
+
position: absolute;
|
|
76573
|
+
width: 100%;
|
|
76574
|
+
height: 100%;
|
|
76575
|
+
padding: 20px;
|
|
76576
|
+
background: #000000;
|
|
76577
|
+
}
|
|
76578
|
+
</style>
|
|
76579
|
+
<div class="demoWrapper">
|
|
76580
|
+
<dees-table
|
|
76581
|
+
heading1="Current Account Statement"
|
|
76582
|
+
heading2="Bunq - Payment Account 2 - April 2021"
|
|
76583
|
+
.data=${[
|
|
76584
|
+
{
|
|
76585
|
+
date: "2021-04-01",
|
|
76586
|
+
amount: "2464.65 \u20AC",
|
|
76587
|
+
description: "Printing Paper (Office Supplies) - STAPLES BREMEN"
|
|
76588
|
+
},
|
|
76589
|
+
{
|
|
76590
|
+
date: "2021-04-02",
|
|
76591
|
+
amount: "165.65 \u20AC",
|
|
76592
|
+
description: "Logitech Mouse (Hardware) - logi.com OnlineShop"
|
|
76593
|
+
},
|
|
76594
|
+
{
|
|
76595
|
+
date: "2021-04-03",
|
|
76596
|
+
amount: "2999,00 \u20AC",
|
|
76597
|
+
description: "Macbook Pro 16inch (Hardware) - Apple.de OnlineShop"
|
|
76598
|
+
},
|
|
76599
|
+
{
|
|
76600
|
+
date: "2021-04-01",
|
|
76601
|
+
amount: "2464.65 \u20AC",
|
|
76602
|
+
description: "Office-Supplies - STAPLES BREMEN"
|
|
76603
|
+
},
|
|
76604
|
+
{
|
|
76605
|
+
date: "2021-04-01",
|
|
76606
|
+
amount: "2464.65 \u20AC",
|
|
76607
|
+
description: "Office-Supplies - STAPLES BREMEN"
|
|
76608
|
+
}
|
|
76609
|
+
]}
|
|
76610
|
+
dataName="transactions"
|
|
76611
|
+
.dataActions="${[
|
|
76612
|
+
{
|
|
76613
|
+
name: "upload",
|
|
76614
|
+
iconName: "bell",
|
|
76615
|
+
useTableBehaviour: "upload",
|
|
76616
|
+
type: ["inRow"],
|
|
76617
|
+
actionFunc: async (itemArg) => {
|
|
76618
|
+
alert(itemArg.amount);
|
|
76619
|
+
}
|
|
76620
|
+
},
|
|
76621
|
+
{
|
|
76622
|
+
name: "visibility",
|
|
76623
|
+
iconName: "copy",
|
|
76624
|
+
type: ["inRow"],
|
|
76625
|
+
useTableBehaviour: "preview",
|
|
76626
|
+
actionFunc: async (itemArg) => {
|
|
76627
|
+
}
|
|
76628
|
+
},
|
|
76629
|
+
{
|
|
76630
|
+
name: "create new",
|
|
76631
|
+
iconName: "instagram",
|
|
76632
|
+
type: ["header"],
|
|
76633
|
+
useTableBehaviour: "preview",
|
|
76634
|
+
actionFunc: async (itemArg) => {
|
|
76635
|
+
}
|
|
76636
|
+
},
|
|
76637
|
+
{
|
|
76638
|
+
name: "to gallery",
|
|
76639
|
+
iconName: "message",
|
|
76640
|
+
type: ["footer"],
|
|
76641
|
+
useTableBehaviour: "preview",
|
|
76642
|
+
actionFunc: async (itemArg) => {
|
|
76643
|
+
}
|
|
76644
|
+
},
|
|
76645
|
+
{
|
|
76646
|
+
name: "copy",
|
|
76647
|
+
iconName: "copySolid",
|
|
76648
|
+
type: ["contextmenu", "inRow"],
|
|
76649
|
+
action: async () => {
|
|
76650
|
+
return null;
|
|
76651
|
+
}
|
|
76652
|
+
},
|
|
76653
|
+
{
|
|
76654
|
+
name: "edit (from demo)",
|
|
76655
|
+
iconName: "penToSquare",
|
|
76656
|
+
type: ["contextmenu"],
|
|
76657
|
+
action: async () => {
|
|
76658
|
+
return null;
|
|
76659
|
+
}
|
|
76660
|
+
},
|
|
76661
|
+
{
|
|
76662
|
+
name: "paste",
|
|
76663
|
+
iconName: "pasteSolid",
|
|
76664
|
+
type: ["contextmenu"],
|
|
76665
|
+
action: async () => {
|
|
76666
|
+
return null;
|
|
76667
|
+
}
|
|
76668
|
+
}
|
|
76669
|
+
]}"
|
|
76670
|
+
.displayFunction=${(itemArg) => {
|
|
76671
|
+
return {
|
|
76672
|
+
...itemArg,
|
|
76673
|
+
onlyDisplayProp: "onlyDisplay"
|
|
76674
|
+
};
|
|
76675
|
+
}}
|
|
76676
|
+
>This is a slotted Text</dees-table
|
|
76677
|
+
>
|
|
76678
|
+
</div>
|
|
76679
|
+
`;
|
|
76680
|
+
|
|
76496
76681
|
// ts_web/elements/dees-table.ts
|
|
76497
76682
|
var DeesTable = class extends DeesElement {
|
|
76498
76683
|
constructor() {
|
|
@@ -76518,7 +76703,7 @@ var DeesTable = class extends DeesElement {
|
|
|
76518
76703
|
${resolveExec(async () => {
|
|
76519
76704
|
const resultArray = [];
|
|
76520
76705
|
for (const action of this.dataActions) {
|
|
76521
|
-
if (action.type
|
|
76706
|
+
if (!action.type.includes("header"))
|
|
76522
76707
|
continue;
|
|
76523
76708
|
resultArray.push(
|
|
76524
76709
|
x`<div
|
|
@@ -76612,29 +76797,17 @@ var DeesTable = class extends DeesElement {
|
|
|
76612
76797
|
}
|
|
76613
76798
|
}}
|
|
76614
76799
|
@contextmenu=${async (eventArg) => {
|
|
76615
|
-
DeesContextmenu.openContextMenuWithOptions(eventArg,
|
|
76616
|
-
{
|
|
76617
|
-
name:
|
|
76618
|
-
iconName:
|
|
76619
|
-
action: async () => {
|
|
76620
|
-
return null;
|
|
76621
|
-
}
|
|
76622
|
-
},
|
|
76623
|
-
{
|
|
76624
|
-
name: "edit",
|
|
76625
|
-
iconName: "penToSquare",
|
|
76626
|
-
action: async () => {
|
|
76627
|
-
return null;
|
|
76628
|
-
}
|
|
76629
|
-
},
|
|
76630
|
-
{
|
|
76631
|
-
name: "paste",
|
|
76632
|
-
iconName: "pasteSolid",
|
|
76800
|
+
DeesContextmenu.openContextMenuWithOptions(eventArg, this.getActionsForType("contextmenu").map((action) => {
|
|
76801
|
+
const menuItem = {
|
|
76802
|
+
name: action.name,
|
|
76803
|
+
iconName: action.iconName,
|
|
76633
76804
|
action: async () => {
|
|
76805
|
+
await action.actionFunc(itemArg);
|
|
76634
76806
|
return null;
|
|
76635
76807
|
}
|
|
76636
|
-
}
|
|
76637
|
-
|
|
76808
|
+
};
|
|
76809
|
+
return menuItem;
|
|
76810
|
+
}));
|
|
76638
76811
|
}}
|
|
76639
76812
|
class="${itemArg === this.selectedDataRow ? "selected" : ""}"
|
|
76640
76813
|
>
|
|
@@ -76650,24 +76823,16 @@ var DeesTable = class extends DeesElement {
|
|
|
76650
76823
|
return x`
|
|
76651
76824
|
<td>
|
|
76652
76825
|
<div class="innerCellContainer">
|
|
76653
|
-
${((
|
|
76654
|
-
|
|
76655
|
-
|
|
76656
|
-
|
|
76657
|
-
|
|
76658
|
-
|
|
76659
|
-
|
|
76660
|
-
|
|
76661
|
-
|
|
76662
|
-
|
|
76663
|
-
${action.iconName ? x`
|
|
76664
|
-
<dees-icon .iconFA=${action.iconName}></dees-icon>
|
|
76665
|
-
` : action.name}
|
|
76666
|
-
</div>`
|
|
76667
|
-
);
|
|
76668
|
-
}
|
|
76669
|
-
return actions;
|
|
76670
|
-
})()}
|
|
76826
|
+
${this.getActionsForType("inRow").map(
|
|
76827
|
+
(actionArg) => x`<div
|
|
76828
|
+
class="action"
|
|
76829
|
+
@click=${() => actionArg.actionFunc(itemArg)}
|
|
76830
|
+
>
|
|
76831
|
+
${actionArg.iconName ? x`
|
|
76832
|
+
<dees-icon .iconFA=${actionArg.iconName}></dees-icon>
|
|
76833
|
+
` : actionArg.name}
|
|
76834
|
+
</div>`
|
|
76835
|
+
)}
|
|
76671
76836
|
</div>
|
|
76672
76837
|
</td>
|
|
76673
76838
|
`;
|
|
@@ -76689,7 +76854,7 @@ var DeesTable = class extends DeesElement {
|
|
|
76689
76854
|
${resolveExec(async () => {
|
|
76690
76855
|
const resultArray = [];
|
|
76691
76856
|
for (const action of this.dataActions) {
|
|
76692
|
-
if (action.type
|
|
76857
|
+
if (!action.type.includes("footer"))
|
|
76693
76858
|
continue;
|
|
76694
76859
|
resultArray.push(
|
|
76695
76860
|
x`<div
|
|
@@ -76712,95 +76877,17 @@ var DeesTable = class extends DeesElement {
|
|
|
76712
76877
|
}
|
|
76713
76878
|
async firstUpdated() {
|
|
76714
76879
|
}
|
|
76715
|
-
|
|
76716
|
-
|
|
76717
|
-
|
|
76718
|
-
.
|
|
76719
|
-
|
|
76720
|
-
|
|
76721
|
-
width: 100%;
|
|
76722
|
-
height: 100%;
|
|
76723
|
-
padding: 20px;
|
|
76724
|
-
background: #000000;
|
|
76725
|
-
}
|
|
76726
|
-
</style>
|
|
76727
|
-
<div class="demoWrapper">
|
|
76728
|
-
<dees-table
|
|
76729
|
-
heading1="Current Account Statement"
|
|
76730
|
-
heading2="Bunq - Payment Account 2 - April 2021"
|
|
76731
|
-
.data=${[
|
|
76732
|
-
{
|
|
76733
|
-
date: "2021-04-01",
|
|
76734
|
-
amount: "2464.65 \u20AC",
|
|
76735
|
-
description: "Printing Paper (Office Supplies) - STAPLES BREMEN"
|
|
76736
|
-
},
|
|
76737
|
-
{
|
|
76738
|
-
date: "2021-04-02",
|
|
76739
|
-
amount: "165.65 \u20AC",
|
|
76740
|
-
description: "Logitech Mouse (Hardware) - logi.com OnlineShop"
|
|
76741
|
-
},
|
|
76742
|
-
{
|
|
76743
|
-
date: "2021-04-03",
|
|
76744
|
-
amount: "2999,00 \u20AC",
|
|
76745
|
-
description: "Macbook Pro 16inch (Hardware) - Apple.de OnlineShop"
|
|
76746
|
-
},
|
|
76747
|
-
{
|
|
76748
|
-
date: "2021-04-01",
|
|
76749
|
-
amount: "2464.65 \u20AC",
|
|
76750
|
-
description: "Office-Supplies - STAPLES BREMEN"
|
|
76751
|
-
},
|
|
76752
|
-
{
|
|
76753
|
-
date: "2021-04-01",
|
|
76754
|
-
amount: "2464.65 \u20AC",
|
|
76755
|
-
description: "Office-Supplies - STAPLES BREMEN"
|
|
76756
|
-
}
|
|
76757
|
-
]}
|
|
76758
|
-
dataName="transactions"
|
|
76759
|
-
.dataActions="${[
|
|
76760
|
-
{
|
|
76761
|
-
name: "upload",
|
|
76762
|
-
iconName: "bell",
|
|
76763
|
-
useTableBehaviour: "upload",
|
|
76764
|
-
type: "inRow",
|
|
76765
|
-
actionFunc: async (itemArg) => {
|
|
76766
|
-
alert(itemArg.amount);
|
|
76767
|
-
}
|
|
76768
|
-
},
|
|
76769
|
-
{
|
|
76770
|
-
name: "visibility",
|
|
76771
|
-
iconName: "copy",
|
|
76772
|
-
type: "inRow",
|
|
76773
|
-
useTableBehaviour: "preview",
|
|
76774
|
-
actionFunc: async (itemArg) => {
|
|
76775
|
-
}
|
|
76776
|
-
},
|
|
76777
|
-
{
|
|
76778
|
-
name: "create new",
|
|
76779
|
-
iconName: "instagram",
|
|
76780
|
-
type: "header",
|
|
76781
|
-
useTableBehaviour: "preview",
|
|
76782
|
-
actionFunc: async (itemArg) => {
|
|
76783
|
-
}
|
|
76784
|
-
},
|
|
76785
|
-
{
|
|
76786
|
-
name: "to gallery",
|
|
76787
|
-
iconName: "message",
|
|
76788
|
-
type: "footer",
|
|
76789
|
-
useTableBehaviour: "preview",
|
|
76790
|
-
actionFunc: async (itemArg) => {
|
|
76880
|
+
getActionsForType(typeArg) {
|
|
76881
|
+
const actions = [];
|
|
76882
|
+
for (const action of this.dataActions) {
|
|
76883
|
+
if (!action.type.includes(typeArg))
|
|
76884
|
+
continue;
|
|
76885
|
+
actions.push(action);
|
|
76791
76886
|
}
|
|
76887
|
+
return actions;
|
|
76792
76888
|
}
|
|
76793
|
-
|
|
76794
|
-
|
|
76795
|
-
return {
|
|
76796
|
-
...itemArg,
|
|
76797
|
-
onlyDisplayProp: "onlyDisplay"
|
|
76798
|
-
};
|
|
76799
|
-
}}
|
|
76800
|
-
>This is a slotted Text</dees-table
|
|
76801
|
-
>
|
|
76802
|
-
</div>
|
|
76803
|
-
`;
|
|
76889
|
+
};
|
|
76890
|
+
DeesTable.demo = demoFunc6;
|
|
76804
76891
|
DeesTable.styles = [
|
|
76805
76892
|
cssManager.defaultStyles,
|
|
76806
76893
|
i`
|