@supersoniks/concorde 1.1.25 → 1.1.27
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/README.md +0 -0
- package/cli.js +0 -0
- package/components.d.ts +2 -2
- package/components.js +2 -2
- package/concorde-core.bundle.js +22 -22
- package/concorde-core.es.js +20 -20
- package/core/components/functional/list/list.d.ts +1 -1
- package/core/components/functional/list/list.js +1 -1
- 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 +1 -1
- package/core/components/ui/button/button.d.ts +1 -1
- package/core/components/ui/button/button.js +0 -4
- package/core/components/ui/card/card-footer.d.ts +0 -1
- package/core/components/ui/card/card-footer.js +7 -9
- package/core/components/ui/card/card-main.d.ts +0 -1
- package/core/components/ui/card/card-main.js +7 -9
- package/core/components/ui/form/checkbox/checkbox.d.ts +1 -0
- package/core/components/ui/form/checkbox/checkbox.js +19 -0
- 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 +0 -4
- package/core/components/ui/form/fieldset/legend.d.ts +3 -3
- package/core/components/ui/form/fieldset/legend.js +3 -8
- package/core/components/ui/form/input/input.d.ts +0 -3
- package/core/components/ui/form/input/input.js +1 -1
- package/core/components/ui/form/radio/radio.d.ts +1 -1
- package/core/components/ui/form/radio/radio.js +1 -1
- package/core/components/ui/form/select/select.js +4 -3
- package/core/components/ui/form/textarea/textarea.js +4 -2
- package/core/components/ui/icon/icon.js +1 -1
- package/core/components/ui/icon/icons.js +1 -1
- package/core/components/ui/loader/loader.js +2 -2
- package/core/components/ui/menu/menu-item.d.ts +1 -1
- package/core/components/ui/menu/menu-item.js +1 -1
- package/core/components/ui/menu/menu.d.ts +1 -1
- package/core/components/ui/menu/menu.js +1 -1
- package/core/components/ui/modal/modal.d.ts +5 -5
- package/core/components/ui/modal/modal.js +11 -25
- package/core/components/ui/table/table-caption.js +2 -11
- package/core/components/ui/table/table-td.d.ts +1 -0
- package/core/components/ui/table/table-td.js +13 -4
- package/core/components/ui/table/table-th.d.ts +1 -0
- package/core/components/ui/table/table-th.js +23 -9
- package/core/components/ui/table/table-tr.js +2 -0
- package/core/components/ui/table/table.d.ts +9 -7
- package/core/components/ui/table/table.js +33 -11
- package/core/components/ui/tabs/tab.d.ts +1 -1
- package/core/components/ui/tabs/tab.js +1 -1
- package/core/components/ui/tabs/tabs.js +1 -2
- package/core/components/ui/taxonomy/taxonomy.d.ts +2 -2
- package/core/components/ui/taxonomy/taxonomy.js +2 -2
- package/core/components/ui/theme/css/tailwind.css +0 -0
- package/core/components/ui/theme/css/tailwind.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/core-variables.js +4 -1
- package/core/components/ui/theme/theme.js +3 -3
- package/core/components/ui/toast/message-subscriber.js +1 -1
- package/core/components/ui/toast/toast-item.d.ts +2 -2
- package/core/components/ui/toast/toast-item.js +4 -14
- package/core/components/ui/toast/toast.d.ts +3 -3
- package/core/components/ui/toast/toast.js +1 -1
- package/core/mixins/Fetcher.d.ts +2 -2
- package/core/mixins/Fetcher.js +7 -5
- package/core/mixins/FormCheckable.d.ts +3 -0
- package/core/mixins/FormElement.js +5 -1
- package/core/mixins/FormInput.d.ts +8 -0
- package/core/mixins/Subscriber.js +1 -1
- package/core/utils/DataBindObserver.js +4 -0
- package/core/utils/LocationHandler.js +4 -2
- package/core/utils/api.d.ts +2 -2
- package/core/utils/api.js +8 -8
- package/mixins.d.ts +3 -3
- package/mixins.js +6 -6
- package/package.json +192 -185
- package/utils.d.ts +8 -8
- package/utils.js +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
3
|
-
import "
|
|
3
|
+
import "@supersoniks/concorde/core/components/functional/subscriber/subscriber";
|
|
4
4
|
declare const List_base: {
|
|
5
5
|
new (...args: any[]): {
|
|
6
6
|
api: import("../../../utils/api").default | null;
|
|
@@ -11,7 +11,7 @@ import Fetcher from "@supersoniks/concorde/core/mixins/Fetcher";
|
|
|
11
11
|
import { repeat } from "lit/directives/repeat.js";
|
|
12
12
|
import { templateContent } from "lit/directives/template-content.js";
|
|
13
13
|
import "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
14
|
-
import "
|
|
14
|
+
import "@supersoniks/concorde/core/components/functional/subscriber/subscriber";
|
|
15
15
|
import Objects from "@supersoniks/concorde/core/utils/Objects";
|
|
16
16
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
17
17
|
import TemplatesContainer from "@supersoniks/concorde/core/mixins/TemplatesContainer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const customScroll: import("lit").CSSResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const customScroll = css `
|
|
3
|
+
|
|
4
|
+
.custom-scroll {
|
|
5
|
+
overflow:auto !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.custom-scroll::-webkit-scrollbar {
|
|
9
|
+
width: 0.5rem;
|
|
10
|
+
height: 0.5rem;
|
|
11
|
+
border: solid .15rem transparent;
|
|
12
|
+
border-radius: var(--sc-rounded);
|
|
13
|
+
background:transparent;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.custom-scroll::-webkit-scrollbar-thumb {
|
|
17
|
+
box-shadow: inset 0 0 2rem 2rem var(--sc-scrollbar-bg);
|
|
18
|
+
border-radius: var(--sc-rounded);
|
|
19
|
+
border: solid .15rem transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
`;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const typesColor = css `
|
|
3
|
+
:host{
|
|
4
|
+
--sc-color:inherit;
|
|
5
|
+
color:var(--sc-color);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([type="primary"]) {
|
|
9
|
+
--sc-color: var(--sc-primary);
|
|
10
|
+
}
|
|
11
|
+
:host([type="warning"]) {
|
|
12
|
+
--sc-color: var(--sc-warning);
|
|
13
|
+
}
|
|
14
|
+
:host([type="danger"]) {
|
|
15
|
+
--sc-color: var(--sc-danger);
|
|
16
|
+
}
|
|
17
|
+
:host([type="info"]) {
|
|
18
|
+
--sc-color: var(--sc-info);
|
|
19
|
+
}
|
|
20
|
+
:host([type="success"]) {
|
|
21
|
+
--sc-color: var(--sc-success);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.inherit-color{
|
|
25
|
+
color:var(--sc-color);
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
export const typesBg = css `
|
|
29
|
+
:host{
|
|
30
|
+
--sc-color:inherit;
|
|
31
|
+
--sc-bg:inherit;
|
|
32
|
+
color:var(--sc-color);
|
|
33
|
+
background:var(--sc-bg);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([type="primary"]) {
|
|
37
|
+
--sc-color: var(--sc-primary-content);
|
|
38
|
+
--sc-bg: var(--sc-primary);
|
|
39
|
+
}
|
|
40
|
+
:host([type="warning"]) {
|
|
41
|
+
--sc-color: var(--sc-warning-content);
|
|
42
|
+
--sc-bg: var(--sc-warning);
|
|
43
|
+
}
|
|
44
|
+
:host([type="danger"]) {
|
|
45
|
+
--sc-color: var(--sc-danger-content);
|
|
46
|
+
--sc-bg: var(--sc-danger);
|
|
47
|
+
}
|
|
48
|
+
:host([type="info"]) {
|
|
49
|
+
--sc-color: var(--sc-info-content);
|
|
50
|
+
--sc-bg: var(--sc-info);
|
|
51
|
+
}
|
|
52
|
+
:host([type="success"]) {
|
|
53
|
+
--sc-color: var(--sc-success-content);
|
|
54
|
+
--sc-bg: var(--sc-success);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.inherit-bg{
|
|
58
|
+
color:inherit;
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
@@ -4,24 +4,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, LitElement
|
|
7
|
+
import { html, LitElement } from "lit";
|
|
8
8
|
import { customElement } from "lit/decorators.js";
|
|
9
9
|
const tagName = "sonic-card-footer";
|
|
10
10
|
let CardFooter = class CardFooter extends LitElement {
|
|
11
|
+
// static styles = [
|
|
12
|
+
// css`
|
|
13
|
+
// :host {
|
|
14
|
+
// }
|
|
15
|
+
// `
|
|
16
|
+
// ];
|
|
11
17
|
render() {
|
|
12
18
|
return html `
|
|
13
19
|
<slot></slot>
|
|
14
20
|
`;
|
|
15
21
|
}
|
|
16
22
|
};
|
|
17
|
-
CardFooter.styles = [
|
|
18
|
-
css `
|
|
19
|
-
:host {
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
`
|
|
24
|
-
];
|
|
25
23
|
CardFooter = __decorate([
|
|
26
24
|
customElement(tagName)
|
|
27
25
|
], CardFooter);
|
|
@@ -4,10 +4,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, LitElement
|
|
7
|
+
import { html, LitElement } from "lit";
|
|
8
8
|
import { customElement } from "lit/decorators.js";
|
|
9
9
|
const tagName = "sonic-card-main";
|
|
10
10
|
let CardMain = class CardMain extends LitElement {
|
|
11
|
+
// static styles = [
|
|
12
|
+
// css`
|
|
13
|
+
// :host {
|
|
14
|
+
// }
|
|
15
|
+
// `
|
|
16
|
+
// ];
|
|
11
17
|
render() {
|
|
12
18
|
return html `
|
|
13
19
|
<div>
|
|
@@ -16,14 +22,6 @@ let CardMain = class CardMain extends LitElement {
|
|
|
16
22
|
`;
|
|
17
23
|
}
|
|
18
24
|
};
|
|
19
|
-
CardMain.styles = [
|
|
20
|
-
css `
|
|
21
|
-
:host {
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
`
|
|
26
|
-
];
|
|
27
25
|
CardMain = __decorate([
|
|
28
26
|
customElement(tagName)
|
|
29
27
|
], CardMain);
|
|
@@ -90,6 +90,7 @@ declare const Checkbox_base: {
|
|
|
90
90
|
} & (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/FormElement").FormElementInterface) & (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
91
91
|
export declare class Checkbox extends Checkbox_base {
|
|
92
92
|
static styles: CSSResultGroup[];
|
|
93
|
+
touched: boolean;
|
|
93
94
|
iconName: string;
|
|
94
95
|
description: string;
|
|
95
96
|
label: string;
|
|
@@ -36,6 +36,7 @@ const tagName = "sonic-checkbox";
|
|
|
36
36
|
let Checkbox = class Checkbox extends FormCheckable(FormInput(FormElement(Subscriber(LitElement)))) {
|
|
37
37
|
constructor() {
|
|
38
38
|
super(...arguments);
|
|
39
|
+
this.touched = false;
|
|
39
40
|
this.iconName = "check";
|
|
40
41
|
this.description = "";
|
|
41
42
|
this.label = "";
|
|
@@ -80,6 +81,11 @@ let Checkbox = class Checkbox extends FormCheckable(FormInput(FormElement(Subscr
|
|
|
80
81
|
};
|
|
81
82
|
Checkbox.styles = [
|
|
82
83
|
css `
|
|
84
|
+
|
|
85
|
+
:host{
|
|
86
|
+
--sc-checkbox-border-width: var(--sc-form-border-width);
|
|
87
|
+
--sc-checkbox-border-color: transparent;
|
|
88
|
+
}
|
|
83
89
|
* {
|
|
84
90
|
box-sizing: border-box;
|
|
85
91
|
}
|
|
@@ -109,6 +115,7 @@ Checkbox.styles = [
|
|
|
109
115
|
outline: none;
|
|
110
116
|
margin: 0;
|
|
111
117
|
background-color: var(--sc-base-200);
|
|
118
|
+
border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color);
|
|
112
119
|
}
|
|
113
120
|
|
|
114
121
|
input:focus,
|
|
@@ -175,8 +182,20 @@ Checkbox.styles = [
|
|
|
175
182
|
.hidden {
|
|
176
183
|
display: none;
|
|
177
184
|
}
|
|
185
|
+
|
|
186
|
+
/*ERROR*/
|
|
187
|
+
:host([touched]) .checkbox-container:has(input:not(:focus):invalid) {
|
|
188
|
+
--sc-checkbox-border-color:var(--sc-danger);
|
|
189
|
+
}
|
|
190
|
+
:host([touched]) .checkbox-container:has(input:not(:focus):invalid) .checkbox-text{
|
|
191
|
+
color:var(--sc-danger);
|
|
192
|
+
}
|
|
193
|
+
|
|
178
194
|
`,
|
|
179
195
|
];
|
|
196
|
+
__decorate([
|
|
197
|
+
property({ type: Boolean, reflect: true })
|
|
198
|
+
], Checkbox.prototype, "touched", void 0);
|
|
180
199
|
__decorate([
|
|
181
200
|
property({ type: String })
|
|
182
201
|
], Checkbox.prototype, "iconName", void 0);
|
|
@@ -6,8 +6,7 @@ export const formControl = css `
|
|
|
6
6
|
|
|
7
7
|
:host {
|
|
8
8
|
--sc-input-height: var(--sc-form-height, 2.5em);
|
|
9
|
-
--sc-input-border-
|
|
10
|
-
--sc-input-border: var(--sc-input-border-with) solid var(--sc-input-border-color, var(--sc-base-300, #aaa));
|
|
9
|
+
--sc-input-border-width: var(--sc-form-border-width, 0.1rem);
|
|
11
10
|
--sc-input-color: var(--sc-base-content, #1f2937);
|
|
12
11
|
|
|
13
12
|
--sc-item-rounded-tr: var(--sc-input-rounded, var(--sc-rounded));
|
|
@@ -42,7 +41,7 @@ export const formControl = css `
|
|
|
42
41
|
|
|
43
42
|
font-family: var(--sc-input-ff);
|
|
44
43
|
background-color: var(--sc-input-bg, var(--sc-base, #fff));
|
|
45
|
-
border: var(--sc-input-border);
|
|
44
|
+
border: var(--sc-input-border-width) solid var(--sc-input-border-color, var(--sc-base-300, #aaa));
|
|
46
45
|
width: 100%;
|
|
47
46
|
font-size: var(--sc-input-fs);
|
|
48
47
|
|
|
@@ -83,16 +82,16 @@ export const formControl = css `
|
|
|
83
82
|
border-radius: var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);
|
|
84
83
|
background-color: var(--sc-input-prefix-bg);
|
|
85
84
|
color: var(--sc-input-prefix-color);
|
|
86
|
-
border: var(--sc-input-border-
|
|
87
|
-
margin-right: calc(-1 * var(--sc-input-border-
|
|
85
|
+
border: var(--sc-input-border-width) solid var(--sc-input-prefix-border-color);
|
|
86
|
+
margin-right: calc(-1 * var(--sc-input-border-width));
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
:host(:not([inlineContent])) slot[name="suffix"] {
|
|
91
90
|
border-radius: 0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;
|
|
92
91
|
background-color: var(--sc-input-suffix-bg);
|
|
93
92
|
color: var(--sc-input-suffix-color);
|
|
94
|
-
border: var(--sc-input-border-
|
|
95
|
-
margin-left: calc(-1 * var(--sc-input-border-
|
|
93
|
+
border: var(--sc-input-border-width) solid var(--sc-input-suffix-border-color);
|
|
94
|
+
margin-left: calc(-1 * var(--sc-input-border-width));
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
:host(:not([inlineContent])) .has-prefix .form-element {
|
|
@@ -140,14 +139,7 @@ export const formControl = css `
|
|
|
140
139
|
--sc-input-bg: transparent;
|
|
141
140
|
}
|
|
142
141
|
|
|
143
|
-
|
|
144
|
-
:host([error]) {
|
|
145
|
-
--sc-input-border-color: var(--sc-danger);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
:host :not(select):not(textarea):not([value=""]):not(:focus):invalid {
|
|
149
|
-
--sc-input-color: var(--sc-danger);
|
|
150
|
-
}
|
|
142
|
+
|
|
151
143
|
|
|
152
144
|
/*Disbaled*/
|
|
153
145
|
:host([disabled]) .form-element {
|
|
@@ -192,30 +184,41 @@ export const formControl = css `
|
|
|
192
184
|
all: unset !important;
|
|
193
185
|
}
|
|
194
186
|
|
|
195
|
-
/*
|
|
196
|
-
|
|
197
|
-
|
|
187
|
+
/*Utilitaires*/
|
|
188
|
+
.hidden {
|
|
189
|
+
display: none;
|
|
198
190
|
}
|
|
199
|
-
|
|
200
|
-
|
|
191
|
+
.contents {
|
|
192
|
+
display: contents;
|
|
201
193
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
/*ERROR*/
|
|
197
|
+
:host([error]) {
|
|
198
|
+
--sc-input-border-color: var(--sc-danger);
|
|
206
199
|
}
|
|
207
|
-
|
|
208
|
-
|
|
200
|
+
|
|
201
|
+
:host input:visited{
|
|
202
|
+
display:none;
|
|
209
203
|
}
|
|
210
|
-
|
|
211
|
-
|
|
204
|
+
|
|
205
|
+
:host([touched]) :not(:focus):invalid {
|
|
206
|
+
--sc-input-border-color: var(--sc-danger);
|
|
207
|
+
--sc-input-color: var(--sc-danger);
|
|
212
208
|
}
|
|
213
209
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
display: none;
|
|
210
|
+
:host([touched]) :not(:focus):invalid + .select-chevron{
|
|
211
|
+
--sc-input-color: var(--sc-danger);
|
|
217
212
|
}
|
|
218
|
-
|
|
219
|
-
|
|
213
|
+
|
|
214
|
+
/*VALID*/
|
|
215
|
+
:host([touched]) :not([value=""]):not(:focus):valid {
|
|
216
|
+
--sc-input-border-color: var(--sc-success);
|
|
217
|
+
--sc-input-color: var(--sc-success);
|
|
220
218
|
}
|
|
219
|
+
|
|
220
|
+
:host([touched]) :not(:focus):valid + .select-chevron{
|
|
221
|
+
--sc-input-color: var(--sc-success);
|
|
222
|
+
}
|
|
223
|
+
|
|
221
224
|
`;
|
|
@@ -17,10 +17,6 @@ let Fieldset = class Fieldset extends Subscriber(LitElement) {
|
|
|
17
17
|
* Désactiver le fieldset
|
|
18
18
|
*/
|
|
19
19
|
this.disabled = false;
|
|
20
|
-
/**
|
|
21
|
-
* Lier à un formulaire qui ne serait pas parent du fieldset
|
|
22
|
-
*/
|
|
23
|
-
this.form = "";
|
|
24
20
|
}
|
|
25
21
|
render() {
|
|
26
22
|
return html `<fieldset form="${ifDefined(this.form)}" ?disabled="${this.disabled}">
|
|
@@ -2,10 +2,10 @@ import { LitElement } from "lit";
|
|
|
2
2
|
import "@supersoniks/concorde/core/components/ui/form/fieldset/legend-description";
|
|
3
3
|
export declare class Legend extends LitElement {
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
|
-
description
|
|
6
|
-
label
|
|
5
|
+
description?: string;
|
|
6
|
+
label?: string;
|
|
7
7
|
iconName?: string;
|
|
8
|
+
iconLibrary?: string;
|
|
8
9
|
iconPrefix?: string;
|
|
9
|
-
iconLibray?: string;
|
|
10
10
|
render(): import("lit-html").TemplateResult<1>;
|
|
11
11
|
}
|
|
@@ -10,11 +10,6 @@ import "@supersoniks/concorde/core/components/ui/form/fieldset/legend-descriptio
|
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
11
|
const tagName = "sonic-legend";
|
|
12
12
|
let Legend = class Legend extends LitElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.description = "";
|
|
16
|
-
this.label = "";
|
|
17
|
-
}
|
|
18
13
|
render() {
|
|
19
14
|
return html `<legend part="legend">
|
|
20
15
|
${this.iconName
|
|
@@ -22,7 +17,7 @@ let Legend = class Legend extends LitElement {
|
|
|
22
17
|
<sonic-icon
|
|
23
18
|
name=${this.iconName}
|
|
24
19
|
prefix=${ifDefined(this.iconPrefix)}
|
|
25
|
-
library=${ifDefined(this.
|
|
20
|
+
library=${ifDefined(this.iconLibrary)}></sonic-icon>
|
|
26
21
|
</div>`
|
|
27
22
|
: ""}
|
|
28
23
|
|
|
@@ -82,10 +77,10 @@ __decorate([
|
|
|
82
77
|
], Legend.prototype, "iconName", void 0);
|
|
83
78
|
__decorate([
|
|
84
79
|
property({ type: String })
|
|
85
|
-
], Legend.prototype, "
|
|
80
|
+
], Legend.prototype, "iconLibrary", void 0);
|
|
86
81
|
__decorate([
|
|
87
82
|
property({ type: String })
|
|
88
|
-
], Legend.prototype, "
|
|
83
|
+
], Legend.prototype, "iconPrefix", void 0);
|
|
89
84
|
Legend = __decorate([
|
|
90
85
|
customElement(tagName)
|
|
91
86
|
], Legend);
|
|
@@ -35,9 +35,6 @@ declare const Input_base: {
|
|
|
35
35
|
removeAttribute(name: string): void;
|
|
36
36
|
initPublisher(): void;
|
|
37
37
|
getApiConfiguration(): import("../../../../utils/api").APIConfiguration;
|
|
38
|
-
/**
|
|
39
|
-
* Taille du composant, implique notamment des modifications de typo et de marge interne
|
|
40
|
-
*/
|
|
41
38
|
connectedCallback(): void;
|
|
42
39
|
requestUpdate(): void;
|
|
43
40
|
getAttribute(name: string): string;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, LitElement } from "lit";
|
|
8
8
|
import { customElement, property, queryAssignedNodes, state } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
-
import { formControl } from "
|
|
10
|
+
import { formControl } from "@supersoniks/concorde/core/components/ui/form/css/form-control";
|
|
11
11
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
12
12
|
import FormElement from "@supersoniks/concorde/core/mixins/FormElement";
|
|
13
13
|
import FormInput from "@supersoniks/concorde/core/mixins/FormInput";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Checkbox } from "
|
|
1
|
+
import { Checkbox } from "@supersoniks/concorde/core/components/ui/form/checkbox/checkbox";
|
|
2
2
|
export declare class Radio extends Checkbox {
|
|
3
3
|
static styles: (import("lit").CSSResult | import("lit").CSSResultGroup[])[];
|
|
4
4
|
constructor();
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { css } from "lit";
|
|
8
8
|
import { customElement } from "lit/decorators.js";
|
|
9
|
-
import { Checkbox } from "
|
|
9
|
+
import { Checkbox } from "@supersoniks/concorde/core/components/ui/form/checkbox/checkbox";
|
|
10
10
|
/**
|
|
11
11
|
* ### Le composant sonic-radio étend sonic-checkbox en assignant sa propriété radio à true.
|
|
12
12
|
*
|
|
@@ -10,7 +10,7 @@ import { customElement, property, queryAssignedNodes, state } from "lit/decorato
|
|
|
10
10
|
import { classMap } from "lit/directives/class-map.js";
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
12
12
|
import { repeat } from "lit/directives/repeat.js";
|
|
13
|
-
import { formControl } from "
|
|
13
|
+
import { formControl } from "@supersoniks/concorde/core/components/ui/form/css/form-control";
|
|
14
14
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
15
15
|
import FormElement from "@supersoniks/concorde/core/mixins/FormElement";
|
|
16
16
|
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
@@ -132,7 +132,7 @@ let Select = class Select extends FormElement(Subscriber(LitElement)) {
|
|
|
132
132
|
})}
|
|
133
133
|
<slot></slot>
|
|
134
134
|
</select>
|
|
135
|
-
<sonic-icon name="nav-arrow-down" size="${this.size}"></sonic-icon>
|
|
135
|
+
<sonic-icon class="select-chevron" name="nav-arrow-down" size="${this.size}"></sonic-icon>
|
|
136
136
|
</div>
|
|
137
137
|
<slot name="suffix" @slotchange=${this.onSlotChange}></slot>
|
|
138
138
|
</div>
|
|
@@ -154,12 +154,14 @@ Select.styles = [
|
|
|
154
154
|
position: relative;
|
|
155
155
|
width: 100%;
|
|
156
156
|
}
|
|
157
|
+
|
|
157
158
|
sonic-icon {
|
|
158
159
|
position: absolute;
|
|
159
160
|
right: 1em;
|
|
160
161
|
top: 50%;
|
|
161
162
|
pointer-events: none;
|
|
162
163
|
transform: translateY(-50%);
|
|
164
|
+
color:var(--sc-input-color);
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
option {
|
|
@@ -167,7 +169,6 @@ Select.styles = [
|
|
|
167
169
|
color: var(--sc-base-content);
|
|
168
170
|
background: var(--sc-base);
|
|
169
171
|
}
|
|
170
|
-
|
|
171
172
|
|
|
172
173
|
`,
|
|
173
174
|
];
|
|
@@ -7,10 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
8
|
import { customElement, property, state, queryAssignedNodes } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
-
import { formControl } from "
|
|
10
|
+
import { formControl } from "@supersoniks/concorde/core/components/ui/form/css/form-control";
|
|
11
11
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
12
12
|
import FormElement from "@supersoniks/concorde/core/mixins/FormElement";
|
|
13
13
|
import FormInput from "@supersoniks/concorde/core/mixins/FormInput";
|
|
14
|
+
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
14
15
|
const tagName = "sonic-textarea";
|
|
15
16
|
let Textarea = class Textarea extends FormInput(FormElement(Subscriber(LitElement))) {
|
|
16
17
|
constructor() {
|
|
@@ -77,7 +78,7 @@ let Textarea = class Textarea extends FormInput(FormElement(Subscriber(LitElemen
|
|
|
77
78
|
?readonly=${this.readonly}
|
|
78
79
|
spellcheck=${ifDefined(this.spellcheck)}
|
|
79
80
|
wrap=${ifDefined(this.wrap)}
|
|
80
|
-
class="form-element textarea"
|
|
81
|
+
class="form-element textarea custom-scroll"
|
|
81
82
|
placeholder="${this.placeholder}"
|
|
82
83
|
>
|
|
83
84
|
${this.value}</textarea
|
|
@@ -92,6 +93,7 @@ ${this.value}</textarea
|
|
|
92
93
|
};
|
|
93
94
|
Textarea.styles = [
|
|
94
95
|
formControl,
|
|
96
|
+
customScroll,
|
|
95
97
|
css `
|
|
96
98
|
textarea {
|
|
97
99
|
font-size: inherit;
|
|
@@ -15,7 +15,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
15
15
|
};
|
|
16
16
|
import { LitElement, css, nothing } from "lit";
|
|
17
17
|
import { customElement, property } from "lit/decorators.js";
|
|
18
|
-
import Icons from "
|
|
18
|
+
import Icons from "@supersoniks/concorde/core/components/ui/icon/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
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
var _a;
|
|
11
11
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
12
|
-
import icons from "
|
|
12
|
+
import icons from "@supersoniks/concorde/core/components/ui/icon/icons.json";
|
|
13
13
|
/**
|
|
14
14
|
* Ce tableau static permet de ne pas appeler plusieurs fois le même service lors d'appel concurrents en GET.
|
|
15
15
|
*/
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var Loader_1;
|
|
8
8
|
import { html, LitElement, css } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
10
|
-
import { inline } from "
|
|
11
|
-
import { fixed } from "
|
|
10
|
+
import { inline } from "@supersoniks/concorde/core/components/ui/loader/styles/inline";
|
|
11
|
+
import { fixed } from "@supersoniks/concorde/core/components/ui/loader/styles/fixed";
|
|
12
12
|
const tagName = "sonic-loader";
|
|
13
13
|
let Loader = Loader_1 = class Loader extends LitElement {
|
|
14
14
|
constructor() {
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { customElement } from "lit/decorators.js";
|
|
8
|
-
import { Button } from "
|
|
8
|
+
import { Button } from "@supersoniks/concorde/core/components/ui/button/button";
|
|
9
9
|
const tagName = "sonic-menu-item";
|
|
10
10
|
let MenuItem = class MenuItem extends Button {
|
|
11
11
|
constructor() {
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
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
|
-
import "
|
|
10
|
+
import "@supersoniks/concorde/core/components/ui/menu/menu-item";
|
|
11
11
|
const tagName = "sonic-menu";
|
|
12
12
|
let MenuItems = class MenuItems extends LitElement {
|
|
13
13
|
constructor() {
|