@supersoniks/concorde 1.1.3 → 1.1.4

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.
@@ -92,7 +92,7 @@ let List = class List extends Fetcher(Subscriber(TemplatesContainer(LitElement))
92
92
  .bindPublisher=${function () {
93
93
  return pub;
94
94
  }}
95
- .?propertyMap="${this.itemPropertyMap}"
95
+ .propertyMap=${ifDefined(this.itemPropertyMap)}
96
96
  dataProvider="${this.dataProvider}/list-item/${index}"
97
97
  >
98
98
  ${hasCustomTemplate
@@ -148,7 +148,7 @@ let Queue = Queue_1 = class Queue extends Subscriber(LitElement) {
148
148
  ${repeat(this.props, (item) => item.id, (item) => html `
149
149
  <sonic-list
150
150
  fetch
151
- .?itemPropertyMap=${this.itemPropertyMap}
151
+ .itemPropertyMap=${this.itemPropertyMap}
152
152
  debug=${ifDefined(this.defferedDebug)}
153
153
  @load=${this.next}
154
154
  key=${this.key}
@@ -15,7 +15,7 @@ declare const Submit_base: (new (...args: any[]) => import("@supersoniks/concord
15
15
  */
16
16
  export declare class Submit extends Submit_base {
17
17
  static styles: import("lit").CSSResult;
18
- disabled: "disabled" | "" | null;
18
+ disabled: boolean;
19
19
  api: API | null;
20
20
  connectedCallback(): void;
21
21
  submit(): Promise<void>;
@@ -34,7 +34,7 @@ import { css, html, LitElement } from "lit";
34
34
  let Submit = class Submit extends Subscriber(LitElement) {
35
35
  constructor() {
36
36
  super(...arguments);
37
- this.disabled = null;
37
+ this.disabled = false;
38
38
  this.api = null;
39
39
  }
40
40
  connectedCallback() {
@@ -51,7 +51,7 @@ let Submit = class Submit extends Subscriber(LitElement) {
51
51
  submit() {
52
52
  var _a, _b, _c, _d, _e;
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
- this.publisher.disabled = '';
54
+ this.publisher.disabled = true;
55
55
  let method = ((_a = this.getAttribute("method")) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) || "post";
56
56
  let postData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("formDataProvider")).get();
57
57
  let result = null;
@@ -79,23 +79,22 @@ let Submit = class Submit extends Subscriber(LitElement) {
79
79
  clearedDataProvider.split(" ").forEach(dataProvider => PublisherManager.getInstance().get(dataProvider).set({}));
80
80
  }
81
81
  PublisherManager.getInstance().get(this.getAncestorAttributeValue("submitResultDataProvider")).set(result);
82
- this.publisher.disabled = null;
82
+ this.publisher.disabled = false;
83
83
  });
84
84
  }
85
85
  render() {
86
- let disabled = this.disabled === "" || this.disabled === "disabled" ? "disabled" : "";
87
- return html `<div class="${disabled}"><slot></slot></div>`;
86
+ return html `<div ?data-disabled=${this.disabled}><slot></slot></div>`;
88
87
  }
89
88
  };
90
89
  Submit.styles = css `
91
- .disabled {
90
+ [data-disabled]{
92
91
  opacity: 0.3;
93
92
  pointer-events: none;
94
93
  user-select: none;
95
94
  }
96
95
  `;
97
96
  __decorate([
98
- property({ type: String })
97
+ property({ type: Boolean })
99
98
  ], Submit.prototype, "disabled", void 0);
100
99
  Submit = __decorate([
101
100
  customElement("sonic-submit")
@@ -4,7 +4,7 @@ export const coreVariables = css `
4
4
  /* --sc-rfs: 16px; */
5
5
 
6
6
  /* polices*/
7
- --sc-font-family-base: aileron, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
7
+ --sc-font-family-base: "neue-haas-unica", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
8
8
  "Helvetica Neue", Arial, sans-serif;
9
9
  --sc-font-weight-base: 400;
10
10
  --sc-font-style-base: inherit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "customElements": "custom-elements.json",
5
5
  "license": "MIT",
6
6
  "publishConfig": {