@abgov/react-components 4.0.0-alpha.149 → 4.0.0-alpha.150
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/index.d.ts +1 -0
- package/lib/table/table-sort-header.d.ts +20 -0
- package/package.json +1 -1
- package/react-components.esm.js +53 -62
- package/react-components.umd.js +53 -61
package/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export * from "./lib/skeleton/skeleton";
|
|
|
43
43
|
export * from "./lib/spacer/spacer";
|
|
44
44
|
export * from "./lib/spinner/spinner";
|
|
45
45
|
export * from "./lib/table/table";
|
|
46
|
+
export * from "./lib/table/table-sort-header";
|
|
46
47
|
export * from "./lib/textarea/textarea";
|
|
47
48
|
export * from "./lib/two-column-layout/two-column-layout";
|
|
48
49
|
export * from "./lib/three-column-layout/three-column-layout";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
export declare type Direction = "asc" | "desc" | "none";
|
|
3
|
+
interface WCProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
direction?: Direction;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-table-sort-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
name?: string;
|
|
16
|
+
direction?: Direction;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const GoATableSortHeader: FC<Props>;
|
|
20
|
+
export default GoATableSortHeader;
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -10682,7 +10682,7 @@ function create_if_block$d(ctx) {
|
|
|
10682
10682
|
16) show_if = null;
|
|
10683
10683
|
if (show_if == null) show_if = !!Object.keys(
|
|
10684
10684
|
/*_iconOverrides*/
|
|
10685
|
-
ctx[
|
|
10685
|
+
ctx[12]).includes(
|
|
10686
10686
|
/*type*/
|
|
10687
10687
|
ctx[4]);
|
|
10688
10688
|
if (show_if) return create_if_block_1$7;
|
|
@@ -10722,7 +10722,7 @@ function create_if_block$d(ctx) {
|
|
|
10722
10722
|
}
|
|
10723
10723
|
|
|
10724
10724
|
};
|
|
10725
|
-
} // (
|
|
10725
|
+
} // (57:4) {:else}
|
|
10726
10726
|
|
|
10727
10727
|
|
|
10728
10728
|
function create_else_block$5(ctx) {
|
|
@@ -10771,14 +10771,14 @@ function create_else_block$5(ctx) {
|
|
|
10771
10771
|
}
|
|
10772
10772
|
|
|
10773
10773
|
};
|
|
10774
|
-
} // (
|
|
10774
|
+
} // (53:4) {#if Object.keys(_iconOverrides).includes(type)}
|
|
10775
10775
|
|
|
10776
10776
|
|
|
10777
10777
|
function create_if_block_1$7(ctx) {
|
|
10778
10778
|
let div;
|
|
10779
10779
|
let raw_value =
|
|
10780
10780
|
/*_iconOverrides*/
|
|
10781
|
-
ctx[
|
|
10781
|
+
ctx[12][
|
|
10782
10782
|
/*type*/
|
|
10783
10783
|
ctx[4]] + "";
|
|
10784
10784
|
return {
|
|
@@ -10797,7 +10797,7 @@ function create_if_block_1$7(ctx) {
|
|
|
10797
10797
|
/*type*/
|
|
10798
10798
|
16 && raw_value !== (raw_value =
|
|
10799
10799
|
/*_iconOverrides*/
|
|
10800
|
-
ctx[
|
|
10800
|
+
ctx[12][
|
|
10801
10801
|
/*type*/
|
|
10802
10802
|
ctx[4]] + "")) div.innerHTML = raw_value;
|
|
10803
10803
|
},
|
|
@@ -10826,10 +10826,10 @@ function create_fragment$o(ctx) {
|
|
|
10826
10826
|
ctx[5]}`);
|
|
10827
10827
|
attr(div, "data-testid",
|
|
10828
10828
|
/*testid*/
|
|
10829
|
-
ctx[
|
|
10829
|
+
ctx[10]);
|
|
10830
10830
|
attr(div, "title",
|
|
10831
10831
|
/*title*/
|
|
10832
|
-
ctx[
|
|
10832
|
+
ctx[9]);
|
|
10833
10833
|
attr(div, "style", div_style_value = `
|
|
10834
10834
|
${calculateMargin(
|
|
10835
10835
|
/*mt*/
|
|
@@ -10842,17 +10842,14 @@ function create_fragment$o(ctx) {
|
|
|
10842
10842
|
ctx[3])}
|
|
10843
10843
|
${cssVar("--fill-color",
|
|
10844
10844
|
/*fillcolor*/
|
|
10845
|
-
ctx[8])};
|
|
10846
|
-
${cssVar("--hover-color",
|
|
10847
|
-
/*hovercolor*/
|
|
10848
10845
|
ctx[7])};
|
|
10849
10846
|
${cssVar("--opacity",
|
|
10850
10847
|
/*opacity*/
|
|
10851
|
-
ctx[
|
|
10848
|
+
ctx[8])};
|
|
10852
10849
|
`);
|
|
10853
10850
|
toggle_class(div, "inverted",
|
|
10854
10851
|
/*isInverted*/
|
|
10855
|
-
ctx[
|
|
10852
|
+
ctx[11]);
|
|
10856
10853
|
},
|
|
10857
10854
|
|
|
10858
10855
|
m(target, anchor) {
|
|
@@ -10886,23 +10883,23 @@ function create_fragment$o(ctx) {
|
|
|
10886
10883
|
|
|
10887
10884
|
if (dirty &
|
|
10888
10885
|
/*testid*/
|
|
10889
|
-
|
|
10886
|
+
1024) {
|
|
10890
10887
|
attr(div, "data-testid",
|
|
10891
10888
|
/*testid*/
|
|
10892
|
-
ctx[
|
|
10889
|
+
ctx[10]);
|
|
10893
10890
|
}
|
|
10894
10891
|
|
|
10895
10892
|
if (dirty &
|
|
10896
10893
|
/*title*/
|
|
10897
|
-
|
|
10894
|
+
512) {
|
|
10898
10895
|
attr(div, "title",
|
|
10899
10896
|
/*title*/
|
|
10900
|
-
ctx[
|
|
10897
|
+
ctx[9]);
|
|
10901
10898
|
}
|
|
10902
10899
|
|
|
10903
10900
|
if (dirty &
|
|
10904
|
-
/*mt, mr, mb, ml, fillcolor,
|
|
10905
|
-
|
|
10901
|
+
/*mt, mr, mb, ml, fillcolor, opacity*/
|
|
10902
|
+
399 && div_style_value !== (div_style_value = `
|
|
10906
10903
|
${calculateMargin(
|
|
10907
10904
|
/*mt*/
|
|
10908
10905
|
ctx[0],
|
|
@@ -10914,23 +10911,20 @@ function create_fragment$o(ctx) {
|
|
|
10914
10911
|
ctx[3])}
|
|
10915
10912
|
${cssVar("--fill-color",
|
|
10916
10913
|
/*fillcolor*/
|
|
10917
|
-
ctx[8])};
|
|
10918
|
-
${cssVar("--hover-color",
|
|
10919
|
-
/*hovercolor*/
|
|
10920
10914
|
ctx[7])};
|
|
10921
10915
|
${cssVar("--opacity",
|
|
10922
10916
|
/*opacity*/
|
|
10923
|
-
ctx[
|
|
10917
|
+
ctx[8])};
|
|
10924
10918
|
`)) {
|
|
10925
10919
|
attr(div, "style", div_style_value);
|
|
10926
10920
|
}
|
|
10927
10921
|
|
|
10928
10922
|
if (dirty &
|
|
10929
10923
|
/*size, isInverted*/
|
|
10930
|
-
|
|
10924
|
+
2080) {
|
|
10931
10925
|
toggle_class(div, "inverted",
|
|
10932
10926
|
/*isInverted*/
|
|
10933
|
-
ctx[
|
|
10927
|
+
ctx[11]);
|
|
10934
10928
|
}
|
|
10935
10929
|
},
|
|
10936
10930
|
|
|
@@ -10971,9 +10965,6 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
10971
10965
|
let {
|
|
10972
10966
|
inverted = "false"
|
|
10973
10967
|
} = $$props;
|
|
10974
|
-
let {
|
|
10975
|
-
hovercolor = ""
|
|
10976
|
-
} = $$props;
|
|
10977
10968
|
let {
|
|
10978
10969
|
fillcolor = ""
|
|
10979
10970
|
} = $$props;
|
|
@@ -11011,29 +11002,28 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
11011
11002
|
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
|
11012
11003
|
if ('size' in $$props) $$invalidate(5, size = $$props.size);
|
|
11013
11004
|
if ('theme' in $$props) $$invalidate(6, theme = $$props.theme);
|
|
11014
|
-
if ('inverted' in $$props) $$invalidate(
|
|
11015
|
-
if ('
|
|
11016
|
-
if ('
|
|
11017
|
-
if ('
|
|
11018
|
-
if ('
|
|
11019
|
-
if ('testid' in $$props) $$invalidate(11, testid = $$props.testid);
|
|
11005
|
+
if ('inverted' in $$props) $$invalidate(13, inverted = $$props.inverted);
|
|
11006
|
+
if ('fillcolor' in $$props) $$invalidate(7, fillcolor = $$props.fillcolor);
|
|
11007
|
+
if ('opacity' in $$props) $$invalidate(8, opacity = $$props.opacity);
|
|
11008
|
+
if ('title' in $$props) $$invalidate(9, title = $$props.title);
|
|
11009
|
+
if ('testid' in $$props) $$invalidate(10, testid = $$props.testid);
|
|
11020
11010
|
};
|
|
11021
11011
|
|
|
11022
11012
|
$$self.$$.update = () => {
|
|
11023
11013
|
if ($$self.$$.dirty &
|
|
11024
11014
|
/*inverted*/
|
|
11025
|
-
|
|
11026
|
-
$$invalidate(
|
|
11015
|
+
8192) {
|
|
11016
|
+
$$invalidate(11, isInverted = toBoolean(inverted));
|
|
11027
11017
|
}
|
|
11028
11018
|
};
|
|
11029
11019
|
|
|
11030
|
-
return [mt, mr, mb, ml, type, size, theme,
|
|
11020
|
+
return [mt, mr, mb, ml, type, size, theme, fillcolor, opacity, title, testid, isInverted, _iconOverrides, inverted];
|
|
11031
11021
|
}
|
|
11032
11022
|
|
|
11033
11023
|
class Icon extends SvelteElement {
|
|
11034
11024
|
constructor(options) {
|
|
11035
11025
|
super();
|
|
11036
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon
|
|
11026
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon--small{width:1.25rem;height:1.25rem}.goa-icon--medium{width:1.5rem;height:1.5rem}.goa-icon--large{width:2rem;height:2rem}.goa-icon--xlarge{width:2.5rem;height:2.5rem}.goa-icon:has(.icon-override){height:fit-content}.icon-override{display:flex;flex-direction:column;align-items:center}.inverted *{color:#fff;fill:#fff}</style>`;
|
|
11037
11027
|
init(this, {
|
|
11038
11028
|
target: this.shadowRoot,
|
|
11039
11029
|
props: attribute_to_object(this.attributes),
|
|
@@ -11046,12 +11036,11 @@ class Icon extends SvelteElement {
|
|
|
11046
11036
|
type: 4,
|
|
11047
11037
|
size: 5,
|
|
11048
11038
|
theme: 6,
|
|
11049
|
-
inverted:
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
testid: 11
|
|
11039
|
+
inverted: 13,
|
|
11040
|
+
fillcolor: 7,
|
|
11041
|
+
opacity: 8,
|
|
11042
|
+
title: 9,
|
|
11043
|
+
testid: 10
|
|
11055
11044
|
}, null);
|
|
11056
11045
|
|
|
11057
11046
|
if (options) {
|
|
@@ -11067,7 +11056,7 @@ class Icon extends SvelteElement {
|
|
|
11067
11056
|
}
|
|
11068
11057
|
|
|
11069
11058
|
static get observedAttributes() {
|
|
11070
|
-
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "
|
|
11059
|
+
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "opacity", "title", "testid"];
|
|
11071
11060
|
}
|
|
11072
11061
|
|
|
11073
11062
|
get mt() {
|
|
@@ -11148,7 +11137,7 @@ class Icon extends SvelteElement {
|
|
|
11148
11137
|
}
|
|
11149
11138
|
|
|
11150
11139
|
get inverted() {
|
|
11151
|
-
return this.$$.ctx[
|
|
11140
|
+
return this.$$.ctx[13];
|
|
11152
11141
|
}
|
|
11153
11142
|
|
|
11154
11143
|
set inverted(inverted) {
|
|
@@ -11158,19 +11147,8 @@ class Icon extends SvelteElement {
|
|
|
11158
11147
|
flush();
|
|
11159
11148
|
}
|
|
11160
11149
|
|
|
11161
|
-
get hovercolor() {
|
|
11162
|
-
return this.$$.ctx[7];
|
|
11163
|
-
}
|
|
11164
|
-
|
|
11165
|
-
set hovercolor(hovercolor) {
|
|
11166
|
-
this.$$set({
|
|
11167
|
-
hovercolor
|
|
11168
|
-
});
|
|
11169
|
-
flush();
|
|
11170
|
-
}
|
|
11171
|
-
|
|
11172
11150
|
get fillcolor() {
|
|
11173
|
-
return this.$$.ctx[
|
|
11151
|
+
return this.$$.ctx[7];
|
|
11174
11152
|
}
|
|
11175
11153
|
|
|
11176
11154
|
set fillcolor(fillcolor) {
|
|
@@ -11181,7 +11159,7 @@ class Icon extends SvelteElement {
|
|
|
11181
11159
|
}
|
|
11182
11160
|
|
|
11183
11161
|
get opacity() {
|
|
11184
|
-
return this.$$.ctx[
|
|
11162
|
+
return this.$$.ctx[8];
|
|
11185
11163
|
}
|
|
11186
11164
|
|
|
11187
11165
|
set opacity(opacity) {
|
|
@@ -11192,7 +11170,7 @@ class Icon extends SvelteElement {
|
|
|
11192
11170
|
}
|
|
11193
11171
|
|
|
11194
11172
|
get title() {
|
|
11195
|
-
return this.$$.ctx[
|
|
11173
|
+
return this.$$.ctx[9];
|
|
11196
11174
|
}
|
|
11197
11175
|
|
|
11198
11176
|
set title(title) {
|
|
@@ -11203,7 +11181,7 @@ class Icon extends SvelteElement {
|
|
|
11203
11181
|
}
|
|
11204
11182
|
|
|
11205
11183
|
get testid() {
|
|
11206
|
-
return this.$$.ctx[
|
|
11184
|
+
return this.$$.ctx[10];
|
|
11207
11185
|
}
|
|
11208
11186
|
|
|
11209
11187
|
set testid(testid) {
|
|
@@ -13578,7 +13556,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
13578
13556
|
class Modal extends SvelteElement {
|
|
13579
13557
|
constructor(options) {
|
|
13580
13558
|
super();
|
|
13581
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}:host *{box-sizing:border-box}.modal{font-family:var(--goa-font-family-sans);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:
|
|
13559
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}:host *{box-sizing:border-box}.modal{font-family:var(--goa-font-family-sans);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:var(--goa-space-xl)}.content header{display:flex;justify-content:space-between}.content header.has-content{margin-bottom:var(--goa-space-l)}@media(max-width: 640px){.content{margin:var(--goa-space-l)}.content header.has-content{margin-bottom:var(--goa-space-m)}}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;box-shadow:var(--goa-shadow-modal);border-radius:4px;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch)}}.modal-actions ::slotted(*){padding:var(--goa-space-xl) 0 0}@media(max-width: 640px){.modal-actions ::slotted(*){padding:var(--goa-space-l) 0 0}}.modal-content{margin:0 -2rem;line-height:1.75rem}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-title{font:var(--goa-typography-heading-m)}.modal-close{padding-left:var(--goa-space-m);margin-top:var(--goa-space-2xs)}.scroll-top{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-middle{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1), inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-bottom{box-shadow:inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}</style>`;
|
|
13582
13560
|
init(this, {
|
|
13583
13561
|
target: this.shadowRoot,
|
|
13584
13562
|
props: attribute_to_object(this.attributes),
|
|
@@ -23294,6 +23272,19 @@ function GoATable(props) {
|
|
|
23294
23272
|
}), void 0);
|
|
23295
23273
|
}
|
|
23296
23274
|
|
|
23275
|
+
const GoATableSortHeader = ({
|
|
23276
|
+
name,
|
|
23277
|
+
direction: _direction = "none",
|
|
23278
|
+
children
|
|
23279
|
+
}) => {
|
|
23280
|
+
return jsx("goa-table-sort-header", Object.assign({
|
|
23281
|
+
name: name,
|
|
23282
|
+
direction: _direction
|
|
23283
|
+
}, {
|
|
23284
|
+
children: children
|
|
23285
|
+
}), void 0);
|
|
23286
|
+
};
|
|
23287
|
+
|
|
23297
23288
|
const GoATextArea = ({
|
|
23298
23289
|
name,
|
|
23299
23290
|
value,
|
|
@@ -23400,4 +23391,4 @@ function GoAThreeColumnLayout(props) {
|
|
|
23400
23391
|
}), void 0);
|
|
23401
23392
|
}
|
|
23402
23393
|
|
|
23403
|
-
export { GoAAccordion, GoAAppFooter, GoAAppFooterMetaSection, GoAAppFooterNavSection, GoAAppHeader, GoABadge, GoABlock, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADetails, GoADivider, GoADropdown, GoADropdownItem, GoADropdownOption, GoAEmergencyBadge, GoAFileUploadCard, GoAFileUploadInput, GoAFormItem, GoAFormStep, GoAFormStepper, GoAGrid, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAImportantBadge, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAOneColumnLayout, GoAPageBlock, GoAPages, GoAPagination, GoAPopover, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpacer, GoASpinner, GoASuccessBadge, GoATable, GoATextArea, GoAThreeColumnLayout, GoATwoColumnLayout };
|
|
23394
|
+
export { GoAAccordion, GoAAppFooter, GoAAppFooterMetaSection, GoAAppFooterNavSection, GoAAppHeader, GoABadge, GoABlock, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADetails, GoADivider, GoADropdown, GoADropdownItem, GoADropdownOption, GoAEmergencyBadge, GoAFileUploadCard, GoAFileUploadInput, GoAFormItem, GoAFormStep, GoAFormStepper, GoAGrid, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAImportantBadge, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAOneColumnLayout, GoAPageBlock, GoAPages, GoAPagination, GoAPopover, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpacer, GoASpinner, GoASuccessBadge, GoATable, GoATableSortHeader, GoATextArea, GoAThreeColumnLayout, GoATwoColumnLayout };
|
package/react-components.umd.js
CHANGED
|
@@ -10728,7 +10728,7 @@
|
|
|
10728
10728
|
16) show_if = null;
|
|
10729
10729
|
if (show_if == null) show_if = !!Object.keys(
|
|
10730
10730
|
/*_iconOverrides*/
|
|
10731
|
-
ctx[
|
|
10731
|
+
ctx[12]).includes(
|
|
10732
10732
|
/*type*/
|
|
10733
10733
|
ctx[4]);
|
|
10734
10734
|
if (show_if) return create_if_block_1$7;
|
|
@@ -10768,7 +10768,7 @@
|
|
|
10768
10768
|
}
|
|
10769
10769
|
|
|
10770
10770
|
};
|
|
10771
|
-
} // (
|
|
10771
|
+
} // (57:4) {:else}
|
|
10772
10772
|
|
|
10773
10773
|
|
|
10774
10774
|
function create_else_block$5(ctx) {
|
|
@@ -10817,14 +10817,14 @@
|
|
|
10817
10817
|
}
|
|
10818
10818
|
|
|
10819
10819
|
};
|
|
10820
|
-
} // (
|
|
10820
|
+
} // (53:4) {#if Object.keys(_iconOverrides).includes(type)}
|
|
10821
10821
|
|
|
10822
10822
|
|
|
10823
10823
|
function create_if_block_1$7(ctx) {
|
|
10824
10824
|
let div;
|
|
10825
10825
|
let raw_value =
|
|
10826
10826
|
/*_iconOverrides*/
|
|
10827
|
-
ctx[
|
|
10827
|
+
ctx[12][
|
|
10828
10828
|
/*type*/
|
|
10829
10829
|
ctx[4]] + "";
|
|
10830
10830
|
return {
|
|
@@ -10843,7 +10843,7 @@
|
|
|
10843
10843
|
/*type*/
|
|
10844
10844
|
16 && raw_value !== (raw_value =
|
|
10845
10845
|
/*_iconOverrides*/
|
|
10846
|
-
ctx[
|
|
10846
|
+
ctx[12][
|
|
10847
10847
|
/*type*/
|
|
10848
10848
|
ctx[4]] + "")) div.innerHTML = raw_value;
|
|
10849
10849
|
},
|
|
@@ -10872,10 +10872,10 @@
|
|
|
10872
10872
|
ctx[5]}`);
|
|
10873
10873
|
attr(div, "data-testid",
|
|
10874
10874
|
/*testid*/
|
|
10875
|
-
ctx[
|
|
10875
|
+
ctx[10]);
|
|
10876
10876
|
attr(div, "title",
|
|
10877
10877
|
/*title*/
|
|
10878
|
-
ctx[
|
|
10878
|
+
ctx[9]);
|
|
10879
10879
|
attr(div, "style", div_style_value = `
|
|
10880
10880
|
${calculateMargin(
|
|
10881
10881
|
/*mt*/
|
|
@@ -10888,17 +10888,14 @@
|
|
|
10888
10888
|
ctx[3])}
|
|
10889
10889
|
${cssVar("--fill-color",
|
|
10890
10890
|
/*fillcolor*/
|
|
10891
|
-
ctx[8])};
|
|
10892
|
-
${cssVar("--hover-color",
|
|
10893
|
-
/*hovercolor*/
|
|
10894
10891
|
ctx[7])};
|
|
10895
10892
|
${cssVar("--opacity",
|
|
10896
10893
|
/*opacity*/
|
|
10897
|
-
ctx[
|
|
10894
|
+
ctx[8])};
|
|
10898
10895
|
`);
|
|
10899
10896
|
toggle_class(div, "inverted",
|
|
10900
10897
|
/*isInverted*/
|
|
10901
|
-
ctx[
|
|
10898
|
+
ctx[11]);
|
|
10902
10899
|
},
|
|
10903
10900
|
|
|
10904
10901
|
m(target, anchor) {
|
|
@@ -10932,23 +10929,23 @@
|
|
|
10932
10929
|
|
|
10933
10930
|
if (dirty &
|
|
10934
10931
|
/*testid*/
|
|
10935
|
-
|
|
10932
|
+
1024) {
|
|
10936
10933
|
attr(div, "data-testid",
|
|
10937
10934
|
/*testid*/
|
|
10938
|
-
ctx[
|
|
10935
|
+
ctx[10]);
|
|
10939
10936
|
}
|
|
10940
10937
|
|
|
10941
10938
|
if (dirty &
|
|
10942
10939
|
/*title*/
|
|
10943
|
-
|
|
10940
|
+
512) {
|
|
10944
10941
|
attr(div, "title",
|
|
10945
10942
|
/*title*/
|
|
10946
|
-
ctx[
|
|
10943
|
+
ctx[9]);
|
|
10947
10944
|
}
|
|
10948
10945
|
|
|
10949
10946
|
if (dirty &
|
|
10950
|
-
/*mt, mr, mb, ml, fillcolor,
|
|
10951
|
-
|
|
10947
|
+
/*mt, mr, mb, ml, fillcolor, opacity*/
|
|
10948
|
+
399 && div_style_value !== (div_style_value = `
|
|
10952
10949
|
${calculateMargin(
|
|
10953
10950
|
/*mt*/
|
|
10954
10951
|
ctx[0],
|
|
@@ -10960,23 +10957,20 @@
|
|
|
10960
10957
|
ctx[3])}
|
|
10961
10958
|
${cssVar("--fill-color",
|
|
10962
10959
|
/*fillcolor*/
|
|
10963
|
-
ctx[8])};
|
|
10964
|
-
${cssVar("--hover-color",
|
|
10965
|
-
/*hovercolor*/
|
|
10966
10960
|
ctx[7])};
|
|
10967
10961
|
${cssVar("--opacity",
|
|
10968
10962
|
/*opacity*/
|
|
10969
|
-
ctx[
|
|
10963
|
+
ctx[8])};
|
|
10970
10964
|
`)) {
|
|
10971
10965
|
attr(div, "style", div_style_value);
|
|
10972
10966
|
}
|
|
10973
10967
|
|
|
10974
10968
|
if (dirty &
|
|
10975
10969
|
/*size, isInverted*/
|
|
10976
|
-
|
|
10970
|
+
2080) {
|
|
10977
10971
|
toggle_class(div, "inverted",
|
|
10978
10972
|
/*isInverted*/
|
|
10979
|
-
ctx[
|
|
10973
|
+
ctx[11]);
|
|
10980
10974
|
}
|
|
10981
10975
|
},
|
|
10982
10976
|
|
|
@@ -11017,9 +11011,6 @@
|
|
|
11017
11011
|
let {
|
|
11018
11012
|
inverted = "false"
|
|
11019
11013
|
} = $$props;
|
|
11020
|
-
let {
|
|
11021
|
-
hovercolor = ""
|
|
11022
|
-
} = $$props;
|
|
11023
11014
|
let {
|
|
11024
11015
|
fillcolor = ""
|
|
11025
11016
|
} = $$props;
|
|
@@ -11057,29 +11048,28 @@
|
|
|
11057
11048
|
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
|
11058
11049
|
if ('size' in $$props) $$invalidate(5, size = $$props.size);
|
|
11059
11050
|
if ('theme' in $$props) $$invalidate(6, theme = $$props.theme);
|
|
11060
|
-
if ('inverted' in $$props) $$invalidate(
|
|
11061
|
-
if ('
|
|
11062
|
-
if ('
|
|
11063
|
-
if ('
|
|
11064
|
-
if ('
|
|
11065
|
-
if ('testid' in $$props) $$invalidate(11, testid = $$props.testid);
|
|
11051
|
+
if ('inverted' in $$props) $$invalidate(13, inverted = $$props.inverted);
|
|
11052
|
+
if ('fillcolor' in $$props) $$invalidate(7, fillcolor = $$props.fillcolor);
|
|
11053
|
+
if ('opacity' in $$props) $$invalidate(8, opacity = $$props.opacity);
|
|
11054
|
+
if ('title' in $$props) $$invalidate(9, title = $$props.title);
|
|
11055
|
+
if ('testid' in $$props) $$invalidate(10, testid = $$props.testid);
|
|
11066
11056
|
};
|
|
11067
11057
|
|
|
11068
11058
|
$$self.$$.update = () => {
|
|
11069
11059
|
if ($$self.$$.dirty &
|
|
11070
11060
|
/*inverted*/
|
|
11071
|
-
|
|
11072
|
-
$$invalidate(
|
|
11061
|
+
8192) {
|
|
11062
|
+
$$invalidate(11, isInverted = toBoolean(inverted));
|
|
11073
11063
|
}
|
|
11074
11064
|
};
|
|
11075
11065
|
|
|
11076
|
-
return [mt, mr, mb, ml, type, size, theme,
|
|
11066
|
+
return [mt, mr, mb, ml, type, size, theme, fillcolor, opacity, title, testid, isInverted, _iconOverrides, inverted];
|
|
11077
11067
|
}
|
|
11078
11068
|
|
|
11079
11069
|
class Icon extends SvelteElement {
|
|
11080
11070
|
constructor(options) {
|
|
11081
11071
|
super();
|
|
11082
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon
|
|
11072
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon--small{width:1.25rem;height:1.25rem}.goa-icon--medium{width:1.5rem;height:1.5rem}.goa-icon--large{width:2rem;height:2rem}.goa-icon--xlarge{width:2.5rem;height:2.5rem}.goa-icon:has(.icon-override){height:fit-content}.icon-override{display:flex;flex-direction:column;align-items:center}.inverted *{color:#fff;fill:#fff}</style>`;
|
|
11083
11073
|
init(this, {
|
|
11084
11074
|
target: this.shadowRoot,
|
|
11085
11075
|
props: attribute_to_object(this.attributes),
|
|
@@ -11092,12 +11082,11 @@
|
|
|
11092
11082
|
type: 4,
|
|
11093
11083
|
size: 5,
|
|
11094
11084
|
theme: 6,
|
|
11095
|
-
inverted:
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
testid: 11
|
|
11085
|
+
inverted: 13,
|
|
11086
|
+
fillcolor: 7,
|
|
11087
|
+
opacity: 8,
|
|
11088
|
+
title: 9,
|
|
11089
|
+
testid: 10
|
|
11101
11090
|
}, null);
|
|
11102
11091
|
|
|
11103
11092
|
if (options) {
|
|
@@ -11113,7 +11102,7 @@
|
|
|
11113
11102
|
}
|
|
11114
11103
|
|
|
11115
11104
|
static get observedAttributes() {
|
|
11116
|
-
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "
|
|
11105
|
+
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "opacity", "title", "testid"];
|
|
11117
11106
|
}
|
|
11118
11107
|
|
|
11119
11108
|
get mt() {
|
|
@@ -11194,7 +11183,7 @@
|
|
|
11194
11183
|
}
|
|
11195
11184
|
|
|
11196
11185
|
get inverted() {
|
|
11197
|
-
return this.$$.ctx[
|
|
11186
|
+
return this.$$.ctx[13];
|
|
11198
11187
|
}
|
|
11199
11188
|
|
|
11200
11189
|
set inverted(inverted) {
|
|
@@ -11204,19 +11193,8 @@
|
|
|
11204
11193
|
flush();
|
|
11205
11194
|
}
|
|
11206
11195
|
|
|
11207
|
-
get hovercolor() {
|
|
11208
|
-
return this.$$.ctx[7];
|
|
11209
|
-
}
|
|
11210
|
-
|
|
11211
|
-
set hovercolor(hovercolor) {
|
|
11212
|
-
this.$$set({
|
|
11213
|
-
hovercolor
|
|
11214
|
-
});
|
|
11215
|
-
flush();
|
|
11216
|
-
}
|
|
11217
|
-
|
|
11218
11196
|
get fillcolor() {
|
|
11219
|
-
return this.$$.ctx[
|
|
11197
|
+
return this.$$.ctx[7];
|
|
11220
11198
|
}
|
|
11221
11199
|
|
|
11222
11200
|
set fillcolor(fillcolor) {
|
|
@@ -11227,7 +11205,7 @@
|
|
|
11227
11205
|
}
|
|
11228
11206
|
|
|
11229
11207
|
get opacity() {
|
|
11230
|
-
return this.$$.ctx[
|
|
11208
|
+
return this.$$.ctx[8];
|
|
11231
11209
|
}
|
|
11232
11210
|
|
|
11233
11211
|
set opacity(opacity) {
|
|
@@ -11238,7 +11216,7 @@
|
|
|
11238
11216
|
}
|
|
11239
11217
|
|
|
11240
11218
|
get title() {
|
|
11241
|
-
return this.$$.ctx[
|
|
11219
|
+
return this.$$.ctx[9];
|
|
11242
11220
|
}
|
|
11243
11221
|
|
|
11244
11222
|
set title(title) {
|
|
@@ -11249,7 +11227,7 @@
|
|
|
11249
11227
|
}
|
|
11250
11228
|
|
|
11251
11229
|
get testid() {
|
|
11252
|
-
return this.$$.ctx[
|
|
11230
|
+
return this.$$.ctx[10];
|
|
11253
11231
|
}
|
|
11254
11232
|
|
|
11255
11233
|
set testid(testid) {
|
|
@@ -13625,7 +13603,7 @@
|
|
|
13625
13603
|
class Modal extends SvelteElement {
|
|
13626
13604
|
constructor(options) {
|
|
13627
13605
|
super();
|
|
13628
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}:host *{box-sizing:border-box}.modal{font-family:var(--goa-font-family-sans);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:
|
|
13606
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}:host *{box-sizing:border-box}.modal{font-family:var(--goa-font-family-sans);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:var(--goa-space-xl)}.content header{display:flex;justify-content:space-between}.content header.has-content{margin-bottom:var(--goa-space-l)}@media(max-width: 640px){.content{margin:var(--goa-space-l)}.content header.has-content{margin-bottom:var(--goa-space-m)}}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;box-shadow:var(--goa-shadow-modal);border-radius:4px;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch)}}.modal-actions ::slotted(*){padding:var(--goa-space-xl) 0 0}@media(max-width: 640px){.modal-actions ::slotted(*){padding:var(--goa-space-l) 0 0}}.modal-content{margin:0 -2rem;line-height:1.75rem}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-title{font:var(--goa-typography-heading-m)}.modal-close{padding-left:var(--goa-space-m);margin-top:var(--goa-space-2xs)}.scroll-top{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-middle{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1), inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-bottom{box-shadow:inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}</style>`;
|
|
13629
13607
|
init(this, {
|
|
13630
13608
|
target: this.shadowRoot,
|
|
13631
13609
|
props: attribute_to_object(this.attributes),
|
|
@@ -23336,6 +23314,19 @@
|
|
|
23336
23314
|
}), void 0);
|
|
23337
23315
|
}
|
|
23338
23316
|
|
|
23317
|
+
var GoATableSortHeader = function GoATableSortHeader(_a) {
|
|
23318
|
+
var name = _a.name,
|
|
23319
|
+
_b = _a.direction,
|
|
23320
|
+
direction = _b === void 0 ? "none" : _b,
|
|
23321
|
+
children = _a.children;
|
|
23322
|
+
return jsxRuntime.jsx("goa-table-sort-header", __assign({
|
|
23323
|
+
name: name,
|
|
23324
|
+
direction: direction
|
|
23325
|
+
}, {
|
|
23326
|
+
children: children
|
|
23327
|
+
}), void 0);
|
|
23328
|
+
};
|
|
23329
|
+
|
|
23339
23330
|
var GoATextArea = function GoATextArea(_a) {
|
|
23340
23331
|
var name = _a.name,
|
|
23341
23332
|
value = _a.value,
|
|
@@ -23501,6 +23492,7 @@
|
|
|
23501
23492
|
exports.GoASpinner = GoASpinner;
|
|
23502
23493
|
exports.GoASuccessBadge = GoASuccessBadge;
|
|
23503
23494
|
exports.GoATable = GoATable;
|
|
23495
|
+
exports.GoATableSortHeader = GoATableSortHeader;
|
|
23504
23496
|
exports.GoATextArea = GoATextArea;
|
|
23505
23497
|
exports.GoAThreeColumnLayout = GoAThreeColumnLayout;
|
|
23506
23498
|
exports.GoATwoColumnLayout = GoATwoColumnLayout;
|