@nordhealth/components 2.16.1-alpha.4 → 2.16.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/custom-elements.json +462 -470
- package/lib/{AutocompleteMixin-5163f8db.js → AutocompleteMixin-c8018288.js} +2 -2
- package/lib/{AutocompleteMixin-5163f8db.js.map → AutocompleteMixin-c8018288.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/{Calendar-88644376.js → Calendar-27eae615.js} +2 -2
- package/lib/{Calendar-88644376.js.map → Calendar-27eae615.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-449e40fb.js → Component-d4d6fa77.js} +2 -2
- package/lib/Component-d4d6fa77.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownItem.js +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/FocusableMixin-fc1e2a13.js +2 -0
- package/lib/{FocusableMixin-32631bff.js.map → FocusableMixin-fc1e2a13.js.map} +1 -1
- package/lib/{FormAssociatedMixin-dc7ee1d9.js → FormAssociatedMixin-ad4d6c08.js} +2 -2
- package/lib/{FormAssociatedMixin-dc7ee1d9.js.map → FormAssociatedMixin-ad4d6c08.js.map} +1 -1
- package/lib/{FormField-413f22f5.js → FormField-c733b196.js} +2 -2
- package/lib/FormField-c733b196.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/{InputMixin-7fa755e1.js → InputMixin-1564ca2a.js} +2 -2
- package/lib/{InputMixin-7fa755e1.js.map → InputMixin-1564ca2a.js.map} +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDomController-052f446a.js → LightDomController-3b7b1f44.js} +2 -2
- package/lib/{LightDomController-052f446a.js.map → LightDomController-3b7b1f44.js.map} +1 -1
- package/lib/Modal.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/NavToggle.js.map +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/{Popout-c0d2cb72.js → Popout-0baf2085.js} +2 -2
- package/lib/{Popout-c0d2cb72.js.map → Popout-0baf2085.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Range.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/{SizeMixin-4d04817d.js → SizeMixin-9da6dc81.js} +2 -2
- package/lib/{SizeMixin-4d04817d.js.map → SizeMixin-9da6dc81.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/{Sticky-c4cf185e.js → Sticky-64b0b58a.js} +2 -2
- package/lib/Sticky-64b0b58a.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-ca819c35.js → TextField-6a272cd7.js} +2 -2
- package/lib/{TextField-ca819c35.js.map → TextField-6a272cd7.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Toast.js +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +8 -9
- package/lib/bundle.js.map +1 -1
- package/lib/class-map-1bc3148f.js +7 -0
- package/lib/{class-map-21152cee.js.map → class-map-1bc3148f.js.map} +1 -1
- package/lib/{collection-7eee4e72.js → collection-a0cd49b2.js} +2 -2
- package/lib/{collection-7eee4e72.js.map → collection-a0cd49b2.js.map} +1 -1
- package/lib/cond-8e7df9cf.js +2 -0
- package/lib/{cond-2da54107.js.map → cond-8e7df9cf.js.map} +1 -1
- package/lib/{if-defined-720964c0.js → if-defined-718a58b2.js} +2 -2
- package/lib/{if-defined-720964c0.js.map → if-defined-718a58b2.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-acf73137.js +2 -0
- package/lib/positioning-acf73137.js.map +1 -0
- package/lib/query-assigned-elements-89f41e17.js +34 -0
- package/lib/query-assigned-elements-89f41e17.js.map +1 -0
- package/lib/{ref-c44e9f3c.js → ref-4265fcf9.js} +4 -4
- package/lib/{ref-c44e9f3c.js.map → ref-4265fcf9.js.map} +1 -1
- package/lib/src/drawer/Drawer.test.d.ts +1 -0
- package/lib/src/navigation/Navigation.d.ts +0 -1
- package/lib/src/skeleton/Skeleton.d.ts +2 -1
- package/lib/{style-map-2e8fcab6.js → style-map-c63c0180.js} +2 -2
- package/lib/{style-map-2e8fcab6.js.map → style-map-c63c0180.js.map} +1 -1
- package/package.json +5 -5
- package/lib/Component-449e40fb.js.map +0 -1
- package/lib/FocusableMixin-32631bff.js +0 -2
- package/lib/FormField-413f22f5.js.map +0 -1
- package/lib/Sticky-c4cf185e.js.map +0 -1
- package/lib/class-map-21152cee.js +0 -7
- package/lib/cond-2da54107.js +0 -2
- package/lib/positioning-3bbd3548.js +0 -2
- package/lib/positioning-3bbd3548.js.map +0 -1
- package/lib/query-assigned-elements-cf502539.js +0 -35
- package/lib/query-assigned-elements-cf502539.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -587,88 +587,6 @@
|
|
|
587
587
|
}
|
|
588
588
|
]
|
|
589
589
|
},
|
|
590
|
-
{
|
|
591
|
-
"kind": "javascript-module",
|
|
592
|
-
"path": "src/banner/Banner.ts",
|
|
593
|
-
"declarations": [
|
|
594
|
-
{
|
|
595
|
-
"kind": "class",
|
|
596
|
-
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
597
|
-
"name": "Banner",
|
|
598
|
-
"cssProperties": [
|
|
599
|
-
{
|
|
600
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
601
|
-
"name": "--n-banner-border-radius",
|
|
602
|
-
"default": "var(--n-border-radius)"
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
606
|
-
"name": "--n-banner-box-shadow",
|
|
607
|
-
"default": "var(--n-box-shadow-card)"
|
|
608
|
-
}
|
|
609
|
-
],
|
|
610
|
-
"slots": [
|
|
611
|
-
{
|
|
612
|
-
"description": "default slot",
|
|
613
|
-
"name": ""
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
"members": [
|
|
617
|
-
{
|
|
618
|
-
"kind": "field",
|
|
619
|
-
"name": "variant",
|
|
620
|
-
"type": {
|
|
621
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
622
|
-
},
|
|
623
|
-
"default": "\"info\"",
|
|
624
|
-
"description": "The style variant of the banner.",
|
|
625
|
-
"attribute": "variant",
|
|
626
|
-
"reflects": true
|
|
627
|
-
}
|
|
628
|
-
],
|
|
629
|
-
"attributes": [
|
|
630
|
-
{
|
|
631
|
-
"name": "variant",
|
|
632
|
-
"type": {
|
|
633
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
634
|
-
},
|
|
635
|
-
"default": "\"info\"",
|
|
636
|
-
"description": "The style variant of the banner.",
|
|
637
|
-
"fieldName": "variant"
|
|
638
|
-
}
|
|
639
|
-
],
|
|
640
|
-
"superclass": {
|
|
641
|
-
"name": "LitElement",
|
|
642
|
-
"package": "lit"
|
|
643
|
-
},
|
|
644
|
-
"localization": [],
|
|
645
|
-
"status": "ready",
|
|
646
|
-
"category": "feedback",
|
|
647
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
648
|
-
"examples": [],
|
|
649
|
-
"tagName": "nord-banner",
|
|
650
|
-
"customElement": true
|
|
651
|
-
}
|
|
652
|
-
],
|
|
653
|
-
"exports": [
|
|
654
|
-
{
|
|
655
|
-
"kind": "js",
|
|
656
|
-
"name": "default",
|
|
657
|
-
"declaration": {
|
|
658
|
-
"name": "Banner",
|
|
659
|
-
"module": "src/banner/Banner.ts"
|
|
660
|
-
}
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"kind": "custom-element-definition",
|
|
664
|
-
"name": "nord-banner",
|
|
665
|
-
"declaration": {
|
|
666
|
-
"name": "Banner",
|
|
667
|
-
"module": "src/banner/Banner.ts"
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
]
|
|
671
|
-
},
|
|
672
590
|
{
|
|
673
591
|
"kind": "javascript-module",
|
|
674
592
|
"path": "src/badge/Badge.ts",
|
|
@@ -1296,6 +1214,88 @@
|
|
|
1296
1214
|
}
|
|
1297
1215
|
]
|
|
1298
1216
|
},
|
|
1217
|
+
{
|
|
1218
|
+
"kind": "javascript-module",
|
|
1219
|
+
"path": "src/banner/Banner.ts",
|
|
1220
|
+
"declarations": [
|
|
1221
|
+
{
|
|
1222
|
+
"kind": "class",
|
|
1223
|
+
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
1224
|
+
"name": "Banner",
|
|
1225
|
+
"cssProperties": [
|
|
1226
|
+
{
|
|
1227
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1228
|
+
"name": "--n-banner-border-radius",
|
|
1229
|
+
"default": "var(--n-border-radius)"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1233
|
+
"name": "--n-banner-box-shadow",
|
|
1234
|
+
"default": "var(--n-box-shadow-card)"
|
|
1235
|
+
}
|
|
1236
|
+
],
|
|
1237
|
+
"slots": [
|
|
1238
|
+
{
|
|
1239
|
+
"description": "default slot",
|
|
1240
|
+
"name": ""
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"members": [
|
|
1244
|
+
{
|
|
1245
|
+
"kind": "field",
|
|
1246
|
+
"name": "variant",
|
|
1247
|
+
"type": {
|
|
1248
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1249
|
+
},
|
|
1250
|
+
"default": "\"info\"",
|
|
1251
|
+
"description": "The style variant of the banner.",
|
|
1252
|
+
"attribute": "variant",
|
|
1253
|
+
"reflects": true
|
|
1254
|
+
}
|
|
1255
|
+
],
|
|
1256
|
+
"attributes": [
|
|
1257
|
+
{
|
|
1258
|
+
"name": "variant",
|
|
1259
|
+
"type": {
|
|
1260
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1261
|
+
},
|
|
1262
|
+
"default": "\"info\"",
|
|
1263
|
+
"description": "The style variant of the banner.",
|
|
1264
|
+
"fieldName": "variant"
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
"superclass": {
|
|
1268
|
+
"name": "LitElement",
|
|
1269
|
+
"package": "lit"
|
|
1270
|
+
},
|
|
1271
|
+
"localization": [],
|
|
1272
|
+
"status": "ready",
|
|
1273
|
+
"category": "feedback",
|
|
1274
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
|
|
1275
|
+
"examples": [],
|
|
1276
|
+
"tagName": "nord-banner",
|
|
1277
|
+
"customElement": true
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
"exports": [
|
|
1281
|
+
{
|
|
1282
|
+
"kind": "js",
|
|
1283
|
+
"name": "default",
|
|
1284
|
+
"declaration": {
|
|
1285
|
+
"name": "Banner",
|
|
1286
|
+
"module": "src/banner/Banner.ts"
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "custom-element-definition",
|
|
1291
|
+
"name": "nord-banner",
|
|
1292
|
+
"declaration": {
|
|
1293
|
+
"name": "Banner",
|
|
1294
|
+
"module": "src/banner/Banner.ts"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
]
|
|
1298
|
+
},
|
|
1299
1299
|
{
|
|
1300
1300
|
"kind": "javascript-module",
|
|
1301
1301
|
"path": "src/button-group/ButtonGroup.ts",
|
|
@@ -6559,7 +6559,7 @@
|
|
|
6559
6559
|
"localization": [],
|
|
6560
6560
|
"status": "ready",
|
|
6561
6561
|
"category": "structure",
|
|
6562
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n\n</div>\n\n
|
|
6562
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n- Utilise the [`n-truncate`](/css/#miscellaneous-utilities) CSS helper to prevent long headings from wrapping.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n",
|
|
6563
6563
|
"examples": [],
|
|
6564
6564
|
"tagName": "nord-header",
|
|
6565
6565
|
"customElement": true
|
|
@@ -8188,342 +8188,89 @@
|
|
|
8188
8188
|
},
|
|
8189
8189
|
{
|
|
8190
8190
|
"kind": "javascript-module",
|
|
8191
|
-
"path": "src/
|
|
8191
|
+
"path": "src/modal/Modal.ts",
|
|
8192
8192
|
"declarations": [
|
|
8193
8193
|
{
|
|
8194
8194
|
"kind": "class",
|
|
8195
|
-
"description": "",
|
|
8196
|
-
"name": "
|
|
8195
|
+
"description": "Modal component is used to display content that temporarily blocks interactions\nwith the main view of an application. Modal should be used sparingly and\nonly when necessary.",
|
|
8196
|
+
"name": "Modal",
|
|
8197
|
+
"cssProperties": [
|
|
8198
|
+
{
|
|
8199
|
+
"description": "Controls the padding on the sides of the modal, using our [spacing tokens](/tokens/#space).",
|
|
8200
|
+
"name": "--n-modal-padding-inline",
|
|
8201
|
+
"default": "var(--n-space-m)"
|
|
8202
|
+
},
|
|
8203
|
+
{
|
|
8204
|
+
"description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
|
|
8205
|
+
"name": "--n-modal-padding-block",
|
|
8206
|
+
"default": "var(--n-space-m)"
|
|
8207
|
+
},
|
|
8208
|
+
{
|
|
8209
|
+
"description": "Controls the width of the modal.",
|
|
8210
|
+
"name": "--n-modal-max-inline-size",
|
|
8211
|
+
"default": "620px"
|
|
8212
|
+
}
|
|
8213
|
+
],
|
|
8214
|
+
"slots": [
|
|
8215
|
+
{
|
|
8216
|
+
"description": "Default slot",
|
|
8217
|
+
"name": ""
|
|
8218
|
+
},
|
|
8219
|
+
{
|
|
8220
|
+
"description": "Slot which holds the header of the modal, positioned next to the close button.",
|
|
8221
|
+
"name": "header"
|
|
8222
|
+
},
|
|
8223
|
+
{
|
|
8224
|
+
"description": "Slot which is typically used to hold call to action buttons, but can also be used to build custom footers.",
|
|
8225
|
+
"name": "footer"
|
|
8226
|
+
}
|
|
8227
|
+
],
|
|
8197
8228
|
"members": [
|
|
8198
8229
|
{
|
|
8199
8230
|
"kind": "field",
|
|
8200
|
-
"name": "
|
|
8231
|
+
"name": "modal",
|
|
8201
8232
|
"type": {
|
|
8202
|
-
"text": "
|
|
8233
|
+
"text": "HTMLDivElement"
|
|
8203
8234
|
},
|
|
8204
8235
|
"privacy": "private"
|
|
8205
8236
|
},
|
|
8206
8237
|
{
|
|
8207
8238
|
"kind": "field",
|
|
8208
|
-
"name": "
|
|
8239
|
+
"name": "backdrop",
|
|
8209
8240
|
"type": {
|
|
8210
|
-
"text": "
|
|
8241
|
+
"text": "HTMLDivElement"
|
|
8211
8242
|
},
|
|
8212
8243
|
"privacy": "private"
|
|
8213
8244
|
},
|
|
8214
8245
|
{
|
|
8215
8246
|
"kind": "field",
|
|
8216
|
-
"name": "
|
|
8217
|
-
"
|
|
8247
|
+
"name": "headerSlot",
|
|
8248
|
+
"privacy": "private",
|
|
8249
|
+
"default": "new SlotController(this, \"header\")"
|
|
8218
8250
|
},
|
|
8219
8251
|
{
|
|
8220
8252
|
"kind": "field",
|
|
8221
|
-
"name": "
|
|
8222
|
-
"
|
|
8253
|
+
"name": "featureSlot",
|
|
8254
|
+
"privacy": "private",
|
|
8255
|
+
"default": "new SlotController(this, \"feature\")"
|
|
8223
8256
|
},
|
|
8224
8257
|
{
|
|
8225
|
-
"kind": "
|
|
8226
|
-
"name": "
|
|
8258
|
+
"kind": "field",
|
|
8259
|
+
"name": "footerSlot",
|
|
8260
|
+
"privacy": "private",
|
|
8261
|
+
"default": "new SlotController(this, \"footer\")"
|
|
8227
8262
|
},
|
|
8228
8263
|
{
|
|
8229
|
-
"kind": "
|
|
8230
|
-
"name": "
|
|
8264
|
+
"kind": "field",
|
|
8265
|
+
"name": "localize",
|
|
8266
|
+
"privacy": "private",
|
|
8267
|
+
"default": "new LocalizeController<\"nord-modal\">(this)"
|
|
8231
8268
|
},
|
|
8232
8269
|
{
|
|
8233
|
-
"kind": "
|
|
8234
|
-
"name": "
|
|
8235
|
-
"
|
|
8236
|
-
|
|
8237
|
-
"text": "Result<Translation[TComponentName], Key>"
|
|
8238
|
-
}
|
|
8239
|
-
},
|
|
8240
|
-
"parameters": [
|
|
8241
|
-
{
|
|
8242
|
-
"name": "key",
|
|
8243
|
-
"type": {
|
|
8244
|
-
"text": "Key"
|
|
8245
|
-
}
|
|
8246
|
-
},
|
|
8247
|
-
{
|
|
8248
|
-
"name": "args",
|
|
8249
|
-
"type": {
|
|
8250
|
-
"text": "FuncParams<Translation[TComponentName], Key>"
|
|
8251
|
-
}
|
|
8252
|
-
}
|
|
8253
|
-
]
|
|
8254
|
-
},
|
|
8255
|
-
{
|
|
8256
|
-
"kind": "field",
|
|
8257
|
-
"name": "handleLangChange",
|
|
8258
|
-
"privacy": "private"
|
|
8259
|
-
}
|
|
8260
|
-
]
|
|
8261
|
-
}
|
|
8262
|
-
],
|
|
8263
|
-
"exports": [
|
|
8264
|
-
{
|
|
8265
|
-
"kind": "js",
|
|
8266
|
-
"name": "LocalizeController",
|
|
8267
|
-
"declaration": {
|
|
8268
|
-
"name": "LocalizeController",
|
|
8269
|
-
"module": "src/localization/LocalizeController.ts"
|
|
8270
|
-
}
|
|
8271
|
-
}
|
|
8272
|
-
]
|
|
8273
|
-
},
|
|
8274
|
-
{
|
|
8275
|
-
"kind": "javascript-module",
|
|
8276
|
-
"path": "src/localization/en-us.ts",
|
|
8277
|
-
"declarations": [
|
|
8278
|
-
{
|
|
8279
|
-
"kind": "variable",
|
|
8280
|
-
"name": "en",
|
|
8281
|
-
"type": {
|
|
8282
|
-
"text": "object"
|
|
8283
|
-
},
|
|
8284
|
-
"default": "{\n $lang: \"en-US\",\n $name: \"English\",\n $dir: \"ltr\" as \"ltr\" | \"rtl\",\n \"nord-command-menu\": commandMenuLocalization,\n \"nord-calendar\": calendarLocalization,\n \"nord-date-picker\": datePickerLocalization,\n \"nord-modal\": modalLocalization,\n \"nord-nav-toggle\": navToggleLocalization,\n \"nord-textarea\": textareaLocalization,\n}"
|
|
8285
|
-
}
|
|
8286
|
-
],
|
|
8287
|
-
"exports": [
|
|
8288
|
-
{
|
|
8289
|
-
"kind": "js",
|
|
8290
|
-
"name": "default",
|
|
8291
|
-
"declaration": {
|
|
8292
|
-
"name": "en",
|
|
8293
|
-
"module": "src/localization/en-us.ts"
|
|
8294
|
-
}
|
|
8295
|
-
}
|
|
8296
|
-
]
|
|
8297
|
-
},
|
|
8298
|
-
{
|
|
8299
|
-
"kind": "javascript-module",
|
|
8300
|
-
"path": "src/localization/fi-fi.ts",
|
|
8301
|
-
"declarations": [
|
|
8302
|
-
{
|
|
8303
|
-
"kind": "variable",
|
|
8304
|
-
"name": "fi",
|
|
8305
|
-
"type": {
|
|
8306
|
-
"text": "Translation"
|
|
8307
|
-
},
|
|
8308
|
-
"default": "{\n $lang: \"fi\",\n $name: \"Suomi\",\n $dir: \"ltr\",\n\n \"nord-command-menu\": {\n instructions: \"Paina 'Enter' vahvistaaksesi valinnan tai 'Escape' peruuttaaksesi\",\n inputLabel: \"Kirjoita komento jonka haluat suorittaa.\",\n footerArrowKeys: \"Siirry\",\n footerEnterKey: \"Valitse\",\n footerEscapeKey: \"Esc sulje\",\n footerBackspaceKey: \"Siirry takaisin\",\n noResults: searchTerm => `Ei tuloksia haulle \"${searchTerm}\"`,\n tip: \"Vinkki: jotkin haut vaativat tarkan hakutermin. Koita kirjoittaa koko hakutermi kokonaisuudessaan, tai kokeile toista sanaa tai fraasia.\",\n },\n\n \"nord-calendar\": {\n prevMonthLabel: \"Edellinen kuukausi\",\n nextMonthLabel: \"Seuraava kuukausi\",\n monthSelectLabel: \"Kuukausi\",\n yearSelectLabel: \"Vuosi\",\n },\n\n \"nord-date-picker\": {\n modalHeading: \"Valitse päivämäärä\",\n closeLabel: \"Sulje ikkuna\",\n buttonLabel: \"Valitse päivämäärä\",\n selectedDateMessage: \"Valittu päivämäärä on\",\n },\n\n \"nord-modal\": {\n closeLabel: \"Sulje ikkuna\",\n },\n\n \"nord-nav-toggle\": {\n label: \"Näytä/Piilota valikko\",\n },\n\n \"nord-textarea\": {\n remainingCharacters: (remaining: number) => `${remaining} merkkiä jäljellä`,\n },\n}"
|
|
8309
|
-
}
|
|
8310
|
-
],
|
|
8311
|
-
"exports": [
|
|
8312
|
-
{
|
|
8313
|
-
"kind": "js",
|
|
8314
|
-
"name": "default",
|
|
8315
|
-
"declaration": {
|
|
8316
|
-
"name": "fi",
|
|
8317
|
-
"module": "src/localization/fi-fi.ts"
|
|
8318
|
-
}
|
|
8319
|
-
}
|
|
8320
|
-
]
|
|
8321
|
-
},
|
|
8322
|
-
{
|
|
8323
|
-
"kind": "javascript-module",
|
|
8324
|
-
"path": "src/localization/translation.ts",
|
|
8325
|
-
"declarations": [
|
|
8326
|
-
{
|
|
8327
|
-
"kind": "function",
|
|
8328
|
-
"name": "clearTranslations",
|
|
8329
|
-
"description": "Removes all registered translations"
|
|
8330
|
-
},
|
|
8331
|
-
{
|
|
8332
|
-
"kind": "function",
|
|
8333
|
-
"name": "registerTranslation",
|
|
8334
|
-
"parameters": [
|
|
8335
|
-
{
|
|
8336
|
-
"name": "translation",
|
|
8337
|
-
"type": {
|
|
8338
|
-
"text": "Translation[]"
|
|
8339
|
-
}
|
|
8340
|
-
}
|
|
8341
|
-
],
|
|
8342
|
-
"description": "Registers one or more translations"
|
|
8343
|
-
},
|
|
8344
|
-
{
|
|
8345
|
-
"kind": "function",
|
|
8346
|
-
"name": "subscribe",
|
|
8347
|
-
"return": {
|
|
8348
|
-
"type": {
|
|
8349
|
-
"text": ""
|
|
8350
|
-
}
|
|
8351
|
-
},
|
|
8352
|
-
"parameters": [
|
|
8353
|
-
{
|
|
8354
|
-
"name": "onChange",
|
|
8355
|
-
"type": {
|
|
8356
|
-
"text": "() => void"
|
|
8357
|
-
},
|
|
8358
|
-
"description": "callback for when either `lang` attr changes, or a new language is registered."
|
|
8359
|
-
}
|
|
8360
|
-
],
|
|
8361
|
-
"description": "subscribe to language changes"
|
|
8362
|
-
},
|
|
8363
|
-
{
|
|
8364
|
-
"kind": "function",
|
|
8365
|
-
"name": "isTranslationRegistered",
|
|
8366
|
-
"parameters": [
|
|
8367
|
-
{
|
|
8368
|
-
"name": "lang",
|
|
8369
|
-
"type": {
|
|
8370
|
-
"text": "string"
|
|
8371
|
-
},
|
|
8372
|
-
"description": "the lang code e.g. \"en\" or \"en-GB\""
|
|
8373
|
-
}
|
|
8374
|
-
],
|
|
8375
|
-
"description": "Check whether there is a translation registered for the given lang"
|
|
8376
|
-
},
|
|
8377
|
-
{
|
|
8378
|
-
"kind": "function",
|
|
8379
|
-
"name": "resolveTranslation",
|
|
8380
|
-
"parameters": [
|
|
8381
|
-
{
|
|
8382
|
-
"name": "langCode",
|
|
8383
|
-
"type": {
|
|
8384
|
-
"text": "string"
|
|
8385
|
-
}
|
|
8386
|
-
}
|
|
8387
|
-
],
|
|
8388
|
-
"description": "Picks the most appropriate translation for the given language, from most specific to least specific.\nFirst tries lang + region, then lang only, then fallback."
|
|
8389
|
-
}
|
|
8390
|
-
],
|
|
8391
|
-
"exports": [
|
|
8392
|
-
{
|
|
8393
|
-
"kind": "js",
|
|
8394
|
-
"name": "clearTranslations",
|
|
8395
|
-
"declaration": {
|
|
8396
|
-
"name": "clearTranslations",
|
|
8397
|
-
"module": "src/localization/translation.ts"
|
|
8398
|
-
}
|
|
8399
|
-
},
|
|
8400
|
-
{
|
|
8401
|
-
"kind": "js",
|
|
8402
|
-
"name": "registerTranslation",
|
|
8403
|
-
"declaration": {
|
|
8404
|
-
"name": "registerTranslation",
|
|
8405
|
-
"module": "src/localization/translation.ts"
|
|
8406
|
-
}
|
|
8407
|
-
},
|
|
8408
|
-
{
|
|
8409
|
-
"kind": "js",
|
|
8410
|
-
"name": "subscribe",
|
|
8411
|
-
"declaration": {
|
|
8412
|
-
"name": "subscribe",
|
|
8413
|
-
"module": "src/localization/translation.ts"
|
|
8414
|
-
}
|
|
8415
|
-
},
|
|
8416
|
-
{
|
|
8417
|
-
"kind": "js",
|
|
8418
|
-
"name": "isTranslationRegistered",
|
|
8419
|
-
"declaration": {
|
|
8420
|
-
"name": "isTranslationRegistered",
|
|
8421
|
-
"module": "src/localization/translation.ts"
|
|
8422
|
-
}
|
|
8423
|
-
},
|
|
8424
|
-
{
|
|
8425
|
-
"kind": "js",
|
|
8426
|
-
"name": "resolveTranslation",
|
|
8427
|
-
"declaration": {
|
|
8428
|
-
"name": "resolveTranslation",
|
|
8429
|
-
"module": "src/localization/translation.ts"
|
|
8430
|
-
}
|
|
8431
|
-
},
|
|
8432
|
-
{
|
|
8433
|
-
"kind": "js",
|
|
8434
|
-
"name": "fallback",
|
|
8435
|
-
"declaration": {
|
|
8436
|
-
"name": "en",
|
|
8437
|
-
"module": "src/localization/translation.ts"
|
|
8438
|
-
}
|
|
8439
|
-
}
|
|
8440
|
-
]
|
|
8441
|
-
},
|
|
8442
|
-
{
|
|
8443
|
-
"kind": "javascript-module",
|
|
8444
|
-
"path": "src/modal/Modal.ts",
|
|
8445
|
-
"declarations": [
|
|
8446
|
-
{
|
|
8447
|
-
"kind": "class",
|
|
8448
|
-
"description": "Modal component is used to display content that temporarily blocks interactions\nwith the main view of an application. Modal should be used sparingly and\nonly when necessary.",
|
|
8449
|
-
"name": "Modal",
|
|
8450
|
-
"cssProperties": [
|
|
8451
|
-
{
|
|
8452
|
-
"description": "Controls the padding on the sides of the modal, using our [spacing tokens](/tokens/#space).",
|
|
8453
|
-
"name": "--n-modal-padding-inline",
|
|
8454
|
-
"default": "var(--n-space-m)"
|
|
8455
|
-
},
|
|
8456
|
-
{
|
|
8457
|
-
"description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
|
|
8458
|
-
"name": "--n-modal-padding-block",
|
|
8459
|
-
"default": "var(--n-space-m)"
|
|
8460
|
-
},
|
|
8461
|
-
{
|
|
8462
|
-
"description": "Controls the width of the modal.",
|
|
8463
|
-
"name": "--n-modal-max-inline-size",
|
|
8464
|
-
"default": "620px"
|
|
8465
|
-
}
|
|
8466
|
-
],
|
|
8467
|
-
"slots": [
|
|
8468
|
-
{
|
|
8469
|
-
"description": "Default slot",
|
|
8470
|
-
"name": ""
|
|
8471
|
-
},
|
|
8472
|
-
{
|
|
8473
|
-
"description": "Slot which holds the header of the modal, positioned next to the close button.",
|
|
8474
|
-
"name": "header"
|
|
8475
|
-
},
|
|
8476
|
-
{
|
|
8477
|
-
"description": "Slot which is typically used to hold call to action buttons, but can also be used to build custom footers.",
|
|
8478
|
-
"name": "footer"
|
|
8479
|
-
}
|
|
8480
|
-
],
|
|
8481
|
-
"members": [
|
|
8482
|
-
{
|
|
8483
|
-
"kind": "field",
|
|
8484
|
-
"name": "modal",
|
|
8485
|
-
"type": {
|
|
8486
|
-
"text": "HTMLDivElement"
|
|
8487
|
-
},
|
|
8488
|
-
"privacy": "private"
|
|
8489
|
-
},
|
|
8490
|
-
{
|
|
8491
|
-
"kind": "field",
|
|
8492
|
-
"name": "backdrop",
|
|
8493
|
-
"type": {
|
|
8494
|
-
"text": "HTMLDivElement"
|
|
8495
|
-
},
|
|
8496
|
-
"privacy": "private"
|
|
8497
|
-
},
|
|
8498
|
-
{
|
|
8499
|
-
"kind": "field",
|
|
8500
|
-
"name": "headerSlot",
|
|
8501
|
-
"privacy": "private",
|
|
8502
|
-
"default": "new SlotController(this, \"header\")"
|
|
8503
|
-
},
|
|
8504
|
-
{
|
|
8505
|
-
"kind": "field",
|
|
8506
|
-
"name": "featureSlot",
|
|
8507
|
-
"privacy": "private",
|
|
8508
|
-
"default": "new SlotController(this, \"feature\")"
|
|
8509
|
-
},
|
|
8510
|
-
{
|
|
8511
|
-
"kind": "field",
|
|
8512
|
-
"name": "footerSlot",
|
|
8513
|
-
"privacy": "private",
|
|
8514
|
-
"default": "new SlotController(this, \"footer\")"
|
|
8515
|
-
},
|
|
8516
|
-
{
|
|
8517
|
-
"kind": "field",
|
|
8518
|
-
"name": "localize",
|
|
8519
|
-
"privacy": "private",
|
|
8520
|
-
"default": "new LocalizeController<\"nord-modal\">(this)"
|
|
8521
|
-
},
|
|
8522
|
-
{
|
|
8523
|
-
"kind": "field",
|
|
8524
|
-
"name": "modalController",
|
|
8525
|
-
"privacy": "private",
|
|
8526
|
-
"default": "new ModalController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.handleDismiss(),\n dialog: () => this.modal,\n backdrop: () => this.backdrop,\n close: returnValue => this.close(returnValue),\n })"
|
|
8270
|
+
"kind": "field",
|
|
8271
|
+
"name": "modalController",
|
|
8272
|
+
"privacy": "private",
|
|
8273
|
+
"default": "new ModalController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.handleDismiss(),\n dialog: () => this.modal,\n backdrop: () => this.backdrop,\n close: returnValue => this.close(returnValue),\n })"
|
|
8527
8274
|
},
|
|
8528
8275
|
{
|
|
8529
8276
|
"kind": "field",
|
|
@@ -8833,25 +8580,158 @@
|
|
|
8833
8580
|
"exports": [
|
|
8834
8581
|
{
|
|
8835
8582
|
"kind": "js",
|
|
8836
|
-
"name": "ModalController",
|
|
8583
|
+
"name": "ModalController",
|
|
8584
|
+
"declaration": {
|
|
8585
|
+
"name": "ModalController",
|
|
8586
|
+
"module": "src/modal/ModalController.ts"
|
|
8587
|
+
}
|
|
8588
|
+
}
|
|
8589
|
+
]
|
|
8590
|
+
},
|
|
8591
|
+
{
|
|
8592
|
+
"kind": "javascript-module",
|
|
8593
|
+
"path": "src/modal/localization.ts",
|
|
8594
|
+
"declarations": [
|
|
8595
|
+
{
|
|
8596
|
+
"kind": "variable",
|
|
8597
|
+
"name": "localization",
|
|
8598
|
+
"type": {
|
|
8599
|
+
"text": "object"
|
|
8600
|
+
},
|
|
8601
|
+
"default": "{\n closeLabel: \"Close dialog\",\n}"
|
|
8602
|
+
}
|
|
8603
|
+
],
|
|
8604
|
+
"exports": [
|
|
8605
|
+
{
|
|
8606
|
+
"kind": "js",
|
|
8607
|
+
"name": "default",
|
|
8608
|
+
"declaration": {
|
|
8609
|
+
"name": "localization",
|
|
8610
|
+
"module": "src/modal/localization.ts"
|
|
8611
|
+
}
|
|
8612
|
+
}
|
|
8613
|
+
]
|
|
8614
|
+
},
|
|
8615
|
+
{
|
|
8616
|
+
"kind": "javascript-module",
|
|
8617
|
+
"path": "src/localization/LocalizeController.ts",
|
|
8618
|
+
"declarations": [
|
|
8619
|
+
{
|
|
8620
|
+
"kind": "class",
|
|
8621
|
+
"description": "",
|
|
8622
|
+
"name": "LocalizeController",
|
|
8623
|
+
"members": [
|
|
8624
|
+
{
|
|
8625
|
+
"kind": "field",
|
|
8626
|
+
"name": "unsubscribe",
|
|
8627
|
+
"type": {
|
|
8628
|
+
"text": "ReturnType<typeof subscribe> | undefined"
|
|
8629
|
+
},
|
|
8630
|
+
"privacy": "private"
|
|
8631
|
+
},
|
|
8632
|
+
{
|
|
8633
|
+
"kind": "field",
|
|
8634
|
+
"name": "resolvedTranslation",
|
|
8635
|
+
"type": {
|
|
8636
|
+
"text": "Translation"
|
|
8637
|
+
},
|
|
8638
|
+
"privacy": "private"
|
|
8639
|
+
},
|
|
8640
|
+
{
|
|
8641
|
+
"kind": "field",
|
|
8642
|
+
"name": "lang",
|
|
8643
|
+
"description": "The lang of the document or element, with element taking precedence"
|
|
8644
|
+
},
|
|
8645
|
+
{
|
|
8646
|
+
"kind": "field",
|
|
8647
|
+
"name": "resolvedLang",
|
|
8648
|
+
"description": "The lang of the translation being applied.\nThis may not match the document/element lang, in case of fallback translation"
|
|
8649
|
+
},
|
|
8650
|
+
{
|
|
8651
|
+
"kind": "method",
|
|
8652
|
+
"name": "hostConnected"
|
|
8653
|
+
},
|
|
8654
|
+
{
|
|
8655
|
+
"kind": "method",
|
|
8656
|
+
"name": "hostDisconnected"
|
|
8657
|
+
},
|
|
8658
|
+
{
|
|
8659
|
+
"kind": "method",
|
|
8660
|
+
"name": "term",
|
|
8661
|
+
"return": {
|
|
8662
|
+
"type": {
|
|
8663
|
+
"text": "Result<Translation[TComponentName], Key>"
|
|
8664
|
+
}
|
|
8665
|
+
},
|
|
8666
|
+
"parameters": [
|
|
8667
|
+
{
|
|
8668
|
+
"name": "key",
|
|
8669
|
+
"type": {
|
|
8670
|
+
"text": "Key"
|
|
8671
|
+
}
|
|
8672
|
+
},
|
|
8673
|
+
{
|
|
8674
|
+
"name": "args",
|
|
8675
|
+
"type": {
|
|
8676
|
+
"text": "FuncParams<Translation[TComponentName], Key>"
|
|
8677
|
+
}
|
|
8678
|
+
}
|
|
8679
|
+
]
|
|
8680
|
+
},
|
|
8681
|
+
{
|
|
8682
|
+
"kind": "field",
|
|
8683
|
+
"name": "handleLangChange",
|
|
8684
|
+
"privacy": "private"
|
|
8685
|
+
}
|
|
8686
|
+
]
|
|
8687
|
+
}
|
|
8688
|
+
],
|
|
8689
|
+
"exports": [
|
|
8690
|
+
{
|
|
8691
|
+
"kind": "js",
|
|
8692
|
+
"name": "LocalizeController",
|
|
8693
|
+
"declaration": {
|
|
8694
|
+
"name": "LocalizeController",
|
|
8695
|
+
"module": "src/localization/LocalizeController.ts"
|
|
8696
|
+
}
|
|
8697
|
+
}
|
|
8698
|
+
]
|
|
8699
|
+
},
|
|
8700
|
+
{
|
|
8701
|
+
"kind": "javascript-module",
|
|
8702
|
+
"path": "src/localization/en-us.ts",
|
|
8703
|
+
"declarations": [
|
|
8704
|
+
{
|
|
8705
|
+
"kind": "variable",
|
|
8706
|
+
"name": "en",
|
|
8707
|
+
"type": {
|
|
8708
|
+
"text": "object"
|
|
8709
|
+
},
|
|
8710
|
+
"default": "{\n $lang: \"en-US\",\n $name: \"English\",\n $dir: \"ltr\" as \"ltr\" | \"rtl\",\n \"nord-command-menu\": commandMenuLocalization,\n \"nord-calendar\": calendarLocalization,\n \"nord-date-picker\": datePickerLocalization,\n \"nord-modal\": modalLocalization,\n \"nord-nav-toggle\": navToggleLocalization,\n \"nord-textarea\": textareaLocalization,\n}"
|
|
8711
|
+
}
|
|
8712
|
+
],
|
|
8713
|
+
"exports": [
|
|
8714
|
+
{
|
|
8715
|
+
"kind": "js",
|
|
8716
|
+
"name": "default",
|
|
8837
8717
|
"declaration": {
|
|
8838
|
-
"name": "
|
|
8839
|
-
"module": "src/
|
|
8718
|
+
"name": "en",
|
|
8719
|
+
"module": "src/localization/en-us.ts"
|
|
8840
8720
|
}
|
|
8841
8721
|
}
|
|
8842
8722
|
]
|
|
8843
8723
|
},
|
|
8844
8724
|
{
|
|
8845
8725
|
"kind": "javascript-module",
|
|
8846
|
-
"path": "src/
|
|
8726
|
+
"path": "src/localization/fi-fi.ts",
|
|
8847
8727
|
"declarations": [
|
|
8848
8728
|
{
|
|
8849
8729
|
"kind": "variable",
|
|
8850
|
-
"name": "
|
|
8730
|
+
"name": "fi",
|
|
8851
8731
|
"type": {
|
|
8852
|
-
"text": "
|
|
8732
|
+
"text": "Translation"
|
|
8853
8733
|
},
|
|
8854
|
-
"default": "{\n closeLabel: \"
|
|
8734
|
+
"default": "{\n $lang: \"fi\",\n $name: \"Suomi\",\n $dir: \"ltr\",\n\n \"nord-command-menu\": {\n instructions: \"Paina 'Enter' vahvistaaksesi valinnan tai 'Escape' peruuttaaksesi\",\n inputLabel: \"Kirjoita komento jonka haluat suorittaa.\",\n footerArrowKeys: \"Siirry\",\n footerEnterKey: \"Valitse\",\n footerEscapeKey: \"Esc sulje\",\n footerBackspaceKey: \"Siirry takaisin\",\n noResults: searchTerm => `Ei tuloksia haulle \"${searchTerm}\"`,\n tip: \"Vinkki: jotkin haut vaativat tarkan hakutermin. Koita kirjoittaa koko hakutermi kokonaisuudessaan, tai kokeile toista sanaa tai fraasia.\",\n },\n\n \"nord-calendar\": {\n prevMonthLabel: \"Edellinen kuukausi\",\n nextMonthLabel: \"Seuraava kuukausi\",\n monthSelectLabel: \"Kuukausi\",\n yearSelectLabel: \"Vuosi\",\n },\n\n \"nord-date-picker\": {\n modalHeading: \"Valitse päivämäärä\",\n closeLabel: \"Sulje ikkuna\",\n buttonLabel: \"Valitse päivämäärä\",\n selectedDateMessage: \"Valittu päivämäärä on\",\n },\n\n \"nord-modal\": {\n closeLabel: \"Sulje ikkuna\",\n },\n\n \"nord-nav-toggle\": {\n label: \"Näytä/Piilota valikko\",\n },\n\n \"nord-textarea\": {\n remainingCharacters: (remaining: number) => `${remaining} merkkiä jäljellä`,\n },\n}"
|
|
8855
8735
|
}
|
|
8856
8736
|
],
|
|
8857
8737
|
"exports": [
|
|
@@ -8859,8 +8739,128 @@
|
|
|
8859
8739
|
"kind": "js",
|
|
8860
8740
|
"name": "default",
|
|
8861
8741
|
"declaration": {
|
|
8862
|
-
"name": "
|
|
8863
|
-
"module": "src/
|
|
8742
|
+
"name": "fi",
|
|
8743
|
+
"module": "src/localization/fi-fi.ts"
|
|
8744
|
+
}
|
|
8745
|
+
}
|
|
8746
|
+
]
|
|
8747
|
+
},
|
|
8748
|
+
{
|
|
8749
|
+
"kind": "javascript-module",
|
|
8750
|
+
"path": "src/localization/translation.ts",
|
|
8751
|
+
"declarations": [
|
|
8752
|
+
{
|
|
8753
|
+
"kind": "function",
|
|
8754
|
+
"name": "clearTranslations",
|
|
8755
|
+
"description": "Removes all registered translations"
|
|
8756
|
+
},
|
|
8757
|
+
{
|
|
8758
|
+
"kind": "function",
|
|
8759
|
+
"name": "registerTranslation",
|
|
8760
|
+
"parameters": [
|
|
8761
|
+
{
|
|
8762
|
+
"name": "translation",
|
|
8763
|
+
"type": {
|
|
8764
|
+
"text": "Translation[]"
|
|
8765
|
+
}
|
|
8766
|
+
}
|
|
8767
|
+
],
|
|
8768
|
+
"description": "Registers one or more translations"
|
|
8769
|
+
},
|
|
8770
|
+
{
|
|
8771
|
+
"kind": "function",
|
|
8772
|
+
"name": "subscribe",
|
|
8773
|
+
"return": {
|
|
8774
|
+
"type": {
|
|
8775
|
+
"text": ""
|
|
8776
|
+
}
|
|
8777
|
+
},
|
|
8778
|
+
"parameters": [
|
|
8779
|
+
{
|
|
8780
|
+
"name": "onChange",
|
|
8781
|
+
"type": {
|
|
8782
|
+
"text": "() => void"
|
|
8783
|
+
},
|
|
8784
|
+
"description": "callback for when either `lang` attr changes, or a new language is registered."
|
|
8785
|
+
}
|
|
8786
|
+
],
|
|
8787
|
+
"description": "subscribe to language changes"
|
|
8788
|
+
},
|
|
8789
|
+
{
|
|
8790
|
+
"kind": "function",
|
|
8791
|
+
"name": "isTranslationRegistered",
|
|
8792
|
+
"parameters": [
|
|
8793
|
+
{
|
|
8794
|
+
"name": "lang",
|
|
8795
|
+
"type": {
|
|
8796
|
+
"text": "string"
|
|
8797
|
+
},
|
|
8798
|
+
"description": "the lang code e.g. \"en\" or \"en-GB\""
|
|
8799
|
+
}
|
|
8800
|
+
],
|
|
8801
|
+
"description": "Check whether there is a translation registered for the given lang"
|
|
8802
|
+
},
|
|
8803
|
+
{
|
|
8804
|
+
"kind": "function",
|
|
8805
|
+
"name": "resolveTranslation",
|
|
8806
|
+
"parameters": [
|
|
8807
|
+
{
|
|
8808
|
+
"name": "langCode",
|
|
8809
|
+
"type": {
|
|
8810
|
+
"text": "string"
|
|
8811
|
+
}
|
|
8812
|
+
}
|
|
8813
|
+
],
|
|
8814
|
+
"description": "Picks the most appropriate translation for the given language, from most specific to least specific.\nFirst tries lang + region, then lang only, then fallback."
|
|
8815
|
+
}
|
|
8816
|
+
],
|
|
8817
|
+
"exports": [
|
|
8818
|
+
{
|
|
8819
|
+
"kind": "js",
|
|
8820
|
+
"name": "clearTranslations",
|
|
8821
|
+
"declaration": {
|
|
8822
|
+
"name": "clearTranslations",
|
|
8823
|
+
"module": "src/localization/translation.ts"
|
|
8824
|
+
}
|
|
8825
|
+
},
|
|
8826
|
+
{
|
|
8827
|
+
"kind": "js",
|
|
8828
|
+
"name": "registerTranslation",
|
|
8829
|
+
"declaration": {
|
|
8830
|
+
"name": "registerTranslation",
|
|
8831
|
+
"module": "src/localization/translation.ts"
|
|
8832
|
+
}
|
|
8833
|
+
},
|
|
8834
|
+
{
|
|
8835
|
+
"kind": "js",
|
|
8836
|
+
"name": "subscribe",
|
|
8837
|
+
"declaration": {
|
|
8838
|
+
"name": "subscribe",
|
|
8839
|
+
"module": "src/localization/translation.ts"
|
|
8840
|
+
}
|
|
8841
|
+
},
|
|
8842
|
+
{
|
|
8843
|
+
"kind": "js",
|
|
8844
|
+
"name": "isTranslationRegistered",
|
|
8845
|
+
"declaration": {
|
|
8846
|
+
"name": "isTranslationRegistered",
|
|
8847
|
+
"module": "src/localization/translation.ts"
|
|
8848
|
+
}
|
|
8849
|
+
},
|
|
8850
|
+
{
|
|
8851
|
+
"kind": "js",
|
|
8852
|
+
"name": "resolveTranslation",
|
|
8853
|
+
"declaration": {
|
|
8854
|
+
"name": "resolveTranslation",
|
|
8855
|
+
"module": "src/localization/translation.ts"
|
|
8856
|
+
}
|
|
8857
|
+
},
|
|
8858
|
+
{
|
|
8859
|
+
"kind": "js",
|
|
8860
|
+
"name": "fallback",
|
|
8861
|
+
"declaration": {
|
|
8862
|
+
"name": "en",
|
|
8863
|
+
"module": "src/localization/translation.ts"
|
|
8864
8864
|
}
|
|
8865
8865
|
}
|
|
8866
8866
|
]
|
|
@@ -9193,6 +9193,61 @@
|
|
|
9193
9193
|
}
|
|
9194
9194
|
]
|
|
9195
9195
|
},
|
|
9196
|
+
{
|
|
9197
|
+
"kind": "javascript-module",
|
|
9198
|
+
"path": "src/navigation/Navigation.ts",
|
|
9199
|
+
"declarations": [
|
|
9200
|
+
{
|
|
9201
|
+
"kind": "class",
|
|
9202
|
+
"description": "Navigation is used to display the primary navigation in the sidebar\nof an application. Navigation includes a list of links that users\nuse to move between sections of the application.",
|
|
9203
|
+
"name": "Navigation",
|
|
9204
|
+
"slots": [
|
|
9205
|
+
{
|
|
9206
|
+
"description": "The main section of the sidebar, for holding nav components.",
|
|
9207
|
+
"name": ""
|
|
9208
|
+
},
|
|
9209
|
+
{
|
|
9210
|
+
"description": "The top section of the sidebar.",
|
|
9211
|
+
"name": "header"
|
|
9212
|
+
},
|
|
9213
|
+
{
|
|
9214
|
+
"description": "The bottom section of the sidebar.",
|
|
9215
|
+
"name": "footer"
|
|
9216
|
+
}
|
|
9217
|
+
],
|
|
9218
|
+
"members": [],
|
|
9219
|
+
"superclass": {
|
|
9220
|
+
"name": "LitElement",
|
|
9221
|
+
"package": "lit"
|
|
9222
|
+
},
|
|
9223
|
+
"localization": [],
|
|
9224
|
+
"status": "ready",
|
|
9225
|
+
"category": "navigation",
|
|
9226
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
9227
|
+
"examples": [],
|
|
9228
|
+
"tagName": "nord-navigation",
|
|
9229
|
+
"customElement": true
|
|
9230
|
+
}
|
|
9231
|
+
],
|
|
9232
|
+
"exports": [
|
|
9233
|
+
{
|
|
9234
|
+
"kind": "js",
|
|
9235
|
+
"name": "default",
|
|
9236
|
+
"declaration": {
|
|
9237
|
+
"name": "Navigation",
|
|
9238
|
+
"module": "src/navigation/Navigation.ts"
|
|
9239
|
+
}
|
|
9240
|
+
},
|
|
9241
|
+
{
|
|
9242
|
+
"kind": "custom-element-definition",
|
|
9243
|
+
"name": "nord-navigation",
|
|
9244
|
+
"declaration": {
|
|
9245
|
+
"name": "Navigation",
|
|
9246
|
+
"module": "src/navigation/Navigation.ts"
|
|
9247
|
+
}
|
|
9248
|
+
}
|
|
9249
|
+
]
|
|
9250
|
+
},
|
|
9196
9251
|
{
|
|
9197
9252
|
"kind": "javascript-module",
|
|
9198
9253
|
"path": "src/nav-toggle/NavToggle.ts",
|
|
@@ -9328,68 +9383,6 @@
|
|
|
9328
9383
|
}
|
|
9329
9384
|
]
|
|
9330
9385
|
},
|
|
9331
|
-
{
|
|
9332
|
-
"kind": "javascript-module",
|
|
9333
|
-
"path": "src/navigation/Navigation.ts",
|
|
9334
|
-
"declarations": [
|
|
9335
|
-
{
|
|
9336
|
-
"kind": "class",
|
|
9337
|
-
"description": "Navigation is used to display the primary navigation in the sidebar\nof an application. Navigation includes a list of links that users\nuse to move between sections of the application.",
|
|
9338
|
-
"name": "Navigation",
|
|
9339
|
-
"slots": [
|
|
9340
|
-
{
|
|
9341
|
-
"description": "The main section of the sidebar, for holding nav components.",
|
|
9342
|
-
"name": ""
|
|
9343
|
-
},
|
|
9344
|
-
{
|
|
9345
|
-
"description": "The top section of the sidebar.",
|
|
9346
|
-
"name": "header"
|
|
9347
|
-
},
|
|
9348
|
-
{
|
|
9349
|
-
"description": "The bottom section of the sidebar.",
|
|
9350
|
-
"name": "footer"
|
|
9351
|
-
}
|
|
9352
|
-
],
|
|
9353
|
-
"members": [
|
|
9354
|
-
{
|
|
9355
|
-
"kind": "field",
|
|
9356
|
-
"name": "headerSlot",
|
|
9357
|
-
"privacy": "private",
|
|
9358
|
-
"default": "new SlotController(this, \"header\")"
|
|
9359
|
-
}
|
|
9360
|
-
],
|
|
9361
|
-
"superclass": {
|
|
9362
|
-
"name": "LitElement",
|
|
9363
|
-
"package": "lit"
|
|
9364
|
-
},
|
|
9365
|
-
"localization": [],
|
|
9366
|
-
"status": "ready",
|
|
9367
|
-
"category": "navigation",
|
|
9368
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
9369
|
-
"examples": [],
|
|
9370
|
-
"tagName": "nord-navigation",
|
|
9371
|
-
"customElement": true
|
|
9372
|
-
}
|
|
9373
|
-
],
|
|
9374
|
-
"exports": [
|
|
9375
|
-
{
|
|
9376
|
-
"kind": "js",
|
|
9377
|
-
"name": "default",
|
|
9378
|
-
"declaration": {
|
|
9379
|
-
"name": "Navigation",
|
|
9380
|
-
"module": "src/navigation/Navigation.ts"
|
|
9381
|
-
}
|
|
9382
|
-
},
|
|
9383
|
-
{
|
|
9384
|
-
"kind": "custom-element-definition",
|
|
9385
|
-
"name": "nord-navigation",
|
|
9386
|
-
"declaration": {
|
|
9387
|
-
"name": "Navigation",
|
|
9388
|
-
"module": "src/navigation/Navigation.ts"
|
|
9389
|
-
}
|
|
9390
|
-
}
|
|
9391
|
-
]
|
|
9392
|
-
},
|
|
9393
9386
|
{
|
|
9394
9387
|
"kind": "javascript-module",
|
|
9395
9388
|
"path": "src/popout/Popout.ts",
|
|
@@ -12280,21 +12273,20 @@
|
|
|
12280
12273
|
"kind": "field",
|
|
12281
12274
|
"name": "effect",
|
|
12282
12275
|
"type": {
|
|
12283
|
-
"text": "\"pulse\" | \"sheen\" |
|
|
12276
|
+
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
12284
12277
|
},
|
|
12285
|
-
"
|
|
12286
|
-
"
|
|
12287
|
-
"
|
|
12278
|
+
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
12279
|
+
"attribute": "effect",
|
|
12280
|
+
"reflects": true
|
|
12288
12281
|
}
|
|
12289
12282
|
],
|
|
12290
12283
|
"attributes": [
|
|
12291
12284
|
{
|
|
12292
12285
|
"name": "effect",
|
|
12293
12286
|
"type": {
|
|
12294
|
-
"text": "\"pulse\" | \"sheen\" |
|
|
12287
|
+
"text": "\"pulse\" | \"sheen\" | undefined"
|
|
12295
12288
|
},
|
|
12296
|
-
"
|
|
12297
|
-
"description": "Determines which animation effect the skeleton will use.",
|
|
12289
|
+
"description": "Determines which animation effect the skeleton will use.\nThe default is no animation.",
|
|
12298
12290
|
"fieldName": "effect"
|
|
12299
12291
|
}
|
|
12300
12292
|
],
|