@supersoniks/concorde 1.1.19 → 1.1.20

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.
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from "lit";
2
- import './card-header-descripton.ts';
2
+ import '@supersoniks/concorde/core/components/ui/card/card-header-descripton';
3
3
  export declare class CardHeader extends LitElement {
4
4
  static styles: import("lit").CSSResult[];
5
5
  label: string;
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement, property } from "lit/decorators.js";
9
- import './card-header-descripton.ts';
9
+ import '@supersoniks/concorde/core/components/ui/card/card-header-descripton';
10
10
  let CardHeader = class CardHeader extends LitElement {
11
11
  render() {
12
12
  return html `
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from "lit";
2
- import "./card-header.ts";
3
- import "./card-main.ts";
4
- import "./card-footer.ts";
2
+ import "@supersoniks/concorde/core/components/ui/card/card-header";
3
+ import "@supersoniks/concorde/core/components/ui/card/card-main";
4
+ import "@supersoniks/concorde/core/components/ui/card/card-footer";
5
5
  export declare class Card extends LitElement {
6
6
  static styles: import("lit").CSSResult[];
7
7
  /**
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement, property } from "lit/decorators.js";
9
- import "./card-header.ts";
10
- import "./card-main.ts";
11
- import "./card-footer.ts";
9
+ import "@supersoniks/concorde/core/components/ui/card/card-header";
10
+ import "@supersoniks/concorde/core/components/ui/card/card-main";
11
+ import "@supersoniks/concorde/core/components/ui/card/card-footer";
12
12
  let Card = class Card extends LitElement {
13
13
  constructor() {
14
14
  super(...arguments);
@@ -14,13 +14,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
14
14
  });
15
15
  };
16
16
  import { LitElement, css, nothing } from "lit";
17
- import { customElement, property } from "lit/decorators.js";
17
+ import { property } from "lit/decorators.js";
18
18
  import Icons from "./icons";
19
19
  /**
20
20
  * Afficher l'icone choisie parmis une liste prédéfinie dans icons.json
21
21
  * les tailles suivantes sont disponible via l'attribut *size* : 2xs,xs,sm,"",lg,xl,2xl
22
22
  */
23
- let Icon = class Icon extends LitElement {
23
+ // @customElement("sonic-icon")
24
+ export class Icon extends LitElement {
24
25
  constructor() {
25
26
  super(...arguments);
26
27
  this.iconText = "";
@@ -74,7 +75,7 @@ let Icon = class Icon extends LitElement {
74
75
  this.style.removeProperty("display");
75
76
  return this.iconText;
76
77
  }
77
- };
78
+ }
78
79
  Icon.styles = css `
79
80
  :host {
80
81
  line-height: 0;
@@ -128,10 +129,6 @@ __decorate([
128
129
  __decorate([
129
130
  property({ type: String })
130
131
  ], Icon.prototype, "library", null);
131
- Icon = __decorate([
132
- customElement("sonic-icon")
133
- ], Icon);
134
- export { Icon };
135
132
  //Ajout pour la creation du cem notamment pour Storybook
136
133
  try {
137
134
  customElements.define("sonic-icon", Icon);
@@ -1,11 +1,11 @@
1
1
  import { LitElement } from "lit";
2
- import "./table-tr.ts";
3
- import "./table-th.ts";
4
- import "./table-td.ts";
5
- import "./table-thead.ts";
6
- import "./table-tbody.ts";
7
- import "./table-tfoot.ts";
8
- import "./table-caption.ts";
2
+ import "./table-tr";
3
+ import "./table-th";
4
+ import "./table-td";
5
+ import "./table-thead";
6
+ import "./table-tbody";
7
+ import "./table-tfoot";
8
+ import "./table-caption";
9
9
  export declare class Table extends LitElement {
10
10
  static styles: import("lit").CSSResult[];
11
11
  size: "xs" | "sm" | "md" | "lg" | "xl";
@@ -6,13 +6,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, LitElement, css } from "lit";
8
8
  import { customElement, property } from "lit/decorators.js";
9
- import "./table-tr.ts";
10
- import "./table-th.ts";
11
- import "./table-td.ts";
12
- import "./table-thead.ts";
13
- import "./table-tbody.ts";
14
- import "./table-tfoot.ts";
15
- import "./table-caption.ts";
9
+ import "./table-tr";
10
+ import "./table-th";
11
+ import "./table-td";
12
+ import "./table-thead";
13
+ import "./table-tbody";
14
+ import "./table-tfoot";
15
+ import "./table-caption";
16
16
  let Table = class Table extends LitElement {
17
17
  constructor() {
18
18
  super(...arguments);
@@ -0,0 +1,151 @@
1
+ import "./components/functional/functional";
2
+ import "./components/ui/ui";
3
+ import "./mixins/mixins";
4
+ export declare const Fetcher: <T extends new (...args: any[]) => mySubscriber.SubscriberInterface>(superClass: T) => {
5
+ new (...args: any[]): {
6
+ api: myApi.default | null;
7
+ key: String;
8
+ isFirstLoad: boolean;
9
+ isLoading: boolean;
10
+ iObserver: IntersectionObserver | null;
11
+ isDefaultLoaderEnabled: boolean;
12
+ isFetchEnabled: boolean;
13
+ _endPoint: string;
14
+ endPoint: string;
15
+ _fetchData(): Promise<void>;
16
+ onInvalidate: any;
17
+ disconnectedCallback(): void;
18
+ connectedCallback(): void;
19
+ firstUpdated(): void;
20
+ onIntersection(entries: IntersectionObserverEntry[]): void;
21
+ props: any;
22
+ isConnected: boolean;
23
+ getAncestorAttributeValue(attributeName: string): string;
24
+ hasAncestorAttribute(attributeName: string): boolean;
25
+ querySelectorAll(selector: string): NodeListOf<Element>;
26
+ publisher: any;
27
+ dataProvider: string | null;
28
+ noShadowDom: string | null;
29
+ debug: HTMLElement | null;
30
+ defferedDebug: boolean | null;
31
+ dispatchEvent(event: Event): void;
32
+ setAttribute(name: string, value: string): void;
33
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
34
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
35
+ removeAttribute(name: string): void;
36
+ initPublisher(): void;
37
+ getApiConfiguration(): myApi.APIConfiguration;
38
+ requestUpdate(): void;
39
+ getAttribute(name: string): string;
40
+ hasAttribute(attributeName: String): boolean;
41
+ };
42
+ } & T;
43
+ export declare const FormCheckable: <T extends new (...args: any[]) => myFormElement.FormElementInterface>(superClass: T) => {
44
+ new (...args: any[]): {
45
+ _value: string | null;
46
+ value: string | null;
47
+ _name: string;
48
+ name: string;
49
+ unique: true | null;
50
+ radio: true | null;
51
+ _checked: true | null;
52
+ checked: true | null;
53
+ setCheckedValue(checked: true | null): void;
54
+ handleChange(): void;
55
+ getValueForFormPublisher(): any;
56
+ setFormValueFromPublisher(value: any): void;
57
+ initPublisher(): void;
58
+ getFormPublisher(): any;
59
+ updateDataValue(): void;
60
+ error: true | null;
61
+ autofocus: true | null;
62
+ disabled: true | null;
63
+ required: true | null;
64
+ formDataProvider: string;
65
+ props: any;
66
+ isConnected: boolean;
67
+ getAncestorAttributeValue(attributeName: string): string;
68
+ hasAncestorAttribute(attributeName: string): boolean;
69
+ querySelectorAll(selector: string): NodeListOf<Element>;
70
+ publisher: any;
71
+ dataProvider: string | null;
72
+ noShadowDom: string | null;
73
+ debug: HTMLElement | null;
74
+ defferedDebug: boolean | null;
75
+ dispatchEvent(event: Event): void;
76
+ setAttribute(name: string, value: string): void;
77
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
78
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
79
+ removeAttribute(name: string): void;
80
+ getApiConfiguration(): myApi.APIConfiguration;
81
+ connectedCallback(): void;
82
+ requestUpdate(): void;
83
+ getAttribute(name: string): string;
84
+ hasAttribute(attributeName: String): boolean;
85
+ disconnectedCallback(): void;
86
+ };
87
+ } & T;
88
+ import * as myFormElement from "./mixins/FormElement";
89
+ export declare const FormElement: <T extends new (...args: any[]) => mySubscriber.SubscriberInterface>(superClass: T) => (new (...args: any[]) => myFormElement.FormElementInterface) & T;
90
+ export declare const FormInput: <T extends new (...args: any[]) => myFormElement.FormElementInterface>(superClass: T) => {
91
+ new (...args: any[]): {
92
+ type: "number" | "search" | "file" | "button" | "password" | "url" | "color" | "hidden" | "time" | "image" | "text" | "reset" | "submit" | "month" | "week" | "checkbox" | "radio" | "range" | "tel" | "email" | "date" | "datetime-local";
93
+ tabindex: string | null;
94
+ autocomplete: "url" | "name" | "language" | "on" | "tel" | "email" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo" | null;
95
+ getFormPublisher(): any;
96
+ updateDataValue(): void;
97
+ handleChange(e?: any): void;
98
+ getValueForFormPublisher(): any;
99
+ error: true | null;
100
+ autofocus: true | null;
101
+ disabled: true | null;
102
+ required: true | null;
103
+ formDataProvider: string;
104
+ _value: any;
105
+ value: any;
106
+ _name: string;
107
+ name: string;
108
+ props: any;
109
+ isConnected: boolean;
110
+ getAncestorAttributeValue(attributeName: string): string;
111
+ hasAncestorAttribute(attributeName: string): boolean;
112
+ querySelectorAll(selector: string): NodeListOf<Element>;
113
+ publisher: any;
114
+ dataProvider: string | null;
115
+ noShadowDom: string | null;
116
+ debug: HTMLElement | null;
117
+ defferedDebug: boolean | null;
118
+ dispatchEvent(event: Event): void;
119
+ setAttribute(name: string, value: string): void;
120
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
121
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
122
+ removeAttribute(name: string): void;
123
+ initPublisher(): void;
124
+ getApiConfiguration(): myApi.APIConfiguration;
125
+ connectedCallback(): void;
126
+ requestUpdate(): void;
127
+ getAttribute(name: string): string;
128
+ hasAttribute(attributeName: String): boolean;
129
+ disconnectedCallback(): void;
130
+ };
131
+ } & T;
132
+ import * as mySubscriber from "./mixins/Subscriber";
133
+ export declare const Subscriber: <T extends new (...args: any[]) => import("lit").LitElement>(superClass: T) => (new (...args: any[]) => mySubscriber.SubscriberInterface) & T;
134
+ import * as myTemplatesContainer from "./mixins/TemplatesContainer";
135
+ export declare const TemplatesContainer: <T extends new (...args: any[]) => import("lit").LitElement>(superClass: T) => (new (...args: any[]) => myTemplatesContainer.TemplatesContainerInterface) & T;
136
+ import * as myArrays from "./utils/Arrays";
137
+ export declare const Arrays: typeof myArrays.default;
138
+ import * as myDataBindObserver from "./utils/DataBindObserver";
139
+ export declare const DataBindObserver: typeof myDataBindObserver.default;
140
+ import * as myFormat from "./utils/Format";
141
+ export declare const Format: typeof myFormat.default;
142
+ import * as myHTML from "./utils/HTML";
143
+ export declare const HTML: typeof myHTML.default;
144
+ import * as myLocationHandler from "./utils/LocationHandler";
145
+ export declare const LocationHandler: typeof myLocationHandler.default;
146
+ import * as myObjects from "./utils/Objects";
147
+ export declare const Objects: typeof myObjects.default;
148
+ import * as myPublisherProxy from "./utils/PublisherProxy.mjs";
149
+ export declare const PublisherProxy: typeof myPublisherProxy.default;
150
+ import * as myApi from "./utils/api";
151
+ export declare const api: typeof myApi.default;
package/core/index.js ADDED
@@ -0,0 +1,56 @@
1
+ import "./components/functional/functional";
2
+ import "./components/ui/ui";
3
+ import "./mixins/mixins";
4
+ import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy.mjs";
5
+ //
6
+ //
7
+ import * as myFetcher from "./mixins/Fetcher";
8
+ export const Fetcher = myFetcher.default;
9
+ import * as myFormCheckable from "./mixins/FormCheckable";
10
+ export const FormCheckable = myFormCheckable.default;
11
+ import * as myFormElement from "./mixins/FormElement";
12
+ export const FormElement = myFormElement.default;
13
+ import * as myFormInput from "./mixins/FormInput";
14
+ export const FormInput = myFormInput.default;
15
+ import * as mySubscriber from "./mixins/Subscriber";
16
+ export const Subscriber = mySubscriber.default;
17
+ import * as myTemplatesContainer from "./mixins/TemplatesContainer";
18
+ export const TemplatesContainer = myTemplatesContainer.default;
19
+ //
20
+ import * as myArrays from "./utils/Arrays";
21
+ export const Arrays = myArrays.default;
22
+ import * as myDataBindObserver from "./utils/DataBindObserver";
23
+ export const DataBindObserver = myDataBindObserver.default;
24
+ import * as myFormat from "./utils/Format";
25
+ export const Format = myFormat.default;
26
+ import * as myHTML from "./utils/HTML";
27
+ export const HTML = myHTML.default;
28
+ import * as myLocationHandler from "./utils/LocationHandler";
29
+ export const LocationHandler = myLocationHandler.default;
30
+ import * as myObjects from "./utils/Objects";
31
+ export const Objects = myObjects.default;
32
+ import * as myPublisherProxy from "./utils/PublisherProxy.mjs";
33
+ export const PublisherProxy = myPublisherProxy.default;
34
+ import * as myApi from "./utils/api";
35
+ export const api = myApi.default;
36
+ let win = window;
37
+ if (!win.SonicPublisherManager)
38
+ win.SonicPublisherManager = PublisherManager;
39
+ if (!win.SonicDataBindObserver)
40
+ win.SonicDataBindObserver = DataBindObserver;
41
+ win["concorde-core"] = {
42
+ Fetcher: Fetcher,
43
+ FormCheckable: FormCheckable,
44
+ FormElement: FormElement,
45
+ FormInput: FormInput,
46
+ Subscriber: Subscriber,
47
+ TemplatesContainer: TemplatesContainer,
48
+ Arrays: Arrays,
49
+ DataBindObserver: DataBindObserver,
50
+ Format: Format,
51
+ HTML: HTML,
52
+ LocationHandler: LocationHandler,
53
+ Objects: Objects,
54
+ PublisherProxy: PublisherProxy,
55
+ api: api
56
+ };
@@ -57,18 +57,13 @@ declare const Fetcher: <T extends Constructor<SubscriberInterface>>(superClass:
57
57
  dataProvider: string | null;
58
58
  noShadowDom: string | null;
59
59
  debug: HTMLElement | null;
60
- defferedDebug: boolean | null; /**
61
- * isLoading vaut true pendant le chargement des données
62
- */
60
+ defferedDebug: boolean | null;
63
61
  dispatchEvent(event: Event): void;
64
62
  setAttribute(name: string, value: string): void;
65
63
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
66
64
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
67
65
  removeAttribute(name: string): void;
68
- initPublisher(): void; /**
69
- * On peut désactiver le fetch programmatiquement via cette propriété.
70
- * Cela est le cas pour le composant sonic-list qui ne fetch que si l'attribut fetch est renseigné
71
- */
66
+ initPublisher(): void;
72
67
  getApiConfiguration(): import("@supersoniks/concorde/core/utils/api").APIConfiguration;
73
68
  requestUpdate(): void;
74
69
  getAttribute(name: string): string;
@@ -1,5 +1,4 @@
1
1
  import { LitElement } from "lit";
2
- import "@supersoniks/concorde/core/components/ui/icon/icon";
3
2
  import { APIConfiguration } from "@supersoniks/concorde/core/utils/api";
4
3
  declare type Constructor<T> = new (...args: any[]) => T;
5
4
  export interface SubscriberInterface {
@@ -15,7 +15,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
15
15
  };
16
16
  import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy.mjs";
17
17
  import { property } from "lit/decorators.js";
18
- import "@supersoniks/concorde/core/components/ui/icon/icon";
19
18
  import API from "@supersoniks/concorde/core/utils/api";
20
19
  import HTML from "@supersoniks/concorde/core/utils/HTML";
21
20
  import DataBindObserver from "@supersoniks/concorde/core/utils/DataBindObserver";
@@ -0,0 +1,2 @@
1
+ import "./core/";
2
+ import './la-billetterie/la-billetterie';
@@ -0,0 +1,2 @@
1
+ import "./core/";
2
+ import './la-billetterie/la-billetterie';
@@ -0,0 +1,2 @@
1
+ import "./core";
2
+ import './la-billetterie/la-billetterie-shared';
@@ -0,0 +1,2 @@
1
+ import "./core";
2
+ import './la-billetterie/la-billetterie-shared';
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ import "./core";
package/index.js ADDED
@@ -0,0 +1 @@
1
+ import "./core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "customElements": "custom-elements.json",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -173,6 +173,7 @@
173
173
  "./ui": "./core/components/ui/ui",
174
174
  "./core/core": "./core/core",
175
175
  "./core": "./core/core",
176
+ "./core/index": "./core/index",
176
177
  "./core/mixins/Fetcher": "./core/mixins/Fetcher",
177
178
  "./mixins/Fetcher": "./core/mixins/Fetcher",
178
179
  "./core/mixins/FormCheckable": "./core/mixins/FormCheckable",
@@ -205,9 +206,10 @@
205
206
  "./utils/PublisherProxy.mjs": "./core/utils/PublisherProxy",
206
207
  "./core/utils/api": "./core/utils/api",
207
208
  "./utils/api": "./core/utils/api",
208
- "./index-core": "./index-core",
209
+ "./index-billetterie": "./index-billetterie",
209
210
  "./index-shared": "./index-shared",
210
- "./index": "./index"
211
+ "./index": "./index",
212
+ ".": "./core/core"
211
213
  },
212
214
  "bin": "./bin/cli.js"
213
215
  }