@supersoniks/concorde 1.1.19 → 1.1.21
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.
- package/concorde-core.bundle.js +121 -0
- package/concorde-core.es.js +121 -0
- package/core/components/ui/card/card-header.d.ts +1 -1
- package/core/components/ui/card/card-header.js +1 -1
- package/core/components/ui/card/card.d.ts +3 -3
- package/core/components/ui/card/card.js +3 -3
- package/core/components/ui/icon/icon.js +4 -7
- package/core/components/ui/table/table.d.ts +7 -7
- package/core/components/ui/table/table.js +7 -7
- package/core/mixins/Fetcher.d.ts +2 -7
- package/core/mixins/Subscriber.d.ts +0 -1
- package/core/mixins/Subscriber.js +0 -1
- package/core/utils/Electron.js +2 -1
- package/package.json +7 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import '
|
|
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 '
|
|
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 "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
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 "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
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 {
|
|
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
|
-
|
|
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
|
|
3
|
-
import "./table-th
|
|
4
|
-
import "./table-td
|
|
5
|
-
import "./table-thead
|
|
6
|
-
import "./table-tbody
|
|
7
|
-
import "./table-tfoot
|
|
8
|
-
import "./table-caption
|
|
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
|
|
10
|
-
import "./table-th
|
|
11
|
-
import "./table-td
|
|
12
|
-
import "./table-thead
|
|
13
|
-
import "./table-tbody
|
|
14
|
-
import "./table-tfoot
|
|
15
|
-
import "./table-caption
|
|
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);
|
package/core/mixins/Fetcher.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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";
|
package/core/utils/Electron.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default class Electron {
|
|
2
2
|
static fixBlankLink(link) {
|
|
3
|
-
const
|
|
3
|
+
const electronStr = "electron";
|
|
4
|
+
const electron = typeof require == 'undefined' ? null : require(electronStr);
|
|
4
5
|
if (typeof electron && link.target == "_blank") {
|
|
5
6
|
link.addEventListener("click", () => { electron === null || electron === void 0 ? void 0 : electron.shell.openExternal(link.href); });
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersoniks/concorde",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"customElements": "custom-elements.json",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"vite": "^2.6.14"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
|
+
"./components": "./components",
|
|
28
29
|
"./core/components/functional/configuration/configuration": "./core/components/functional/configuration/configuration",
|
|
29
30
|
"./functional/configuration": "./core/components/functional/configuration/configuration",
|
|
30
31
|
"./core/components/functional/date/date": "./core/components/functional/date/date",
|
|
@@ -186,7 +187,7 @@
|
|
|
186
187
|
"./core/mixins/TemplatesContainer": "./core/mixins/TemplatesContainer",
|
|
187
188
|
"./mixins/TemplatesContainer": "./core/mixins/TemplatesContainer",
|
|
188
189
|
"./core/mixins/mixins": "./core/mixins/mixins",
|
|
189
|
-
"./mixins": "./
|
|
190
|
+
"./mixins": "./mixins",
|
|
190
191
|
"./core/utils/Arrays": "./core/utils/Arrays",
|
|
191
192
|
"./utils/Arrays": "./core/utils/Arrays",
|
|
192
193
|
"./core/utils/DataBindObserver": "./core/utils/DataBindObserver",
|
|
@@ -205,9 +206,11 @@
|
|
|
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-
|
|
209
|
+
"./index-billetterie": "./index-billetterie",
|
|
209
210
|
"./index-shared": "./index-shared",
|
|
210
|
-
"./index": "./index"
|
|
211
|
+
"./index": "./index",
|
|
212
|
+
"./utils": "./utils",
|
|
213
|
+
".": "./core/core"
|
|
211
214
|
},
|
|
212
215
|
"bin": "./bin/cli.js"
|
|
213
216
|
}
|