@supersoniks/concorde 1.1.8 → 1.1.11
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/core/components/functional/configuration/configuration.d.ts +5 -0
- package/core/components/functional/configuration/configuration.js +21 -0
- package/core/components/functional/date/date.d.ts +2 -1
- package/core/components/functional/date/date.js +9 -2
- package/core/components/functional/fetch/fetch.d.ts +32 -11
- package/core/components/functional/fetch/fetch.js +28 -12
- package/core/components/functional/functional.d.ts +1 -0
- package/core/components/functional/functional.js +1 -0
- package/core/components/functional/list/list.d.ts +15 -7
- package/core/components/functional/list/list.js +50 -20
- package/core/components/functional/sonic-scope/sonic-scope.d.ts +5 -0
- package/core/components/functional/sonic-scope/sonic-scope.js +20 -0
- package/core/components/functional/states/states.js +0 -2
- package/core/components/functional/submit/submit.d.ts +2 -0
- package/core/components/functional/submit/submit.js +23 -8
- package/core/components/ui/badge/badge.js +0 -1
- package/core/components/ui/button/button.d.ts +9 -2
- package/core/components/ui/button/button.js +11 -13
- package/core/components/ui/card/card-footer.d.ts +5 -0
- package/core/components/ui/card/card-footer.js +27 -0
- package/core/components/ui/card/card-header-descripton.d.ts +5 -0
- package/core/components/ui/card/card-header-descripton.js +33 -0
- package/core/components/ui/card/card-header.d.ts +8 -0
- package/core/components/ui/card/card-header.js +67 -0
- package/core/components/ui/card/card-main.d.ts +5 -0
- package/core/components/ui/card/card-main.js +29 -0
- package/core/components/ui/card/card.d.ts +12 -0
- package/core/components/ui/card/card.js +90 -0
- package/core/components/ui/form/checkbox/checkbox.d.ts +4 -4
- package/core/components/ui/form/checkbox/checkbox.js +3 -4
- package/core/components/ui/form/css/form-control.js +2 -0
- package/core/components/ui/form/fieldset/fieldset.js +1 -1
- package/core/components/ui/form/fieldset/legend-description.d.ts +5 -0
- package/core/components/ui/form/fieldset/legend-description.js +35 -0
- package/core/components/ui/form/fieldset/legend.d.ts +4 -5
- package/core/components/ui/form/fieldset/legend.js +21 -25
- package/core/components/ui/form/input/input.d.ts +3 -3
- package/core/components/ui/form/input/input.js +3 -3
- package/core/components/ui/form/textarea/textarea.d.ts +2 -2
- package/core/components/ui/form/textarea/textarea.js +2 -2
- package/core/components/ui/link/link.d.ts +7 -0
- package/core/components/ui/link/link.js +10 -0
- package/core/components/ui/progress/progress.d.ts +7 -0
- package/core/components/ui/progress/progress.js +63 -0
- package/core/components/ui/table/table-caption.d.ts +5 -0
- package/core/components/ui/table/table-caption.js +24 -0
- package/core/components/ui/table/table-tbody.d.ts +5 -0
- package/core/components/ui/table/table-tbody.js +37 -0
- package/core/components/ui/table/table-td.d.ts +7 -0
- package/core/components/ui/table/table-td.js +45 -0
- package/core/components/ui/table/table-tfoot.d.ts +5 -0
- package/core/components/ui/table/table-tfoot.js +23 -0
- package/core/components/ui/table/table-th.d.ts +6 -0
- package/core/components/ui/table/table-th.js +43 -0
- package/core/components/ui/table/table-thead.d.ts +5 -0
- package/core/components/ui/table/table-thead.js +24 -0
- package/core/components/ui/table/table-tr.d.ts +5 -0
- package/core/components/ui/table/table-tr.js +24 -0
- package/core/components/ui/table/table.d.ts +16 -0
- package/core/components/ui/table/table.js +88 -0
- package/core/components/ui/theme/theme-collection/core-variables.js +1 -1
- package/core/components/ui/theme/theme-collection/dark.js +3 -2
- package/core/components/ui/theme/theme-collection/light.js +1 -0
- package/core/components/ui/tooltip/tooltip.d.ts +1 -1
- package/core/components/ui/tooltip/tooltip.js +4 -4
- package/core/components/ui/ui.d.ts +3 -0
- package/core/components/ui/ui.js +3 -0
- package/core/mixins/Fetcher.d.ts +11 -9
- package/core/mixins/Fetcher.js +22 -4
- package/core/mixins/FormCheckable.d.ts +2 -2
- package/core/mixins/FormInput.d.ts +2 -2
- package/core/mixins/Subscriber.d.ts +2 -2
- package/core/mixins/Subscriber.js +0 -15
- package/core/utils/LocationHandler.d.ts +2 -1
- package/core/utils/LocationHandler.js +10 -2
- package/core/utils/Objects.d.ts +2 -1
- package/core/utils/Objects.js +8 -2
- package/core/utils/PublisherProxy.mjs +42 -12
- package/core/utils/api.js +1 -1
- package/package.json +38 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
let Progress = class Progress extends LitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.max = 100;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return html `
|
|
16
|
+
<progress value=${this.value} max=${this.max}></progress>
|
|
17
|
+
`;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
Progress.styles = [
|
|
21
|
+
css `
|
|
22
|
+
|
|
23
|
+
:host {
|
|
24
|
+
--sc-progress-bg: var(--sc-input-bg, var(--sc-base, #fff));
|
|
25
|
+
--sc-progress-color: var(--sc-base-content, #1f2937);
|
|
26
|
+
--sc-progress-height: .6rem;
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
progress {
|
|
31
|
+
position: relative;
|
|
32
|
+
width: 100%;
|
|
33
|
+
-webkit-appearance: none;
|
|
34
|
+
appearance: none;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
height: var(--sc-progress-height);
|
|
37
|
+
border-radius: var(--rounded-box,1rem);
|
|
38
|
+
background-color: var(--sc-progress-bg);
|
|
39
|
+
color: var(--sc-progress-color);
|
|
40
|
+
border:none;
|
|
41
|
+
}
|
|
42
|
+
progress::-moz-progress-bar {
|
|
43
|
+
background-color: var(--sc-progress-color);
|
|
44
|
+
}
|
|
45
|
+
progress::-webkit-progress-bar {
|
|
46
|
+
background-color: var(--sc-progress-bg);
|
|
47
|
+
}
|
|
48
|
+
progress::-webkit-progress-value {
|
|
49
|
+
background-color: var(--sc-progress-color);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
`
|
|
53
|
+
];
|
|
54
|
+
__decorate([
|
|
55
|
+
property({ type: Number })
|
|
56
|
+
], Progress.prototype, "value", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
property({ type: Number })
|
|
59
|
+
], Progress.prototype, "max", void 0);
|
|
60
|
+
Progress = __decorate([
|
|
61
|
+
customElement("sonic-progress")
|
|
62
|
+
], Progress);
|
|
63
|
+
export { Progress };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement } from "lit/decorators.js";
|
|
9
|
+
let TableCaption = class TableCaption extends LitElement {
|
|
10
|
+
render() {
|
|
11
|
+
return html `<slot></slot>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
TableCaption.styles = [
|
|
15
|
+
css `
|
|
16
|
+
:host {
|
|
17
|
+
display: table-caption;
|
|
18
|
+
}
|
|
19
|
+
`
|
|
20
|
+
];
|
|
21
|
+
TableCaption = __decorate([
|
|
22
|
+
customElement("sonic-caption")
|
|
23
|
+
], TableCaption);
|
|
24
|
+
export { TableCaption };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement } from "lit/decorators.js";
|
|
9
|
+
let TableTbody = class TableTbody extends LitElement {
|
|
10
|
+
render() {
|
|
11
|
+
return html `<tbody><slot></slot></tbody>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
TableTbody.styles = [
|
|
15
|
+
css `
|
|
16
|
+
:host {
|
|
17
|
+
display: contents;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
::slotted(sonic-tr:nth-child(odd)){
|
|
21
|
+
background:var(--sc-base-50);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
::slotted(sonic-tr:hover) {
|
|
25
|
+
background:var(--sc-base-100);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
::slotted(sonic-tr:not(:last-child)){
|
|
29
|
+
border-bottom:var(--sc-form-border-width) solid var(--sc-base-200) !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
`
|
|
33
|
+
];
|
|
34
|
+
TableTbody = __decorate([
|
|
35
|
+
customElement("sonic-tbody")
|
|
36
|
+
], TableTbody);
|
|
37
|
+
export { TableTbody };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
+
let TableTd = class TableTd extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.colSpan = null;
|
|
14
|
+
this.rowSpan = null;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return html `<td
|
|
18
|
+
colspan=${ifDefined(this.colSpan)}
|
|
19
|
+
rowspan=${ifDefined(this.rowSpan)}
|
|
20
|
+
part="td"
|
|
21
|
+
><slot></slot></td>`;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
TableTd.styles = [
|
|
25
|
+
css `
|
|
26
|
+
:host {
|
|
27
|
+
display: contents;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
td {
|
|
31
|
+
text-transform:var(--sc-th-tt);
|
|
32
|
+
text-align:inherit;
|
|
33
|
+
padding:.3em .5em;
|
|
34
|
+
}`
|
|
35
|
+
];
|
|
36
|
+
__decorate([
|
|
37
|
+
property({ type: Number })
|
|
38
|
+
], TableTd.prototype, "colSpan", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
property({ type: Number })
|
|
41
|
+
], TableTd.prototype, "rowSpan", void 0);
|
|
42
|
+
TableTd = __decorate([
|
|
43
|
+
customElement("sonic-td")
|
|
44
|
+
], TableTd);
|
|
45
|
+
export { TableTd };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement } from "lit/decorators.js";
|
|
9
|
+
let TableTfoot = class TableTfoot extends LitElement {
|
|
10
|
+
render() {
|
|
11
|
+
return html `<tfoot><slot></slot></tfoot>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
TableTfoot.styles = [
|
|
15
|
+
css `
|
|
16
|
+
:host {
|
|
17
|
+
display: contents;
|
|
18
|
+
}`
|
|
19
|
+
];
|
|
20
|
+
TableTfoot = __decorate([
|
|
21
|
+
customElement("sonic-tfoot")
|
|
22
|
+
], TableTfoot);
|
|
23
|
+
export { TableTfoot };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
10
|
+
let TableTh = class TableTh extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.align = "left";
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
const styles = {
|
|
17
|
+
textAlign: this.align,
|
|
18
|
+
};
|
|
19
|
+
return html `<th part="th" style=${styleMap(styles)} ><slot></slot></th>
|
|
20
|
+
`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
TableTh.styles = [
|
|
24
|
+
css `
|
|
25
|
+
:host {
|
|
26
|
+
display: contents;
|
|
27
|
+
--sc-th-tt:uppercase;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
th {
|
|
31
|
+
text-transform:var(--sc-th-tt);
|
|
32
|
+
text-align:inherit;
|
|
33
|
+
padding:.3em .5em;
|
|
34
|
+
}
|
|
35
|
+
`
|
|
36
|
+
];
|
|
37
|
+
__decorate([
|
|
38
|
+
property({ type: String, reflect: true })
|
|
39
|
+
], TableTh.prototype, "align", void 0);
|
|
40
|
+
TableTh = __decorate([
|
|
41
|
+
customElement("sonic-th")
|
|
42
|
+
], TableTh);
|
|
43
|
+
export { TableTh };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement } from "lit/decorators.js";
|
|
9
|
+
let TableThead = class TableThead extends LitElement {
|
|
10
|
+
render() {
|
|
11
|
+
return html `<slot></slot>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
TableThead.styles = [
|
|
15
|
+
css `
|
|
16
|
+
:host {
|
|
17
|
+
display: table-row-group;
|
|
18
|
+
}
|
|
19
|
+
`
|
|
20
|
+
];
|
|
21
|
+
TableThead = __decorate([
|
|
22
|
+
customElement("sonic-thead")
|
|
23
|
+
], TableThead);
|
|
24
|
+
export { TableThead };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement } from "lit/decorators.js";
|
|
9
|
+
let TableTr = class TableTr extends LitElement {
|
|
10
|
+
render() {
|
|
11
|
+
return html `<slot></slot>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
TableTr.styles = [
|
|
15
|
+
css `
|
|
16
|
+
:host {
|
|
17
|
+
display: table-row;
|
|
18
|
+
}
|
|
19
|
+
`
|
|
20
|
+
];
|
|
21
|
+
TableTr = __decorate([
|
|
22
|
+
customElement("sonic-tr")
|
|
23
|
+
], TableTr);
|
|
24
|
+
export { TableTr };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "./table-tr.ts";
|
|
3
|
+
import "./table-th.ts";
|
|
4
|
+
import "./table-td.ts";
|
|
5
|
+
import "./table-thead.ts";
|
|
6
|
+
import "./table-tbody.ts";
|
|
7
|
+
import "./table-tfoot.ts";
|
|
8
|
+
import "./table-caption.ts";
|
|
9
|
+
export declare class Table extends LitElement {
|
|
10
|
+
static styles: import("lit").CSSResult[];
|
|
11
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
12
|
+
striped: boolean;
|
|
13
|
+
sticky: boolean;
|
|
14
|
+
hover: boolean;
|
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement, css } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import "./table-tr.ts";
|
|
10
|
+
import "./table-th.ts";
|
|
11
|
+
import "./table-td.ts";
|
|
12
|
+
import "./table-thead.ts";
|
|
13
|
+
import "./table-tbody.ts";
|
|
14
|
+
import "./table-tfoot.ts";
|
|
15
|
+
import "./table-caption.ts";
|
|
16
|
+
let Table = class Table extends LitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.size = "md";
|
|
20
|
+
this.striped = false;
|
|
21
|
+
this.sticky = false;
|
|
22
|
+
this.hover = false;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return html `
|
|
26
|
+
<div class="table-container">
|
|
27
|
+
<div class="table" ?striped=${this.striped} ?hover=${this.hover} ?sticky=${this.sticky}>
|
|
28
|
+
<slot></slot>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
Table.styles = [
|
|
35
|
+
css `
|
|
36
|
+
:host {
|
|
37
|
+
--sc-table-fw: var(--sc-font-weight-base);
|
|
38
|
+
--sc-table-fst: var(--sc-font-style-base);
|
|
39
|
+
--sc-table-fs: 1rem;
|
|
40
|
+
--sc-table-th-fw: bold;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.table-container {
|
|
44
|
+
overflow-x: auto;
|
|
45
|
+
-webkit-overflow-scrolling: touch;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.table {
|
|
49
|
+
width: 100%;
|
|
50
|
+
font-size: var(--sc-table-fs);
|
|
51
|
+
display: table;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/*SIZE*/
|
|
55
|
+
:host([size="2xs"]) {
|
|
56
|
+
--sc-table-fs: 0.6rem;
|
|
57
|
+
}
|
|
58
|
+
:host([size="xs"]) {
|
|
59
|
+
--sc-table-fs: 0.75rem;
|
|
60
|
+
}
|
|
61
|
+
:host([size="sm"]) {
|
|
62
|
+
--sc-table-fs: 0.85rem;
|
|
63
|
+
}
|
|
64
|
+
:host([size="lg"]) {
|
|
65
|
+
--sc-table-fs: 1.2rem;
|
|
66
|
+
}
|
|
67
|
+
:host([size="xl"]) {
|
|
68
|
+
--sc-table-fs: 1.5rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
`,
|
|
72
|
+
];
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: String, reflect: true })
|
|
75
|
+
], Table.prototype, "size", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
property({ type: Boolean, reflect: true })
|
|
78
|
+
], Table.prototype, "striped", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
property({ type: Boolean, reflect: true })
|
|
81
|
+
], Table.prototype, "sticky", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
property({ type: Boolean, reflect: true })
|
|
84
|
+
], Table.prototype, "hover", void 0);
|
|
85
|
+
Table = __decorate([
|
|
86
|
+
customElement("sonic-table")
|
|
87
|
+
], Table);
|
|
88
|
+
export { Table };
|
|
@@ -7,7 +7,7 @@ export const coreVariables = css `
|
|
|
7
7
|
--sc-font-family-base: "Inter var", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
8
8
|
"Helvetica Neue", Arial, sans-serif;
|
|
9
9
|
--sc-font-weight-base: 400;
|
|
10
|
-
--sc-font-style-base:
|
|
10
|
+
--sc-font-style-base: normal;
|
|
11
11
|
|
|
12
12
|
--sc-headings-font-family: var(--sc-font-family-base);
|
|
13
13
|
--sc-headings-font-style: var(--sc-font-family-base);
|
|
@@ -12,8 +12,9 @@ const darkCss = css `
|
|
|
12
12
|
--sc-warning-content: var(--sc-dark-warning-content, #382800);
|
|
13
13
|
--sc-success-content: var(--sc-dark-success-content, #003320);
|
|
14
14
|
|
|
15
|
-
--sc-base: var(--sc-dark-base, #
|
|
16
|
-
--sc-base-
|
|
15
|
+
--sc-base: var(--sc-dark-base, #1d2634);
|
|
16
|
+
--sc-base-50: var(--sc-dark-base-50, #1f2937);
|
|
17
|
+
--sc-base-100: var(--sc-dark-base-100, #252C36);
|
|
17
18
|
--sc-base-200: var(--sc-dark-base-200, #2c3543);
|
|
18
19
|
--sc-base-300: var(--sc-dark-base-300, #38414e);
|
|
19
20
|
--sc-base-400: var(--sc-dark-base-400, #515964);
|
|
@@ -9,13 +9,13 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
9
9
|
let Tooltip = class Tooltip extends LitElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
|
-
this.
|
|
12
|
+
this.label = "";
|
|
13
13
|
this.disabled = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
let disabledClass = this.disabled || this.
|
|
16
|
+
let disabledClass = this.disabled || this.label == "" ? "disabled" : "";
|
|
17
17
|
return html `<div
|
|
18
|
-
data-tooltip-text="${this.
|
|
18
|
+
data-tooltip-text="${this.label.trim().replace(" ", " ")}"
|
|
19
19
|
class="tooltip ${disabledClass}"
|
|
20
20
|
>
|
|
21
21
|
<slot></slot>
|
|
@@ -58,7 +58,7 @@ Tooltip.styles = [
|
|
|
58
58
|
];
|
|
59
59
|
__decorate([
|
|
60
60
|
property({ type: String })
|
|
61
|
-
], Tooltip.prototype, "
|
|
61
|
+
], Tooltip.prototype, "label", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
property({ type: Boolean })
|
|
64
64
|
], Tooltip.prototype, "disabled", void 0);
|
|
@@ -2,6 +2,7 @@ import "./theme/theme";
|
|
|
2
2
|
import "./badge/badge";
|
|
3
3
|
import "./button/button";
|
|
4
4
|
import "./link/link";
|
|
5
|
+
import "./progress/progress";
|
|
5
6
|
import "./form/input/input";
|
|
6
7
|
import "./form/checkbox/checkbox";
|
|
7
8
|
import "./form/radio/radio";
|
|
@@ -25,3 +26,5 @@ import "./toast/toast";
|
|
|
25
26
|
import "./tooltip/tooltip";
|
|
26
27
|
import "./pop/pop";
|
|
27
28
|
import "./divider/divider";
|
|
29
|
+
import "./card/card";
|
|
30
|
+
import "./table/table";
|
package/core/components/ui/ui.js
CHANGED
|
@@ -4,6 +4,7 @@ import "./theme/theme";
|
|
|
4
4
|
import "./badge/badge";
|
|
5
5
|
import "./button/button";
|
|
6
6
|
import "./link/link";
|
|
7
|
+
import "./progress/progress";
|
|
7
8
|
// FORMS
|
|
8
9
|
import "./form/input/input";
|
|
9
10
|
import "./form/checkbox/checkbox";
|
|
@@ -32,3 +33,5 @@ import "./toast/toast";
|
|
|
32
33
|
import "./tooltip/tooltip";
|
|
33
34
|
import "./pop/pop";
|
|
34
35
|
import "./divider/divider";
|
|
36
|
+
import "./card/card";
|
|
37
|
+
import "./table/table";
|
package/core/mixins/Fetcher.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ declare const Fetcher: <T extends Constructor<SubscriberInterface>>(superClass:
|
|
|
31
31
|
* Cela est le cas pour le composant sonic-list qui ne fetch que si l'attribut fetch est renseigné
|
|
32
32
|
*/
|
|
33
33
|
isFetchEnabled: boolean;
|
|
34
|
+
_endPoint: string;
|
|
35
|
+
endPoint: string;
|
|
34
36
|
/**
|
|
35
37
|
*
|
|
36
38
|
* C'est ici que les données sont chargées via l'utilitaire API
|
|
@@ -47,26 +49,26 @@ declare const Fetcher: <T extends Constructor<SubscriberInterface>>(superClass:
|
|
|
47
49
|
firstUpdated(): void;
|
|
48
50
|
onIntersection(entries: IntersectionObserverEntry[]): void;
|
|
49
51
|
props: any;
|
|
52
|
+
isConnected: boolean;
|
|
50
53
|
getAncestorAttributeValue(attributeName: string): string;
|
|
51
54
|
hasAncestorAttribute(attributeName: string): boolean;
|
|
52
55
|
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
53
|
-
/**
|
|
54
|
-
* isFirstLoad vaut true jusqu'au premier chargement de données
|
|
55
|
-
*/
|
|
56
56
|
publisher: any;
|
|
57
|
-
dataProvider:
|
|
57
|
+
dataProvider: string | null;
|
|
58
58
|
noShadowDom: string | null;
|
|
59
59
|
debug: HTMLElement | null;
|
|
60
|
-
defferedDebug: boolean | null;
|
|
61
|
-
|
|
62
|
-
dispatchEvent(event: Event): void; /**
|
|
63
|
-
* IObserver est l'intersection observer qui permet de charger les données au scroll si l'attribut lazyload est renseigné
|
|
60
|
+
defferedDebug: boolean | null; /**
|
|
61
|
+
* isLoading vaut true pendant le chargement des données
|
|
64
62
|
*/
|
|
63
|
+
dispatchEvent(event: Event): void;
|
|
65
64
|
setAttribute(name: string, value: string): void;
|
|
66
65
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
67
66
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
68
67
|
removeAttribute(name: string): void;
|
|
69
|
-
initPublisher(): void;
|
|
68
|
+
initPublisher(): void; /**
|
|
69
|
+
* On peut désactiver le fetch programmatiquement via cette propriété.
|
|
70
|
+
* Cela est le cas pour le composant sonic-list qui ne fetch que si l'attribut fetch est renseigné
|
|
71
|
+
*/
|
|
70
72
|
getApiConfiguration(): import("@supersoniks/concorde/core/utils/api").APIConfiguration;
|
|
71
73
|
requestUpdate(): void;
|
|
72
74
|
getAttribute(name: string): string;
|