@genesislcap/foundation-zero 14.96.1 → 14.98.0

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.
@@ -1003,154 +1003,6 @@
1003
1003
  }
1004
1004
  ]
1005
1005
  },
1006
- {
1007
- "kind": "javascript-module",
1008
- "path": "src/accordion-item/accordion-item.styles.ts",
1009
- "declarations": [
1010
- {
1011
- "kind": "function",
1012
- "name": "zeroAccordionItemStyles",
1013
- "return": {
1014
- "type": {
1015
- "text": "ElementStyles"
1016
- }
1017
- },
1018
- "parameters": [
1019
- {
1020
- "name": "context",
1021
- "type": {
1022
- "text": "ElementDefinitionContext"
1023
- }
1024
- },
1025
- {
1026
- "name": "definition",
1027
- "type": {
1028
- "text": "FoundationElementDefinition"
1029
- }
1030
- }
1031
- ]
1032
- }
1033
- ],
1034
- "exports": [
1035
- {
1036
- "kind": "js",
1037
- "name": "zeroAccordionItemStyles",
1038
- "declaration": {
1039
- "name": "zeroAccordionItemStyles",
1040
- "module": "src/accordion-item/accordion-item.styles.ts"
1041
- }
1042
- }
1043
- ]
1044
- },
1045
- {
1046
- "kind": "javascript-module",
1047
- "path": "src/accordion-item/accordion-item.template.ts",
1048
- "declarations": [
1049
- {
1050
- "kind": "function",
1051
- "name": "zeroAccordionItemTemplate",
1052
- "return": {
1053
- "type": {
1054
- "text": "ViewTemplate<AccordionItem>"
1055
- }
1056
- },
1057
- "parameters": [
1058
- {
1059
- "name": "context",
1060
- "type": {
1061
- "text": "ElementDefinitionContext"
1062
- }
1063
- },
1064
- {
1065
- "name": "definition",
1066
- "type": {
1067
- "text": "FoundationElementDefinition"
1068
- }
1069
- }
1070
- ]
1071
- }
1072
- ],
1073
- "exports": [
1074
- {
1075
- "kind": "js",
1076
- "name": "zeroAccordionItemTemplate",
1077
- "declaration": {
1078
- "name": "zeroAccordionItemTemplate",
1079
- "module": "src/accordion-item/accordion-item.template.ts"
1080
- }
1081
- }
1082
- ]
1083
- },
1084
- {
1085
- "kind": "javascript-module",
1086
- "path": "src/accordion-item/accordion-item.ts",
1087
- "declarations": [
1088
- {
1089
- "kind": "class",
1090
- "description": "",
1091
- "name": "AccordionItem",
1092
- "superclass": {
1093
- "name": "FoundationAccordionItem",
1094
- "package": "@genesislcap/foundation-ui"
1095
- },
1096
- "tagName": "%%prefix%%-card",
1097
- "customElement": true
1098
- },
1099
- {
1100
- "kind": "variable",
1101
- "name": "zeroAccordionItem"
1102
- }
1103
- ],
1104
- "exports": [
1105
- {
1106
- "kind": "js",
1107
- "name": "AccordionItem",
1108
- "declaration": {
1109
- "name": "AccordionItem",
1110
- "module": "src/accordion-item/accordion-item.ts"
1111
- }
1112
- },
1113
- {
1114
- "kind": "js",
1115
- "name": "zeroAccordionItem",
1116
- "declaration": {
1117
- "name": "zeroAccordionItem",
1118
- "module": "src/accordion-item/accordion-item.ts"
1119
- }
1120
- }
1121
- ]
1122
- },
1123
- {
1124
- "kind": "javascript-module",
1125
- "path": "src/accordion-item/index.ts",
1126
- "declarations": [],
1127
- "exports": [
1128
- {
1129
- "kind": "js",
1130
- "name": "*",
1131
- "declaration": {
1132
- "name": "*",
1133
- "package": "./accordion-item"
1134
- }
1135
- },
1136
- {
1137
- "kind": "js",
1138
- "name": "*",
1139
- "declaration": {
1140
- "name": "*",
1141
- "package": "./accordion-item.styles"
1142
- }
1143
- },
1144
- {
1145
- "kind": "js",
1146
- "name": "*",
1147
- "declaration": {
1148
- "name": "*",
1149
- "package": "./accordion-item.template"
1150
- }
1151
- }
1152
- ]
1153
- },
1154
1006
  {
1155
1007
  "kind": "javascript-module",
1156
1008
  "path": "src/actions-menu/actions-menu.stories.ts",
@@ -1423,6 +1275,154 @@
1423
1275
  }
