@abgov/web-components 1.0.0-alpha.119 → 1.0.0-alpha.120
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/package.json +1 -4
- package/web-components.es.js +73 -117
- package/web-components.umd.js +30 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/web-components",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.120",
|
|
4
4
|
"description": "Government of Alberta - UI Web components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
"module": "web-components.umd.js",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"dev": "rollup -c rollup.config.js -w",
|
|
17
|
-
"demo": "rollup -c rollup.demo.config.js -w",
|
|
18
|
-
"start": "sirv demo/public",
|
|
19
17
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
20
18
|
},
|
|
21
19
|
"license": "Apache-2.0",
|
|
@@ -41,7 +39,6 @@
|
|
|
41
39
|
"rollup-plugin-summary": "^1.3.0",
|
|
42
40
|
"rollup-plugin-svelte": "^7.0.0",
|
|
43
41
|
"rollup-plugin-terser": "^7.0.0",
|
|
44
|
-
"sirv-cli": "^1.0.0",
|
|
45
42
|
"svelte": "^3.0.0",
|
|
46
43
|
"svelte-check": "^2.0.0",
|
|
47
44
|
"svelte-preprocess": "^4.0.0",
|
package/web-components.es.js
CHANGED
|
@@ -877,7 +877,7 @@ if (typeof HTMLElement === 'function') {
|
|
|
877
877
|
|
|
878
878
|
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.51.0 */
|
|
879
879
|
|
|
880
|
-
function create_else_block$
|
|
880
|
+
function create_else_block$3(ctx) {
|
|
881
881
|
let div;
|
|
882
882
|
let img0;
|
|
883
883
|
let img0_src_value;
|
|
@@ -924,7 +924,7 @@ function create_else_block$4(ctx) {
|
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
926
|
|
|
927
|
-
// (
|
|
927
|
+
// (19:4) {#if url}
|
|
928
928
|
function create_if_block$j(ctx) {
|
|
929
929
|
let a;
|
|
930
930
|
let img0;
|
|
@@ -986,7 +986,7 @@ function create_fragment$F(ctx) {
|
|
|
986
986
|
|
|
987
987
|
function select_block_type(ctx, dirty) {
|
|
988
988
|
if (/*url*/ ctx[1]) return create_if_block$j;
|
|
989
|
-
return create_else_block$
|
|
989
|
+
return create_else_block$3;
|
|
990
990
|
}
|
|
991
991
|
|
|
992
992
|
let current_block_type = select_block_type(ctx);
|
|
@@ -1153,7 +1153,7 @@ function fromBoolean(value) {
|
|
|
1153
1153
|
|
|
1154
1154
|
/* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.51.0 */
|
|
1155
1155
|
|
|
1156
|
-
function create_else_block$
|
|
1156
|
+
function create_else_block$2(ctx) {
|
|
1157
1157
|
let div;
|
|
1158
1158
|
|
|
1159
1159
|
return {
|
|
@@ -1172,7 +1172,7 @@ function create_else_block$3(ctx) {
|
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
|
|
1175
|
-
// (
|
|
1175
|
+
// (35:2) {#if showIcon}
|
|
1176
1176
|
function create_if_block_1$b(ctx) {
|
|
1177
1177
|
let goa_icon;
|
|
1178
1178
|
|
|
@@ -1196,7 +1196,7 @@ function create_if_block_1$b(ctx) {
|
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
-
// (
|
|
1199
|
+
// (40:2) {#if content}
|
|
1200
1200
|
function create_if_block$i(ctx) {
|
|
1201
1201
|
let div;
|
|
1202
1202
|
let t;
|
|
@@ -1227,7 +1227,7 @@ function create_fragment$E(ctx) {
|
|
|
1227
1227
|
|
|
1228
1228
|
function select_block_type(ctx, dirty) {
|
|
1229
1229
|
if (/*showIcon*/ ctx[3]) return create_if_block_1$b;
|
|
1230
|
-
return create_else_block$
|
|
1230
|
+
return create_else_block$2;
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
1233
|
let current_block_type = select_block_type(ctx);
|
|
@@ -1305,8 +1305,8 @@ function instance$z($$self, $$props, $$invalidate) {
|
|
|
1305
1305
|
let iconType;
|
|
1306
1306
|
let { type } = $$props;
|
|
1307
1307
|
let { testid = "" } = $$props;
|
|
1308
|
-
let { icon = "false" } = $$props;
|
|
1309
1308
|
let { content = "" } = $$props;
|
|
1309
|
+
let { icon = "false" } = $$props;
|
|
1310
1310
|
|
|
1311
1311
|
onMount(() => {
|
|
1312
1312
|
if (!showIcon && !content) {
|
|
@@ -1317,13 +1317,12 @@ function instance$z($$self, $$props, $$invalidate) {
|
|
|
1317
1317
|
$$self.$$set = $$props => {
|
|
1318
1318
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
1319
1319
|
if ('testid' in $$props) $$invalidate(1, testid = $$props.testid);
|
|
1320
|
-
if ('icon' in $$props) $$invalidate(5, icon = $$props.icon);
|
|
1321
1320
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
|
1321
|
+
if ('icon' in $$props) $$invalidate(5, icon = $$props.icon);
|
|
1322
1322
|
};
|
|
1323
1323
|
|
|
1324
1324
|
$$self.$$.update = () => {
|
|
1325
1325
|
if ($$self.$$.dirty & /*icon*/ 32) {
|
|
1326
|
-
// export let icon: WCBoolean = WC_FALSE;
|
|
1327
1326
|
$$invalidate(3, showIcon = toBoolean(icon));
|
|
1328
1327
|
}
|
|
1329
1328
|
|
|
@@ -1358,7 +1357,7 @@ class Badge extends SvelteElement {
|
|
|
1358
1357
|
instance$z,
|
|
1359
1358
|
create_fragment$E,
|
|
1360
1359
|
safe_not_equal,
|
|
1361
|
-
{ type: 0, testid: 1,
|
|
1360
|
+
{ type: 0, testid: 1, content: 2, icon: 5 },
|
|
1362
1361
|
null
|
|
1363
1362
|
);
|
|
1364
1363
|
|
|
@@ -1375,7 +1374,7 @@ class Badge extends SvelteElement {
|
|
|
1375
1374
|
}
|
|
1376
1375
|
|
|
1377
1376
|
static get observedAttributes() {
|
|
1378
|
-
return ["type", "testid", "
|
|
1377
|
+
return ["type", "testid", "content", "icon"];
|
|
1379
1378
|
}
|
|
1380
1379
|
|
|
1381
1380
|
get type() {
|
|
@@ -1396,21 +1395,21 @@ class Badge extends SvelteElement {
|
|
|
1396
1395
|
flush();
|
|
1397
1396
|
}
|
|
1398
1397
|
|
|
1399
|
-
get
|
|
1400
|
-
return this.$$.ctx[
|
|
1398
|
+
get content() {
|
|
1399
|
+
return this.$$.ctx[2];
|
|
1401
1400
|
}
|
|
1402
1401
|
|
|
1403
|
-
set
|
|
1404
|
-
this.$$set({
|
|
1402
|
+
set content(content) {
|
|
1403
|
+
this.$$set({ content });
|
|
1405
1404
|
flush();
|
|
1406
1405
|
}
|
|
1407
1406
|
|
|
1408
|
-
get
|
|
1409
|
-
return this.$$.ctx[
|
|
1407
|
+
get icon() {
|
|
1408
|
+
return this.$$.ctx[5];
|
|
1410
1409
|
}
|
|
1411
1410
|
|
|
1412
|
-
set
|
|
1413
|
-
this.$$set({
|
|
1411
|
+
set icon(icon) {
|
|
1412
|
+
this.$$set({ icon });
|
|
1414
1413
|
flush();
|
|
1415
1414
|
}
|
|
1416
1415
|
}
|
|
@@ -1522,7 +1521,7 @@ customElements.define("goa-button-group", ButtonGroup);
|
|
|
1522
1521
|
|
|
1523
1522
|
/* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.51.0 */
|
|
1524
1523
|
|
|
1525
|
-
function create_else_block$
|
|
1524
|
+
function create_else_block$1(ctx) {
|
|
1526
1525
|
let t0;
|
|
1527
1526
|
let slot;
|
|
1528
1527
|
let t1;
|
|
@@ -1682,7 +1681,7 @@ function create_fragment$C(ctx) {
|
|
|
1682
1681
|
|
|
1683
1682
|
function select_block_type(ctx, dirty) {
|
|
1684
1683
|
if (/*type*/ ctx[0] === "start") return create_if_block$h;
|
|
1685
|
-
return create_else_block$
|
|
1684
|
+
return create_else_block$1;
|
|
1686
1685
|
}
|
|
1687
1686
|
|
|
1688
1687
|
let current_block_type = select_block_type(ctx);
|
|
@@ -1787,15 +1786,15 @@ function instance$x($$self, $$props, $$invalidate) {
|
|
|
1787
1786
|
|
|
1788
1787
|
onMount(() => {
|
|
1789
1788
|
if (!isButtonType(type)) {
|
|
1790
|
-
|
|
1789
|
+
console.error("Invalid button type");
|
|
1791
1790
|
}
|
|
1792
1791
|
|
|
1793
1792
|
if (!isSize(size)) {
|
|
1794
|
-
|
|
1793
|
+
console.error("Invalid button size");
|
|
1795
1794
|
}
|
|
1796
1795
|
|
|
1797
1796
|
if (!isVariant(variant)) {
|
|
1798
|
-
|
|
1797
|
+
console.error("Invalid button variant");
|
|
1799
1798
|
}
|
|
1800
1799
|
});
|
|
1801
1800
|
|
|
@@ -2722,7 +2721,7 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
|
2722
2721
|
let isChecked;
|
|
2723
2722
|
let isIndeterminate;
|
|
2724
2723
|
let { name } = $$props;
|
|
2725
|
-
let { checked } = $$props;
|
|
2724
|
+
let { checked = "false" } = $$props;
|
|
2726
2725
|
let { text = "" } = $$props;
|
|
2727
2726
|
let { value = "" } = $$props;
|
|
2728
2727
|
let { disabled = "false" } = $$props;
|
|
@@ -2936,7 +2935,7 @@ function create_if_block_1$8(ctx) {
|
|
|
2936
2935
|
};
|
|
2937
2936
|
}
|
|
2938
2937
|
|
|
2939
|
-
// (
|
|
2938
|
+
// (46:2) {#if _deletable}
|
|
2940
2939
|
function create_if_block$e(ctx) {
|
|
2941
2940
|
let goa_icon;
|
|
2942
2941
|
let goa_icon_fillcolor_value;
|
|
@@ -4040,7 +4039,7 @@ function get_each_context$4(ctx, list, i) {
|
|
|
4040
4039
|
return child_ctx;
|
|
4041
4040
|
}
|
|
4042
4041
|
|
|
4043
|
-
// (
|
|
4042
|
+
// (203:2) {#if isMenuVisible}
|
|
4044
4043
|
function create_if_block$c(ctx) {
|
|
4045
4044
|
let div;
|
|
4046
4045
|
let div_data_testid_value;
|
|
@@ -4074,7 +4073,7 @@ function create_if_block$c(ctx) {
|
|
|
4074
4073
|
};
|
|
4075
4074
|
}
|
|
4076
4075
|
|
|
4077
|
-
// (
|
|
4076
|
+
// (244:4) {#each options as option, index}
|
|
4078
4077
|
function create_each_block$4(ctx) {
|
|
4079
4078
|
let li;
|
|
4080
4079
|
let t_value = (/*option*/ ctx[39].label || /*option*/ ctx[39].value) + "";
|
|
@@ -4473,8 +4472,6 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
4473
4472
|
// hide menu on blur
|
|
4474
4473
|
menuEl.addEventListener("blur", closeMenu);
|
|
4475
4474
|
|
|
4476
|
-
menuEl.focus();
|
|
4477
|
-
|
|
4478
4475
|
// bind up/down arrows to navigate options
|
|
4479
4476
|
menuEl.addEventListener("mouseover", onHighlight);
|
|
4480
4477
|
}
|
|
@@ -5140,13 +5137,19 @@ function create_fragment$n(ctx) {
|
|
|
5140
5137
|
function isFocusable(element) {
|
|
5141
5138
|
const isTabbable = element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null;
|
|
5142
5139
|
if (isTabbable) return true;
|
|
5143
|
-
if (element
|
|
5140
|
+
if (element["disabled"]) return false;
|
|
5144
5141
|
|
|
5145
5142
|
switch (element.nodeName) {
|
|
5146
5143
|
case 'A':
|
|
5147
|
-
|
|
5144
|
+
{
|
|
5145
|
+
const el = element;
|
|
5146
|
+
return !!el.href && el.rel !== 'ignore';
|
|
5147
|
+
}
|
|
5148
5148
|
case 'INPUT':
|
|
5149
|
-
|
|
5149
|
+
{
|
|
5150
|
+
const el = element;
|
|
5151
|
+
return el.type !== 'hidden' && el.type !== 'file';
|
|
5152
|
+
}
|
|
5150
5153
|
case 'BUTTON':
|
|
5151
5154
|
case 'SELECT':
|
|
5152
5155
|
case 'TEXTAREA':
|
|
@@ -6260,7 +6263,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
6260
6263
|
|
|
6261
6264
|
onMount(() => {
|
|
6262
6265
|
if (!isRequirementType(requirement)) {
|
|
6263
|
-
|
|
6266
|
+
console.error("Invalid requirement type", requirement);
|
|
6264
6267
|
}
|
|
6265
6268
|
});
|
|
6266
6269
|
|
|
@@ -7067,7 +7070,7 @@ function create_if_block_4(ctx) {
|
|
|
7067
7070
|
};
|
|
7068
7071
|
}
|
|
7069
7072
|
|
|
7070
|
-
// (
|
|
7073
|
+
// (79:4) {#if leadingicon}
|
|
7071
7074
|
function create_if_block_3$2(ctx) {
|
|
7072
7075
|
let goa_icon;
|
|
7073
7076
|
|
|
@@ -7092,7 +7095,7 @@ function create_if_block_3$2(ctx) {
|
|
|
7092
7095
|
};
|
|
7093
7096
|
}
|
|
7094
7097
|
|
|
7095
|
-
// (
|
|
7098
|
+
// (109:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
7096
7099
|
function create_if_block_2$4(ctx) {
|
|
7097
7100
|
let goa_icon;
|
|
7098
7101
|
|
|
@@ -7118,7 +7121,7 @@ function create_if_block_2$4(ctx) {
|
|
|
7118
7121
|
};
|
|
7119
7122
|
}
|
|
7120
7123
|
|
|
7121
|
-
// (
|
|
7124
|
+
// (119:4) {#if trailingicon && handlesTrailingIconClick}
|
|
7122
7125
|
function create_if_block_1$5(ctx) {
|
|
7123
7126
|
let goa_icon_button;
|
|
7124
7127
|
let mounted;
|
|
@@ -7158,7 +7161,7 @@ function create_if_block_1$5(ctx) {
|
|
|
7158
7161
|
};
|
|
7159
7162
|
}
|
|
7160
7163
|
|
|
7161
|
-
// (
|
|
7164
|
+
// (131:4) {#if suffix}
|
|
7162
7165
|
function create_if_block$7(ctx) {
|
|
7163
7166
|
let span;
|
|
7164
7167
|
let t;
|
|
@@ -7466,15 +7469,17 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
7466
7469
|
let inputEl;
|
|
7467
7470
|
|
|
7468
7471
|
function onKeyUp(e) {
|
|
7472
|
+
const ee = e.target;
|
|
7473
|
+
|
|
7469
7474
|
e.target.dispatchEvent(new CustomEvent("_change",
|
|
7470
7475
|
{
|
|
7471
7476
|
composed: true,
|
|
7472
7477
|
bubbles: false,
|
|
7473
7478
|
cancelable: true,
|
|
7474
|
-
detail: { name, value:
|
|
7479
|
+
detail: { name, value: ee.value }
|
|
7475
7480
|
}));
|
|
7476
7481
|
|
|
7477
|
-
$$invalidate(0, value =
|
|
7482
|
+
$$invalidate(0, value = ee.value);
|
|
7478
7483
|
}
|
|
7479
7484
|
|
|
7480
7485
|
function input_binding($$value) {
|
|
@@ -8101,8 +8106,8 @@ function capitalize(val) {
|
|
|
8101
8106
|
|
|
8102
8107
|
function instance$c($$self, $$props, $$invalidate) {
|
|
8103
8108
|
let { type } = $$props;
|
|
8104
|
-
let { version } = $$props;
|
|
8105
|
-
let { feedbackurl } = $$props;
|
|
8109
|
+
let { version = "" } = $$props;
|
|
8110
|
+
let { feedbackurl = "" } = $$props;
|
|
8106
8111
|
|
|
8107
8112
|
$$self.$$set = $$props => {
|
|
8108
8113
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
@@ -8206,11 +8211,10 @@ function create_if_block$5(ctx) {
|
|
|
8206
8211
|
let if_block1 = /*isClosable*/ ctx[3] && create_if_block_2$2(ctx);
|
|
8207
8212
|
|
|
8208
8213
|
function select_block_type(ctx, dirty) {
|
|
8209
|
-
|
|
8210
|
-
return create_else_block$1;
|
|
8214
|
+
return create_if_block_1$3;
|
|
8211
8215
|
}
|
|
8212
8216
|
|
|
8213
|
-
let current_block_type = select_block_type(
|
|
8217
|
+
let current_block_type = select_block_type();
|
|
8214
8218
|
let if_block2 = current_block_type(ctx);
|
|
8215
8219
|
|
|
8216
8220
|
return {
|
|
@@ -8263,7 +8267,7 @@ function create_if_block$5(ctx) {
|
|
|
8263
8267
|
|
|
8264
8268
|
if (!mounted) {
|
|
8265
8269
|
dispose = [
|
|
8266
|
-
listen(div0, "click", /*close*/ ctx[
|
|
8270
|
+
listen(div0, "click", /*close*/ ctx[6]),
|
|
8267
8271
|
action_destroyer(noscroll_action = noscroll.call(null, div4, { enable: /*isOpen*/ ctx[5] }))
|
|
8268
8272
|
];
|
|
8269
8273
|
|
|
@@ -8299,16 +8303,6 @@ function create_if_block$5(ctx) {
|
|
|
8299
8303
|
if_block1 = null;
|
|
8300
8304
|
}
|
|
8301
8305
|
|
|
8302
|
-
if (current_block_type !== (current_block_type = select_block_type(ctx))) {
|
|
8303
|
-
if_block2.d(1);
|
|
8304
|
-
if_block2 = current_block_type(ctx);
|
|
8305
|
-
|
|
8306
|
-
if (if_block2) {
|
|
8307
|
-
if_block2.c();
|
|
8308
|
-
if_block2.m(div1, t3);
|
|
8309
|
-
}
|
|
8310
|
-
}
|
|
8311
|
-
|
|
8312
8306
|
if (!current || dirty & /*width*/ 4 && div4_style_value !== (div4_style_value = "" + ((/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";"))) {
|
|
8313
8307
|
attr(div4, "style", div4_style_value);
|
|
8314
8308
|
}
|
|
@@ -8372,7 +8366,7 @@ function create_if_block$5(ctx) {
|
|
|
8372
8366
|
};
|
|
8373
8367
|
}
|
|
8374
8368
|
|
|
8375
|
-
// (
|
|
8369
|
+
// (53:8) {#if heading}
|
|
8376
8370
|
function create_if_block_3(ctx) {
|
|
8377
8371
|
let div;
|
|
8378
8372
|
let t;
|
|
@@ -8397,7 +8391,7 @@ function create_if_block_3(ctx) {
|
|
|
8397
8391
|
};
|
|
8398
8392
|
}
|
|
8399
8393
|
|
|
8400
|
-
// (
|
|
8394
|
+
// (56:8) {#if isClosable}
|
|
8401
8395
|
function create_if_block_2$2(ctx) {
|
|
8402
8396
|
let div;
|
|
8403
8397
|
let goa_icon_button;
|
|
@@ -8417,7 +8411,7 @@ function create_if_block_2$2(ctx) {
|
|
|
8417
8411
|
append(div, goa_icon_button);
|
|
8418
8412
|
|
|
8419
8413
|
if (!mounted) {
|
|
8420
|
-
dispose = listen(goa_icon_button, "click", /*close*/ ctx[
|
|
8414
|
+
dispose = listen(goa_icon_button, "click", /*close*/ ctx[6]);
|
|
8421
8415
|
mounted = true;
|
|
8422
8416
|
}
|
|
8423
8417
|
},
|
|
@@ -8430,25 +8424,6 @@ function create_if_block_2$2(ctx) {
|
|
|
8430
8424
|
};
|
|
8431
8425
|
}
|
|
8432
8426
|
|
|
8433
|
-
// (71:10) {:else}
|
|
8434
|
-
function create_else_block$1(ctx) {
|
|
8435
|
-
let div;
|
|
8436
|
-
|
|
8437
|
-
return {
|
|
8438
|
-
c() {
|
|
8439
|
-
div = element("div");
|
|
8440
|
-
div.innerHTML = `<slot></slot>`;
|
|
8441
|
-
set_style(div, "margin", "1.75rem");
|
|
8442
|
-
},
|
|
8443
|
-
m(target, anchor) {
|
|
8444
|
-
insert(target, div, anchor);
|
|
8445
|
-
},
|
|
8446
|
-
d(detaching) {
|
|
8447
|
-
if (detaching) detach(div);
|
|
8448
|
-
}
|
|
8449
|
-
};
|
|
8450
|
-
}
|
|
8451
|
-
|
|
8452
8427
|
// (67:10) {#if isScrollable}
|
|
8453
8428
|
function create_if_block_1$3(ctx) {
|
|
8454
8429
|
let goa_scrollable;
|
|
@@ -8528,15 +8503,13 @@ function create_fragment$d(ctx) {
|
|
|
8528
8503
|
|
|
8529
8504
|
function instance$b($$self, $$props, $$invalidate) {
|
|
8530
8505
|
let isClosable;
|
|
8531
|
-
let isScrollable;
|
|
8532
8506
|
let isOpen;
|
|
8533
8507
|
let _transitionTime;
|
|
8534
|
-
let { heading } = $$props;
|
|
8535
|
-
let { closable } = $$props;
|
|
8536
|
-
let {
|
|
8537
|
-
let { open } = $$props;
|
|
8508
|
+
let { heading = "" } = $$props;
|
|
8509
|
+
let { closable = "false" } = $$props;
|
|
8510
|
+
let { open = "false" } = $$props;
|
|
8538
8511
|
let { transition = "none" } = $$props;
|
|
8539
|
-
let { width } = $$props;
|
|
8512
|
+
let { width = "" } = $$props;
|
|
8540
8513
|
|
|
8541
8514
|
function close(e) {
|
|
8542
8515
|
if (!isClosable) {
|
|
@@ -8549,27 +8522,22 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
8549
8522
|
|
|
8550
8523
|
$$self.$$set = $$props => {
|
|
8551
8524
|
if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
|
|
8552
|
-
if ('closable' in $$props) $$invalidate(
|
|
8553
|
-
if ('scrollable' in $$props) $$invalidate(9, scrollable = $$props.scrollable);
|
|
8525
|
+
if ('closable' in $$props) $$invalidate(7, closable = $$props.closable);
|
|
8554
8526
|
if ('open' in $$props) $$invalidate(1, open = $$props.open);
|
|
8555
|
-
if ('transition' in $$props) $$invalidate(
|
|
8527
|
+
if ('transition' in $$props) $$invalidate(8, transition = $$props.transition);
|
|
8556
8528
|
if ('width' in $$props) $$invalidate(2, width = $$props.width);
|
|
8557
8529
|
};
|
|
8558
8530
|
|
|
8559
8531
|
$$self.$$.update = () => {
|
|
8560
|
-
if ($$self.$$.dirty & /*closable*/
|
|
8532
|
+
if ($$self.$$.dirty & /*closable*/ 128) {
|
|
8561
8533
|
$$invalidate(3, isClosable = toBoolean(closable));
|
|
8562
8534
|
}
|
|
8563
8535
|
|
|
8564
|
-
if ($$self.$$.dirty & /*scrollable*/ 512) {
|
|
8565
|
-
$$invalidate(6, isScrollable = toBoolean(scrollable));
|
|
8566
|
-
}
|
|
8567
|
-
|
|
8568
8536
|
if ($$self.$$.dirty & /*open*/ 2) {
|
|
8569
8537
|
$$invalidate(5, isOpen = toBoolean(open));
|
|
8570
8538
|
}
|
|
8571
8539
|
|
|
8572
|
-
if ($$self.$$.dirty & /*transition*/
|
|
8540
|
+
if ($$self.$$.dirty & /*transition*/ 256) {
|
|
8573
8541
|
$$invalidate(4, _transitionTime = transition === "none"
|
|
8574
8542
|
? 0
|
|
8575
8543
|
: transition === "slow" ? 400 : 200);
|
|
@@ -8583,10 +8551,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
8583
8551
|
isClosable,
|
|
8584
8552
|
_transitionTime,
|
|
8585
8553
|
isOpen,
|
|
8586
|
-
isScrollable,
|
|
8587
8554
|
close,
|
|
8588
8555
|
closable,
|
|
8589
|
-
scrollable,
|
|
8590
8556
|
transition
|
|
8591
8557
|
];
|
|
8592
8558
|
}
|
|
@@ -8608,10 +8574,9 @@ class Modal extends SvelteElement {
|
|
|
8608
8574
|
safe_not_equal,
|
|
8609
8575
|
{
|
|
8610
8576
|
heading: 0,
|
|
8611
|
-
closable:
|
|
8612
|
-
scrollable: 9,
|
|
8577
|
+
closable: 7,
|
|
8613
8578
|
open: 1,
|
|
8614
|
-
transition:
|
|
8579
|
+
transition: 8,
|
|
8615
8580
|
width: 2
|
|
8616
8581
|
},
|
|
8617
8582
|
null
|
|
@@ -8630,7 +8595,7 @@ class Modal extends SvelteElement {
|
|
|
8630
8595
|
}
|
|
8631
8596
|
|
|
8632
8597
|
static get observedAttributes() {
|
|
8633
|
-
return ["heading", "closable", "
|
|
8598
|
+
return ["heading", "closable", "open", "transition", "width"];
|
|
8634
8599
|
}
|
|
8635
8600
|
|
|
8636
8601
|
get heading() {
|
|
@@ -8643,7 +8608,7 @@ class Modal extends SvelteElement {
|
|
|
8643
8608
|
}
|
|
8644
8609
|
|
|
8645
8610
|
get closable() {
|
|
8646
|
-
return this.$$.ctx[
|
|
8611
|
+
return this.$$.ctx[7];
|
|
8647
8612
|
}
|
|
8648
8613
|
|
|
8649
8614
|
set closable(closable) {
|
|
@@ -8651,15 +8616,6 @@ class Modal extends SvelteElement {
|
|
|
8651
8616
|
flush();
|
|
8652
8617
|
}
|
|
8653
8618
|
|
|
8654
|
-
get scrollable() {
|
|
8655
|
-
return this.$$.ctx[9];
|
|
8656
|
-
}
|
|
8657
|
-
|
|
8658
|
-
set scrollable(scrollable) {
|
|
8659
|
-
this.$$set({ scrollable });
|
|
8660
|
-
flush();
|
|
8661
|
-
}
|
|
8662
|
-
|
|
8663
8619
|
get open() {
|
|
8664
8620
|
return this.$$.ctx[1];
|
|
8665
8621
|
}
|
|
@@ -8670,7 +8626,7 @@ class Modal extends SvelteElement {
|
|
|
8670
8626
|
}
|
|
8671
8627
|
|
|
8672
8628
|
get transition() {
|
|
8673
|
-
return this.$$.ctx[
|
|
8629
|
+
return this.$$.ctx[8];
|
|
8674
8630
|
}
|
|
8675
8631
|
|
|
8676
8632
|
set transition(transition) {
|
|
@@ -8957,7 +8913,7 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
8957
8913
|
|
|
8958
8914
|
onMount(() => {
|
|
8959
8915
|
if (!isValidSize(width)) {
|
|
8960
|
-
|
|
8916
|
+
console.error("Invalid PageBlock width");
|
|
8961
8917
|
}
|
|
8962
8918
|
|
|
8963
8919
|
$$invalidate(0, _width = Sizes[width] || width);
|
|
@@ -9908,7 +9864,7 @@ function create_if_block$3(ctx) {
|
|
|
9908
9864
|
props: {
|
|
9909
9865
|
type: "lines",
|
|
9910
9866
|
size: /*size*/ ctx[1],
|
|
9911
|
-
|
|
9867
|
+
linecount: 3
|
|
9912
9868
|
}
|
|
9913
9869
|
});
|
|
9914
9870
|
|
|
@@ -9985,7 +9941,7 @@ function create_each_block(ctx) {
|
|
|
9985
9941
|
props: {
|
|
9986
9942
|
type: "text",
|
|
9987
9943
|
size: /*size*/ ctx[1],
|
|
9988
|
-
|
|
9944
|
+
linecount: /*linecount*/ ctx[2]
|
|
9989
9945
|
}
|
|
9990
9946
|
});
|
|
9991
9947
|
|
|
@@ -10000,7 +9956,7 @@ function create_each_block(ctx) {
|
|
|
10000
9956
|
p(ctx, dirty) {
|
|
10001
9957
|
const skeleton_changes = {};
|
|
10002
9958
|
if (dirty & /*size*/ 2) skeleton_changes.size = /*size*/ ctx[1];
|
|
10003
|
-
if (dirty & /*linecount*/ 4) skeleton_changes.
|
|
9959
|
+
if (dirty & /*linecount*/ 4) skeleton_changes.linecount = /*linecount*/ ctx[2];
|
|
10004
9960
|
skeleton.$set(skeleton_changes);
|
|
10005
9961
|
},
|
|
10006
9962
|
i(local) {
|
|
@@ -10091,7 +10047,7 @@ function create_fragment$7(ctx) {
|
|
|
10091
10047
|
}
|
|
10092
10048
|
|
|
10093
10049
|
function instance$5($$self, $$props, $$invalidate) {
|
|
10094
|
-
let { maxwidth } = $$props;
|
|
10050
|
+
let { maxwidth = "" } = $$props;
|
|
10095
10051
|
let { size = 1 } = $$props;
|
|
10096
10052
|
let { linecount = 3 } = $$props;
|
|
10097
10053
|
let { type } = $$props;
|
|
@@ -11620,7 +11576,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
11620
11576
|
|
|
11621
11577
|
onMount(() => {
|
|
11622
11578
|
if (!isSpacing(spacing)) {
|
|
11623
|
-
|
|
11579
|
+
console.error("Invalid spacing");
|
|
11624
11580
|
}
|
|
11625
11581
|
});
|
|
11626
11582
|
|