@supersoniks/concorde 1.1.24 → 1.1.26
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 +25 -31
- package/concorde-core.es.js +25 -31
- package/core/components/functional/configuration/configuration.js +2 -1
- package/core/components/functional/date/date.js +2 -1
- package/core/components/functional/example/example.js +2 -1
- package/core/components/functional/fetch/fetch.d.ts +0 -31
- package/core/components/functional/fetch/fetch.js +3 -2
- package/core/components/functional/if/if.d.ts +0 -3
- package/core/components/functional/if/if.js +3 -2
- package/core/components/functional/list/list.d.ts +3 -17
- package/core/components/functional/list/list.js +4 -3
- package/core/components/functional/queue/queue.d.ts +1 -8
- package/core/components/functional/queue/queue.js +10 -2
- package/core/components/functional/router/redirect.d.ts +0 -9
- package/core/components/functional/router/redirect.js +3 -2
- package/core/components/functional/router/router.d.ts +0 -14
- package/core/components/functional/router/router.js +3 -2
- package/core/components/functional/sonic-scope/sonic-scope.js +2 -1
- package/core/components/functional/states/states.d.ts +0 -15
- package/core/components/functional/states/states.js +3 -2
- package/core/components/functional/submit/submit.d.ts +0 -11
- package/core/components/functional/submit/submit.js +3 -2
- package/core/components/functional/subscriber/subscriber.d.ts +0 -3
- package/core/components/functional/subscriber/subscriber.js +3 -2
- package/core/components/ui/_css/scroll.d.ts +1 -0
- package/core/components/ui/_css/scroll.js +22 -0
- package/core/components/ui/_css/types.d.ts +2 -0
- package/core/components/ui/_css/types.js +60 -0
- package/core/components/ui/alert/alert.js +12 -12
- package/core/components/ui/badge/badge.js +3 -2
- package/core/components/ui/button/button.d.ts +4 -9
- package/core/components/ui/button/button.js +16 -13
- package/core/components/ui/card/card-footer.d.ts +0 -1
- package/core/components/ui/card/card-footer.js +14 -10
- package/core/components/ui/card/card-header-descripton.js +6 -1
- package/core/components/ui/card/card-header.js +7 -1
- package/core/components/ui/card/card-main.d.ts +0 -1
- package/core/components/ui/card/card-main.js +14 -10
- package/core/components/ui/card/card.js +7 -1
- package/core/components/ui/divider/divider.js +2 -1
- package/core/components/ui/form/checkbox/checkbox.d.ts +1 -20
- package/core/components/ui/form/checkbox/checkbox.js +23 -3
- package/core/components/ui/form/css/form-control.js +36 -33
- package/core/components/ui/form/fieldset/fieldset.d.ts +1 -1
- package/core/components/ui/form/fieldset/fieldset.js +5 -7
- package/core/components/ui/form/fieldset/legend.d.ts +5 -4
- package/core/components/ui/form/fieldset/legend.js +24 -20
- package/core/components/ui/form/form-actions/form-actions.d.ts +5 -0
- package/core/components/ui/form/{form-layout → form-actions}/form-actions.js +13 -5
- package/core/components/ui/form/form-layout/form-layout.js +3 -2
- package/core/components/ui/form/input/input.d.ts +3 -10
- package/core/components/ui/form/input/input.js +3 -2
- package/core/components/ui/form/radio/radio.d.ts +0 -6
- package/core/components/ui/form/radio/radio.js +3 -2
- package/core/components/ui/form/select/select.d.ts +0 -7
- package/core/components/ui/form/select/select.js +6 -4
- package/core/components/ui/form/textarea/textarea.js +10 -2
- package/core/components/ui/group/group.js +3 -2
- package/core/components/ui/icon/icon.d.ts +0 -4
- package/core/components/ui/icon/icon.js +9 -5
- package/core/components/ui/icon/icons.js +43 -17
- package/core/components/ui/icon/icons.json +1 -1
- package/core/components/ui/image/image.js +3 -2
- package/core/components/ui/link/link.js +6 -1
- package/core/components/ui/loader/loader.js +3 -2
- package/core/components/ui/menu/menu-item.js +5 -4
- package/core/components/ui/menu/menu.d.ts +2 -1
- package/core/components/ui/menu/menu.js +18 -13
- package/core/components/ui/modal/modal-actions.js +3 -2
- package/core/components/ui/modal/modal-close.js +4 -3
- package/core/components/ui/modal/modal-content.js +3 -2
- package/core/components/ui/modal/modal-subtitle.js +3 -2
- package/core/components/ui/modal/modal-title.js +3 -2
- package/core/components/ui/modal/modal.js +11 -24
- package/core/components/ui/pop/pop.js +3 -2
- package/core/components/ui/progress/progress.js +29 -7
- package/core/components/ui/table/table-caption.js +11 -2
- package/core/components/ui/table/table-tbody.js +8 -2
- package/core/components/ui/table/table-td.d.ts +4 -2
- package/core/components/ui/table/table-td.js +30 -13
- package/core/components/ui/table/table-tfoot.js +7 -1
- package/core/components/ui/table/table-th.d.ts +4 -1
- package/core/components/ui/table/table-th.js +41 -13
- package/core/components/ui/table/table-thead.js +8 -2
- package/core/components/ui/table/table-tr.js +9 -1
- package/core/components/ui/table/table.d.ts +2 -0
- package/core/components/ui/table/table.js +38 -3
- package/core/components/ui/tabs/tabs.js +3 -4
- package/core/components/ui/taxonomy/taxonomy.js +2 -1
- package/core/components/ui/theme/theme-collection/core-variables.js +12 -8
- package/core/components/ui/theme/theme-collection/dark.js +0 -4
- package/core/components/ui/theme/theme-collection/light.js +0 -1
- package/core/components/ui/theme/theme.d.ts +0 -1
- package/core/components/ui/theme/theme.js +3 -6
- package/core/components/ui/toast/message-subscriber.js +2 -1
- package/core/components/ui/toast/toast-item.d.ts +1 -0
- package/core/components/ui/toast/toast-item.js +51 -31
- package/core/components/ui/toast/toast.js +7 -6
- package/core/components/ui/tooltip/tooltip.js +7 -1
- package/core/components/ui/ui.d.ts +1 -0
- package/core/components/ui/ui.js +1 -0
- package/core/mixins/Fetcher.d.ts +3 -1
- package/core/mixins/Fetcher.js +3 -1
- package/core/mixins/FormElement.js +4 -0
- package/core/utils/api.d.ts +2 -2
- package/core/utils/api.js +7 -7
- package/package.json +7 -3
- package/core/components/ui/form/form-layout/form-actions.d.ts +0 -6
|
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { customElement } from "lit/decorators.js";
|
|
8
8
|
import { Button } from "../button/button";
|
|
9
|
+
const tagName = "sonic-menu-item";
|
|
9
10
|
let MenuItem = class MenuItem extends Button {
|
|
10
11
|
constructor() {
|
|
11
12
|
super();
|
|
@@ -20,18 +21,18 @@ let MenuItem = class MenuItem extends Button {
|
|
|
20
21
|
if (!this.hasAttribute('shape')) {
|
|
21
22
|
this.shape = "block";
|
|
22
23
|
}
|
|
23
|
-
if (!this.hasAttribute('
|
|
24
|
-
this.
|
|
24
|
+
if (!this.hasAttribute('align')) {
|
|
25
|
+
this.align = "left";
|
|
25
26
|
}
|
|
26
27
|
super.connectedCallback();
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
30
|
MenuItem = __decorate([
|
|
30
|
-
customElement(
|
|
31
|
+
customElement(tagName)
|
|
31
32
|
], MenuItem);
|
|
32
33
|
export { MenuItem };
|
|
33
34
|
//Ajout pour Storybook
|
|
34
35
|
try {
|
|
35
|
-
customElements.define(
|
|
36
|
+
customElements.define(tagName, MenuItem);
|
|
36
37
|
}
|
|
37
38
|
catch (e) { }
|
|
@@ -11,11 +11,12 @@ export declare class MenuItems extends LitElement {
|
|
|
11
11
|
* Direction
|
|
12
12
|
*/
|
|
13
13
|
direction: "row" | "column";
|
|
14
|
+
gap: string;
|
|
14
15
|
align: "center" | "left" | "right";
|
|
15
16
|
/**
|
|
16
17
|
* Ombre
|
|
17
18
|
*/
|
|
18
|
-
shadow: "" | "
|
|
19
|
+
shadow: "" | "sm" | "md" | 'lg' | "xl" | "none" | null;
|
|
19
20
|
moreShape: "square" | "circle";
|
|
20
21
|
/**
|
|
21
22
|
* Propriété min-width du bouton
|
|
@@ -8,6 +8,7 @@ import { html, LitElement, css } from "lit";
|
|
|
8
8
|
import { styleMap } from "lit/directives/style-map.js";
|
|
9
9
|
import { customElement, property, queryAssignedElements, state } from "lit/decorators.js";
|
|
10
10
|
import "./menu-item";
|
|
11
|
+
const tagName = "sonic-menu";
|
|
11
12
|
let MenuItems = class MenuItems extends LitElement {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -20,11 +21,12 @@ let MenuItems = class MenuItems extends LitElement {
|
|
|
20
21
|
* Direction
|
|
21
22
|
*/
|
|
22
23
|
this.direction = "column";
|
|
24
|
+
this.gap = "var(--sc-menu-gap)";
|
|
23
25
|
this.align = "left";
|
|
24
26
|
/**
|
|
25
27
|
* Ombre
|
|
26
28
|
*/
|
|
27
|
-
this.shadow =
|
|
29
|
+
this.shadow = null;
|
|
28
30
|
this.moreShape = "circle";
|
|
29
31
|
/**
|
|
30
32
|
* Propriété min-width du bouton
|
|
@@ -58,7 +60,7 @@ let MenuItems = class MenuItems extends LitElement {
|
|
|
58
60
|
elt.setAttribute("size", this.size);
|
|
59
61
|
}
|
|
60
62
|
if (this.align) {
|
|
61
|
-
elt.setAttribute("
|
|
63
|
+
elt.setAttribute("align", this.align);
|
|
62
64
|
}
|
|
63
65
|
if (this.direction == "row") {
|
|
64
66
|
if (elt.getAttribute('shape') == "block") {
|
|
@@ -71,6 +73,7 @@ let MenuItems = class MenuItems extends LitElement {
|
|
|
71
73
|
const menuStyles = {
|
|
72
74
|
minWidth: this.minWidth,
|
|
73
75
|
flexDirection: this.direction,
|
|
76
|
+
gap: this.gap
|
|
74
77
|
};
|
|
75
78
|
const isMenuRow = this.direction == "row";
|
|
76
79
|
const popStyles = {
|
|
@@ -85,8 +88,8 @@ let MenuItems = class MenuItems extends LitElement {
|
|
|
85
88
|
return html `<menu part="menu" class="shadowable" style=${styleMap(menuStyles)}>
|
|
86
89
|
<slot @slotchange=${this.mainSlotChange}></slot>
|
|
87
90
|
<sonic-pop style=${styleMap(popStyles)} class=${!this.hasMoreElements ? 'hidden' : ''}>
|
|
88
|
-
<sonic-menu-item style=${styleMap(popBtnStyles)} class="more-btn" shape=${this.moreShape}
|
|
89
|
-
<sonic-icon
|
|
91
|
+
<sonic-menu-item style=${styleMap(popBtnStyles)} class="more-btn" shape=${this.moreShape} align="center" >
|
|
92
|
+
<sonic-icon size="xl" name=${isMenuRow ? "more-vert" : "more-horiz"} ></sonic-icon>
|
|
90
93
|
</sonic-menu-item>
|
|
91
94
|
<slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
|
|
92
95
|
</sonic-pop>
|
|
@@ -97,6 +100,7 @@ MenuItems.styles = [
|
|
|
97
100
|
css `
|
|
98
101
|
:host {
|
|
99
102
|
display: block;
|
|
103
|
+
--sc-menu-gap:.15rem;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
:host > menu {
|
|
@@ -104,7 +108,6 @@ MenuItems.styles = [
|
|
|
104
108
|
border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
|
|
105
109
|
margin: 0;
|
|
106
110
|
padding: 0.35em;
|
|
107
|
-
gap: 0.15rem;
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
.hidden {
|
|
@@ -113,23 +116,22 @@ MenuItems.styles = [
|
|
|
113
116
|
|
|
114
117
|
/*OMBRE*/
|
|
115
118
|
:host([shadow]) .shadowable,
|
|
116
|
-
:host([shadow="md"])
|
|
117
|
-
:host([shadow="true"])
|
|
119
|
+
:host([shadow="md"]) .shadowable,
|
|
120
|
+
:host([shadow="true"]) .shadowable {
|
|
118
121
|
box-shadow: var(--sc-shadow);
|
|
119
122
|
}
|
|
120
123
|
|
|
121
|
-
:host([shadow="sm"])
|
|
124
|
+
:host([shadow="sm"]) .shadowable {
|
|
122
125
|
box-shadow: var(--sc-shadow-sm);
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
:host([shadow="lg"])
|
|
128
|
+
:host([shadow="lg"]) .shadowable {
|
|
126
129
|
box-shadow: var(--sc-shadow-lg);
|
|
127
130
|
}
|
|
128
131
|
|
|
129
|
-
:host([shadow="none"])
|
|
132
|
+
:host([shadow="none"]) .shadowable {
|
|
130
133
|
box-shadow: none;
|
|
131
134
|
}
|
|
132
|
-
|
|
133
135
|
|
|
134
136
|
`,
|
|
135
137
|
];
|
|
@@ -139,6 +141,9 @@ __decorate([
|
|
|
139
141
|
__decorate([
|
|
140
142
|
property({ type: String, reflect: true })
|
|
141
143
|
], MenuItems.prototype, "direction", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
property({ type: String })
|
|
146
|
+
], MenuItems.prototype, "gap", void 0);
|
|
142
147
|
__decorate([
|
|
143
148
|
property({ type: String, reflect: true })
|
|
144
149
|
], MenuItems.prototype, "align", void 0);
|
|
@@ -161,11 +166,11 @@ __decorate([
|
|
|
161
166
|
state()
|
|
162
167
|
], MenuItems.prototype, "hasMoreElements", void 0);
|
|
163
168
|
MenuItems = __decorate([
|
|
164
|
-
customElement(
|
|
169
|
+
customElement(tagName)
|
|
165
170
|
], MenuItems);
|
|
166
171
|
export { MenuItems };
|
|
167
172
|
//Ajout pour la creation du cem notamment pour Storybook
|
|
168
173
|
try {
|
|
169
|
-
customElements.define(
|
|
174
|
+
customElements.define(tagName, MenuItems);
|
|
170
175
|
}
|
|
171
176
|
catch (e) { }
|
|
@@ -6,6 +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, queryAssignedElements } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-modal-actions";
|
|
9
10
|
let ModalActions = class ModalActions extends LitElement {
|
|
10
11
|
firstUpdated() {
|
|
11
12
|
var _a;
|
|
@@ -36,11 +37,11 @@ __decorate([
|
|
|
36
37
|
queryAssignedElements({ selector: "sonic-button" })
|
|
37
38
|
], ModalActions.prototype, "buttons", void 0);
|
|
38
39
|
ModalActions = __decorate([
|
|
39
|
-
customElement(
|
|
40
|
+
customElement(tagName)
|
|
40
41
|
], ModalActions);
|
|
41
42
|
export { ModalActions };
|
|
42
43
|
//Ajout pour Storybook
|
|
43
44
|
try {
|
|
44
|
-
customElements.define(
|
|
45
|
+
customElements.define(tagName, ModalActions);
|
|
45
46
|
}
|
|
46
47
|
catch (e) { }
|
|
@@ -6,10 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
8
|
import { customElement } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-modal-close";
|
|
9
10
|
let ModalClose = class ModalClose extends LitElement {
|
|
10
11
|
render() {
|
|
11
12
|
return html `<sonic-button shape="circle" variant="ghost" @click=${this.handleClick}
|
|
12
|
-
><sonic-icon
|
|
13
|
+
><sonic-icon name="cancel" size="lg"></sonic-icon
|
|
13
14
|
></sonic-button>`;
|
|
14
15
|
}
|
|
15
16
|
handleClick() {
|
|
@@ -28,11 +29,11 @@ ModalClose.styles = [
|
|
|
28
29
|
`,
|
|
29
30
|
];
|
|
30
31
|
ModalClose = __decorate([
|
|
31
|
-
customElement(
|
|
32
|
+
customElement(tagName)
|
|
32
33
|
], ModalClose);
|
|
33
34
|
export { ModalClose };
|
|
34
35
|
//Ajout pour Storybook
|
|
35
36
|
try {
|
|
36
|
-
customElements.define(
|
|
37
|
+
customElements.define(tagName, ModalClose);
|
|
37
38
|
}
|
|
38
39
|
catch (e) { }
|
|
@@ -6,6 +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 } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-modal-content";
|
|
9
10
|
let ModalContent = class ModalContent extends LitElement {
|
|
10
11
|
render() {
|
|
11
12
|
return html `<slot></slot>`;
|
|
@@ -19,11 +20,11 @@ ModalContent.styles = [
|
|
|
19
20
|
`,
|
|
20
21
|
];
|
|
21
22
|
ModalContent = __decorate([
|
|
22
|
-
customElement(
|
|
23
|
+
customElement(tagName)
|
|
23
24
|
], ModalContent);
|
|
24
25
|
export { ModalContent };
|
|
25
26
|
//Ajout pour Storybook
|
|
26
27
|
try {
|
|
27
|
-
customElements.define(
|
|
28
|
+
customElements.define(tagName, ModalContent);
|
|
28
29
|
}
|
|
29
30
|
catch (e) { }
|
|
@@ -6,6 +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 } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-modal-subtitle";
|
|
9
10
|
let ModalSubTitle = class ModalSubTitle extends LitElement {
|
|
10
11
|
render() {
|
|
11
12
|
return html `<slot></slot>`;
|
|
@@ -23,11 +24,11 @@ ModalSubTitle.styles = [
|
|
|
23
24
|
`,
|
|
24
25
|
];
|
|
25
26
|
ModalSubTitle = __decorate([
|
|
26
|
-
customElement(
|
|
27
|
+
customElement(tagName)
|
|
27
28
|
], ModalSubTitle);
|
|
28
29
|
export { ModalSubTitle };
|
|
29
30
|
//Ajout pour Storybook
|
|
30
31
|
try {
|
|
31
|
-
customElements.define(
|
|
32
|
+
customElements.define(tagName, ModalSubTitle);
|
|
32
33
|
}
|
|
33
34
|
catch (e) { }
|
|
@@ -6,6 +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 } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-modal-title";
|
|
9
10
|
let ModalTitle = class ModalTitle extends LitElement {
|
|
10
11
|
render() {
|
|
11
12
|
return html `<slot></slot>`;
|
|
@@ -23,11 +24,11 @@ ModalTitle.styles = [
|
|
|
23
24
|
`,
|
|
24
25
|
];
|
|
25
26
|
ModalTitle = __decorate([
|
|
26
|
-
customElement(
|
|
27
|
+
customElement(tagName)
|
|
27
28
|
], ModalTitle);
|
|
28
29
|
export { ModalTitle };
|
|
29
30
|
//Ajout pour Storybook
|
|
30
31
|
try {
|
|
31
|
-
customElements.define(
|
|
32
|
+
customElements.define(tagName, ModalTitle);
|
|
32
33
|
}
|
|
33
34
|
catch (e) { }
|
|
@@ -9,11 +9,13 @@ import { customElement, property, queryAssignedElements, query } from "lit/decor
|
|
|
9
9
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
10
10
|
import { animate, fadeIn, fadeOut } from "@lit-labs/motion";
|
|
11
11
|
import { styleMap } from "lit/directives/style-map.js";
|
|
12
|
+
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
12
13
|
import "./modal-actions";
|
|
13
14
|
import "./modal-title";
|
|
14
15
|
import "./modal-subtitle";
|
|
15
16
|
import "./modal-content";
|
|
16
17
|
import "./modal-close";
|
|
18
|
+
const tagName = "sonic-modal";
|
|
17
19
|
let Modal = class Modal extends Subscriber(LitElement) {
|
|
18
20
|
constructor() {
|
|
19
21
|
super(...arguments);
|
|
@@ -29,7 +31,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
29
31
|
this.visible = false;
|
|
30
32
|
}
|
|
31
33
|
static create(options) {
|
|
32
|
-
const modal = document.createElement(
|
|
34
|
+
const modal = document.createElement(tagName);
|
|
33
35
|
modal.innerHTML =
|
|
34
36
|
`<sonic-modal-close></sonic-modal-close><sonic-modal-content>${options.content}</sonic-modal-content>` || "";
|
|
35
37
|
let container = document.querySelector("sonic-theme") || document.body;
|
|
@@ -78,7 +80,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
78
80
|
>
|
|
79
81
|
<div
|
|
80
82
|
part="modal"
|
|
81
|
-
class="modal"
|
|
83
|
+
class="modal custom-scroll"
|
|
82
84
|
style=${styleMap(modalStyles)}
|
|
83
85
|
${animate({
|
|
84
86
|
keyframeOptions: {
|
|
@@ -89,7 +91,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
89
91
|
out: [{ transform: "translateY(20%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }],
|
|
90
92
|
})}
|
|
91
93
|
>
|
|
92
|
-
<div class="modal-content">
|
|
94
|
+
<div class="modal-content ">
|
|
93
95
|
<slot></slot>
|
|
94
96
|
</div>
|
|
95
97
|
</div>
|
|
@@ -126,7 +128,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
126
128
|
}
|
|
127
129
|
handleEscape(e) {
|
|
128
130
|
if (e.key === "Escape") {
|
|
129
|
-
const modals = [...document.querySelectorAll(
|
|
131
|
+
const modals = [...document.querySelectorAll(tagName)];
|
|
130
132
|
modals.forEach((item) => {
|
|
131
133
|
if (this.hideOnEscape == true) {
|
|
132
134
|
item.hide();
|
|
@@ -145,6 +147,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
145
147
|
}
|
|
146
148
|
};
|
|
147
149
|
Modal.styles = [
|
|
150
|
+
customScroll,
|
|
148
151
|
css `
|
|
149
152
|
:host {
|
|
150
153
|
--sc-modal-py: 2.5rem;
|
|
@@ -175,23 +178,7 @@ Modal.styles = [
|
|
|
175
178
|
pointer-events: none;
|
|
176
179
|
}
|
|
177
180
|
|
|
178
|
-
|
|
179
|
-
.modal-content::-webkit-scrollbar-track {
|
|
180
|
-
z-index: 20;
|
|
181
|
-
background-color: transparent;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.modal-content::-webkit-scrollbar {
|
|
185
|
-
width: 0.9rem;
|
|
186
|
-
background-color: transparent;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.modal-content::-webkit-scrollbar-thumb {
|
|
190
|
-
background-color: var(--sc-modal-scrollbar-bg);
|
|
191
|
-
border: 0.3rem solid rgba(0, 0, 0, 0);
|
|
192
|
-
background-clip: padding-box;
|
|
193
|
-
border-radius: var(--sc-modal-rounded);
|
|
194
|
-
}
|
|
181
|
+
|
|
195
182
|
.modal-content {
|
|
196
183
|
overflow-y: auto;
|
|
197
184
|
display: flex;
|
|
@@ -207,7 +194,7 @@ Modal.styles = [
|
|
|
207
194
|
box-shadow: var(--sc-shadow-lg);
|
|
208
195
|
border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;
|
|
209
196
|
pointer-events: auto;
|
|
210
|
-
overflow: hidden
|
|
197
|
+
/*overflow: hidden;*/
|
|
211
198
|
transform: translateZ(0);
|
|
212
199
|
}
|
|
213
200
|
|
|
@@ -312,7 +299,7 @@ __decorate([
|
|
|
312
299
|
queryAssignedElements({ selector: "sonic-modal-close" })
|
|
313
300
|
], Modal.prototype, "closeBtn", void 0);
|
|
314
301
|
Modal = __decorate([
|
|
315
|
-
customElement(
|
|
302
|
+
customElement(tagName)
|
|
316
303
|
], Modal);
|
|
317
304
|
export { Modal };
|
|
318
305
|
if (typeof window !== "undefined") {
|
|
@@ -320,6 +307,6 @@ if (typeof window !== "undefined") {
|
|
|
320
307
|
win.SonicModal = Modal;
|
|
321
308
|
}
|
|
322
309
|
try {
|
|
323
|
-
customElements.define(
|
|
310
|
+
customElements.define(tagName, Modal);
|
|
324
311
|
}
|
|
325
312
|
catch (e) { }
|
|
@@ -8,6 +8,7 @@ var Pop_1;
|
|
|
8
8
|
import { html, LitElement, css } from "lit";
|
|
9
9
|
import { customElement, query, state, property } from "lit/decorators.js";
|
|
10
10
|
import HTML from "@supersoniks/concorde/core/utils/HTML";
|
|
11
|
+
const tagName = "sonic-pop";
|
|
11
12
|
let Pop = Pop_1 = class Pop extends LitElement {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -216,11 +217,11 @@ __decorate([
|
|
|
216
217
|
property({ type: String })
|
|
217
218
|
], Pop.prototype, "placement", void 0);
|
|
218
219
|
Pop = Pop_1 = __decorate([
|
|
219
|
-
customElement(
|
|
220
|
+
customElement(tagName)
|
|
220
221
|
], Pop);
|
|
221
222
|
export { Pop };
|
|
222
223
|
//Ajout pour la creation du cem notamment pour Storybook
|
|
223
224
|
try {
|
|
224
|
-
customElements.define(
|
|
225
|
+
customElements.define(tagName, Pop);
|
|
225
226
|
}
|
|
226
227
|
catch (e) { }
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
+
const tagName = "sonic-progress";
|
|
10
11
|
let Progress = class Progress extends LitElement {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
@@ -17,13 +18,15 @@ let Progress = class Progress extends LitElement {
|
|
|
17
18
|
render() {
|
|
18
19
|
return html `
|
|
19
20
|
<progress value=${ifDefined(this.value)} max=${this.max}></progress>
|
|
21
|
+
<div class="slot-container">
|
|
20
22
|
<slot></slot>
|
|
23
|
+
<slot name="remaining"></slot>
|
|
24
|
+
</div>
|
|
21
25
|
`;
|
|
22
26
|
}
|
|
23
27
|
};
|
|
24
28
|
Progress.styles = [
|
|
25
29
|
css `
|
|
26
|
-
|
|
27
30
|
:host {
|
|
28
31
|
--sc-progress-bg: var(--sc-input-bg, var(--sc-base-100, #f5f5f5));
|
|
29
32
|
--sc-progress-color: var(--sc-base-content, #1f2937);
|
|
@@ -31,10 +34,9 @@ Progress.styles = [
|
|
|
31
34
|
--sc-progress-fs: 1rem;
|
|
32
35
|
--sc-progress-fw: 500;
|
|
33
36
|
--sc-progress-rounded: var(--sc-rounded-lg);
|
|
34
|
-
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-wrap: wrap;
|
|
37
|
+
display: block;
|
|
37
38
|
line-height: 1.2;
|
|
39
|
+
font-weight:var(--sc-progress-fw);
|
|
38
40
|
font-size:var(--sc-progress-fs);
|
|
39
41
|
color:var(--sc-progress-color);
|
|
40
42
|
}
|
|
@@ -45,17 +47,21 @@ Progress.styles = [
|
|
|
45
47
|
-webkit-appearance: none;
|
|
46
48
|
appearance: none;
|
|
47
49
|
overflow: hidden;
|
|
50
|
+
border:none;
|
|
48
51
|
height: var(--sc-progress-height);
|
|
49
52
|
border-radius: var(--sc-progress-rounded);
|
|
50
53
|
background-color: var(--sc-progress-bg);
|
|
51
54
|
color: var(--sc-progress-color);
|
|
52
|
-
border:none;
|
|
53
55
|
}
|
|
54
56
|
progress::-moz-progress-bar {
|
|
55
57
|
background-color: var(--sc-progress-color);
|
|
56
58
|
border-radius: var(--sc-progress-rounded);
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
progress:not([value])::-moz-progress-bar {
|
|
62
|
+
background-color: var(--sc-progress-bg);
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
progress::-webkit-progress-bar {
|
|
60
66
|
background-color: var(--sc-progress-bg);
|
|
61
67
|
}
|
|
@@ -64,6 +70,7 @@ Progress.styles = [
|
|
|
64
70
|
border-radius: var(--sc-progress-rounded);
|
|
65
71
|
}
|
|
66
72
|
|
|
73
|
+
/* Indeterminate */
|
|
67
74
|
progress:indeterminate:after {
|
|
68
75
|
background-color: var(--sc-progress-color);
|
|
69
76
|
content: "";
|
|
@@ -117,7 +124,18 @@ Progress.styles = [
|
|
|
117
124
|
--sc-progress-fs: 1.5rem;
|
|
118
125
|
}
|
|
119
126
|
|
|
120
|
-
|
|
127
|
+
slot[name="remaining"] {
|
|
128
|
+
font-weight:var(--sc-font-weight-base);
|
|
129
|
+
color:var(--sc-base-400);
|
|
130
|
+
font-size:.85em;
|
|
131
|
+
margin-top:.5em;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.slot-container {
|
|
135
|
+
display:flex;
|
|
136
|
+
justify-content: space-between;
|
|
137
|
+
gap:.5em;
|
|
138
|
+
}
|
|
121
139
|
`
|
|
122
140
|
];
|
|
123
141
|
__decorate([
|
|
@@ -133,6 +151,10 @@ __decorate([
|
|
|
133
151
|
property({ type: String, reflect: true })
|
|
134
152
|
], Progress.prototype, "size", void 0);
|
|
135
153
|
Progress = __decorate([
|
|
136
|
-
customElement(
|
|
154
|
+
customElement(tagName)
|
|
137
155
|
], Progress);
|
|
138
156
|
export { Progress };
|
|
157
|
+
try {
|
|
158
|
+
customElements.define(tagName, Progress);
|
|
159
|
+
}
|
|
160
|
+
catch (e) { }
|
|
@@ -6,6 +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 } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-caption";
|
|
9
10
|
let TableCaption = class TableCaption extends LitElement {
|
|
10
11
|
render() {
|
|
11
12
|
return html `<slot></slot>`;
|
|
@@ -14,11 +15,19 @@ let TableCaption = class TableCaption extends LitElement {
|
|
|
14
15
|
TableCaption.styles = [
|
|
15
16
|
css `
|
|
16
17
|
:host {
|
|
17
|
-
display:
|
|
18
|
+
display:table-caption;
|
|
19
|
+
font-size:.75rem;
|
|
20
|
+
color:var(--sc-table-caption-color);
|
|
21
|
+
padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py) );
|
|
18
22
|
}
|
|
19
23
|
`
|
|
20
24
|
];
|
|
21
25
|
TableCaption = __decorate([
|
|
22
|
-
customElement(
|
|
26
|
+
customElement(tagName)
|
|
23
27
|
], TableCaption);
|
|
24
28
|
export { TableCaption };
|
|
29
|
+
//Ajout pour la creation du cem notamment pour Storybook
|
|
30
|
+
try {
|
|
31
|
+
customElements.define(tagName, TableCaption);
|
|
32
|
+
}
|
|
33
|
+
catch (e) { }
|
|
@@ -6,6 +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 } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-tbody";
|
|
9
10
|
let TableTbody = class TableTbody extends LitElement {
|
|
10
11
|
render() {
|
|
11
12
|
return html `<tbody><slot></slot></tbody>`;
|
|
@@ -14,7 +15,7 @@ let TableTbody = class TableTbody extends LitElement {
|
|
|
14
15
|
TableTbody.styles = [
|
|
15
16
|
css `
|
|
16
17
|
:host {
|
|
17
|
-
display:
|
|
18
|
+
display: table-row-group;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
::slotted(sonic-tr:nth-child(odd)){
|
|
@@ -32,6 +33,11 @@ TableTbody.styles = [
|
|
|
32
33
|
`
|
|
33
34
|
];
|
|
34
35
|
TableTbody = __decorate([
|
|
35
|
-
customElement(
|
|
36
|
+
customElement(tagName)
|
|
36
37
|
], TableTbody);
|
|
37
38
|
export { TableTbody };
|
|
39
|
+
//Ajout pour la creation du cem notamment pour Storybook
|
|
40
|
+
try {
|
|
41
|
+
customElements.define(tagName, TableTbody);
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class TableTd extends LitElement {
|
|
3
3
|
static styles: import("lit").CSSResult[];
|
|
4
|
-
colSpan
|
|
5
|
-
rowSpan
|
|
4
|
+
colSpan?: number;
|
|
5
|
+
rowSpan?: number;
|
|
6
|
+
align?: string;
|
|
7
|
+
minWidth?: string;
|
|
6
8
|
render(): import("lit-html").TemplateResult<1>;
|
|
7
9
|
}
|
|
@@ -7,31 +7,37 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
11
|
+
const tagName = "sonic-td";
|
|
12
|
+
import { typesColor } from "@supersoniks/concorde/core/components/ui/_css/types";
|
|
10
13
|
let TableTd = class TableTd extends LitElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.colSpan = null;
|
|
14
|
-
this.rowSpan = null;
|
|
15
|
-
}
|
|
16
14
|
render() {
|
|
15
|
+
const styles = {
|
|
16
|
+
textAlign: this.align,
|
|
17
|
+
minWidth: this.minWidth,
|
|
18
|
+
};
|
|
17
19
|
return html `<td
|
|
20
|
+
part="td"
|
|
21
|
+
style=${styleMap(styles)}
|
|
18
22
|
colspan=${ifDefined(this.colSpan)}
|
|
19
23
|
rowspan=${ifDefined(this.rowSpan)}
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
>
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</td>`;
|
|
22
27
|
}
|
|
23
28
|
};
|
|
24
29
|
TableTd.styles = [
|
|
30
|
+
typesColor,
|
|
25
31
|
css `
|
|
26
32
|
:host {
|
|
27
33
|
display: contents;
|
|
28
34
|
}
|
|
29
|
-
|
|
30
35
|
td {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
padding
|
|
34
|
-
}
|
|
36
|
+
all: inherit;
|
|
37
|
+
display: table-cell;
|
|
38
|
+
padding: var(--sc-table-td-py) var(--sc-table-td-px);
|
|
39
|
+
}
|
|
40
|
+
`,
|
|
35
41
|
];
|
|
36
42
|
__decorate([
|
|
37
43
|
property({ type: Number })
|
|
@@ -39,7 +45,18 @@ __decorate([
|
|
|
39
45
|
__decorate([
|
|
40
46
|
property({ type: Number })
|
|
41
47
|
], TableTd.prototype, "rowSpan", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ type: String })
|
|
50
|
+
], TableTd.prototype, "align", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
property({ type: String })
|
|
53
|
+
], TableTd.prototype, "minWidth", void 0);
|
|
42
54
|
TableTd = __decorate([
|
|
43
|
-
customElement(
|
|
55
|
+
customElement(tagName)
|
|
44
56
|
], TableTd);
|
|
45
57
|
export { TableTd };
|
|
58
|
+
//Ajout pour la creation du cem notamment pour Storybook
|
|
59
|
+
try {
|
|
60
|
+
customElements.define(tagName, TableTd);
|
|
61
|
+
}
|
|
62
|
+
catch (e) { }
|
|
@@ -6,6 +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 } from "lit/decorators.js";
|
|
9
|
+
const tagName = "sonic-tfoot";
|
|
9
10
|
let TableTfoot = class TableTfoot extends LitElement {
|
|
10
11
|
render() {
|
|
11
12
|
return html `<tfoot><slot></slot></tfoot>`;
|
|
@@ -18,6 +19,11 @@ TableTfoot.styles = [
|
|
|
18
19
|
}`
|
|
19
20
|
];
|
|
20
21
|
TableTfoot = __decorate([
|
|
21
|
-
customElement(
|
|
22
|
+
customElement(tagName)
|
|
22
23
|
], TableTfoot);
|
|
23
24
|
export { TableTfoot };
|
|
25
|
+
//Ajout pour la creation du cem notamment pour Storybook
|
|
26
|
+
try {
|
|
27
|
+
customElements.define(tagName, TableTfoot);
|
|
28
|
+
}
|
|
29
|
+
catch (e) { }
|