@design.estate/dees-catalog 1.0.174 → 1.0.175

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.
@@ -66904,8 +66904,8 @@ var DeesElement = class extends lit.LitElement {
66904
66904
  }
66905
66905
  async connectedCallback() {
66906
66906
  super.connectedCallback();
66907
- const domtools7 = await this.domtoolsPromise;
66908
- this.themeSubscription = domtools7.themeManager.themeObservable.subscribe((goBrightArg) => {
66907
+ const domtools6 = await this.domtoolsPromise;
66908
+ this.themeSubscription = domtools6.themeManager.themeObservable.subscribe((goBrightArg) => {
66909
66909
  this.goBright = goBrightArg;
66910
66910
  });
66911
66911
  this.rxSubscriptions.push(this.themeSubscription);
@@ -67242,7 +67242,7 @@ var WccSidebar = class WccSidebar2 extends DeesElement {
67242
67242
  <div
67243
67243
  class="selectOption ${this.selectedItem === item ? "selected" : null}"
67244
67244
  @click=${async () => {
67245
- const domtools7 = await dist_ts_exports22.DomTools.setupDomTools();
67245
+ const domtools6 = await dist_ts_exports22.DomTools.setupDomTools();
67246
67246
  this.selectItem("page", pageName, item);
67247
67247
  }}
67248
67248
  >
@@ -67261,7 +67261,7 @@ var WccSidebar = class WccSidebar2 extends DeesElement {
67261
67261
  <div
67262
67262
  class="selectOption ${this.selectedItem === item ? "selected" : null}"
67263
67263
  @click=${async () => {
67264
- const domtools7 = await dist_ts_exports22.DomTools.setupDomTools();
67264
+ const domtools6 = await dist_ts_exports22.DomTools.setupDomTools();
67265
67265
  this.selectItem("element", elementName, item);
67266
67266
  }}
67267
67267
  >
@@ -68328,13 +68328,13 @@ var DeesWindowLayer = class extends DeesElement {
68328
68328
  this.visible = !this.visible;
68329
68329
  }
68330
68330
  async show() {
68331
- const domtools7 = await this.domtoolsPromise;
68332
- await domtools7.convenience.smartdelay.delayFor(0);
68331
+ const domtools6 = await this.domtoolsPromise;
68332
+ await domtools6.convenience.smartdelay.delayFor(0);
68333
68333
  this.visible = true;
68334
68334
  }
68335
68335
  async hide() {
68336
- const domtools7 = await this.domtoolsPromise;
68337
- await domtools7.convenience.smartdelay.delayFor(0);
68336
+ const domtools6 = await this.domtoolsPromise;
68337
+ await domtools6.convenience.smartdelay.delayFor(0);
68338
68338
  this.visible = false;
68339
68339
  }
68340
68340
  };
@@ -69304,7 +69304,7 @@ var DeesInputText = class extends DeesElement {
69304
69304
  this.disabled = false;
69305
69305
  }
69306
69306
  async togglePasswordView() {
69307
- const domtools7 = await this.domtoolsPromise;
69307
+ const domtools6 = await this.domtoolsPromise;
69308
69308
  this.showPasswordBool = !this.showPasswordBool;
69309
69309
  console.log(`this.showPasswordBool is: ${this.showPasswordBool}`);
69310
69310
  }
@@ -69604,6 +69604,7 @@ var DeesForm = class extends DeesElement {
69604
69604
  super(...arguments);
69605
69605
  this.name = "myform";
69606
69606
  this.changeSubject = new smartrx_plugins_rxjs_exports2.Subject();
69607
+ this.readyDeferred = plugins.smartpromise.defer();
69607
69608
  }
69608
69609
  render() {
69609
69610
  return x`
@@ -69627,6 +69628,7 @@ var DeesForm = class extends DeesElement {
69627
69628
  });
69628
69629
  }
69629
69630
  await this.addBehaviours();
69631
+ this.readyDeferred.resolve();
69630
69632
  }
69631
69633
  getFormElements() {
69632
69634
  return Array.from(this.children).filter(
@@ -69769,9 +69771,9 @@ var DeesFormSubmit = class extends DeesElement {
69769
69771
  parentElement.gatherAndDispatch();
69770
69772
  }
69771
69773
  async focus() {
69772
- const domtools7 = await this.domtoolsPromise;
69774
+ const domtools6 = await this.domtoolsPromise;
69773
69775
  if (!this.disabled) {
69774
- domtools7.convenience.smartdelay.delayFor(0);
69776
+ domtools6.convenience.smartdelay.delayFor(0);
69775
69777
  this.submit();
69776
69778
  }
69777
69779
  }
@@ -69780,7 +69782,8 @@ DeesFormSubmit.demo = () => x`<dees-form-submit>This is a sloted text</dees-form
69780
69782
  DeesFormSubmit.styles = [cssManager.defaultStyles, i``];
69781
69783
  __decorateClass([
69782
69784
  n5({
69783
- type: Boolean
69785
+ type: Boolean,
69786
+ reflect: true
69784
69787
  })
69785
69788
  ], DeesFormSubmit.prototype, "disabled", 2);
69786
69789
  __decorateClass([
@@ -73028,7 +73031,7 @@ var DeesMobilenavigation = class extends DeesElement {
73028
73031
  * inits the show
73029
73032
  */
73030
73033
  async show() {
73031
- const domtools7 = await this.domtoolsPromise;
73034
+ const domtools6 = await this.domtoolsPromise;
73032
73035
  const main = this.shadowRoot.querySelector(".main");
73033
73036
  if (!this.windowLayer) {
73034
73037
  this.windowLayer = new DeesWindowLayer();
@@ -73037,16 +73040,16 @@ var DeesMobilenavigation = class extends DeesElement {
73037
73040
  });
73038
73041
  }
73039
73042
  document.body.append(this.windowLayer);
73040
- await domtools7.convenience.smartdelay.delayFor(0);
73043
+ await domtools6.convenience.smartdelay.delayFor(0);
73041
73044
  this.windowLayer.show();
73042
- await domtools7.convenience.smartdelay.delayFor(0);
73045
+ await domtools6.convenience.smartdelay.delayFor(0);
73043
73046
  main.classList.add("show");
73044
73047
  }
73045
73048
  /**
73046
73049
  * inits the hide function
73047
73050
  */
73048
73051
  async hide() {
73049
- const domtools7 = await this.domtoolsPromise;
73052
+ const domtools6 = await this.domtoolsPromise;
73050
73053
  const main = this.shadowRoot.querySelector(".main");
73051
73054
  main.classList.remove("show");
73052
73055
  this.windowLayer.hide();
@@ -73246,15 +73249,27 @@ var DeesSimpleLogin = class extends DeesElement {
73246
73249
  <div class="login">
73247
73250
  <dees-form>
73248
73251
  <div class="header">Login to ${this.title}</div>
73249
- <dees-input-text label="username"></dees-input-text>
73250
- <dees-input-text label="password" isPasswordBool></dees-input-text>
73251
- <dees-form-submit>login</dees-form-submit>
73252
+ <dees-input-text label="username" required></dees-input-text>
73253
+ <dees-input-text label="password" isPasswordBool required></dees-input-text>
73254
+ <dees-form-submit disabled>login</dees-form-submit>
73252
73255
  </dees-form>
73253
73256
  </div>
73254
73257
  </div>
73255
73258
  <slot></slot>
73256
73259
  `;
73257
73260
  }
73261
+ async firstUpdated(_changedProperties) {
73262
+ const domtools6 = await this.domtoolsPromise;
73263
+ super.firstUpdated(_changedProperties);
73264
+ const form = this.shadowRoot.querySelector("dees-form");
73265
+ await form.readyDeferred.promise;
73266
+ const username = this.shadowRoot.querySelector('dees-input-text[label="username"]');
73267
+ const password = this.shadowRoot.querySelector('dees-input-text[label="password"]');
73268
+ const submit = this.shadowRoot.querySelector("dees-form-submit");
73269
+ form.addEventListener("formData", (event) => {
73270
+ this.dispatchEvent(new CustomEvent("login", { detail: event.detail }));
73271
+ });
73272
+ }
73258
73273
  };
73259
73274
  // STATIC
73260
73275
  DeesSimpleLogin.demo = () => x` <dees-simple-login></dees-simple-login> `;
@@ -73263,6 +73278,7 @@ DeesSimpleLogin.styles = [
73263
73278
  i`
73264
73279
  :host {
73265
73280
  color: ${cssManager.bdTheme("#333", "#fff")};
73281
+ user-select: none;
73266
73282
  }
73267
73283
  .loginContainer {
73268
73284
  display: flex;