@supersoniks/concorde 1.1.14 → 1.1.16

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.
@@ -66,7 +66,6 @@ let Queue = Queue_1 = class Queue extends Subscriber(LitElement) {
66
66
  configFilter() {
67
67
  var _a;
68
68
  let dataFilterProvider = this.getAncestorAttributeValue("dataFilterProvider");
69
- console.log(dataFilterProvider);
70
69
  if (!dataFilterProvider)
71
70
  return;
72
71
  this.filterPublisher = PublisherManager.getInstance().get(dataFilterProvider);
@@ -59,22 +59,23 @@ let Submit = class Submit extends Subscriber(LitElement) {
59
59
  this.publisher.disabled = true;
60
60
  let method = ((_a = this.getAttribute("method")) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) || "post";
61
61
  let postData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("formDataProvider")).get();
62
+ let headerData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
62
63
  let result = null;
63
64
  let dataProvider = this.getAncestorAttributeValue("dataProvider");
64
65
  let endPoint = this.endPoint || dataProvider;
65
66
  Loader.show();
66
67
  switch (method) {
67
68
  case "put":
68
- result = yield ((_b = this.api) === null || _b === void 0 ? void 0 : _b.put(endPoint, postData));
69
+ result = yield ((_b = this.api) === null || _b === void 0 ? void 0 : _b.put(endPoint, postData, headerData));
69
70
  break;
70
71
  case "delete":
71
- result = yield ((_c = this.api) === null || _c === void 0 ? void 0 : _c.delete(endPoint, postData));
72
+ result = yield ((_c = this.api) === null || _c === void 0 ? void 0 : _c.delete(endPoint, postData, headerData));
72
73
  break;
73
74
  case "get":
74
75
  result = yield ((_d = this.api) === null || _d === void 0 ? void 0 : _d.get(endPoint));
75
76
  break;
76
77
  default:
77
- result = yield ((_e = this.api) === null || _e === void 0 ? void 0 : _e.post(endPoint, postData));
78
+ result = yield ((_e = this.api) === null || _e === void 0 ? void 0 : _e.post(endPoint, postData, headerData));
78
79
  break;
79
80
  }
80
81
  Loader.hide();
@@ -20,7 +20,7 @@ let SonicSubscriber = class SonicSubscriber extends Subscriber(LitElement) {
20
20
  super.connectedCallback();
21
21
  }
22
22
  render() {
23
- return html ` <slot></slot> `;
23
+ return html `<slot></slot> `;
24
24
  }
25
25
  };
26
26
  SonicSubscriber = __decorate([
@@ -138,6 +138,7 @@ Select.styles = [
138
138
  css `
139
139
  .form-element {
140
140
  appearance: none;
141
+ padding-right: 2.5em;
141
142
  }
142
143
  .form-select-wrapper {
143
144
  position: relative;
@@ -156,6 +157,8 @@ Select.styles = [
156
157
  color: var(--sc-base-content);
157
158
  background: var(--sc-base);
158
159
  }
160
+
161
+
159
162
  `,
160
163
  ];
161
164
  __decorate([
@@ -20,6 +20,7 @@ import "./menu/menu";
20
20
  import "./modal/modal";
21
21
  import "./alert/alert";
22
22
  import "./toast/toast";
23
+ import "./toast/message-subscriber";
23
24
  import "./tooltip/tooltip";
24
25
  import "./pop/pop";
25
26
  import "./divider/divider";
@@ -29,6 +29,7 @@ import "./menu/menu";
29
29
  import "./modal/modal";
30
30
  import "./alert/alert";
31
31
  import "./toast/toast";
32
+ import "./toast/message-subscriber";
32
33
  import "./tooltip/tooltip";
33
34
  import "./pop/pop";
34
35
  import "./divider/divider";
@@ -338,11 +338,11 @@ const Subscriber = (superClass) => {
338
338
  let dataPath = this.getAttribute("subDataProvider");
339
339
  this.dataProvider = publisherId + "/" + dataPath;
340
340
  pub = Objects.traverse(pub, dataPath.split("."));
341
+ mng.set(this.dataProvider, pub);
341
342
  this.publisher = pub;
342
343
  }
343
344
  this.publisher = pub;
344
345
  }
345
- // this.publisher = this.bindPublisher();
346
346
  if (this.publisher) {
347
347
  this.onAssign = () => {
348
348
  this.requestUpdate();
@@ -359,6 +359,9 @@ const Subscriber = (superClass) => {
359
359
  }
360
360
  }
361
361
  SubscriberElement.instanceCounter = 0;
362
+ __decorate([
363
+ property({ type: Boolean })
364
+ ], SubscriberElement.prototype, "noAutoFill", void 0);
362
365
  __decorate([
363
366
  property({ type: Object })
364
367
  ], SubscriberElement.prototype, "propertyMap", void 0);
@@ -3,6 +3,7 @@ declare class HTML {
3
3
  * retourne la langue de la page courante telle que défini via l'attribut lang de la balise html
4
4
  */
5
5
  static getLanguage(): string;
6
+ static getCookies(): any;
6
7
  /**
7
8
  * Va de parent en parent en partant de node pour trouver un attribut
8
9
  * @param attributeName nom de l'attribut
@@ -5,6 +5,13 @@ class HTML {
5
5
  static getLanguage() {
6
6
  return document.getElementsByTagName("html")[0].getAttribute("lang");
7
7
  }
8
+ static getCookies() {
9
+ return document.cookie.split(";").reduce((previous, current) => {
10
+ const eqIdx = current.indexOf("=");
11
+ previous[current.substring(0, eqIdx).trim()] = current.substring(eqIdx + 1);
12
+ return previous;
13
+ }, {});
14
+ }
8
15
  /**
9
16
  * Va de parent en parent en partant de node pour trouver un attribut
10
17
  * @param attributeName nom de l'attribut
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "customElements": "custom-elements.json",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -205,6 +205,7 @@
205
205
  "./utils/PublisherProxy.mjs": "./core/utils/PublisherProxy",
206
206
  "./core/utils/api": "./core/utils/api",
207
207
  "./utils/api": "./core/utils/api",
208
+ "./index-core": "./index-core",
208
209
  "./index-shared": "./index-shared",
209
210
  "./index": "./index"
210
211
  },