@supersoniks/concorde 1.1.25 → 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/README.md +0 -0
- package/cli.js +0 -0
- package/concorde-core.bundle.js +22 -22
- package/concorde-core.es.js +19 -19
- package/core/components/functional/list/list.d.ts +3 -0
- 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/select/select.js +3 -2
- package/core/components/ui/form/textarea/textarea.js +3 -1
- package/core/components/ui/modal/modal.js +6 -20
- 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 +2 -0
- package/core/components/ui/table/table.js +26 -4
- package/core/components/ui/tabs/tabs.js +1 -1
- 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/toast/toast-item.js +3 -13
- 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 +5 -1
|
@@ -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);
|
|
@@ -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
|
];
|
|
@@ -11,6 +11,7 @@ import { formControl } from "../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;
|
|
@@ -9,6 +9,7 @@ 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";
|
|
@@ -79,7 +80,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
79
80
|
>
|
|
80
81
|
<div
|
|
81
82
|
part="modal"
|
|
82
|
-
class="modal"
|
|
83
|
+
class="modal custom-scroll"
|
|
83
84
|
style=${styleMap(modalStyles)}
|
|
84
85
|
${animate({
|
|
85
86
|
keyframeOptions: {
|
|
@@ -90,7 +91,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
90
91
|
out: [{ transform: "translateY(20%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }],
|
|
91
92
|
})}
|
|
92
93
|
>
|
|
93
|
-
<div class="modal-content">
|
|
94
|
+
<div class="modal-content ">
|
|
94
95
|
<slot></slot>
|
|
95
96
|
</div>
|
|
96
97
|
</div>
|
|
@@ -146,6 +147,7 @@ let Modal = class Modal extends Subscriber(LitElement) {
|
|
|
146
147
|
}
|
|
147
148
|
};
|
|
148
149
|
Modal.styles = [
|
|
150
|
+
customScroll,
|
|
149
151
|
css `
|
|
150
152
|
:host {
|
|
151
153
|
--sc-modal-py: 2.5rem;
|
|
@@ -176,23 +178,7 @@ Modal.styles = [
|
|
|
176
178
|
pointer-events: none;
|
|
177
179
|
}
|
|
178
180
|
|
|
179
|
-
|
|
180
|
-
.modal-content::-webkit-scrollbar-track {
|
|
181
|
-
z-index: 20;
|
|
182
|
-
background-color: transparent;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.modal-content::-webkit-scrollbar {
|
|
186
|
-
width: 0.9rem;
|
|
187
|
-
background-color: transparent;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.modal-content::-webkit-scrollbar-thumb {
|
|
191
|
-
background-color: var(--sc-modal-scrollbar-bg);
|
|
192
|
-
border: 0.3rem solid rgba(0, 0, 0, 0);
|
|
193
|
-
background-clip: padding-box;
|
|
194
|
-
border-radius: var(--sc-modal-rounded);
|
|
195
|
-
}
|
|
181
|
+
|
|
196
182
|
.modal-content {
|
|
197
183
|
overflow-y: auto;
|
|
198
184
|
display: flex;
|
|
@@ -208,7 +194,7 @@ Modal.styles = [
|
|
|
208
194
|
box-shadow: var(--sc-shadow-lg);
|
|
209
195
|
border-radius: var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;
|
|
210
196
|
pointer-events: auto;
|
|
211
|
-
overflow: hidden
|
|
197
|
+
/*overflow: hidden;*/
|
|
212
198
|
transform: translateZ(0);
|
|
213
199
|
}
|
|
214
200
|
|
|
@@ -17,17 +17,8 @@ TableCaption.styles = [
|
|
|
17
17
|
:host {
|
|
18
18
|
display:table-caption;
|
|
19
19
|
font-size:.75rem;
|
|
20
|
-
color:var(--sc-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:host:before{
|
|
25
|
-
content:"—";
|
|
26
|
-
margin-right:.25em;
|
|
27
|
-
}
|
|
28
|
-
:host:after{
|
|
29
|
-
content:"—";
|
|
30
|
-
margin-left:.25em;
|
|
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) );
|
|
31
22
|
}
|
|
32
23
|
`
|
|
33
24
|
];
|
|
@@ -9,29 +9,35 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
10
|
import { styleMap } from "lit/directives/style-map.js";
|
|
11
11
|
const tagName = "sonic-td";
|
|
12
|
+
import { typesColor } from "@supersoniks/concorde/core/components/ui/_css/types";
|
|
12
13
|
let TableTd = class TableTd extends LitElement {
|
|
13
14
|
render() {
|
|
14
15
|
const styles = {
|
|
15
16
|
textAlign: this.align,
|
|
17
|
+
minWidth: this.minWidth,
|
|
16
18
|
};
|
|
17
19
|
return html `<td
|
|
18
20
|
part="td"
|
|
19
21
|
style=${styleMap(styles)}
|
|
20
22
|
colspan=${ifDefined(this.colSpan)}
|
|
21
23
|
rowspan=${ifDefined(this.rowSpan)}
|
|
22
|
-
|
|
24
|
+
>
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</td>`;
|
|
23
27
|
}
|
|
24
28
|
};
|
|
25
29
|
TableTd.styles = [
|
|
30
|
+
typesColor,
|
|
26
31
|
css `
|
|
27
32
|
:host {
|
|
28
33
|
display: contents;
|
|
29
34
|
}
|
|
30
35
|
td {
|
|
31
|
-
all:inherit;
|
|
32
|
-
display:table-cell;
|
|
36
|
+
all: inherit;
|
|
37
|
+
display: table-cell;
|
|
33
38
|
padding: var(--sc-table-td-py) var(--sc-table-td-px);
|
|
34
|
-
}
|
|
39
|
+
}
|
|
40
|
+
`,
|
|
35
41
|
];
|
|
36
42
|
__decorate([
|
|
37
43
|
property({ type: Number })
|
|
@@ -42,6 +48,9 @@ __decorate([
|
|
|
42
48
|
__decorate([
|
|
43
49
|
property({ type: String })
|
|
44
50
|
], TableTd.prototype, "align", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
property({ type: String })
|
|
53
|
+
], TableTd.prototype, "minWidth", void 0);
|
|
45
54
|
TableTd = __decorate([
|
|
46
55
|
customElement(tagName)
|
|
47
56
|
], TableTd);
|