@supersoniks/concorde 3.1.32 → 3.1.34

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.
Files changed (119) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +58 -58
  3. package/concorde-core.es.js +236 -231
  4. package/dist/concorde-core.bundle.js +58 -58
  5. package/dist/concorde-core.es.js +236 -231
  6. package/docs/assets/index-D1OO2yIk.js +4421 -0
  7. package/docs/assets/index-DCqvoAAf.css +1 -0
  8. package/docs/css/docs.css +0 -0
  9. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  10. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  11. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  12. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  13. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  14. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  15. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  16. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  17. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  18. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  19. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  20. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  21. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  22. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  23. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  24. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  25. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  26. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  27. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  28. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  29. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  30. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  31. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  32. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  33. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  34. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  35. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  36. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  37. package/docs/img/concorde-icon.svg +5 -0
  38. package/docs/img/concorde-logo.svg +1 -0
  39. package/docs/img/concorde.png +0 -0
  40. package/docs/img/concorde_def.png +0 -0
  41. package/docs/img/concorde_seuil.png.webp +0 -0
  42. package/docs/img/concorde_seuil_invert.png +0 -0
  43. package/docs/img/paul_metrand.jpg +0 -0
  44. package/docs/img/paul_metrand_xs.jpg +0 -0
  45. package/docs/index.html +93 -0
  46. package/docs/src/core/components/functional/date/date.md +290 -0
  47. package/docs/src/core/components/functional/fetch/fetch.md +117 -0
  48. package/docs/src/core/components/functional/if/if.md +16 -0
  49. package/docs/src/core/components/functional/list/list.md +199 -0
  50. package/docs/src/core/components/functional/mix/mix.md +41 -0
  51. package/docs/src/core/components/functional/queue/queue.md +87 -0
  52. package/docs/src/core/components/functional/router/router.md +112 -0
  53. package/docs/src/core/components/functional/sdui/default-library.json +108 -0
  54. package/docs/src/core/components/functional/sdui/example.json +99 -0
  55. package/docs/src/core/components/functional/sdui/sdui.md +356 -0
  56. package/docs/src/core/components/functional/states/states.md +87 -0
  57. package/docs/src/core/components/functional/submit/submit.md +83 -0
  58. package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
  59. package/docs/src/core/components/functional/value/value.md +35 -0
  60. package/docs/src/core/components/ui/alert/alert.md +121 -0
  61. package/docs/src/core/components/ui/badge/badge.md +102 -0
  62. package/docs/src/core/components/ui/button/button.md +184 -0
  63. package/docs/src/core/components/ui/captcha/captcha.md +12 -0
  64. package/docs/src/core/components/ui/card/card.md +96 -0
  65. package/docs/src/core/components/ui/divider/divider.md +35 -0
  66. package/docs/src/core/components/ui/form/checkbox/checkbox.md +96 -0
  67. package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  68. package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  69. package/docs/src/core/components/ui/form/form-layout/form-layout.md +43 -0
  70. package/docs/src/core/components/ui/form/input/input.md +168 -0
  71. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
  72. package/docs/src/core/components/ui/form/radio/radio.md +86 -0
  73. package/docs/src/core/components/ui/form/select/select.md +99 -0
  74. package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
  75. package/docs/src/core/components/ui/group/group.md +75 -0
  76. package/docs/src/core/components/ui/icon/icon.md +125 -0
  77. package/docs/src/core/components/ui/icon/icons.json +1 -0
  78. package/docs/src/core/components/ui/image/image.md +107 -0
  79. package/docs/src/core/components/ui/link/link.md +43 -0
  80. package/docs/src/core/components/ui/loader/loader.md +37 -0
  81. package/docs/src/core/components/ui/menu/menu.md +288 -0
  82. package/docs/src/core/components/ui/modal/modal.md +123 -0
  83. package/docs/src/core/components/ui/pop/pop.md +79 -0
  84. package/docs/src/core/components/ui/progress/progress.md +63 -0
  85. package/docs/src/core/components/ui/table/table.md +455 -0
  86. package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
  87. package/docs/src/docs/_core-concept/overview.md +57 -0
  88. package/docs/src/docs/_core-concept/subscriber.md +76 -0
  89. package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
  90. package/docs/src/docs/_getting-started/create-a-component.md +137 -0
  91. package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
  92. package/docs/src/docs/_getting-started/pubsub.md +150 -0
  93. package/docs/src/docs/_getting-started/start.md +39 -0
  94. package/docs/src/docs/_getting-started/theming.md +91 -0
  95. package/docs/src/docs/search/docs-search.json +3887 -0
  96. package/docs/src/tag-list.json +1 -0
  97. package/docs/src/tsconfig-model.json +23 -0
  98. package/docs/src/tsconfig.json +808 -0
  99. package/docs/svg/regular/plane.svg +1 -0
  100. package/docs/svg/solid/plane.svg +1 -0
  101. package/index.html +0 -0
  102. package/package.json +1 -1
  103. package/scripts/create-search.js +0 -0
  104. package/scripts/post-build-docs.js +0 -0
  105. package/scripts/pre-build.mjs +0 -0
  106. package/src/core/_types/types.ts +0 -0
  107. package/src/core/components/functional/date/date.ts +7 -7
  108. package/src/core/components/ui/form/input/input.ts +0 -0
  109. package/src/core/components/ui/theme/theme.ts +0 -0
  110. package/src/core/components/ui/toast/message-subscriber.ts +0 -0
  111. package/src/core/components/ui/ui.ts +0 -0
  112. package/src/core/core.ts +0 -0
  113. package/src/core/directives/Wording.ts +0 -0
  114. package/src/core/mixins/Fetcher.ts +0 -0
  115. package/src/core/mixins/Subscriber.ts +23 -6
  116. package/src/core/utils/HTML.ts +0 -0
  117. package/src/core/utils/Utils.ts +0 -0
  118. package/src/core/utils/route.ts +0 -0
  119. package/src/index.ts +0 -0
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M576 256C576 305 502.1 336 464.2 336H382.2L282.4 496C276.4 506 266.4 512 254.4 512H189.5C179.5 512 169.5 508 163.5 500C157.6 492 155.6 480.1 158.6 471L201.5 336H152.5L113.6 388C107.6 396 98.61 400 88.62 400H31.7C22.72 400 12.73 396 6.74 388C.7485 380-1.248 370 1.747 360L31.7 256L.7488 152C-1.248 143 .7488 133 6.74 125C12.73 117 22.72 112 31.7 112H88.62C98.61 112 107.6 117 113.6 125L152.5 176H201.5L158.6 41C155.6 32 157.6 21 163.5 13C169.5 5 179.5 0 189.5 0H254.4C265.4 0 277.4 7 281.4 16L381.2 176H463.2C502.1 176 576 208 576 256H576zM527.1 256C525.1 246 489.1 224 463.2 224H355.3L245.4 48H211.5L266.4 224H128.6L80.63 160H53.67L81.63 256L53.67 352H80.63L128.6 288H266.4L211.5 464H245.4L355.3 288H463.2C490.1 288 526.1 267 527.1 256V256z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.2-15.4-20.4l49-171.6L112 320 68.8 377.6c-3 4-7.8 6.4-12.8 6.4l-42 0c-7.8 0-14-6.3-14-14c0-1.3 .2-2.6 .5-3.9L32 256 .5 145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.8 6.3-14 14-14l42 0c5 0 9.8 2.4 12.8 6.4L112 192l102.9 0-49-171.6C162.9 10.2 170.6 0 181.2 0l56.2 0c11.5 0 22.1 6.2 27.8 16.1L365.7 192l116.6 0z"/></svg>
package/index.html CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "3.1.32",
3
+ "version": "3.1.34",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "",
File without changes
File without changes
File without changes
File without changes
@@ -180,15 +180,15 @@ export class SonicDate extends Subscriber(TemplatesContainer(LitElement)) {
180
180
  * gestion des options d'affichage des dates
181
181
  * */
182
182
  const options: Intl.DateTimeFormatOptions = {
183
- year: this.year,
184
- month: this.month,
185
- day: this.day,
186
- hour12: this.hour12,
183
+ year: this.year || "numeric",
184
+ month: this.month || "short",
185
+ day: this.day || "2-digit",
186
+ hour12: this.hour12 || false,
187
187
  };
188
188
 
189
- if (this.weekday !== "hidden") options.weekday = this.weekday;
190
- if (this.hour !== "hidden") options.hour = this.hour;
191
- if (this.minute !== "hidden") options.minute = this.minute;
189
+ if (this.weekday !== "hidden") options.weekday = this.weekday || "short"; ;
190
+ if (this.hour !== "hidden") options.hour = this.hour || "2-digit"; ;
191
+ if (this.minute !== "hidden") options.minute = this.minute || "2-digit"; ;
192
192
  if (this.era) options.era = this.era;
193
193
  if (this.time_zone) options.timeZone = this.time_zone;
194
194
 
File without changes
File without changes
File without changes
package/src/core/core.ts CHANGED
File without changes
File without changes
File without changes
@@ -4,7 +4,7 @@ import HTML from "@supersoniks/concorde/core/utils/HTML";
4
4
  import Objects from "@supersoniks/concorde/core/utils/Objects";
5
5
  import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy";
6
6
  import { LitElement, PropertyValues } from "lit";
7
- import { property } from "lit/decorators.js";
7
+ import { property, state } from "lit/decorators.js";
8
8
  import WordingDirective from "../directives/Wording";
9
9
  import {
10
10
  PublisherInterface,
@@ -33,6 +33,7 @@ export interface SubscriberInterface<PropsType = CoreJSType> {
33
33
  defferedDebug: boolean | null;
34
34
  displayContents: boolean;
35
35
  shadowRoot?: ShadowRoot;
36
+ shouldRenderLazy: boolean;
36
37
  dispatchEvent(event: Event): void;
37
38
  setAttribute(name: string, value: string): void;
38
39
  addEventListener(
@@ -166,6 +167,8 @@ const Subscriber = <
166
167
  }
167
168
  this.requestUpdate();
168
169
  }
170
+
171
+
169
172
  protected updated(_changedProperties: PropertyValues): void {
170
173
  super.updated(_changedProperties);
171
174
  const ref = this.shadowRoot || this;
@@ -180,6 +183,7 @@ const Subscriber = <
180
183
  if (display) this.style.display = display;
181
184
  else this.style.removeProperty("display");
182
185
  }
186
+ @state() shouldRenderLazy = true;
183
187
  connectedCallback() {
184
188
  SubscriberElement.instanceCounter++;
185
189
  if (this.hasAttribute("lazyRendering")) {
@@ -193,11 +197,11 @@ const Subscriber = <
193
197
  const iObserver = new IntersectionObserver((entries) => {
194
198
  for (const e of entries) {
195
199
  if (firstView && e.isIntersecting) {
196
- this.addDebugger();
197
200
  firstView = false;
198
- this.initWording();
199
- this.initPublisher();
200
201
  iObserver.disconnect();
202
+ this.initWording();
203
+ this.startPublisher();
204
+ this.shouldRenderLazy = false;
201
205
  break;
202
206
  }
203
207
  }
@@ -205,10 +209,13 @@ const Subscriber = <
205
209
  iObserver.observe(this);
206
210
  } else {
207
211
  this.initWording();
208
- this.initPublisher();
209
- this.addDebugger();
212
+ this.shouldRenderLazy = false;
210
213
  }
214
+
215
+ this.initPublisher();
216
+ this.addDebugger();
211
217
  super.connectedCallback();
218
+
212
219
  }
213
220
 
214
221
  disconnectedCallback() {
@@ -336,6 +343,8 @@ const Subscriber = <
336
343
  this.props = v;
337
344
  };
338
345
 
346
+
347
+
339
348
  initPublisher() {
340
349
  if (!document) return;
341
350
  if (this.publisher) {
@@ -372,6 +381,14 @@ const Subscriber = <
372
381
  }
373
382
  this.publisher = pub;
374
383
  }
384
+ if(this.hasAttribute("lazyRendering")) {
385
+ return;
386
+ }
387
+ else{
388
+ this.startPublisher();
389
+ }
390
+ }
391
+ startPublisher() {
375
392
  if (this.publisher) {
376
393
  if (this._props) {
377
394
  this.publisher.set(this._props);
File without changes
File without changes
File without changes
package/src/index.ts CHANGED
File without changes