@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,9 +1,9 @@
|
|
|
1
1
|
import { LitElement, nothing } from "lit";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
2
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-actions";
|
|
3
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-title";
|
|
4
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-subtitle";
|
|
5
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-content";
|
|
6
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-close";
|
|
7
7
|
declare type ModalCreateOptions = {
|
|
8
8
|
content?: string;
|
|
9
9
|
};
|
|
@@ -9,11 +9,12 @@ 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 "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
12
|
+
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
13
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-actions";
|
|
14
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-title";
|
|
15
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-subtitle";
|
|
16
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-content";
|
|
17
|
+
import "@supersoniks/concorde/core/components/ui/modal/modal-close";
|
|
17
18
|
const tagName = "sonic-modal";
|
|
18
19
|
let Modal = class Modal extends Subscriber(LitElement) {
|
|
19
20
|
constructor() {
|
|
@@ -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);
|
|
@@ -8,31 +8,42 @@ 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
10
|
import { styleMap } from "lit/directives/style-map.js";
|
|
11
|
+
import { typesColor } from "@supersoniks/concorde/core/components/ui/_css/types";
|
|
11
12
|
const tagName = "sonic-th";
|
|
12
13
|
let TableTh = class TableTh extends LitElement {
|
|
13
14
|
render() {
|
|
14
15
|
const styles = {
|
|
15
16
|
textAlign: this.align,
|
|
17
|
+
minWidth: this.minWidth,
|
|
16
18
|
};
|
|
17
|
-
return html `<th
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
return html `<th
|
|
20
|
+
part="th"
|
|
21
|
+
style=${styleMap(styles)}
|
|
22
|
+
colspan=${ifDefined(this.colSpan)}
|
|
23
|
+
rowspan=${ifDefined(this.rowSpan)}
|
|
24
|
+
>
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</th> `;
|
|
22
27
|
}
|
|
23
28
|
};
|
|
24
29
|
TableTh.styles = [
|
|
30
|
+
typesColor,
|
|
25
31
|
css `
|
|
26
32
|
:host {
|
|
27
33
|
display: contents;
|
|
34
|
+
background:var(--sc-table-bg);
|
|
35
|
+
position:sticky;
|
|
36
|
+
top:0;
|
|
37
|
+
z-index:20;
|
|
28
38
|
}
|
|
29
39
|
|
|
30
40
|
th {
|
|
31
|
-
all:inherit;
|
|
32
|
-
display:table-cell;
|
|
41
|
+
all: inherit;
|
|
42
|
+
display: table-cell;
|
|
43
|
+
border-bottom: calc(var(--sc-border-width) * 1.5) solid var(--sc-table-border-color);
|
|
33
44
|
text-transform: var(--sc-table-th-tt);
|
|
34
|
-
font-weight:var(--sc-table-th-fw);
|
|
35
|
-
font-size:var(--sc-table-th-fs);
|
|
45
|
+
font-weight: var(--sc-table-th-fw);
|
|
46
|
+
font-size: var(--sc-table-th-fs);
|
|
36
47
|
padding: var(--sc-table-th-py) var(--sc-table-th-px);
|
|
37
48
|
}
|
|
38
49
|
`,
|
|
@@ -46,6 +57,9 @@ __decorate([
|
|
|
46
57
|
__decorate([
|
|
47
58
|
property({ type: String })
|
|
48
59
|
], TableTh.prototype, "align", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({ type: String })
|
|
62
|
+
], TableTh.prototype, "minWidth", void 0);
|
|
49
63
|
TableTh = __decorate([
|
|
50
64
|
customElement(tagName)
|
|
51
65
|
], TableTh);
|
|
@@ -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
|
+
import { typesColor } from "@supersoniks/concorde/core/components/ui/_css/types";
|
|
9
10
|
const tagName = "sonic-tr";
|
|
10
11
|
let TableTr = class TableTr extends LitElement {
|
|
11
12
|
render() {
|
|
@@ -13,6 +14,7 @@ let TableTr = class TableTr extends LitElement {
|
|
|
13
14
|
}
|
|
14
15
|
};
|
|
15
16
|
TableTr.styles = [
|
|
17
|
+
typesColor,
|
|
16
18
|
css `
|
|
17
19
|
:host {
|
|
18
20
|
display: table-row;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
2
|
+
import "@supersoniks/concorde/core/components/ui/table/table-tr";
|
|
3
|
+
import "@supersoniks/concorde/core/components/ui/table/table-th";
|
|
4
|
+
import "@supersoniks/concorde/core/components/ui/table/table-td";
|
|
5
|
+
import "@supersoniks/concorde/core/components/ui/table/table-thead";
|
|
6
|
+
import "@supersoniks/concorde/core/components/ui/table/table-tbody";
|
|
7
|
+
import "@supersoniks/concorde/core/components/ui/table/table-tfoot";
|
|
8
|
+
import "@supersoniks/concorde/core/components/ui/table/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";
|
|
12
12
|
striped: boolean;
|
|
13
13
|
sticky: boolean;
|
|
14
|
+
bordered: boolean;
|
|
14
15
|
hover: boolean;
|
|
16
|
+
maxHeight?: string;
|
|
15
17
|
render(): import("lit-html").TemplateResult<1>;
|
|
16
18
|
}
|
|
@@ -6,13 +6,15 @@ 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 "
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import "
|
|
9
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
10
|
+
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
11
|
+
import "@supersoniks/concorde/core/components/ui/table/table-tr";
|
|
12
|
+
import "@supersoniks/concorde/core/components/ui/table/table-th";
|
|
13
|
+
import "@supersoniks/concorde/core/components/ui/table/table-td";
|
|
14
|
+
import "@supersoniks/concorde/core/components/ui/table/table-thead";
|
|
15
|
+
import "@supersoniks/concorde/core/components/ui/table/table-tbody";
|
|
16
|
+
import "@supersoniks/concorde/core/components/ui/table/table-tfoot";
|
|
17
|
+
import "@supersoniks/concorde/core/components/ui/table/table-caption";
|
|
16
18
|
const tagName = "sonic-table";
|
|
17
19
|
let Table = class Table extends LitElement {
|
|
18
20
|
constructor() {
|
|
@@ -20,11 +22,16 @@ let Table = class Table extends LitElement {
|
|
|
20
22
|
this.size = "md";
|
|
21
23
|
this.striped = false;
|
|
22
24
|
this.sticky = false;
|
|
25
|
+
this.bordered = false;
|
|
23
26
|
this.hover = false;
|
|
24
27
|
}
|
|
25
28
|
render() {
|
|
29
|
+
const containerStyles = {
|
|
30
|
+
maxHeight: this.maxHeight,
|
|
31
|
+
};
|
|
26
32
|
return html `
|
|
27
|
-
|
|
33
|
+
|
|
34
|
+
<div class="table-container custom-scroll" style=${styleMap(containerStyles)} >
|
|
28
35
|
<div class="table" ?striped=${this.striped} ?hover=${this.hover} ?sticky=${this.sticky}>
|
|
29
36
|
<slot></slot>
|
|
30
37
|
</div>
|
|
@@ -33,18 +40,23 @@ let Table = class Table extends LitElement {
|
|
|
33
40
|
}
|
|
34
41
|
};
|
|
35
42
|
Table.styles = [
|
|
43
|
+
customScroll,
|
|
36
44
|
css `
|
|
37
45
|
:host {
|
|
38
46
|
--sc-table-fw: var(--sc-font-weight-base);
|
|
39
47
|
--sc-table-fst: var(--sc-font-style-base);
|
|
40
48
|
--sc-table-fs: 1rem;
|
|
49
|
+
--sc-table-border-color: var(--sc-base-200);
|
|
50
|
+
--sc-table-caption-color: var(--sc-base-400);
|
|
51
|
+
--sc-table-bg: var(--sc-base);
|
|
41
52
|
--sc-table-th-fs: .85em;
|
|
42
53
|
--sc-table-th-fw: bold;
|
|
43
54
|
--sc-table-th-tt: uppercase;
|
|
44
55
|
--sc-table-th-px: var(--sc-table-td-px);
|
|
45
|
-
--sc-table-th-py: var(--sc-table-td-py);
|
|
46
|
-
--sc-table-td-px: .
|
|
47
|
-
--sc-table-td-py: .
|
|
56
|
+
--sc-table-th-py: calc(1.8 * var(--sc-table-td-py) );
|
|
57
|
+
--sc-table-td-px: .5em;
|
|
58
|
+
--sc-table-td-py: .5em;
|
|
59
|
+
|
|
48
60
|
display:block;
|
|
49
61
|
}
|
|
50
62
|
|
|
@@ -57,6 +69,7 @@ Table.styles = [
|
|
|
57
69
|
width: 100%;
|
|
58
70
|
font-size: var(--sc-table-fs);
|
|
59
71
|
display: table;
|
|
72
|
+
box-sizing:border-box;
|
|
60
73
|
}
|
|
61
74
|
|
|
62
75
|
/*SIZES*/
|
|
@@ -75,6 +88,9 @@ Table.styles = [
|
|
|
75
88
|
:host([size="xl"]) {
|
|
76
89
|
--sc-table-fs: 1.5rem;
|
|
77
90
|
}
|
|
91
|
+
:host([bordered]) .table-container {
|
|
92
|
+
border:var(--sc-border-width) solid var(--sc-table-border-color) !important;
|
|
93
|
+
}
|
|
78
94
|
|
|
79
95
|
`,
|
|
80
96
|
];
|
|
@@ -87,9 +103,15 @@ __decorate([
|
|
|
87
103
|
__decorate([
|
|
88
104
|
property({ type: Boolean, reflect: true })
|
|
89
105
|
], Table.prototype, "sticky", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
property({ type: Boolean, reflect: true })
|
|
108
|
+
], Table.prototype, "bordered", void 0);
|
|
90
109
|
__decorate([
|
|
91
110
|
property({ type: Boolean, reflect: true })
|
|
92
111
|
], Table.prototype, "hover", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
property({ type: String })
|
|
114
|
+
], Table.prototype, "maxHeight", void 0);
|
|
93
115
|
Table = __decorate([
|
|
94
116
|
customElement(tagName)
|
|
95
117
|
], Table);
|
|
@@ -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 { Button } from "
|
|
9
|
+
import { Button } from "@supersoniks/concorde/core/components/ui/button/button";
|
|
10
10
|
let Tab = class Tab extends Button {
|
|
11
11
|
constructor() {
|
|
12
12
|
super();
|
|
@@ -7,7 +7,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
8
|
import { customElement, property, query } from "lit/decorators.js";
|
|
9
9
|
import { ResizeController } from "@lit-labs/observers/resize_controller.js";
|
|
10
|
-
// import { tailwind } from "../theme/theme";
|
|
11
10
|
let Tabs = class Tabs extends LitElement {
|
|
12
11
|
constructor() {
|
|
13
12
|
super(...arguments);
|
|
@@ -67,7 +66,7 @@ let Tabs = class Tabs extends LitElement {
|
|
|
67
66
|
<sonic-icon class="my-auto" size="xl" name="more-vert"></sonic-icon>
|
|
68
67
|
</sonic-menu-item>
|
|
69
68
|
<sonic-menu slot="content"></sonic-menu>
|
|
70
|
-
|
|
69
|
+
</sonic-pop>
|
|
71
70
|
</menu>`;
|
|
72
71
|
}
|
|
73
72
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, nothing } from "lit";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
2
|
+
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
3
|
+
import "@supersoniks/concorde/core/components/ui/badge/badge";
|
|
4
4
|
/**
|
|
5
5
|
* Le composant taxonomy crée un badge (*sonic-badge*) contenant une liste de termes préfixés par une icone (*sonic-icon*) optionelle séparées par une chaine html séparatrice (*separator*)
|
|
6
6
|
*/
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { css, html, LitElement, nothing } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
import { repeat } from "lit/directives/repeat.js";
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
10
|
+
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
11
|
+
import "@supersoniks/concorde/core/components/ui/badge/badge";
|
|
12
12
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
13
13
|
const tagName = "sonic-taxonomy";
|
|
14
14
|
/**
|
|
File without changes
|
|
File without changes
|
|
@@ -38,7 +38,7 @@ export const coreVariables = css `
|
|
|
38
38
|
--sc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
39
39
|
|
|
40
40
|
/* formulaires*/
|
|
41
|
-
--sc-border-width: max(1px, 0.
|
|
41
|
+
--sc-border-width: max(1px, 0.085rem);
|
|
42
42
|
--sc-form-border-width: var(--sc-border-width);
|
|
43
43
|
--sc-input-bg: var(--sc-base-100);
|
|
44
44
|
--sc-input-border-color: var(--sc-input-bg);
|
|
@@ -47,5 +47,8 @@ export const coreVariables = css `
|
|
|
47
47
|
/*Couleurs -- textes sur images*/
|
|
48
48
|
--sc-contrast-content: #fff;
|
|
49
49
|
--sc-contrast: #0f172a;
|
|
50
|
+
|
|
51
|
+
/*Scrollbar*/
|
|
52
|
+
--sc-scrollbar-bg : var(--sc-base-400);
|
|
50
53
|
}
|
|
51
54
|
`;
|
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var Theme_1;
|
|
8
8
|
import { html, LitElement, css } from "lit";
|
|
9
9
|
import { customElement, property } from "lit/decorators.js";
|
|
10
|
-
import { coreVariables } from "
|
|
11
|
-
import { light } from "
|
|
12
|
-
import { dark } from "
|
|
10
|
+
import { coreVariables } from "@supersoniks/concorde/core/components/ui/theme/theme-collection/core-variables";
|
|
11
|
+
import { light } from "@supersoniks/concorde/core/components/ui/theme/theme-collection/light";
|
|
12
|
+
import { dark } from "@supersoniks/concorde/core/components/ui/theme/theme-collection/dark";
|
|
13
13
|
const tagName = "sonic-theme";
|
|
14
14
|
let Theme = Theme_1 = class Theme extends LitElement {
|
|
15
15
|
constructor() {
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { LitElement, nothing } from "lit";
|
|
8
8
|
import { customElement, property } from "lit/decorators.js";
|
|
9
9
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
10
|
-
import { SonicToast } from "
|
|
10
|
+
import { SonicToast } from "@supersoniks/concorde/core/components/ui/toast/toast";
|
|
11
11
|
const tagName = "sonic-toast-message-subscriber";
|
|
12
12
|
//Superbe mix de multples versions d'api.
|
|
13
13
|
let MessageSubscriber = class MessageSubscriber extends Subscriber(LitElement) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, nothing } from "lit";
|
|
2
|
-
import "
|
|
3
|
-
import { ToastStatus } from "
|
|
2
|
+
import "@supersoniks/concorde/core/components/ui/toast/types";
|
|
3
|
+
import { ToastStatus } from "@supersoniks/concorde/core/components/ui/toast/types";
|
|
4
4
|
export declare class SonicToastItem extends LitElement {
|
|
5
5
|
static styles: import("lit").CSSResult[];
|
|
6
6
|
title: string;
|
|
@@ -7,7 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, LitElement, css, nothing } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
9
9
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
10
|
-
import "
|
|
10
|
+
import "@supersoniks/concorde/core/components/ui/toast/types";
|
|
11
|
+
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
11
12
|
const icon = {
|
|
12
13
|
warning: "warning-circled-outline",
|
|
13
14
|
success: "check-circled-outline",
|
|
@@ -69,6 +70,7 @@ let SonicToastItem = class SonicToastItem extends LitElement {
|
|
|
69
70
|
}
|
|
70
71
|
};
|
|
71
72
|
SonicToastItem.styles = [
|
|
73
|
+
customScroll,
|
|
72
74
|
css `
|
|
73
75
|
* {
|
|
74
76
|
box-sizing: border-box;
|
|
@@ -230,19 +232,7 @@ SonicToastItem.styles = [
|
|
|
230
232
|
pointer-events: none;
|
|
231
233
|
}
|
|
232
234
|
|
|
233
|
-
|
|
234
|
-
.custom-scroll::-webkit-scrollbar {
|
|
235
|
-
width: 0.8rem;
|
|
236
|
-
border: solid 3px transparent;
|
|
237
|
-
border-radius: var(--sc-rounded);
|
|
238
|
-
background:transparent;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.custom-scroll::-webkit-scrollbar-thumb {
|
|
242
|
-
box-shadow: inset 0 0 2rem 2rem var(--sc-base-500);
|
|
243
|
-
border-radius: var(--sc-rounded);
|
|
244
|
-
border: solid 3px transparent;
|
|
245
|
-
}
|
|
235
|
+
|
|
246
236
|
|
|
247
237
|
`,
|
|
248
238
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, nothing } from "lit";
|
|
2
2
|
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
3
|
-
import "
|
|
4
|
-
import { Toast } from "
|
|
3
|
+
import "@supersoniks/concorde/core/components/ui/toast/toast-item";
|
|
4
|
+
import { Toast } from "@supersoniks/concorde/core/components/ui/toast/types";
|
|
5
5
|
export declare class SonicToast extends LitElement {
|
|
6
6
|
toasts: Toast[];
|
|
7
7
|
createRenderRoot(): this;
|
|
@@ -11,7 +11,7 @@ export declare class SonicToast extends LitElement {
|
|
|
11
11
|
id: number;
|
|
12
12
|
text: string;
|
|
13
13
|
title: string | undefined;
|
|
14
|
-
status: import("
|
|
14
|
+
status: import("@supersoniks/concorde/core/components/ui/toast/types").ToastStatus | undefined;
|
|
15
15
|
preserve: boolean | undefined;
|
|
16
16
|
ghost: boolean | undefined;
|
|
17
17
|
} | null;
|
|
@@ -12,7 +12,7 @@ import Objects from "@supersoniks/concorde/core/utils/Objects";
|
|
|
12
12
|
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
13
13
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
14
14
|
import { styleMap } from "lit/directives/style-map.js";
|
|
15
|
-
import "
|
|
15
|
+
import "@supersoniks/concorde/core/components/ui/toast/toast-item";
|
|
16
16
|
const tagName = "sonic-toast";
|
|
17
17
|
let SonicToast = class SonicToast extends LitElement {
|
|
18
18
|
constructor() {
|
package/core/mixins/Fetcher.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import API from "@supersoniks/concorde/core/utils/api";
|
|
2
|
-
import "
|
|
3
|
-
import { SubscriberInterface } from "
|
|
2
|
+
import "@supersoniks/concorde/core/components/ui/button/button";
|
|
3
|
+
import { SubscriberInterface } from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
4
4
|
declare type Constructor<T> = new (...args: any[]) => T;
|
|
5
5
|
declare const Fetcher: <T extends Constructor<SubscriberInterface>>(superClass: T) => {
|
|
6
6
|
new (...args: any[]): {
|
package/core/mixins/Fetcher.js
CHANGED
|
@@ -13,11 +13,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
13
13
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
import { Loader } from "
|
|
17
|
-
import { SonicToast } from "
|
|
16
|
+
import { Loader } from "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
17
|
+
import { SonicToast } from "@supersoniks/concorde/core/components/ui/toast/toast";
|
|
18
18
|
import API from "@supersoniks/concorde/core/utils/api";
|
|
19
|
-
import "
|
|
20
|
-
import
|
|
19
|
+
import "@supersoniks/concorde/core/components/ui/button/button";
|
|
20
|
+
import { PublisherManager } from "@supersoniks/concorde/utils";
|
|
21
|
+
import Objects from "@supersoniks/concorde/core/utils/Objects";
|
|
21
22
|
import { property } from "lit/decorators.js";
|
|
22
23
|
const Fetcher = (superClass) => {
|
|
23
24
|
class FetcherElement extends superClass {
|
|
@@ -83,7 +84,8 @@ const Fetcher = (superClass) => {
|
|
|
83
84
|
let hasLoader = this.isDefaultLoaderEnabled && !this.hasAttribute("noLoader");
|
|
84
85
|
if (hasLoader)
|
|
85
86
|
Loader.show();
|
|
86
|
-
|
|
87
|
+
let headerData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
|
|
88
|
+
data = yield this.api.get(this.endPoint || this.dataProvider || "", headerData);
|
|
87
89
|
if (!data) {
|
|
88
90
|
SonicToast.add({ text: "Network Error", status: "error" });
|
|
89
91
|
this.isLoading = false;
|
|
@@ -67,6 +67,9 @@ declare const Form: <T extends Constructor<FormElementInterface>>(superClass: T)
|
|
|
67
67
|
requestUpdate(): void;
|
|
68
68
|
getAttribute(name: string): string;
|
|
69
69
|
hasAttribute(attributeName: String): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* comme radio,mais peut être désélectionné après sélection
|
|
72
|
+
*/
|
|
70
73
|
disconnectedCallback(): void;
|
|
71
74
|
};
|
|
72
75
|
} & T;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy.mjs";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
|
-
import Objects from "
|
|
9
|
+
import Objects from "@supersoniks/concorde/core/utils/Objects";
|
|
10
10
|
const keyboardLoops = new Map();
|
|
11
11
|
const Form = (superClass) => {
|
|
12
12
|
/**
|
|
@@ -20,6 +20,7 @@ const Form = (superClass) => {
|
|
|
20
20
|
class FormElement extends superClass {
|
|
21
21
|
constructor(...args) {
|
|
22
22
|
super();
|
|
23
|
+
this.touched = false;
|
|
23
24
|
this.error = null;
|
|
24
25
|
this.autofocus = null;
|
|
25
26
|
this.disabled = null;
|
|
@@ -218,6 +219,9 @@ const Form = (superClass) => {
|
|
|
218
219
|
}
|
|
219
220
|
}
|
|
220
221
|
}
|
|
222
|
+
__decorate([
|
|
223
|
+
property({ type: Boolean, reflect: true })
|
|
224
|
+
], FormElement.prototype, "touched", void 0);
|
|
221
225
|
__decorate([
|
|
222
226
|
property({ type: Boolean })
|
|
223
227
|
], FormElement.prototype, "error", void 0);
|