1424
1276
  ]
1425
1277
  },
1278
+ {
1279
+ "kind": "javascript-module",
1280
+ "path": "src/accordion-item/accordion-item.styles.ts",
1281
+ "declarations": [
1282
+ {
1283
+ "kind": "function",
1284
+ "name": "zeroAccordionItemStyles",
1285
+ "return": {
1286
+ "type": {
1287
+ "text": "ElementStyles"
1288
+ }
1289
+ },
1290
+ "parameters": [
1291
+ {
1292
+ "name": "context",
1293
+ "type": {
1294
+ "text": "ElementDefinitionContext"
1295
+ }
1296
+ },
1297
+ {
1298
+ "name": "definition",
1299
+ "type": {
1300
+ "text": "FoundationElementDefinition"
1301
+ }
1302
+ }
1303
+ ]
1304
+ }
1305
+ ],
1306
+ "exports": [
1307
+ {
1308
+ "kind": "js",
1309
+ "name": "zeroAccordionItemStyles",
1310
+ "declaration": {
1311
+ "name": "zeroAccordionItemStyles",
1312
+ "module": "src/accordion-item/accordion-item.styles.ts"
1313
+ }
1314
+ }
1315
+ ]
1316
+ },
1317
+ {
1318
+ "kind": "javascript-module",
1319
+ "path": "src/accordion-item/accordion-item.template.ts",
1320
+ "declarations": [
1321
+ {
1322
+ "kind": "function",
1323
+ "name": "zeroAccordionItemTemplate",
1324
+ "return": {
1325
+ "type": {
1326
+ "text": "ViewTemplate<AccordionItem>"
1327
+ }
1328
+ },
1329
+ "parameters": [
1330
+ {
1331
+ "name": "context",
1332
+ "type": {
1333
+ "text": "ElementDefinitionContext"
1334
+ }
1335
+ },
1336
+ {
1337
+ "name": "definition",
1338
+ "type": {
1339
+ "text": "FoundationElementDefinition"
1340
+ }
1341
+ }
1342
+ ]
1343
+ }
1344
+ ],
1345
+ "exports": [
1346
+ {
1347
+ "kind": "js",
1348
+ "name": "zeroAccordionItemTemplate",
1349
+ "declaration": {
1350
+ "name": "zeroAccordionItemTemplate",
1351
+ "module": "src/accordion-item/accordion-item.template.ts"
1352
+ }
1353
+ }
1354
+ ]
1355
+ },
1356
+ {
1357
+ "kind": "javascript-module",
1358
+ "path": "src/accordion-item/accordion-item.ts",
1359
+ "declarations": [
1360
+ {
1361
+ "kind": "class",
1362
+ "description": "",
1363
+ "name": "AccordionItem",
1364
+ "superclass": {
1365
+ "name": "FoundationAccordionItem",
1366
+ "package": "@genesislcap/foundation-ui"
1367
+ },
1368
+ "tagName": "%%prefix%%-card",
1369
+ "customElement": true
1370
+ },
1371
+ {
1372
+ "kind": "variable",
1373
+ "name": "zeroAccordionItem"
1374
+ }
1375
+ ],
1376
+ "exports": [
1377
+ {
1378
+ "kind": "js",
1379
+ "name": "AccordionItem",
1380
+ "declaration": {
1381
+ "name": "AccordionItem",
1382
+ "module": "src/accordion-item/accordion-item.ts"
1383
+ }
1384
+ },
1385
+ {
1386
+ "kind": "js",
1387
+ "name": "zeroAccordionItem",
1388
+ "declaration": {
1389
+ "name": "zeroAccordionItem",
1390
+ "module": "src/accordion-item/accordion-item.ts"
1391
+ }
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ "kind": "javascript-module",
1397
+ "path": "src/accordion-item/index.ts",
1398
+ "declarations": [],
1399
+ "exports": [
1400
+ {
1401
+ "kind": "js",
1402
+ "name": "*",
1403
+ "declaration": {
1404
+ "name": "*",
1405
+ "package": "./accordion-item"
1406
+ }
1407
+ },
1408
+ {
1409
+ "kind": "js",
1410
+ "name": "*",
1411
+ "declaration": {
1412
+ "name": "*",
1413
+ "package": "./accordion-item.styles"
1414
+ }
1415
+ },
1416
+ {
1417
+ "kind": "js",
1418
+ "name": "*",
1419
+ "declaration": {
1420
+ "name": "*",
1421
+ "package": "./accordion-item.template"
1422
+ }
1423
+ }
1424
+ ]
1425
+ },
1426
1426
  {
1427
1427
  "kind": "javascript-module",
1428
1428
  "path": "src/anchor/anchor.stories.ts",
@@ -14946,7 +14946,7 @@
14946
14946
  {
14947
14947
  "kind": "variable",
14948
14948
  "name": "zeroUrlInputTemplate",
14949
- "default": "html<UrlInput>`\n <div class=\"container\" value=${(x) => x.value}>\n <zero-text-field\n class=\"url-input\"\n required\n type=\"url\"\n :value=${(x) => (x.focused && !x.readOnly ? x.value : '')}\n @blur=${(x, c) => (!x.readOnly ? x.saveUrl(c.event?.target['value']) : '')}\n @focus=${(x) => x.focus()}\n :readOnly=${(x) => x.readOnly}\n }\n ></zero-text-field>\n ${when(\n (x) => x.readOnly || !x.focused,\n html`\n <a class=\"url-input-link\" href=${(x) => x.value} target=\"_blank\">${(x) => x.value}</a>\n `,\n )}\n </div>\n`"
14949
+ "default": "html<UrlInput>`\n ${getPrefixedUrlInput('zero')}\n`"
14950
14950
  }
14951
14951
  ],
14952
14952
  "exports": [
@@ -14968,58 +14968,13 @@
14968
14968
  "kind": "class",
14969
14969
  "description": "",
14970
14970
  "name": "UrlInput",
14971
- "members": [
14972
- {
14973
- "kind": "field",
14974
- "name": "value",
14975
- "type": {
14976
- "text": "string"
14977
- },
14978
- "default": "''"
14979
- },
14980
- {
14981
- "kind": "field",
14982
- "name": "focused",
14983
- "type": {
14984
- "text": "boolean"
14985
- }
14986
- },
14987
- {
14988
- "kind": "method",
14989
- "name": "saveUrl",
14990
- "privacy": "public",
14991
- "parameters": [
14992
- {
14993
- "name": "url",
14994
- "type": {
14995
- "text": "string"
14996
- }
14997
- }
14998
- ]
14999
- },
15000
- {
15001
- "kind": "method",
15002
- "name": "focus",
15003
- "privacy": "public"
15004
- }
15005
- ],
15006
14971
  "superclass": {
15007
- "name": "FoundationTextField",
14972
+ "name": "FoundationUrlInput",
15008
14973
  "package": "@genesislcap/foundation-ui"
15009
14974
  },
15010
14975
  "tagName": "%%prefix%%-url-input",
15011
14976
  "customElement": true
15012
14977
  },
15013
- {
15014
- "kind": "variable",
15015
- "name": "defaultUrlInputConfig",
15016
- "default": "foundationUrlInputConfig"
15017
- },
15018
- {
15019
- "kind": "variable",
15020
- "name": "zeroUrlInputShadowOptions",
15021
- "default": "foundationUrlInputShadowOptions"
15022
- },
15023
14978
  {
15024
14979
  "kind": "variable",
15025
14980
  "name": "zeroUrlInput"
@@ -15034,22 +14989,6 @@
15034
14989
  "module": "src/url-input/url-input.ts"
15035
14990
  }
15036
14991
  },
15037
- {
15038
- "kind": "js",
15039
- "name": "defaultUrlInputConfig",
15040
- "declaration": {
15041
- "name": "defaultUrlInputConfig",
15042
- "module": "src/url-input/url-input.ts"
15043
- }
15044
- },
15045
- {
15046
- "kind": "js",
15047
- "name": "zeroUrlInputShadowOptions",
15048
- "declaration": {
15049
- "name": "zeroUrlInputShadowOptions",
15050
- "module": "src/url-input/url-input.ts"
15051
- }
15052
- },
15053
14992
  {
15054
14993
  "kind": "js",
15055
14994
  "name": "zeroUrlInput",
@@ -1,14 +1,8 @@
1
- import { TextField as FoundationTextField } from '@genesislcap/foundation-ui';
1
+ import { UrlInput as FoundationUrlInput } from '@genesislcap/foundation-ui';
2
2
  /**
3
3
  * @tagname %%prefix%%-url-input
4
4
  */
5
- export declare class UrlInput extends FoundationTextField {
6
- value: string;
7
- focused: boolean;
8
- saveUrl(url: string): void;
9
- focus(): void;
5
+ export declare class UrlInput extends FoundationUrlInput {
10
6
  }
11
- export declare const defaultUrlInputConfig: {};
12
- export declare const zeroUrlInputShadowOptions: ShadowRootInit;
13
7
  export declare const zeroUrlInput: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof UrlInput>;
14
8
  //# sourceMappingURL=url-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"url-input.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,IAAI,mBAAmB,EACjC,MAAM,4BAA4B,CAAC;AAKpC;;GAEG;AACH,qBAAa,QAAS,SAAQ,mBAAmB;IACnC,KAAK,EAAE,MAAM,CAAM;IACnB,OAAO,EAAE,OAAO,CAAC;IAEtB,OAAO,CAAC,GAAG,EAAE,MAAM;IAKnB,KAAK;CAGb;AAED,eAAO,MAAM,qBAAqB,IAA2B,CAAC;AAE9D,eAAO,MAAM,yBAAyB,gBAAkC,CAAC;AAEzE,eAAO,MAAM,YAAY,wTAMvB,CAAC"}
1
+ {"version":3,"file":"url-input.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,IAAI,kBAAkB,EAC/B,MAAM,4BAA4B,CAAC;AAIpC;;GAEG;AACH,qBAAa,QAAS,SAAQ,kBAAkB;CAAG;AAEnD,eAAO,MAAM,YAAY,wTAMvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"url-input.template.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,oBAAoB,+DAmBhC,CAAC"}
1
+ {"version":3,"file":"url-input.template.d.ts","sourceRoot":"","sources":["../../../src/url-input/url-input.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,oBAAoB,+DAEhC,CAAC"}
@@ -1,30 +1,10 @@
1
- import { __decorate } from "tslib";
2
- import { defaultUrlInputConfig as foundationUrlInputConfig, foundationUrlInputShadowOptions, TextField as FoundationTextField, } from '@genesislcap/foundation-ui';
3
- import { observable } from '@microsoft/fast-element';
1
+ import { defaultUrlInputConfig as foundationUrlInputConfig, foundationUrlInputShadowOptions, UrlInput as FoundationUrlInput, } from '@genesislcap/foundation-ui';
4
2
  import { zeroUrlInputStyles as styles } from './url-input.styles';
5
- import { zeroUrlInputTemplate } from './url-input.template';
3
+ import { zeroUrlInputTemplate as template } from './url-input.template';
6
4
  /**
7
5
  * @tagname %%prefix%%-url-input
8
6
  */
9
- export class UrlInput extends FoundationTextField {
10
- constructor() {
11
- super(...arguments);
12
- this.value = '';
13
- }
14
- saveUrl(url) {
15
- this.value = url.startsWith('http') ? url : 'https://' + url;
16
- this.focused = false;
17
- }
18
- focus() {
19
- this.focused = true;
20
- }
7
+ export class UrlInput extends FoundationUrlInput {
21
8
  }
22
- __decorate([
23
- observable
24
- ], UrlInput.prototype, "value", void 0);
25
- __decorate([
26
- observable
27
- ], UrlInput.prototype, "focused", void 0);
28
- export const defaultUrlInputConfig = foundationUrlInputConfig;
29
- export const zeroUrlInputShadowOptions = foundationUrlInputShadowOptions;
30
- export const zeroUrlInput = UrlInput.compose(Object.assign({ baseName: 'url-input', template: zeroUrlInputTemplate, styles, shadowOptions: foundationUrlInputShadowOptions }, foundationUrlInputConfig));
9
+ export const zeroUrlInput = UrlInput.compose(Object.assign({ baseName: 'url-input', template,
10
+ styles, shadowOptions: foundationUrlInputShadowOptions }, foundationUrlInputConfig));
@@ -1,18 +1,5 @@
1
- import { html, when } from '@microsoft/fast-element';
1
+ import { getPrefixedUrlInput } from '@genesislcap/foundation-ui';
2
+ import { html } from '@microsoft/fast-element';
2
3
  export const zeroUrlInputTemplate = html `
3
- <div class="container" value=${(x) => x.value}>
4
- <zero-text-field
5
- class="url-input"
6
- required
7
- type="url"
8
- :value=${(x) => (x.focused && !x.readOnly ? x.value : '')}
9
- @blur=${(x, c) => { var _a; return (!x.readOnly ? x.saveUrl((_a = c.event) === null || _a === void 0 ? void 0 : _a.target['value']) : ''); }}
10
- @focus=${(x) => x.focus()}
11
- :readOnly=${(x) => x.readOnly}
12
- }
13
- ></zero-text-field>
14
- ${when((x) => x.readOnly || !x.focused, html `
15
- <a class="url-input-link" href=${(x) => x.value} target="_blank">${(x) => x.value}</a>
16
- `)}
17
- </div>
4
+ ${getPrefixedUrlInput('zero')}
18
5
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-zero",
3
3
  "description": "Genesis Foundation Zero Design System",
4
- "version": "14.96.1",
4
+ "version": "14.98.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -65,7 +65,7 @@
65
65
  "storybook": "storybook dev -p 6006"
66
66
  },
67
67
  "devDependencies": {
68
- "@genesislcap/genx": "14.96.1",
68
+ "@genesislcap/genx": "14.98.0",
69
69
  "@storybook/addon-essentials": "^7.1.0",
70
70
  "@storybook/addon-links": "^7.1.0",
71
71
  "@storybook/addons": "^7.1.0",
@@ -78,10 +78,10 @@
78
78
  "storybook": "^7.1.0"
79
79
  },
80
80
  "dependencies": {
81
- "@genesislcap/foundation-comms": "14.96.1",
82
- "@genesislcap/foundation-logger": "14.96.1",
83
- "@genesislcap/foundation-ui": "14.96.1",
84
- "@genesislcap/foundation-utils": "14.96.1",
81
+ "@genesislcap/foundation-comms": "14.98.0",
82
+ "@genesislcap/foundation-logger": "14.98.0",
83
+ "@genesislcap/foundation-ui": "14.98.0",
84
+ "@genesislcap/foundation-utils": "14.98.0",
85
85
  "@microsoft/fast-colors": "^5.1.4",
86
86
  "@microsoft/fast-components": "^2.21.3",
87
87
  "@microsoft/fast-element": "^1.7.0",
@@ -98,5 +98,5 @@
98
98
  "access": "public"
99
99
  },
100
100
  "customElements": "dist/custom-elements.json",
101
- "gitHead": "48d09fe0db8cfe16fa806a5f098a0fb0405ffcbb"
101
+ "gitHead": "07afc08d7c91080168b8ef63b71825edccf65635"
102
102
  }