@tmorrow/cre8-wc 1.0.26 → 1.1.1
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/cdn/cre8-wc.esm.js +9082 -15604
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +1231 -8308
- package/cdn/cre8-wc.min.js.map +1 -1
- package/lib/cdn-entry.d.ts +20 -2
- package/lib/cdn-entry.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +18 -64
- package/lib/components/accordion/accordion.styles.d.ts.map +1 -1
- package/lib/components/accordion-item/accordion-item.js +35 -238
- package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -1
- package/lib/components/alert/alert.js +56 -221
- package/lib/components/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/badge/badge.js +33 -164
- package/lib/components/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/band/band.js +11 -261
- package/lib/components/band/band.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +14 -33
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +10 -45
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -1
- package/lib/components/button/button.js +14 -14
- package/lib/components/button-group/button-group.js +10 -261
- package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/card/card.js +17 -130
- package/lib/components/card/card.styles.d.ts.map +1 -1
- package/lib/components/chart/chart.js +137 -223
- package/lib/components/chart/chart.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.js +26 -59
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.js +38 -205
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
- package/lib/components/danger-button/danger-button.js +53 -582
- package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/date-picker.js +262 -499
- package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/divider/divider.js +20 -61
- package/lib/components/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/dropdown/dropdown.js +34 -107
- package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.js +18 -49
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -1
- package/lib/components/feature/feature.js +19 -81
- package/lib/components/feature/feature.styles.d.ts.map +1 -1
- package/lib/components/field/field.js +12 -146
- package/lib/components/field/field.styles.d.ts.map +1 -1
- package/lib/components/field-note/field-note.js +22 -66
- package/lib/components/field-note/field-note.styles.d.ts.map +1 -1
- package/lib/components/footer/footer.js +10 -29
- package/lib/components/footer/footer.styles.d.ts.map +1 -1
- package/lib/components/global-nav/global-nav.js +20 -43
- package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -1
- package/lib/components/global-nav-item/global-nav-item.js +26 -105
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -1
- package/lib/components/grid/grid.js +15 -337
- package/lib/components/grid/grid.styles.d.ts.map +1 -1
- package/lib/components/grid-item/grid-item.js +7 -15
- package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -1
- package/lib/components/header/header.js +17 -80
- package/lib/components/header/header.styles.d.ts.map +1 -1
- package/lib/components/heading/heading.js +16 -153
- package/lib/components/heading/heading.styles.d.ts.map +1 -1
- package/lib/components/hero/hero.js +17 -149
- package/lib/components/hero/hero.styles.d.ts.map +1 -1
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon.styles.d.ts.map +1 -1
- package/lib/components/inline-alert/inline-alert.js +53 -214
- package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
- package/lib/components/layout/layout.js +20 -53
- package/lib/components/layout/layout.styles.d.ts.map +1 -1
- package/lib/components/layout-container/layout-container.js +20 -43
- package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -1
- package/lib/components/layout-section/layout-section.js +20 -29
- package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -1
- package/lib/components/linelength-container/linelength-container.js +7 -15
- package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -1
- package/lib/components/link/link.js +33 -228
- package/lib/components/link/link.styles.d.ts.map +1 -1
- package/lib/components/link-list/link-list.js +23 -129
- package/lib/components/link-list/link-list.styles.d.ts.map +1 -1
- package/lib/components/link-list-item/link-list-item.js +19 -80
- package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -1
- package/lib/components/list/list.js +17 -67
- package/lib/components/list/list.styles.d.ts.map +1 -1
- package/lib/components/list-item/list-item.js +11 -16
- package/lib/components/list-item/list-item.styles.d.ts.map +1 -1
- package/lib/components/loading-spinner/loading-spinner.js +13 -157
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -1
- package/lib/components/logo/logo.js +20 -30
- package/lib/components/logo/logo.styles.d.ts.map +1 -1
- package/lib/components/main/main.js +18 -42
- package/lib/components/main/main.styles.d.ts.map +1 -1
- package/lib/components/modal/modal.js +50 -215
- package/lib/components/modal/modal.styles.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select.js +71 -532
- package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
- package/lib/components/nav-container/nav-container.js +5 -40
- package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
- package/lib/components/page-header/page-header.js +19 -54
- package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
- package/lib/components/pagination/pagination.js +102 -183
- package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/percent-bar/percent-bar.js +22 -50
- package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
- package/lib/components/popover/popover.js +51 -220
- package/lib/components/popover/popover.styles.d.ts.map +1 -1
- package/lib/components/primary-nav/primary-nav.js +17 -51
- package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
- package/lib/components/primary-nav-item/primary-nav-item.js +24 -191
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/progress-meter/progress-meter.js +23 -127
- package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
- package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.js +27 -118
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
- package/lib/components/radio-field/radio-field.js +28 -64
- package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
- package/lib/components/radio-field-item/radio-field-item.js +54 -189
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
- package/lib/components/remove-tag/remove-tag.js +36 -129
- package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
- package/lib/components/section/section.js +19 -50
- package/lib/components/section/section.styles.d.ts.map +1 -1
- package/lib/components/select/select.js +43 -416
- package/lib/components/select/select.styles.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.js +18 -442
- package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
- package/lib/components/select-tile-list/select-tile-list.js +24 -62
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
- package/lib/components/skeleton-loader/skeleton-loader.js +19 -73
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
- package/lib/components/split-button/split-button.js +21 -37
- package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
- package/lib/components/submenu/submenu.js +8 -18
- package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
- package/lib/components/submenu-item/submenu-item.js +21 -42
- package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
- package/lib/components/tab/tab.js +17 -100
- package/lib/components/tab/tab.styles.d.ts.map +1 -1
- package/lib/components/tab-panel/tab-panel.js +18 -52
- package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
- package/lib/components/table/table.js +21 -73
- package/lib/components/table/table.styles.d.ts.map +1 -1
- package/lib/components/table-body/table-body.js +12 -24
- package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
- package/lib/components/table-cell/table-cell.js +29 -69
- package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
- package/lib/components/table-header/table-header.js +8 -39
- package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
- package/lib/components/table-header-cell/table-header-cell.js +18 -37
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
- package/lib/components/table-object/table-object.js +13 -32
- package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
- package/lib/components/table-row/table-row.js +33 -139
- package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +24 -339
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/tag/tag.js +44 -159
- package/lib/components/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/tag-list/tag-list.js +20 -51
- package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav/tertiary-nav.js +21 -54
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +18 -68
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/text-link/text-link.js +20 -85
- package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage.js +17 -189
- package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
- package/lib/components/tooltip/tooltip.js +57 -248
- package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/utility-nav/utility-nav.js +23 -56
- package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
- package/lib/components/utility-nav-item/utility-nav-item.js +28 -83
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -1
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +2 -2
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -1
- package/lib/design-tokens/core/scss/theming/component.scss +5 -5
- package/lib/design-tokens/core/scss/theming/functions.scss +4 -0
- package/lib/design-tokens/core/scss/theming/spacing.scss +60 -60
- package/lib/design-tokens/core/scss/theming/variables.scss +11 -11
- package/lib/design-tokens/mixins/typography-usage.scss +277 -277
- package/lib/design-tokens/tokens_netflix.theme.d.ts.map +1 -1
- package/lib/{icon-DImqxDiW.js → icon-D22g8aWB.js} +35 -138
- package/lib/index.js +1 -1
- package/package.json +7 -6
|
@@ -1,94 +1,42 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
:host {
|
|
11
|
-
display: block;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 1) Data table containing columns and rows
|
|
16
|
-
*/
|
|
17
|
-
.cre8-c-table {
|
|
18
|
-
width: 100%;
|
|
19
|
-
border-collapse: collapse;
|
|
20
|
-
border-spacing: 0;
|
|
21
|
-
max-width: 100%;
|
|
22
|
-
background-color: var(--cre8-color-bg-transparent);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Custom properties passed to table-row for striped variant
|
|
27
|
-
*/
|
|
28
|
-
.cre8-c-table--striped {
|
|
29
|
-
--cre8-table-row-odd-background: var(--cre8-color-bg-subtle);
|
|
30
|
-
--cre8-table-row-odd-hover-background: var(--cre8-color-bg-subtle);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Custom properties passed to table-row for isHoverable property
|
|
35
|
-
*/
|
|
36
|
-
.cre8-c-table--hoverable {
|
|
37
|
-
--cre8-table-row-hover-background: var(--cre8-color-bg-default-hover);
|
|
38
|
-
--cre8-table-row-odd-hover-background: var(--cre8-color-bg-default-hover);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Custom properties passed to child Components for responsive behavior
|
|
43
|
-
*/
|
|
44
|
-
.cre8-c-table--responsive {
|
|
45
|
-
--cre8-table-cell-before-content: attr(data-header);
|
|
46
|
-
--cre8-table-header-display: none;
|
|
47
|
-
--cre8-table-row-display: block;
|
|
48
|
-
--cre8-table-cell-display: block;
|
|
49
|
-
--cre8-table-cell-border-bottom-width: 0;
|
|
50
|
-
--cre8-table-row-border-bottom: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-default);
|
|
51
|
-
|
|
52
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
53
|
-
--cre8-table-cell-border-bottom-width: var(--cre8-border-width-default);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
`;
|
|
57
|
-
var h = Object.defineProperty, a = (b, t, i, m) => {
|
|
58
|
-
for (var r = void 0, l = b.length - 1, d; l >= 0; l--)
|
|
59
|
-
(d = b[l]) && (r = d(t, i, r) || r);
|
|
60
|
-
return r && h(t, i, r), r;
|
|
1
|
+
import { css as p, html as l } from "lit";
|
|
2
|
+
import { property as a } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as h } from "../cre8-element.js";
|
|
4
|
+
const b = p`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:block}.cre8-c-table{width:100%;border-collapse:collapse;border-spacing:0;max-width:100%;background-color:var(--cre8-color-bg-transparent)}.cre8-c-table--striped{--cre8-table-row-odd-background: var(--cre8-color-bg-subtle);--cre8-table-row-odd-hover-background: var(--cre8-color-bg-subtle)}.cre8-c-table--hoverable{--cre8-table-row-hover-background: var(--cre8-color-bg-default-hover);--cre8-table-row-odd-hover-background: var(--cre8-color-bg-default-hover)}.cre8-c-table--responsive{--cre8-table-cell-before-content: attr(data-header);--cre8-table-header-display: none;--cre8-table-row-display: block;--cre8-table-cell-display: block;--cre8-table-cell-border-bottom-width: 0;--cre8-table-row-border-bottom: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-default)}@media all and (min-width: 768px){.cre8-c-table--responsive{--cre8-table-cell-border-bottom-width: var(--cre8-border-width-default)}}`;
|
|
5
|
+
var m = Object.defineProperty, o = (d, t, c, f) => {
|
|
6
|
+
for (var r = void 0, i = d.length - 1, n; i >= 0; i--)
|
|
7
|
+
(n = d[i]) && (r = n(t, c, r) || r);
|
|
8
|
+
return r && m(t, c, r), r;
|
|
61
9
|
};
|
|
62
|
-
const s = class s extends
|
|
10
|
+
const s = class s extends h {
|
|
63
11
|
render() {
|
|
64
12
|
const t = this.componentClassNames("cre8-c-table", {
|
|
65
13
|
"cre8-c-table--hoverable": this.isHoverable,
|
|
66
14
|
"cre8-c-table--striped": this.variant === "striped",
|
|
67
15
|
"cre8-c-table--responsive": this.behavior === "responsive"
|
|
68
16
|
});
|
|
69
|
-
return
|
|
17
|
+
return l`
|
|
70
18
|
<table role="table" class="${t}">
|
|
71
|
-
${this.caption ?
|
|
19
|
+
${this.caption ? l`<caption class="cre8-c-table__caption">
|
|
72
20
|
${this.caption}
|
|
73
21
|
</caption>` : ""}
|
|
74
|
-
${
|
|
22
|
+
${l`<slot></slot>`}
|
|
75
23
|
</table>
|
|
76
24
|
`;
|
|
77
25
|
}
|
|
78
26
|
};
|
|
79
|
-
s.styles = [
|
|
27
|
+
s.styles = [b];
|
|
80
28
|
let e = s;
|
|
81
|
-
|
|
82
|
-
|
|
29
|
+
o([
|
|
30
|
+
a()
|
|
83
31
|
], e.prototype, "caption");
|
|
84
|
-
|
|
85
|
-
|
|
32
|
+
o([
|
|
33
|
+
a()
|
|
86
34
|
], e.prototype, "behavior");
|
|
87
|
-
|
|
88
|
-
|
|
35
|
+
o([
|
|
36
|
+
a({ type: Boolean, reflect: !0 })
|
|
89
37
|
], e.prototype, "isHoverable");
|
|
90
|
-
|
|
91
|
-
|
|
38
|
+
o([
|
|
39
|
+
a()
|
|
92
40
|
], e.prototype, "variant");
|
|
93
41
|
customElements.get("cre8-table") === void 0 && customElements.define("cre8-table", e);
|
|
94
42
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../components/table/table.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../components/table/table.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA0sF,CAAC;AACvtF,eAAe,MAAM,CAAC"}
|
|
@@ -1,31 +1,19 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { Cre8Element as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
/*------------------------------------*\
|
|
6
|
-
#TABLE BODY
|
|
7
|
-
\*------------------------------------*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Set the host to display the contents within the table wrapper
|
|
11
|
-
*/
|
|
12
|
-
:host {
|
|
13
|
-
display: contents;
|
|
14
|
-
}
|
|
15
|
-
`, s = class s extends c {
|
|
1
|
+
import { css as i, html as r } from "lit";
|
|
2
|
+
import { Cre8Element as a } from "../cre8-element.js";
|
|
3
|
+
const d = i`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:contents}`, t = class t extends a {
|
|
16
4
|
render() {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
19
|
-
<tbody role="rowgroup" class="${
|
|
20
|
-
${
|
|
5
|
+
const s = this.componentClassNames("cre8-c-table__body", {});
|
|
6
|
+
return r`
|
|
7
|
+
<tbody role="rowgroup" class="${s}">
|
|
8
|
+
${r`<slot></slot>`}
|
|
21
9
|
</tbody>
|
|
22
10
|
`;
|
|
23
11
|
}
|
|
24
12
|
};
|
|
25
|
-
|
|
26
|
-
let
|
|
27
|
-
customElements.get("cre8-table-body") === void 0 && customElements.define("cre8-table-body",
|
|
13
|
+
t.styles = [d];
|
|
14
|
+
let e = t;
|
|
15
|
+
customElements.get("cre8-table-body") === void 0 && customElements.define("cre8-table-body", e);
|
|
28
16
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
e as Cre8TableBody,
|
|
18
|
+
e as default
|
|
31
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-body.styles.d.ts","sourceRoot":"","sources":["../../../components/table-body/table-body.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"table-body.styles.d.ts","sourceRoot":"","sources":["../../../components/table-body/table-body.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAuyD,CAAC;AACpzD,eAAe,MAAM,CAAC"}
|
|
@@ -1,83 +1,43 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { ifDefined as
|
|
3
|
-
import { property as
|
|
4
|
-
import { Cre8Element as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
\*------------------------------------*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Set the host to display the contents within the table row wrapper
|
|
14
|
-
*/
|
|
15
|
-
:host {
|
|
16
|
-
display: contents;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.cre8-c-table__cell {
|
|
20
|
-
display: var(--cre8-table-row-display, table-cell);
|
|
21
|
-
border-bottom-width: var(--cre8-table-cell-border-bottom-width, var(--cre8-border-width-default));
|
|
22
|
-
border-bottom-style: var(--cre8-border-style-default);
|
|
23
|
-
border-bottom-color: var(--cre8-table-cell-border-bottom-color, var(--cre8-color-border-default));
|
|
24
|
-
padding: var(--cre8-spacing-8);
|
|
25
|
-
text-align: left;
|
|
26
|
-
|
|
27
|
-
&:before {
|
|
28
|
-
@include cre8-typography-label-default;
|
|
29
|
-
display: block;
|
|
30
|
-
content: var(--cre8-table-cell-before-content, none);
|
|
31
|
-
|
|
32
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
33
|
-
content: none;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
38
|
-
display: table-cell;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.cre8-c-table__cell--bare {
|
|
43
|
-
border-bottom-color: transparent;
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
var h = Object.defineProperty, a = (s, r, n, y) => {
|
|
47
|
-
for (var e = void 0, o = s.length - 1, d; o >= 0; o--)
|
|
48
|
-
(d = s[o]) && (e = d(r, n, e) || e);
|
|
49
|
-
return e && h(r, n, e), e;
|
|
1
|
+
import { css as g, html as l } from "lit";
|
|
2
|
+
import { ifDefined as s } from "lit/directives/if-defined.js";
|
|
3
|
+
import { property as a } from "lit/decorators.js";
|
|
4
|
+
import { Cre8Element as c } from "../cre8-element.js";
|
|
5
|
+
const h = g`.cre8-u-content-knockout-brand{color:var(----cre8-color-content-knockout-brand)}.cre8-u-is-hidden{display:none !important;visibility:hidden !important}.cre8-u-is-vishidden{position:absolute !important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px, 1px, 1px, 1px)}@media all and (min-width: 23.4375rem){.cre8-u-hide-sm{display:none !important}}@media all and (min-width: 35rem){.cre8-u-hide-sm-2{display:none !important}}@media all and (min-width: 48rem){.cre8-u-hide-md{display:none !important}}@media all and (min-width: 60rem){.cre8-u-hide-lg{display:none !important}}@media all and (min-width: 75rem){.cre8-u-hide-xl{display:none !important}}@media all and (max-width: 23.4375rem){.cre8-u-show-sm{display:none !important}}@media all and (max-width: 35rem){.cre8-u-show-sm-2{display:none !important}}@media all and (max-width: 48rem){.cre8-u-show-md{display:none !important}}@media all and (max-width: 60rem){.cre8-u-show-lg{display:none !important}}@media all and (max-width: 75rem){.cre8-u-show-xl{display:none !important}}.cre8-u-margin-none{margin:0 !important}.cre8-u-margin-sm{margin:size(1) !important}.cre8-u-margin-md{margin:size(2) !important}.cre8-u-margin-lg{margin:size(3) !important}.cre8-u-margin-xl{margin:size(4) !important}.cre8-u-margin-xxl{margin:size(8) !important}.cre8-u-margin-top-none{margin-top:0 !important}.cre8-u-margin-top-sm{margin-top:size(1) !important}.cre8-u-margin-top-md{margin-top:size(2) !important}.cre8-u-margin-top-lg{margin-top:size(3) !important}.cre8-u-margin-top-xl{margin-top:size(4) !important}.cre8-u-margin-top-xxl{margin-top:size(8) !important}.cre8-u-margin-right-none{margin-right:0 !important}.cre8-u-margin-right-sm{margin-right:size(1) !important}.cre8-u-margin-right-md{margin-right:size(2) !important}.cre8-u-margin-right-lg{margin-right:size(3) !important}.cre8-u-margin-right-xl{margin-right:size(4) !important}.cre8-u-margin-right-xxl{margin-right:size(8) !important}.cre8-u-margin-bottom-none{margin-bottom:0 !important}.cre8-u-margin-bottom-sm{margin-bottom:size(1) !important}.cre8-u-margin-bottom-md{margin-bottom:size(2) !important}.cre8-u-margin-bottom-lg{margin-bottom:size(3) !important}.cre8-u-margin-bottom-xl{margin-bottom:size(4) !important}.cre8-u-margin-bottom-xxl{margin-bottom:size(8) !important}.cre8-u-margin-bottom-xl-xxl{margin-bottom:size(4) !important}@media all and (min-width: 768px){.cre8-u-margin-bottom-xl-xxl{margin-bottom:size(8) !important}}.cre8-u-margin-left-none{margin-left:0 !important}.cre8-u-margin-left-sm{margin-left:size(1) !important}.cre8-u-margin-left-md{margin-left:size(2) !important}.cre8-u-margin-left-lg{margin-left:size(3) !important}.cre8-u-margin-left-xl{margin-left:size(4) !important}.cre8-u-margin-left-xxl{margin-left:size(8) !important}.cre8-u-padding-none{padding:0 !important}.cre8-u-padding-sm{padding:size(1) !important}.cre8-u-padding-md{padding:size(2) !important}.cre8-u-padding-lg{padding:size(3) !important}.cre8-u-padding-xl{padding:size(4) !important}.cre8-u-padding-xxl{padding:size(8) !important}.cre8-u-padding-top-none{padding-top:0 !important}.cre8-u-padding-top-sm{padding-top:size(1) !important}.cre8-u-padding-top-md{padding-top:size(2) !important}.cre8-u-padding-top-lg{padding-top:size(3) !important}.cre8-u-padding-top-xl{padding-top:size(4) !important}.cre8-u-padding-top-xxl{padding-top:size(8) !important}.cre8-u-padding-right-none{padding-right:0 !important}.cre8-u-padding-right-sm{padding-right:size(1) !important}.cre8-u-padding-right-md{padding-right:size(2) !important}.cre8-u-padding-right-lg{padding-right:size(3) !important}.cre8-u-padding-right-xl{padding-right:size(4) !important}.cre8-u-padding-right-xxl{padding-right:size(8) !important}.cre8-u-padding-bottom-none{padding-bottom:0 !important}.cre8-u-padding-bottom-sm{padding-bottom:size(1) !important}.cre8-u-padding-bottom-md{padding-bottom:size(2) !important}.cre8-u-padding-bottom-lg{padding-bottom:size(3) !important}.cre8-u-padding-bottom-xl{padding-bottom:size(4) !important}.cre8-u-padding-bottom-xxl{padding-bottom:size(8) !important}.cre8-u-padding-left-none{padding-left:0 !important}.cre8-u-padding-left-sm{padding-left:size(1) !important}.cre8-u-padding-left-md{padding-left:size(2) !important}.cre8-u-padding-left-lg{padding-left:size(3) !important}.cre8-u-padding-left-xl{padding-left:size(4) !important}.cre8-u-padding-left-xxl{padding-left:size(8) !important}.cre8-u-display-flex{display:flex !important}.cre8-u-display-block{display:block !important}body{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);display:flex;flex-direction:column;padding:0;margin:0;color:var(--cre8-color-content-default);background:var(--background-default)}@media all and (min-width: 60rem){.page-container{background:linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0)}}.band__inner{margin-left:2rem;margin-right:2rem}@media all and (min-width: 60rem){.band__inner{margin-right:0}}img{max-width:100%;height:auto}*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:contents}.cre8-c-table__cell{display:var(--cre8-table-row-display, table-cell);border-bottom-width:var(--cre8-table-cell-border-bottom-width, var(--cre8-border-width-default));border-bottom-style:var(--cre8-border-style-default);border-bottom-color:var(--cre8-table-cell-border-bottom-color, var(--cre8-color-border-default));padding:var(--cre8-spacing-8);text-align:left}.cre8-c-table__cell:before{font-family:var(--cre8-typography-label-default-font-family);font-size:var(--cre8-typography-label-default-font-size);font-weight:var(--cre8-typography-label-default-font-weight);line-height:var(--cre8-typography-label-default-line-height);text-decoration:var(--cre8-typography-label-default-text-decoration);text-transform:var(--cre8-typography-label-default-text-transform);display:block;content:var(--cre8-table-cell-before-content, none)}@media all and (min-width: 768px){.cre8-c-table__cell:before{content:none}}@media all and (min-width: 768px){.cre8-c-table__cell{display:table-cell}}.cre8-c-table__cell--bare{border-bottom-color:rgba(0,0,0,0)}`;
|
|
6
|
+
var f = Object.defineProperty, n = (d, i, m, u) => {
|
|
7
|
+
for (var t = void 0, r = d.length - 1, p; r >= 0; r--)
|
|
8
|
+
(p = d[r]) && (t = p(i, m, t) || t);
|
|
9
|
+
return t && f(i, m, t), t;
|
|
50
10
|
};
|
|
51
|
-
const
|
|
11
|
+
const o = class o extends c {
|
|
52
12
|
render() {
|
|
53
|
-
const
|
|
13
|
+
const i = this.componentClassNames("cre8-c-table__cell", {
|
|
54
14
|
"cre8-c-table__cell--bare": this.variant === "bare"
|
|
55
15
|
});
|
|
56
|
-
return
|
|
16
|
+
return l`
|
|
57
17
|
<td
|
|
58
18
|
data-header="${this.dataHeader}"
|
|
59
19
|
role="cell"
|
|
60
|
-
colspan=${
|
|
61
|
-
class="${
|
|
20
|
+
colspan=${s(this.colspan)}
|
|
21
|
+
class="${i}"
|
|
62
22
|
>
|
|
63
|
-
${
|
|
23
|
+
${l`<slot></slot>`}
|
|
64
24
|
</td>
|
|
65
25
|
`;
|
|
66
26
|
}
|
|
67
27
|
};
|
|
68
|
-
|
|
69
|
-
let
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
],
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
],
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
],
|
|
79
|
-
customElements.get("cre8-table-cell") === void 0 && customElements.define("cre8-table-cell",
|
|
28
|
+
o.styles = [h];
|
|
29
|
+
let e = o;
|
|
30
|
+
n([
|
|
31
|
+
a({ type: Number })
|
|
32
|
+
], e.prototype, "colspan");
|
|
33
|
+
n([
|
|
34
|
+
a()
|
|
35
|
+
], e.prototype, "variant");
|
|
36
|
+
n([
|
|
37
|
+
a()
|
|
38
|
+
], e.prototype, "dataHeader");
|
|
39
|
+
customElements.get("cre8-table-cell") === void 0 && customElements.define("cre8-table-cell", e);
|
|
80
40
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
41
|
+
e as Cre8TableCell,
|
|
42
|
+
e as default
|
|
83
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-cell.styles.d.ts","sourceRoot":"","sources":["../../../components/table-cell/table-cell.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"table-cell.styles.d.ts","sourceRoot":"","sources":["../../../components/table-cell/table-cell.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAo9P,CAAC;AACj+P,eAAe,MAAM,CAAC"}
|
|
@@ -1,47 +1,16 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { Cre8Element as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
/*------------------------------------*\
|
|
6
|
-
#TABLE HEADER
|
|
7
|
-
\*------------------------------------*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Set the host to display the contents within the table wrapper
|
|
11
|
-
*/
|
|
12
|
-
:host {
|
|
13
|
-
display: contents;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Table header stlyes
|
|
18
|
-
* 1) Responsive table header behavior
|
|
19
|
-
* 2) Override row behavior and variants
|
|
20
|
-
*/
|
|
21
|
-
.cre8-c-table__header {
|
|
22
|
-
display: var(--cre8-table-header-display, table-header-group); /* 1 */
|
|
23
|
-
text-align: left;
|
|
24
|
-
--cre8-table-row-odd-background: none; /* 2 */
|
|
25
|
-
--cre8-table-row-odd-hover-background: none; /* 2 */
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Override responsive setting
|
|
29
|
-
*/
|
|
30
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
31
|
-
display: table-header-group;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
`, t = class t extends o {
|
|
1
|
+
import { css as i, html as r } from "lit";
|
|
2
|
+
import { Cre8Element as s } from "../cre8-element.js";
|
|
3
|
+
const d = i`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:contents}.cre8-c-table__header{display:var(--cre8-table-header-display, table-header-group);text-align:left;--cre8-table-row-odd-background: none;--cre8-table-row-odd-hover-background: none}@media all and (min-width: 768px){.cre8-c-table__header{display:table-header-group}}`, t = class t extends s {
|
|
35
4
|
render() {
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
<thead role="rowgroup" class="${
|
|
39
|
-
${
|
|
5
|
+
const a = this.componentClassNames("cre8-c-table__header", {});
|
|
6
|
+
return r`
|
|
7
|
+
<thead role="rowgroup" class="${a}">
|
|
8
|
+
${r`<slot></slot>`}
|
|
40
9
|
</thead>
|
|
41
10
|
`;
|
|
42
11
|
}
|
|
43
12
|
};
|
|
44
|
-
t.styles = [
|
|
13
|
+
t.styles = [d];
|
|
45
14
|
let e = t;
|
|
46
15
|
customElements.get("cre8-table-header") === void 0 && customElements.define("cre8-table-header", e);
|
|
47
16
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-header.styles.d.ts","sourceRoot":"","sources":["../../../components/table-header/table-header.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"table-header.styles.d.ts","sourceRoot":"","sources":["../../../components/table-header/table-header.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAgjE,CAAC;AAC7jE,eAAe,MAAM,CAAC"}
|
|
@@ -1,54 +1,35 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { ifDefined as
|
|
4
|
-
import { Cre8Element as
|
|
5
|
-
const f =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Set the host to display the contents within the table header > table row wrapper
|
|
13
|
-
*/
|
|
14
|
-
:host {
|
|
15
|
-
display: contents;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.cre8-c-table__header-cell {
|
|
19
|
-
@include cre8-typography-label-small;
|
|
20
|
-
|
|
21
|
-
border-bottom: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
|
|
22
|
-
padding: var(--cre8-spacing-8);
|
|
23
|
-
text-align: left;
|
|
24
|
-
}`;
|
|
25
|
-
var b = Object.defineProperty, p = (l, r, a, y) => {
|
|
26
|
-
for (var e = void 0, o = l.length - 1, c; o >= 0; o--)
|
|
27
|
-
(c = l[o]) && (e = c(r, a, e) || e);
|
|
28
|
-
return e && b(r, a, e), e;
|
|
1
|
+
import { css as m, html as d } from "lit";
|
|
2
|
+
import { property as h } from "lit/decorators.js";
|
|
3
|
+
import { ifDefined as n } from "lit/directives/if-defined.js";
|
|
4
|
+
import { Cre8Element as c } from "../cre8-element.js";
|
|
5
|
+
const f = m`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:contents}.cre8-c-table__header-cell{font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform);border-bottom:var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);padding:var(--cre8-spacing-8);text-align:left}`;
|
|
6
|
+
var x = Object.defineProperty, p = (s, r, l, g) => {
|
|
7
|
+
for (var e = void 0, a = s.length - 1, o; a >= 0; a--)
|
|
8
|
+
(o = s[a]) && (e = o(r, l, e) || e);
|
|
9
|
+
return e && x(r, l, e), e;
|
|
29
10
|
};
|
|
30
|
-
const
|
|
11
|
+
const i = class i extends c {
|
|
31
12
|
render() {
|
|
32
13
|
const r = this.componentClassNames("cre8-c-table__header-cell", {});
|
|
33
|
-
return
|
|
14
|
+
return d`
|
|
34
15
|
<th
|
|
35
16
|
role="columnheader"
|
|
36
|
-
colspan=${
|
|
17
|
+
colspan=${n(this.colspan)}
|
|
37
18
|
class="${r}"
|
|
38
|
-
style="width: ${
|
|
19
|
+
style="width: ${n(this.width)}"
|
|
39
20
|
>
|
|
40
|
-
${
|
|
21
|
+
${d`<slot></slot>`}
|
|
41
22
|
</th>
|
|
42
23
|
`;
|
|
43
24
|
}
|
|
44
25
|
};
|
|
45
|
-
|
|
46
|
-
let t =
|
|
26
|
+
i.styles = [f];
|
|
27
|
+
let t = i;
|
|
47
28
|
p([
|
|
48
|
-
|
|
29
|
+
h()
|
|
49
30
|
], t.prototype, "colspan");
|
|
50
31
|
p([
|
|
51
|
-
|
|
32
|
+
h()
|
|
52
33
|
], t.prototype, "width");
|
|
53
34
|
customElements.get("cre8-table-header-cell") === void 0 && customElements.define("cre8-table-header-cell", t);
|
|
54
35
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-header-cell.styles.d.ts","sourceRoot":"","sources":["../../../components/table-header-cell/table-header-cell.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"table-header-cell.styles.d.ts","sourceRoot":"","sources":["../../../components/table-header-cell/table-header-cell.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA40E,CAAC;AACz1E,eAAe,MAAM,CAAC"}
|
|
@@ -1,30 +1,11 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { Cre8Element as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
/*------------------------------------*\
|
|
6
|
-
#TABLE OBJECT
|
|
7
|
-
\*------------------------------------*/
|
|
8
|
-
|
|
9
|
-
:host {
|
|
10
|
-
display: block;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.cre8-c-table-object__header {
|
|
14
|
-
padding-top: var(--cre8-spacing-8);
|
|
15
|
-
padding-bottom: var(--cre8-spacing-8);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.cre8-c-table-object__footer {
|
|
19
|
-
padding-top: var(--cre8-spacing-8);
|
|
20
|
-
padding-bottom: var(--cre8-spacing-8);
|
|
21
|
-
}
|
|
22
|
-
`, o = class o extends a {
|
|
1
|
+
import { css as i, html as e } from "lit";
|
|
2
|
+
import { Cre8Element as s } from "../cre8-element.js";
|
|
3
|
+
const d = i`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:block}.cre8-c-table-object__header{padding-top:var(--cre8-spacing-8);padding-bottom:var(--cre8-spacing-8)}.cre8-c-table-object__footer{padding-top:var(--cre8-spacing-8);padding-bottom:var(--cre8-spacing-8)}`, r = class r extends s {
|
|
23
4
|
render() {
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
<div class="${
|
|
27
|
-
${this.slotNotEmpty("header") &&
|
|
5
|
+
const a = this.componentClassNames("cre8-c-table-object", {});
|
|
6
|
+
return e`
|
|
7
|
+
<div class="${a}">
|
|
8
|
+
${this.slotNotEmpty("header") && e`
|
|
28
9
|
<div class="cre8-c-table-object__header" part="header">
|
|
29
10
|
<slot name="header"></slot>
|
|
30
11
|
</div>
|
|
@@ -32,7 +13,7 @@ const r = c`@import '../../design-tokens/core/scss/theming/component';
|
|
|
32
13
|
<div class="cre8-c-table-object__body">
|
|
33
14
|
<slot></slot>
|
|
34
15
|
</div>
|
|
35
|
-
${this.slotNotEmpty("footer") &&
|
|
16
|
+
${this.slotNotEmpty("footer") && e`
|
|
36
17
|
<div class="cre8-c-table-object__footer">
|
|
37
18
|
<slot name="footer"></slot>
|
|
38
19
|
</div>
|
|
@@ -41,10 +22,10 @@ const r = c`@import '../../design-tokens/core/scss/theming/component';
|
|
|
41
22
|
`;
|
|
42
23
|
}
|
|
43
24
|
};
|
|
44
|
-
|
|
45
|
-
let
|
|
46
|
-
customElements.get("cre8-table-object") === void 0 && customElements.define("cre8-table-object",
|
|
25
|
+
r.styles = [d];
|
|
26
|
+
let t = r;
|
|
27
|
+
customElements.get("cre8-table-object") === void 0 && customElements.define("cre8-table-object", t);
|
|
47
28
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
t as Cre8TableObject,
|
|
30
|
+
t as default
|
|
50
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-object.styles.d.ts","sourceRoot":"","sources":["../../../components/table-object/table-object.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"table-object.styles.d.ts","sourceRoot":"","sources":["../../../components/table-object/table-object.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA4+D,CAAC;AACz/D,eAAe,MAAM,CAAC"}
|