@nordhealth/components 4.3.0 → 4.3.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 +1116 -1111
- package/lib/DatePicker.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/{Popout-5MtZ4gbP.js → Popout-BnM-vhZ-.js} +2 -2
- package/lib/Popout-BnM-vhZ-.js.map +1 -0
- package/lib/Popout.js +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/popout/Popout.d.ts +1 -0
- package/package.json +2 -2
- package/lib/Popout-5MtZ4gbP.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -2166,129 +2166,6 @@
|
|
|
2166
2166
|
}
|
|
2167
2167
|
]
|
|
2168
2168
|
},
|
|
2169
|
-
{
|
|
2170
|
-
"kind": "javascript-module",
|
|
2171
|
-
"path": "src/card/Card.ts",
|
|
2172
|
-
"declarations": [
|
|
2173
|
-
{
|
|
2174
|
-
"kind": "class",
|
|
2175
|
-
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2176
|
-
"name": "Card",
|
|
2177
|
-
"cssProperties": [
|
|
2178
|
-
{
|
|
2179
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2180
|
-
"name": "--n-card-border-radius",
|
|
2181
|
-
"default": "var(--n-border-radius)"
|
|
2182
|
-
},
|
|
2183
|
-
{
|
|
2184
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2185
|
-
"name": "--n-card-box-shadow",
|
|
2186
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2187
|
-
},
|
|
2188
|
-
{
|
|
2189
|
-
"description": "Controls the padding on all sides of the card.",
|
|
2190
|
-
"name": "--n-card-padding",
|
|
2191
|
-
"default": "var(--n-space-m)"
|
|
2192
|
-
},
|
|
2193
|
-
{
|
|
2194
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2195
|
-
"name": "--n-card-slot-padding",
|
|
2196
|
-
"default": "var(--n-space-m)"
|
|
2197
|
-
}
|
|
2198
|
-
],
|
|
2199
|
-
"slots": [
|
|
2200
|
-
{
|
|
2201
|
-
"description": "The card content.",
|
|
2202
|
-
"name": ""
|
|
2203
|
-
},
|
|
2204
|
-
{
|
|
2205
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2206
|
-
"name": "header"
|
|
2207
|
-
},
|
|
2208
|
-
{
|
|
2209
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2210
|
-
"name": "header-end"
|
|
2211
|
-
},
|
|
2212
|
-
{
|
|
2213
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2214
|
-
"name": "footer"
|
|
2215
|
-
}
|
|
2216
|
-
],
|
|
2217
|
-
"members": [
|
|
2218
|
-
{
|
|
2219
|
-
"kind": "field",
|
|
2220
|
-
"name": "headerSlot",
|
|
2221
|
-
"privacy": "private",
|
|
2222
|
-
"default": "new SlotController(this, \"header\")"
|
|
2223
|
-
},
|
|
2224
|
-
{
|
|
2225
|
-
"kind": "field",
|
|
2226
|
-
"name": "headerEndSlot",
|
|
2227
|
-
"privacy": "private",
|
|
2228
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
2229
|
-
},
|
|
2230
|
-
{
|
|
2231
|
-
"kind": "field",
|
|
2232
|
-
"name": "footerSlot",
|
|
2233
|
-
"privacy": "private",
|
|
2234
|
-
"default": "new SlotController(this, \"footer\")"
|
|
2235
|
-
},
|
|
2236
|
-
{
|
|
2237
|
-
"kind": "field",
|
|
2238
|
-
"name": "padding",
|
|
2239
|
-
"type": {
|
|
2240
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2241
|
-
},
|
|
2242
|
-
"default": "\"m\"",
|
|
2243
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2244
|
-
"attribute": "padding",
|
|
2245
|
-
"reflects": true
|
|
2246
|
-
}
|
|
2247
|
-
],
|
|
2248
|
-
"attributes": [
|
|
2249
|
-
{
|
|
2250
|
-
"name": "padding",
|
|
2251
|
-
"type": {
|
|
2252
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2253
|
-
},
|
|
2254
|
-
"default": "\"m\"",
|
|
2255
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2256
|
-
"fieldName": "padding"
|
|
2257
|
-
}
|
|
2258
|
-
],
|
|
2259
|
-
"superclass": {
|
|
2260
|
-
"name": "LitElement",
|
|
2261
|
-
"package": "lit"
|
|
2262
|
-
},
|
|
2263
|
-
"localization": [],
|
|
2264
|
-
"status": "ready",
|
|
2265
|
-
"category": "structure",
|
|
2266
|
-
"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 to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
2267
|
-
"examples": [],
|
|
2268
|
-
"dependencies": [],
|
|
2269
|
-
"tagName": "nord-card",
|
|
2270
|
-
"customElement": true
|
|
2271
|
-
}
|
|
2272
|
-
],
|
|
2273
|
-
"exports": [
|
|
2274
|
-
{
|
|
2275
|
-
"kind": "js",
|
|
2276
|
-
"name": "default",
|
|
2277
|
-
"declaration": {
|
|
2278
|
-
"name": "Card",
|
|
2279
|
-
"module": "src/card/Card.ts"
|
|
2280
|
-
}
|
|
2281
|
-
},
|
|
2282
|
-
{
|
|
2283
|
-
"kind": "custom-element-definition",
|
|
2284
|
-
"name": "nord-card",
|
|
2285
|
-
"declaration": {
|
|
2286
|
-
"name": "Card",
|
|
2287
|
-
"module": "src/card/Card.ts"
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
]
|
|
2291
|
-
},
|
|
2292
2169
|
{
|
|
2293
2170
|
"kind": "javascript-module",
|
|
2294
2171
|
"path": "src/checkbox/Checkbox.ts",
|
|
@@ -3027,6 +2904,129 @@
|
|
|
3027
2904
|
}
|
|
3028
2905
|
]
|
|
3029
2906
|
},
|
|
2907
|
+
{
|
|
2908
|
+
"kind": "javascript-module",
|
|
2909
|
+
"path": "src/card/Card.ts",
|
|
2910
|
+
"declarations": [
|
|
2911
|
+
{
|
|
2912
|
+
"kind": "class",
|
|
2913
|
+
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2914
|
+
"name": "Card",
|
|
2915
|
+
"cssProperties": [
|
|
2916
|
+
{
|
|
2917
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2918
|
+
"name": "--n-card-border-radius",
|
|
2919
|
+
"default": "var(--n-border-radius)"
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2923
|
+
"name": "--n-card-box-shadow",
|
|
2924
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2928
|
+
"name": "--n-card-padding",
|
|
2929
|
+
"default": "var(--n-space-m)"
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2933
|
+
"name": "--n-card-slot-padding",
|
|
2934
|
+
"default": "var(--n-space-m)"
|
|
2935
|
+
}
|
|
2936
|
+
],
|
|
2937
|
+
"slots": [
|
|
2938
|
+
{
|
|
2939
|
+
"description": "The card content.",
|
|
2940
|
+
"name": ""
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2944
|
+
"name": "header"
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2948
|
+
"name": "header-end"
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2952
|
+
"name": "footer"
|
|
2953
|
+
}
|
|
2954
|
+
],
|
|
2955
|
+
"members": [
|
|
2956
|
+
{
|
|
2957
|
+
"kind": "field",
|
|
2958
|
+
"name": "headerSlot",
|
|
2959
|
+
"privacy": "private",
|
|
2960
|
+
"default": "new SlotController(this, \"header\")"
|
|
2961
|
+
},
|
|
2962
|
+
{
|
|
2963
|
+
"kind": "field",
|
|
2964
|
+
"name": "headerEndSlot",
|
|
2965
|
+
"privacy": "private",
|
|
2966
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"kind": "field",
|
|
2970
|
+
"name": "footerSlot",
|
|
2971
|
+
"privacy": "private",
|
|
2972
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"kind": "field",
|
|
2976
|
+
"name": "padding",
|
|
2977
|
+
"type": {
|
|
2978
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2979
|
+
},
|
|
2980
|
+
"default": "\"m\"",
|
|
2981
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2982
|
+
"attribute": "padding",
|
|
2983
|
+
"reflects": true
|
|
2984
|
+
}
|
|
2985
|
+
],
|
|
2986
|
+
"attributes": [
|
|
2987
|
+
{
|
|
2988
|
+
"name": "padding",
|
|
2989
|
+
"type": {
|
|
2990
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2991
|
+
},
|
|
2992
|
+
"default": "\"m\"",
|
|
2993
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2994
|
+
"fieldName": "padding"
|
|
2995
|
+
}
|
|
2996
|
+
],
|
|
2997
|
+
"superclass": {
|
|
2998
|
+
"name": "LitElement",
|
|
2999
|
+
"package": "lit"
|
|
3000
|
+
},
|
|
3001
|
+
"localization": [],
|
|
3002
|
+
"status": "ready",
|
|
3003
|
+
"category": "structure",
|
|
3004
|
+
"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 to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
3005
|
+
"examples": [],
|
|
3006
|
+
"dependencies": [],
|
|
3007
|
+
"tagName": "nord-card",
|
|
3008
|
+
"customElement": true
|
|
3009
|
+
}
|
|
3010
|
+
],
|
|
3011
|
+
"exports": [
|
|
3012
|
+
{
|
|
3013
|
+
"kind": "js",
|
|
3014
|
+
"name": "default",
|
|
3015
|
+
"declaration": {
|
|
3016
|
+
"name": "Card",
|
|
3017
|
+
"module": "src/card/Card.ts"
|
|
3018
|
+
}
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
"kind": "custom-element-definition",
|
|
3022
|
+
"name": "nord-card",
|
|
3023
|
+
"declaration": {
|
|
3024
|
+
"name": "Card",
|
|
3025
|
+
"module": "src/card/Card.ts"
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
]
|
|
3029
|
+
},
|
|
3030
3030
|
{
|
|
3031
3031
|
"kind": "javascript-module",
|
|
3032
3032
|
"path": "src/command-menu/CommandMenu.ts",
|
|
@@ -11117,6 +11117,11 @@
|
|
|
11117
11117
|
"name": "handleIdChange",
|
|
11118
11118
|
"privacy": "protected"
|
|
11119
11119
|
},
|
|
11120
|
+
{
|
|
11121
|
+
"kind": "method",
|
|
11122
|
+
"name": "initializeElements",
|
|
11123
|
+
"privacy": "private"
|
|
11124
|
+
},
|
|
11120
11125
|
{
|
|
11121
11126
|
"kind": "method",
|
|
11122
11127
|
"name": "handleOpenChange",
|
|
@@ -15428,7 +15433,7 @@
|
|
|
15428
15433
|
"localization": [],
|
|
15429
15434
|
"status": "ready",
|
|
15430
15435
|
"category": "list",
|
|
15431
|
-
"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 when you need to display tabular data in a view.\n- Use a `<table>` element directly within the component.\n- Use inside a [Card](/components/card/?example=with+table), and give the card a header.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to display list data.\n- Don’t use to display basic key and value pairs, consider a [description list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl) instead.\n- Don’t use tables for layout.\n- Don't use a primary button in every row of a table.\n\n</div>\n\n---\n\n## Content guidelines\n\nHeaders in a table should be clear, accurate and predictable. When writing headers, 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\">User account</div>\n<div class=\"n-usage n-usage-dont\">User Account</div>\n\nInclude units of measurement symbols in the table header so they aren’t repeated throughout every single column:\n\n<div class=\"n-usage n-usage-do\">Temperature °C</div>\n<div class=\"n-usage n-usage-dont\">Temperature</div>\n\nAvoid unnecessary words and articles in table headers, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Description</div>\n<div class=\"n-usage n-usage-dont\">A description</div>\n\nKeep decimals consistent. For example, don’t use 3 decimals in one row and 2 in others:\n\n<div class=\"n-usage n-usage-do\">30.00<br/>25.00</div>\n<div class=\"n-usage n-usage-dont\">30.000<br/>25.0</div>\n\n---\n\n## Additional considerations\n\n- Nord’s table component acts as a lightweight and un-opinionated _wrapper_ component for enhancing tabular data. It is up to the user of this component to make sure that the table markup they use is accessible.\n- Despite the name the Nord table component does not supplement the HTML `<table>` element. Please ensure that a `<table>` element is a direct descendant of the table component.\n- It’s important to pay close attention to semantics when authoring tables. The markup in the examples can be used as a starting point. However, be aware that [HTML tables have a large feature set](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) which cannot be fully covered in this documentation.\n- When making adjustments to table columns such as width, color, alignment and other styles please consider using the HTML `<col>` and `<colgroup>` elements for applying them. Further information on the `<col>` and `<colgroup>` elements can be [found in the MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col).\n\n---\n\n## Advanced use-cases\n\nThe table component itself does not provide any functionality, only styles. This works well for simple or static tables, but there are instances where functionality such as sorting, resizing, or column dragging are required. This kind of functionality is out of scope for the table component, as the spectrum of possible use-cases is too broad for a single component to cover effectively. Whilst the table component is limited out of the box, these same limitations make it easy to integrate with third-party libraries which offer advanced functionality.\n\nBroadly speaking, there are two categories of library for building advanced tables: _headless_ and _component-based_.\n\n### Which kind of table library should I use?\n\nEach approach has subtle tradeoffs. Understanding these subtleties will help you make the right decision for your application and team.\n\n#### Component-based Table Libraries\n\nComponent-based table libraries will typically supply you with a feature-rich drop-in solution, and ready-to-use components/markup complete with styles/theming.\n\n**Pros:**\n\n- Ship with ready-to-use markup/styles.\n- Little setup required.\n- Turn-key experience.\n\n**Cons:**\n\n- Less control over markup.\n- Custom styles are typically theme-based.\n- Larger bundle-sizes.\n\nIf you want a ready-to-use table and design/bundle-size are not hard requirements, then you should consider using a component-based table library.\n\n#### Headless Table Libraries\n\nHeadless table libraries will typically supply you with functions, state, utilities and event listeners to build your own table markup or attach to existing table markups.\n\n**Pros:**\n\n- Full control over markup and styles.\n- Supports all styling patterns (CSS, CSS-in-JS, UI libraries, etc).\n- Smaller bundle-sizes.\n\n**Cons:**\n\n- More setup and effort required.\n- No markup, styles or themes provided.\n\nIf you want a lighter-weight table or full control over the design, then you should consider using a headless table library.\n\n### Recommendation for headless libraries\n\nIn the headless category, we recommend [Tanstack Table](https://tanstack.com/table/). Tanstack table offers integrations for many UI frameworks, such as Vue and React. It is easy to work with, and because it does not bring any HTML or styles itself, you can use it to render a plain, semantic `<table>` wrapped in a `<nord-table>`, and you will get all the necessary styles.\n\nWe have created examples in both Vue and React, showing how to combine Tanstack table with Nord's table component, in order to build a table with both sorting and resizable columns. Check out the [React example](/components/table/?example=with+react+and+tanstack+table) and likewise the [Vue example](/components/table/?example=with+vue+and+tanstack+table).\n\n<nord-stack direction=\"horizontal\" class=\"n-margin-bs-l\">\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-react-tanstack-table\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n React / Tanstack table source\n </nord-button>\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-vue-tanstack-table\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n Vue / Tanstack table source\n </nord-button>\n</nord-stack>\n\n### Recommendation for component-based libraries\n\nIn the component-based category, we recommend [AG Grid](https://www.ag-grid.com/), specifically the community edition. AG Grid is feature-rich, has extensive documentation, and offers integrations for many UI frameworks, such as Vue and React. AG Grid takes control of all rendering and output, but offers extension points for taking control of some aspects. It does not output a `<table>` element, so it cannot be used with Nord's own table component.\n\nHowever it can be styled via themes, and we have created a Nord theme using our design tokens. The theme is published on npm as `@nordhealth/ag-theme-nord`. To use the theme, include the CSS in your project and add the class `ag-theme-nord` to the element wrapping AG Grid.\n\nWe have created examples in both Vue and React showing how to combine AG Grid with Nord's theme, in order to build a table with sorting, resizable columns, draggable and re-orderable columns, plus sticky/pinned columns. Check out the [React example](/components/table/?example=with+react+and+ag+grid) and likewise the [Vue example](/components/table/?example=with+vue+and+ag+grid).\n\n<nord-stack direction=\"horizontal\" class=\"n-margin-bs-l n-margin-be-s\">\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-react-ag-grid\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n React / AG Grid table source\n </nord-button>\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-vue-ag-grid\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n Vue / AG Grid table source\n </nord-button>\n</nord-stack>\n",
|
|
15436
|
+
"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 when you need to display tabular data in a view.\n- Use a `<table>` element directly within the component.\n- Use inside a [Card](/components/card/?example=with+table), and give the card a header.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to display list data.\n- Don’t use to display basic key and value pairs, consider a [description list](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl) instead.\n- Don’t use tables for layout.\n- Don't use a primary button in every row of a table.\n\n</div>\n\n---\n\n## Content guidelines\n\nHeaders in a table should be clear, accurate and predictable. When writing headers, 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\">User account</div>\n<div class=\"n-usage n-usage-dont\">User Account</div>\n\nInclude units of measurement symbols in the table header so they aren’t repeated throughout every single column:\n\n<div class=\"n-usage n-usage-do\">Temperature °C</div>\n<div class=\"n-usage n-usage-dont\">Temperature</div>\n\nAvoid unnecessary words and articles in table headers, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Description</div>\n<div class=\"n-usage n-usage-dont\">A description</div>\n\nKeep decimals consistent. For example, don’t use 3 decimals in one row and 2 in others:\n\n<div class=\"n-usage n-usage-do\">30.00<br/>25.00</div>\n<div class=\"n-usage n-usage-dont\">30.000<br/>25.0</div>\n\n---\n\n## Additional considerations\n\n- Nord’s table component acts as a lightweight and un-opinionated _wrapper_ component for enhancing tabular data. It is up to the user of this component to make sure that the table markup they use is accessible.\n- Despite the name the Nord table component does not supplement the HTML `<table>` element. Please ensure that a `<table>` element is a direct descendant of the table component.\n- It’s important to pay close attention to semantics when authoring tables. The markup in the examples can be used as a starting point. However, be aware that [HTML tables have a large feature set](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table) which cannot be fully covered in this documentation.\n- When making adjustments to table columns such as width, color, alignment and other styles please consider using the HTML `<col>` and `<colgroup>` elements for applying them. Further information on the `<col>` and `<colgroup>` elements can be [found in the MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col).\n\n---\n\n## Advanced use-cases\n\nThe table component itself does not provide any functionality, only styles. This works well for simple or static tables, but there are instances where functionality such as sorting, resizing, or column dragging are required. This kind of functionality is out of scope for the table component, as the spectrum of possible use-cases is too broad for a single component to cover effectively. Whilst the table component is limited out of the box, these same limitations make it easy to integrate with third-party libraries which offer advanced functionality.\n\nBroadly speaking, there are two categories of library for building advanced tables: _headless_ and _component-based_.\n\n### Which kind of table library should I use?\n\nEach approach has subtle tradeoffs. Understanding these subtleties will help you make the right decision for your application and team.\n\n#### Component-based Table Libraries\n\nComponent-based table libraries will typically supply you with a feature-rich drop-in solution, and ready-to-use components/markup complete with styles/theming.\n\n**Pros:**\n\n- Ship with ready-to-use markup/styles.\n- Little setup required.\n- Turn-key experience.\n\n**Cons:**\n\n- Less control over markup.\n- Custom styles are typically theme-based.\n- Larger bundle-sizes.\n\nIf you want a ready-to-use table and design/bundle-size are not hard requirements, then you should consider using a component-based table library.\n\n#### Headless Table Libraries\n\nHeadless table libraries will typically supply you with functions, state, utilities and event listeners to build your own table markup or attach to existing table markups.\n\n**Pros:**\n\n- Full control over markup and styles.\n- Supports all styling patterns (CSS, CSS-in-JS, UI libraries, etc).\n- Smaller bundle-sizes.\n\n**Cons:**\n\n- More setup and effort required.\n- No markup, styles or themes provided.\n\nIf you want a lighter-weight table or full control over the design, then you should consider using a headless table library.\n\n### Recommendation for headless libraries\n\nIn the headless category, we recommend [Tanstack Table](https://tanstack.com/table/). Tanstack table offers integrations for many UI frameworks, such as Vue and React. It is easy to work with, and because it does not bring any HTML or styles itself, you can use it to render a plain, semantic `<table>` wrapped in a `<nord-table>`, and you will get all the necessary styles.\n\nWe have created examples in both Vue and React, showing how to combine Tanstack table with Nord's table component, in order to build a table with both sorting and resizable columns. Check out the [React example](/components/table/?example=with+react+and+tanstack+table) and likewise the [Vue example](/components/table/?example=with+vue+and+tanstack+table).\n\n<nord-stack direction=\"horizontal\" class=\"n-margin-bs-l\">\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-react-tanstack-table\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n React / Tanstack table source\n </nord-button>\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-vue-tanstack-table\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n Vue / Tanstack table source\n </nord-button>\n</nord-stack>\n\n### Recommendation for component-based libraries\n\nIn the component-based category, we recommend [AG Grid](https://www.ag-grid.com/), specifically the community edition. AG Grid is feature-rich, has extensive documentation, and offers integrations for many UI frameworks, such as Vue and React. AG Grid takes control of all rendering and output, but offers extension points for taking control of some aspects. It does not output a `<table>` element, so it cannot be used with Nord's own table component.\n\nHowever it can be styled via themes, and we have created a Nord theme using our design tokens. The theme is published on npm as `@nordhealth/ag-theme-nord`. To use the theme, include the CSS in your project and add the class `ag-theme-nord` to the element wrapping AG Grid. You have to [configure legacy themes](https://www.ag-grid.com/javascript-data-grid/theming-migration/#continue-with-legacy-themes) if you are using v33 or higher.\n\nWe have created examples in both Vue and React showing how to combine AG Grid with Nord's theme, in order to build a table with sorting, resizable columns, draggable and re-orderable columns, plus sticky/pinned columns. Check out the [React example](/components/table/?example=with+react+and+ag+grid) and likewise the [Vue example](/components/table/?example=with+vue+and+ag+grid).\n\n<nord-stack direction=\"horizontal\" class=\"n-margin-bs-l n-margin-be-s\">\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-react-ag-grid\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n React / AG Grid table source\n </nord-button>\n <nord-button href=\"https://github.com/nordhealth/advanced-table-examples/tree/main/nord-vue-ag-grid\" target=\"_blank\">\n <nord-icon name=\"generic-github\" size=\"s\" slot=\"start\"></nord-icon>\n Vue / AG Grid table source\n </nord-button>\n</nord-stack>\n",
|
|
15432
15437
|
"examples": [
|
|
15433
15438
|
{
|
|
15434
15439
|
"url": "https://stackblitz.com/github/nordhealth/advanced-table-examples/tree/main/nord-react-tanstack-table?embed=1&file=src/DataTable/DataTable.tsx&hideNavigation=1&view=preview",
|
|
@@ -17142,250 +17147,7 @@
|
|
|
17142
17147
|
},
|
|
17143
17148
|
{
|
|
17144
17149
|
"kind": "javascript-module",
|
|
17145
|
-
"path": "src/
|
|
17146
|
-
"declarations": [
|
|
17147
|
-
{
|
|
17148
|
-
"kind": "class",
|
|
17149
|
-
"description": "Toasts are non-disruptive messages that appear in the interface\nto provide quick, at-a-glance feedback on the outcome of an action.",
|
|
17150
|
-
"name": "Toast",
|
|
17151
|
-
"slots": [
|
|
17152
|
-
{
|
|
17153
|
-
"description": "Default slot used for the toast text/message.",
|
|
17154
|
-
"name": ""
|
|
17155
|
-
}
|
|
17156
|
-
],
|
|
17157
|
-
"members": [
|
|
17158
|
-
{
|
|
17159
|
-
"kind": "field",
|
|
17160
|
-
"name": "timeoutId",
|
|
17161
|
-
"type": {
|
|
17162
|
-
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
17163
|
-
},
|
|
17164
|
-
"privacy": "private"
|
|
17165
|
-
},
|
|
17166
|
-
{
|
|
17167
|
-
"kind": "field",
|
|
17168
|
-
"name": "variant",
|
|
17169
|
-
"type": {
|
|
17170
|
-
"text": "\"default\" | \"danger\""
|
|
17171
|
-
},
|
|
17172
|
-
"default": "\"default\"",
|
|
17173
|
-
"description": "The style variant of the toast.",
|
|
17174
|
-
"attribute": "variant",
|
|
17175
|
-
"reflects": true
|
|
17176
|
-
},
|
|
17177
|
-
{
|
|
17178
|
-
"kind": "field",
|
|
17179
|
-
"name": "autoDismiss",
|
|
17180
|
-
"type": {
|
|
17181
|
-
"text": "number"
|
|
17182
|
-
},
|
|
17183
|
-
"default": "10000",
|
|
17184
|
-
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
17185
|
-
"attribute": "auto-dismiss",
|
|
17186
|
-
"reflects": true
|
|
17187
|
-
},
|
|
17188
|
-
{
|
|
17189
|
-
"kind": "method",
|
|
17190
|
-
"name": "dismiss",
|
|
17191
|
-
"description": "Programmatically dismiss the toast.\nThe returned promise resolves when toast's exit animation is complete.",
|
|
17192
|
-
"inheritedFrom": {
|
|
17193
|
-
"name": "NotificationMixin",
|
|
17194
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17195
|
-
}
|
|
17196
|
-
},
|
|
17197
|
-
{
|
|
17198
|
-
"kind": "method",
|
|
17199
|
-
"name": "handleAutoDismissChange",
|
|
17200
|
-
"privacy": "protected"
|
|
17201
|
-
},
|
|
17202
|
-
{
|
|
17203
|
-
"kind": "field",
|
|
17204
|
-
"name": "notificationRef",
|
|
17205
|
-
"privacy": "protected",
|
|
17206
|
-
"inheritedFrom": {
|
|
17207
|
-
"name": "NotificationMixin",
|
|
17208
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17209
|
-
}
|
|
17210
|
-
},
|
|
17211
|
-
{
|
|
17212
|
-
"kind": "field",
|
|
17213
|
-
"name": "dismissed",
|
|
17214
|
-
"type": {
|
|
17215
|
-
"text": "boolean"
|
|
17216
|
-
},
|
|
17217
|
-
"privacy": "protected",
|
|
17218
|
-
"default": "false",
|
|
17219
|
-
"inheritedFrom": {
|
|
17220
|
-
"name": "NotificationMixin",
|
|
17221
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17222
|
-
}
|
|
17223
|
-
}
|
|
17224
|
-
],
|
|
17225
|
-
"events": [
|
|
17226
|
-
{
|
|
17227
|
-
"name": "dismiss",
|
|
17228
|
-
"type": {
|
|
17229
|
-
"text": "NordEvent"
|
|
17230
|
-
},
|
|
17231
|
-
"description": "Fired when the toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
17232
|
-
"inheritedFrom": {
|
|
17233
|
-
"name": "NotificationMixin",
|
|
17234
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17235
|
-
}
|
|
17236
|
-
}
|
|
17237
|
-
],
|
|
17238
|
-
"attributes": [
|
|
17239
|
-
{
|
|
17240
|
-
"name": "variant",
|
|
17241
|
-
"type": {
|
|
17242
|
-
"text": "\"default\" | \"danger\""
|
|
17243
|
-
},
|
|
17244
|
-
"default": "\"default\"",
|
|
17245
|
-
"description": "The style variant of the toast.",
|
|
17246
|
-
"fieldName": "variant"
|
|
17247
|
-
},
|
|
17248
|
-
{
|
|
17249
|
-
"name": "auto-dismiss",
|
|
17250
|
-
"type": {
|
|
17251
|
-
"text": "number"
|
|
17252
|
-
},
|
|
17253
|
-
"default": "10000",
|
|
17254
|
-
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
17255
|
-
"fieldName": "autoDismiss"
|
|
17256
|
-
}
|
|
17257
|
-
],
|
|
17258
|
-
"mixins": [
|
|
17259
|
-
{
|
|
17260
|
-
"name": "NotificationMixin",
|
|
17261
|
-
"module": "/src/common/mixins/NotificationMixin.js"
|
|
17262
|
-
}
|
|
17263
|
-
],
|
|
17264
|
-
"superclass": {
|
|
17265
|
-
"name": "LitElement",
|
|
17266
|
-
"package": "lit"
|
|
17267
|
-
},
|
|
17268
|
-
"localization": [],
|
|
17269
|
-
"status": "ready",
|
|
17270
|
-
"category": "feedback",
|
|
17271
|
-
"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 short messages that confirm an action taken by a user.\n- Use for ephemeral status updates.\n- Use in combination with [Toast group](../toast-group/) so that toasts get styled and announced to screen readers correctly.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use toasts for critical information that user needs to act on. Consider using a [Notification](/components/notification) instead.\n- Don’t rely on users seeing toasts. Toasts are transient and should not be used for critical messages.\n- Don’t place interactive content in toasts. Assistive technology like screen readers will not convey any semantics when announcing toast messages.\n- Don’t use for error messages unless absolutely necessary. Try to favor a [Banner](/components/banner/) for error messaging instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
17272
|
-
"examples": [],
|
|
17273
|
-
"dependencies": [
|
|
17274
|
-
"icon"
|
|
17275
|
-
],
|
|
17276
|
-
"tagName": "nord-toast",
|
|
17277
|
-
"customElement": true
|
|
17278
|
-
}
|
|
17279
|
-
],
|
|
17280
|
-
"exports": [
|
|
17281
|
-
{
|
|
17282
|
-
"kind": "js",
|
|
17283
|
-
"name": "default",
|
|
17284
|
-
"declaration": {
|
|
17285
|
-
"name": "Toast",
|
|
17286
|
-
"module": "src/toast/Toast.ts"
|
|
17287
|
-
}
|
|
17288
|
-
},
|
|
17289
|
-
{
|
|
17290
|
-
"kind": "custom-element-definition",
|
|
17291
|
-
"name": "nord-toast",
|
|
17292
|
-
"declaration": {
|
|
17293
|
-
"name": "Toast",
|
|
17294
|
-
"module": "src/toast/Toast.ts"
|
|
17295
|
-
}
|
|
17296
|
-
}
|
|
17297
|
-
]
|
|
17298
|
-
},
|
|
17299
|
-
{
|
|
17300
|
-
"kind": "javascript-module",
|
|
17301
|
-
"path": "src/toast-group/ToastGroup.ts",
|
|
17302
|
-
"declarations": [
|
|
17303
|
-
{
|
|
17304
|
-
"kind": "class",
|
|
17305
|
-
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
17306
|
-
"name": "ToastGroup",
|
|
17307
|
-
"slots": [
|
|
17308
|
-
{
|
|
17309
|
-
"description": "Default slot in which to place toasts.",
|
|
17310
|
-
"name": ""
|
|
17311
|
-
}
|
|
17312
|
-
],
|
|
17313
|
-
"members": [
|
|
17314
|
-
{
|
|
17315
|
-
"kind": "method",
|
|
17316
|
-
"name": "addToast",
|
|
17317
|
-
"parameters": [
|
|
17318
|
-
{
|
|
17319
|
-
"name": "text",
|
|
17320
|
-
"type": {
|
|
17321
|
-
"text": "string"
|
|
17322
|
-
},
|
|
17323
|
-
"description": "The text/message of the toast."
|
|
17324
|
-
},
|
|
17325
|
-
{
|
|
17326
|
-
"name": "options",
|
|
17327
|
-
"default": "{}",
|
|
17328
|
-
"type": {
|
|
17329
|
-
"text": "ToastOptions"
|
|
17330
|
-
},
|
|
17331
|
-
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
17332
|
-
}
|
|
17333
|
-
],
|
|
17334
|
-
"description": "Convenience method for creating and adding a toast to the group.",
|
|
17335
|
-
"return": {
|
|
17336
|
-
"type": {
|
|
17337
|
-
"text": "Toast"
|
|
17338
|
-
}
|
|
17339
|
-
}
|
|
17340
|
-
}
|
|
17341
|
-
],
|
|
17342
|
-
"events": [
|
|
17343
|
-
{
|
|
17344
|
-
"type": {
|
|
17345
|
-
"text": "NordEvent"
|
|
17346
|
-
},
|
|
17347
|
-
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
17348
|
-
"name": "dismiss"
|
|
17349
|
-
}
|
|
17350
|
-
],
|
|
17351
|
-
"superclass": {
|
|
17352
|
-
"name": "LitElement",
|
|
17353
|
-
"package": "lit"
|
|
17354
|
-
},
|
|
17355
|
-
"localization": [],
|
|
17356
|
-
"status": "ready",
|
|
17357
|
-
"category": "feedback",
|
|
17358
|
-
"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 in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
17359
|
-
"examples": [],
|
|
17360
|
-
"dependencies": [
|
|
17361
|
-
"toast"
|
|
17362
|
-
],
|
|
17363
|
-
"tagName": "nord-toast-group",
|
|
17364
|
-
"customElement": true
|
|
17365
|
-
}
|
|
17366
|
-
],
|
|
17367
|
-
"exports": [
|
|
17368
|
-
{
|
|
17369
|
-
"kind": "js",
|
|
17370
|
-
"name": "default",
|
|
17371
|
-
"declaration": {
|
|
17372
|
-
"name": "ToastGroup",
|
|
17373
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17374
|
-
}
|
|
17375
|
-
},
|
|
17376
|
-
{
|
|
17377
|
-
"kind": "custom-element-definition",
|
|
17378
|
-
"name": "nord-toast-group",
|
|
17379
|
-
"declaration": {
|
|
17380
|
-
"name": "ToastGroup",
|
|
17381
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17382
|
-
}
|
|
17383
|
-
}
|
|
17384
|
-
]
|
|
17385
|
-
},
|
|
17386
|
-
{
|
|
17387
|
-
"kind": "javascript-module",
|
|
17388
|
-
"path": "src/toggle/Toggle.ts",
|
|
17150
|
+
"path": "src/toggle/Toggle.ts",
|
|
17389
17151
|
"declarations": [
|
|
17390
17152
|
{
|
|
17391
17153
|
"kind": "class",
|
|
@@ -18109,23 +17871,266 @@
|
|
|
18109
17871
|
},
|
|
18110
17872
|
{
|
|
18111
17873
|
"kind": "javascript-module",
|
|
18112
|
-
"path": "src/
|
|
17874
|
+
"path": "src/toast/Toast.ts",
|
|
18113
17875
|
"declarations": [
|
|
18114
17876
|
{
|
|
18115
17877
|
"kind": "class",
|
|
18116
|
-
"description": "
|
|
18117
|
-
"name": "
|
|
18118
|
-
"
|
|
17878
|
+
"description": "Toasts are non-disruptive messages that appear in the interface\nto provide quick, at-a-glance feedback on the outcome of an action.",
|
|
17879
|
+
"name": "Toast",
|
|
17880
|
+
"slots": [
|
|
18119
17881
|
{
|
|
18120
|
-
"description": "
|
|
18121
|
-
"name": "
|
|
18122
|
-
"default": "50ch"
|
|
17882
|
+
"description": "Default slot used for the toast text/message.",
|
|
17883
|
+
"name": ""
|
|
18123
17884
|
}
|
|
18124
17885
|
],
|
|
18125
|
-
"
|
|
17886
|
+
"members": [
|
|
18126
17887
|
{
|
|
18127
|
-
"
|
|
18128
|
-
"name": ""
|
|
17888
|
+
"kind": "field",
|
|
17889
|
+
"name": "timeoutId",
|
|
17890
|
+
"type": {
|
|
17891
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
17892
|
+
},
|
|
17893
|
+
"privacy": "private"
|
|
17894
|
+
},
|
|
17895
|
+
{
|
|
17896
|
+
"kind": "field",
|
|
17897
|
+
"name": "variant",
|
|
17898
|
+
"type": {
|
|
17899
|
+
"text": "\"default\" | \"danger\""
|
|
17900
|
+
},
|
|
17901
|
+
"default": "\"default\"",
|
|
17902
|
+
"description": "The style variant of the toast.",
|
|
17903
|
+
"attribute": "variant",
|
|
17904
|
+
"reflects": true
|
|
17905
|
+
},
|
|
17906
|
+
{
|
|
17907
|
+
"kind": "field",
|
|
17908
|
+
"name": "autoDismiss",
|
|
17909
|
+
"type": {
|
|
17910
|
+
"text": "number"
|
|
17911
|
+
},
|
|
17912
|
+
"default": "10000",
|
|
17913
|
+
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
17914
|
+
"attribute": "auto-dismiss",
|
|
17915
|
+
"reflects": true
|
|
17916
|
+
},
|
|
17917
|
+
{
|
|
17918
|
+
"kind": "method",
|
|
17919
|
+
"name": "dismiss",
|
|
17920
|
+
"description": "Programmatically dismiss the toast.\nThe returned promise resolves when toast's exit animation is complete.",
|
|
17921
|
+
"inheritedFrom": {
|
|
17922
|
+
"name": "NotificationMixin",
|
|
17923
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17924
|
+
}
|
|
17925
|
+
},
|
|
17926
|
+
{
|
|
17927
|
+
"kind": "method",
|
|
17928
|
+
"name": "handleAutoDismissChange",
|
|
17929
|
+
"privacy": "protected"
|
|
17930
|
+
},
|
|
17931
|
+
{
|
|
17932
|
+
"kind": "field",
|
|
17933
|
+
"name": "notificationRef",
|
|
17934
|
+
"privacy": "protected",
|
|
17935
|
+
"inheritedFrom": {
|
|
17936
|
+
"name": "NotificationMixin",
|
|
17937
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17938
|
+
}
|
|
17939
|
+
},
|
|
17940
|
+
{
|
|
17941
|
+
"kind": "field",
|
|
17942
|
+
"name": "dismissed",
|
|
17943
|
+
"type": {
|
|
17944
|
+
"text": "boolean"
|
|
17945
|
+
},
|
|
17946
|
+
"privacy": "protected",
|
|
17947
|
+
"default": "false",
|
|
17948
|
+
"inheritedFrom": {
|
|
17949
|
+
"name": "NotificationMixin",
|
|
17950
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17951
|
+
}
|
|
17952
|
+
}
|
|
17953
|
+
],
|
|
17954
|
+
"events": [
|
|
17955
|
+
{
|
|
17956
|
+
"name": "dismiss",
|
|
17957
|
+
"type": {
|
|
17958
|
+
"text": "NordEvent"
|
|
17959
|
+
},
|
|
17960
|
+
"description": "Fired when the toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
17961
|
+
"inheritedFrom": {
|
|
17962
|
+
"name": "NotificationMixin",
|
|
17963
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
17964
|
+
}
|
|
17965
|
+
}
|
|
17966
|
+
],
|
|
17967
|
+
"attributes": [
|
|
17968
|
+
{
|
|
17969
|
+
"name": "variant",
|
|
17970
|
+
"type": {
|
|
17971
|
+
"text": "\"default\" | \"danger\""
|
|
17972
|
+
},
|
|
17973
|
+
"default": "\"default\"",
|
|
17974
|
+
"description": "The style variant of the toast.",
|
|
17975
|
+
"fieldName": "variant"
|
|
17976
|
+
},
|
|
17977
|
+
{
|
|
17978
|
+
"name": "auto-dismiss",
|
|
17979
|
+
"type": {
|
|
17980
|
+
"text": "number"
|
|
17981
|
+
},
|
|
17982
|
+
"default": "10000",
|
|
17983
|
+
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
17984
|
+
"fieldName": "autoDismiss"
|
|
17985
|
+
}
|
|
17986
|
+
],
|
|
17987
|
+
"mixins": [
|
|
17988
|
+
{
|
|
17989
|
+
"name": "NotificationMixin",
|
|
17990
|
+
"module": "/src/common/mixins/NotificationMixin.js"
|
|
17991
|
+
}
|
|
17992
|
+
],
|
|
17993
|
+
"superclass": {
|
|
17994
|
+
"name": "LitElement",
|
|
17995
|
+
"package": "lit"
|
|
17996
|
+
},
|
|
17997
|
+
"localization": [],
|
|
17998
|
+
"status": "ready",
|
|
17999
|
+
"category": "feedback",
|
|
18000
|
+
"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 short messages that confirm an action taken by a user.\n- Use for ephemeral status updates.\n- Use in combination with [Toast group](../toast-group/) so that toasts get styled and announced to screen readers correctly.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use toasts for critical information that user needs to act on. Consider using a [Notification](/components/notification) instead.\n- Don’t rely on users seeing toasts. Toasts are transient and should not be used for critical messages.\n- Don’t place interactive content in toasts. Assistive technology like screen readers will not convey any semantics when announcing toast messages.\n- Don’t use for error messages unless absolutely necessary. Try to favor a [Banner](/components/banner/) for error messaging instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
18001
|
+
"examples": [],
|
|
18002
|
+
"dependencies": [
|
|
18003
|
+
"icon"
|
|
18004
|
+
],
|
|
18005
|
+
"tagName": "nord-toast",
|
|
18006
|
+
"customElement": true
|
|
18007
|
+
}
|
|
18008
|
+
],
|
|
18009
|
+
"exports": [
|
|
18010
|
+
{
|
|
18011
|
+
"kind": "js",
|
|
18012
|
+
"name": "default",
|
|
18013
|
+
"declaration": {
|
|
18014
|
+
"name": "Toast",
|
|
18015
|
+
"module": "src/toast/Toast.ts"
|
|
18016
|
+
}
|
|
18017
|
+
},
|
|
18018
|
+
{
|
|
18019
|
+
"kind": "custom-element-definition",
|
|
18020
|
+
"name": "nord-toast",
|
|
18021
|
+
"declaration": {
|
|
18022
|
+
"name": "Toast",
|
|
18023
|
+
"module": "src/toast/Toast.ts"
|
|
18024
|
+
}
|
|
18025
|
+
}
|
|
18026
|
+
]
|
|
18027
|
+
},
|
|
18028
|
+
{
|
|
18029
|
+
"kind": "javascript-module",
|
|
18030
|
+
"path": "src/toast-group/ToastGroup.ts",
|
|
18031
|
+
"declarations": [
|
|
18032
|
+
{
|
|
18033
|
+
"kind": "class",
|
|
18034
|
+
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
18035
|
+
"name": "ToastGroup",
|
|
18036
|
+
"slots": [
|
|
18037
|
+
{
|
|
18038
|
+
"description": "Default slot in which to place toasts.",
|
|
18039
|
+
"name": ""
|
|
18040
|
+
}
|
|
18041
|
+
],
|
|
18042
|
+
"members": [
|
|
18043
|
+
{
|
|
18044
|
+
"kind": "method",
|
|
18045
|
+
"name": "addToast",
|
|
18046
|
+
"parameters": [
|
|
18047
|
+
{
|
|
18048
|
+
"name": "text",
|
|
18049
|
+
"type": {
|
|
18050
|
+
"text": "string"
|
|
18051
|
+
},
|
|
18052
|
+
"description": "The text/message of the toast."
|
|
18053
|
+
},
|
|
18054
|
+
{
|
|
18055
|
+
"name": "options",
|
|
18056
|
+
"default": "{}",
|
|
18057
|
+
"type": {
|
|
18058
|
+
"text": "ToastOptions"
|
|
18059
|
+
},
|
|
18060
|
+
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
18061
|
+
}
|
|
18062
|
+
],
|
|
18063
|
+
"description": "Convenience method for creating and adding a toast to the group.",
|
|
18064
|
+
"return": {
|
|
18065
|
+
"type": {
|
|
18066
|
+
"text": "Toast"
|
|
18067
|
+
}
|
|
18068
|
+
}
|
|
18069
|
+
}
|
|
18070
|
+
],
|
|
18071
|
+
"events": [
|
|
18072
|
+
{
|
|
18073
|
+
"type": {
|
|
18074
|
+
"text": "NordEvent"
|
|
18075
|
+
},
|
|
18076
|
+
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
18077
|
+
"name": "dismiss"
|
|
18078
|
+
}
|
|
18079
|
+
],
|
|
18080
|
+
"superclass": {
|
|
18081
|
+
"name": "LitElement",
|
|
18082
|
+
"package": "lit"
|
|
18083
|
+
},
|
|
18084
|
+
"localization": [],
|
|
18085
|
+
"status": "ready",
|
|
18086
|
+
"category": "feedback",
|
|
18087
|
+
"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 in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
18088
|
+
"examples": [],
|
|
18089
|
+
"dependencies": [
|
|
18090
|
+
"toast"
|
|
18091
|
+
],
|
|
18092
|
+
"tagName": "nord-toast-group",
|
|
18093
|
+
"customElement": true
|
|
18094
|
+
}
|
|
18095
|
+
],
|
|
18096
|
+
"exports": [
|
|
18097
|
+
{
|
|
18098
|
+
"kind": "js",
|
|
18099
|
+
"name": "default",
|
|
18100
|
+
"declaration": {
|
|
18101
|
+
"name": "ToastGroup",
|
|
18102
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
18103
|
+
}
|
|
18104
|
+
},
|
|
18105
|
+
{
|
|
18106
|
+
"kind": "custom-element-definition",
|
|
18107
|
+
"name": "nord-toast-group",
|
|
18108
|
+
"declaration": {
|
|
18109
|
+
"name": "ToastGroup",
|
|
18110
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
18111
|
+
}
|
|
18112
|
+
}
|
|
18113
|
+
]
|
|
18114
|
+
},
|
|
18115
|
+
{
|
|
18116
|
+
"kind": "javascript-module",
|
|
18117
|
+
"path": "src/tooltip/Tooltip.ts",
|
|
18118
|
+
"declarations": [
|
|
18119
|
+
{
|
|
18120
|
+
"kind": "class",
|
|
18121
|
+
"description": "Tooltips are floating containers for displaying additional information\nfor the currently focused element. A tooltip can be useful when you want\nto e.g. give a hint about an existing Command Menu shortcut.",
|
|
18122
|
+
"name": "Tooltip",
|
|
18123
|
+
"cssProperties": [
|
|
18124
|
+
{
|
|
18125
|
+
"description": "Controls the maximum inline size, or width, of the tooltip.",
|
|
18126
|
+
"name": "--n-tooltip-max-size",
|
|
18127
|
+
"default": "50ch"
|
|
18128
|
+
}
|
|
18129
|
+
],
|
|
18130
|
+
"slots": [
|
|
18131
|
+
{
|
|
18132
|
+
"description": "The tooltip content",
|
|
18133
|
+
"name": ""
|
|
18129
18134
|
},
|
|
18130
18135
|
{
|
|
18131
18136
|
"description": "Optional slot that holds shortcut keys to access the subject",
|
|
@@ -19771,210 +19776,224 @@
|
|
|
19771
19776
|
},
|
|
19772
19777
|
{
|
|
19773
19778
|
"kind": "javascript-module",
|
|
19774
|
-
"path": "src/common/
|
|
19779
|
+
"path": "src/common/mixins/AutocompleteMixin.ts",
|
|
19775
19780
|
"declarations": [
|
|
19776
19781
|
{
|
|
19777
|
-
"kind": "
|
|
19778
|
-
"
|
|
19779
|
-
"
|
|
19780
|
-
|
|
19781
|
-
"text": "typeof value | typeof nothing"
|
|
19782
|
-
}
|
|
19783
|
-
},
|
|
19784
|
-
"parameters": [
|
|
19782
|
+
"kind": "class",
|
|
19783
|
+
"description": "",
|
|
19784
|
+
"name": "AutocompleteMixinInterface",
|
|
19785
|
+
"members": [
|
|
19785
19786
|
{
|
|
19786
|
-
"
|
|
19787
|
+
"kind": "field",
|
|
19788
|
+
"name": "autocomplete",
|
|
19787
19789
|
"type": {
|
|
19788
|
-
"text": "
|
|
19790
|
+
"text": "AutocompleteAttribute"
|
|
19789
19791
|
}
|
|
19790
19792
|
}
|
|
19791
|
-
]
|
|
19792
|
-
"description": "if value is truthy, return it, otherwise return nothing"
|
|
19793
|
+
]
|
|
19793
19794
|
},
|
|
19794
19795
|
{
|
|
19795
|
-
"kind": "
|
|
19796
|
-
"
|
|
19797
|
-
"
|
|
19798
|
-
|
|
19799
|
-
"text": "typeof trueCase | typeof nothing"
|
|
19800
|
-
}
|
|
19801
|
-
},
|
|
19802
|
-
"parameters": [
|
|
19796
|
+
"kind": "mixin",
|
|
19797
|
+
"description": "",
|
|
19798
|
+
"name": "AutocompleteMixin",
|
|
19799
|
+
"members": [
|
|
19803
19800
|
{
|
|
19804
|
-
"
|
|
19801
|
+
"kind": "field",
|
|
19802
|
+
"name": "autocomplete",
|
|
19805
19803
|
"type": {
|
|
19806
|
-
"text": "
|
|
19807
|
-
}
|
|
19808
|
-
|
|
19804
|
+
"text": "AutocompleteAttribute"
|
|
19805
|
+
},
|
|
19806
|
+
"default": "\"off\"",
|
|
19807
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
19808
|
+
"attribute": "autocomplete"
|
|
19809
|
+
}
|
|
19810
|
+
],
|
|
19811
|
+
"attributes": [
|
|
19809
19812
|
{
|
|
19810
|
-
"name": "
|
|
19813
|
+
"name": "autocomplete",
|
|
19811
19814
|
"type": {
|
|
19812
|
-
"text": "
|
|
19813
|
-
}
|
|
19815
|
+
"text": "AutocompleteAttribute"
|
|
19816
|
+
},
|
|
19817
|
+
"default": "\"off\"",
|
|
19818
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
19819
|
+
"fieldName": "autocomplete"
|
|
19814
19820
|
}
|
|
19815
19821
|
],
|
|
19816
|
-
"description": "if condition is truthy, return trueCase, otherwise return nothing"
|
|
19817
|
-
},
|
|
19818
|
-
{
|
|
19819
|
-
"kind": "function",
|
|
19820
|
-
"name": "cond",
|
|
19821
|
-
"return": {
|
|
19822
|
-
"type": {
|
|
19823
|
-
"text": "typeof trueCase"
|
|
19824
|
-
}
|
|
19825
|
-
},
|
|
19826
19822
|
"parameters": [
|
|
19827
19823
|
{
|
|
19828
|
-
"name": "
|
|
19829
|
-
"type": {
|
|
19830
|
-
"text": "true"
|
|
19831
|
-
}
|
|
19832
|
-
},
|
|
19833
|
-
{
|
|
19834
|
-
"name": "trueCase",
|
|
19824
|
+
"name": "superClass",
|
|
19835
19825
|
"type": {
|
|
19836
|
-
"text": "
|
|
19826
|
+
"text": "T"
|
|
19837
19827
|
}
|
|
19838
19828
|
}
|
|
19839
|
-
]
|
|
19840
|
-
|
|
19829
|
+
]
|
|
19830
|
+
}
|
|
19831
|
+
],
|
|
19832
|
+
"exports": [
|
|
19833
|
+
{
|
|
19834
|
+
"kind": "js",
|
|
19835
|
+
"name": "AutocompleteMixinInterface",
|
|
19836
|
+
"declaration": {
|
|
19837
|
+
"name": "AutocompleteMixinInterface",
|
|
19838
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
19839
|
+
}
|
|
19841
19840
|
},
|
|
19842
19841
|
{
|
|
19843
|
-
"kind": "
|
|
19844
|
-
"name": "
|
|
19845
|
-
"
|
|
19846
|
-
"
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
|
|
19850
|
-
|
|
19842
|
+
"kind": "js",
|
|
19843
|
+
"name": "AutocompleteMixin",
|
|
19844
|
+
"declaration": {
|
|
19845
|
+
"name": "AutocompleteMixin",
|
|
19846
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
19847
|
+
}
|
|
19848
|
+
}
|
|
19849
|
+
]
|
|
19850
|
+
},
|
|
19851
|
+
{
|
|
19852
|
+
"kind": "javascript-module",
|
|
19853
|
+
"path": "src/common/mixins/DraftComponentMixin.ts",
|
|
19854
|
+
"declarations": [
|
|
19855
|
+
{
|
|
19856
|
+
"kind": "mixin",
|
|
19857
|
+
"description": "",
|
|
19858
|
+
"name": "DraftComponentMixin",
|
|
19859
|
+
"members": [
|
|
19851
19860
|
{
|
|
19852
|
-
"
|
|
19861
|
+
"kind": "field",
|
|
19862
|
+
"name": "_warningLogged",
|
|
19853
19863
|
"type": {
|
|
19854
|
-
"text": "
|
|
19855
|
-
}
|
|
19856
|
-
|
|
19864
|
+
"text": "boolean"
|
|
19865
|
+
},
|
|
19866
|
+
"privacy": "private",
|
|
19867
|
+
"static": true,
|
|
19868
|
+
"default": "false"
|
|
19869
|
+
}
|
|
19870
|
+
],
|
|
19871
|
+
"parameters": [
|
|
19857
19872
|
{
|
|
19858
|
-
"name": "
|
|
19873
|
+
"name": "superClass",
|
|
19859
19874
|
"type": {
|
|
19860
|
-
"text": "
|
|
19875
|
+
"text": "T"
|
|
19861
19876
|
}
|
|
19862
19877
|
}
|
|
19863
|
-
]
|
|
19864
|
-
|
|
19865
|
-
|
|
19878
|
+
]
|
|
19879
|
+
}
|
|
19880
|
+
],
|
|
19881
|
+
"exports": [
|
|
19866
19882
|
{
|
|
19867
|
-
"kind": "
|
|
19868
|
-
"name": "
|
|
19869
|
-
"
|
|
19870
|
-
"
|
|
19871
|
-
|
|
19872
|
-
|
|
19873
|
-
|
|
19874
|
-
|
|
19883
|
+
"kind": "js",
|
|
19884
|
+
"name": "DraftComponentMixin",
|
|
19885
|
+
"declaration": {
|
|
19886
|
+
"name": "DraftComponentMixin",
|
|
19887
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
19888
|
+
}
|
|
19889
|
+
}
|
|
19890
|
+
]
|
|
19891
|
+
},
|
|
19892
|
+
{
|
|
19893
|
+
"kind": "javascript-module",
|
|
19894
|
+
"path": "src/common/mixins/FloatingComponentMixin.ts",
|
|
19895
|
+
"declarations": [
|
|
19896
|
+
{
|
|
19897
|
+
"kind": "class",
|
|
19898
|
+
"description": "",
|
|
19899
|
+
"name": "FloatingMixinInterface",
|
|
19900
|
+
"members": [
|
|
19875
19901
|
{
|
|
19876
|
-
"
|
|
19902
|
+
"kind": "field",
|
|
19903
|
+
"name": "open",
|
|
19877
19904
|
"type": {
|
|
19878
|
-
"text": "
|
|
19905
|
+
"text": "boolean"
|
|
19879
19906
|
}
|
|
19880
19907
|
},
|
|
19881
19908
|
{
|
|
19882
|
-
"
|
|
19909
|
+
"kind": "field",
|
|
19910
|
+
"name": "align",
|
|
19883
19911
|
"type": {
|
|
19884
|
-
"text": "
|
|
19912
|
+
"text": "Alignment"
|
|
19885
19913
|
}
|
|
19886
19914
|
},
|
|
19887
19915
|
{
|
|
19888
|
-
"
|
|
19916
|
+
"kind": "field",
|
|
19917
|
+
"name": "position",
|
|
19889
19918
|
"type": {
|
|
19890
|
-
"text": "
|
|
19919
|
+
"text": "LogicalSide | \"auto\""
|
|
19891
19920
|
}
|
|
19892
19921
|
}
|
|
19893
|
-
]
|
|
19894
|
-
"description": "if condition is truthy, return trueCase, otherwise return falseCase"
|
|
19922
|
+
]
|
|
19895
19923
|
},
|
|
19896
19924
|
{
|
|
19897
|
-
"kind": "
|
|
19898
|
-
"
|
|
19899
|
-
"
|
|
19900
|
-
|
|
19901
|
-
"text": "typeof trueCase"
|
|
19902
|
-
}
|
|
19903
|
-
},
|
|
19904
|
-
"parameters": [
|
|
19925
|
+
"kind": "mixin",
|
|
19926
|
+
"description": "",
|
|
19927
|
+
"name": "FloatingMixin",
|
|
19928
|
+
"members": [
|
|
19905
19929
|
{
|
|
19906
|
-
"
|
|
19930
|
+
"kind": "field",
|
|
19931
|
+
"name": "open",
|
|
19907
19932
|
"type": {
|
|
19908
|
-
"text": "
|
|
19909
|
-
}
|
|
19933
|
+
"text": "boolean"
|
|
19934
|
+
},
|
|
19935
|
+
"default": "false",
|
|
19936
|
+
"description": "Controls whether the component is open or not.",
|
|
19937
|
+
"attribute": "open",
|
|
19938
|
+
"reflects": true
|
|
19910
19939
|
},
|
|
19911
19940
|
{
|
|
19912
|
-
"
|
|
19941
|
+
"kind": "field",
|
|
19942
|
+
"name": "align",
|
|
19913
19943
|
"type": {
|
|
19914
|
-
"text": "
|
|
19915
|
-
}
|
|
19944
|
+
"text": "\"start\" | \"end\""
|
|
19945
|
+
},
|
|
19946
|
+
"default": "\"start\"",
|
|
19947
|
+
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
19948
|
+
"attribute": "align",
|
|
19949
|
+
"reflects": true
|
|
19916
19950
|
},
|
|
19917
19951
|
{
|
|
19918
|
-
"
|
|
19952
|
+
"kind": "field",
|
|
19953
|
+
"name": "position",
|
|
19919
19954
|
"type": {
|
|
19920
|
-
"text": "
|
|
19921
|
-
}
|
|
19955
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
19956
|
+
},
|
|
19957
|
+
"default": "\"block-end\"",
|
|
19958
|
+
"description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
19959
|
+
"attribute": "position",
|
|
19960
|
+
"reflects": true
|
|
19922
19961
|
}
|
|
19923
19962
|
],
|
|
19924
|
-
"
|
|
19925
|
-
},
|
|
19926
|
-
{
|
|
19927
|
-
"kind": "function",
|
|
19928
|
-
"name": "cond",
|
|
19929
|
-
"return": {
|
|
19930
|
-
"type": {
|
|
19931
|
-
"text": "typeof falseCase"
|
|
19932
|
-
}
|
|
19933
|
-
},
|
|
19934
|
-
"parameters": [
|
|
19963
|
+
"attributes": [
|
|
19935
19964
|
{
|
|
19936
|
-
"name": "
|
|
19965
|
+
"name": "open",
|
|
19937
19966
|
"type": {
|
|
19938
|
-
"text": "
|
|
19939
|
-
}
|
|
19967
|
+
"text": "boolean"
|
|
19968
|
+
},
|
|
19969
|
+
"default": "false",
|
|
19970
|
+
"description": "Controls whether the component is open or not.",
|
|
19971
|
+
"fieldName": "open"
|
|
19940
19972
|
},
|
|
19941
19973
|
{
|
|
19942
|
-
"name": "
|
|
19974
|
+
"name": "align",
|
|
19943
19975
|
"type": {
|
|
19944
|
-
"text": "
|
|
19945
|
-
}
|
|
19976
|
+
"text": "\"start\" | \"end\""
|
|
19977
|
+
},
|
|
19978
|
+
"default": "\"start\"",
|
|
19979
|
+
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
19980
|
+
"fieldName": "align"
|
|
19946
19981
|
},
|
|
19947
19982
|
{
|
|
19948
|
-
"name": "
|
|
19983
|
+
"name": "position",
|
|
19949
19984
|
"type": {
|
|
19950
|
-
"text": "
|
|
19951
|
-
}
|
|
19952
|
-
|
|
19953
|
-
|
|
19954
|
-
|
|
19955
|
-
|
|
19956
|
-
|
|
19957
|
-
"kind": "function",
|
|
19958
|
-
"name": "cond",
|
|
19985
|
+
"text": "\"block-end\" | \"block-start\" | \"inline-start\" | \"inline-end\" | \"auto\""
|
|
19986
|
+
},
|
|
19987
|
+
"default": "\"block-end\"",
|
|
19988
|
+
"description": "Set the position in relation to the toggle (or anchor).\nOptions follow logical properties.\n`block-start` and `block-end` referring to top and bottom respectively,\n`inline-start` and `inline-end` referring to left and right respectively.\nYou can also set it to `auto` for automatic positioning depending on\nwhich side has the most space available.",
|
|
19989
|
+
"fieldName": "position"
|
|
19990
|
+
}
|
|
19991
|
+
],
|
|
19959
19992
|
"parameters": [
|
|
19960
19993
|
{
|
|
19961
|
-
"name": "
|
|
19962
|
-
"type": {
|
|
19963
|
-
"text": "unknown"
|
|
19964
|
-
}
|
|
19965
|
-
},
|
|
19966
|
-
{
|
|
19967
|
-
"name": "trueCase",
|
|
19968
|
-
"default": "condition",
|
|
19969
|
-
"type": {
|
|
19970
|
-
"text": "any"
|
|
19971
|
-
}
|
|
19972
|
-
},
|
|
19973
|
-
{
|
|
19974
|
-
"name": "falseCase",
|
|
19975
|
-
"default": "nothing",
|
|
19994
|
+
"name": "superClass",
|
|
19976
19995
|
"type": {
|
|
19977
|
-
"text": "
|
|
19996
|
+
"text": "T"
|
|
19978
19997
|
}
|
|
19979
19998
|
}
|
|
19980
19999
|
]
|
|
@@ -19983,716 +20002,268 @@
|
|
|
19983
20002
|
"exports": [
|
|
19984
20003
|
{
|
|
19985
20004
|
"kind": "js",
|
|
19986
|
-
"name": "
|
|
19987
|
-
"declaration": {
|
|
19988
|
-
"name": "cond",
|
|
19989
|
-
"module": "src/common/directives/cond.ts"
|
|
19990
|
-
}
|
|
19991
|
-
},
|
|
19992
|
-
{
|
|
19993
|
-
"kind": "js",
|
|
19994
|
-
"name": "cond",
|
|
19995
|
-
"declaration": {
|
|
19996
|
-
"name": "cond",
|
|
19997
|
-
"module": "src/common/directives/cond.ts"
|
|
19998
|
-
}
|
|
19999
|
-
},
|
|
20000
|
-
{
|
|
20001
|
-
"kind": "js",
|
|
20002
|
-
"name": "cond",
|
|
20003
|
-
"declaration": {
|
|
20004
|
-
"name": "cond",
|
|
20005
|
-
"module": "src/common/directives/cond.ts"
|
|
20006
|
-
}
|
|
20007
|
-
},
|
|
20008
|
-
{
|
|
20009
|
-
"kind": "js",
|
|
20010
|
-
"name": "cond",
|
|
20011
|
-
"declaration": {
|
|
20012
|
-
"name": "cond",
|
|
20013
|
-
"module": "src/common/directives/cond.ts"
|
|
20014
|
-
}
|
|
20015
|
-
},
|
|
20016
|
-
{
|
|
20017
|
-
"kind": "js",
|
|
20018
|
-
"name": "cond",
|
|
20019
|
-
"declaration": {
|
|
20020
|
-
"name": "cond",
|
|
20021
|
-
"module": "src/common/directives/cond.ts"
|
|
20022
|
-
}
|
|
20023
|
-
},
|
|
20024
|
-
{
|
|
20025
|
-
"kind": "js",
|
|
20026
|
-
"name": "cond",
|
|
20027
|
-
"declaration": {
|
|
20028
|
-
"name": "cond",
|
|
20029
|
-
"module": "src/common/directives/cond.ts"
|
|
20030
|
-
}
|
|
20031
|
-
},
|
|
20032
|
-
{
|
|
20033
|
-
"kind": "js",
|
|
20034
|
-
"name": "cond",
|
|
20005
|
+
"name": "FloatingMixinInterface",
|
|
20035
20006
|
"declaration": {
|
|
20036
|
-
"name": "
|
|
20037
|
-
"module": "src/common/
|
|
20007
|
+
"name": "FloatingMixinInterface",
|
|
20008
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
20038
20009
|
}
|
|
20039
20010
|
},
|
|
20040
20011
|
{
|
|
20041
20012
|
"kind": "js",
|
|
20042
|
-
"name": "
|
|
20013
|
+
"name": "FloatingMixin",
|
|
20043
20014
|
"declaration": {
|
|
20044
|
-
"name": "
|
|
20045
|
-
"module": "src/common/
|
|
20015
|
+
"name": "FloatingMixin",
|
|
20016
|
+
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
20046
20017
|
}
|
|
20047
20018
|
}
|
|
20048
20019
|
]
|
|
20049
20020
|
},
|
|
20050
20021
|
{
|
|
20051
20022
|
"kind": "javascript-module",
|
|
20052
|
-
"path": "src/common/
|
|
20023
|
+
"path": "src/common/mixins/FocusableMixin.ts",
|
|
20053
20024
|
"declarations": [
|
|
20054
20025
|
{
|
|
20055
|
-
"kind": "
|
|
20056
|
-
"
|
|
20057
|
-
"
|
|
20058
|
-
|
|
20059
|
-
"text": "TInner"
|
|
20060
|
-
}
|
|
20061
|
-
},
|
|
20062
|
-
"parameters": [
|
|
20063
|
-
{
|
|
20064
|
-
"name": "condition",
|
|
20065
|
-
"type": {
|
|
20066
|
-
"text": "false"
|
|
20067
|
-
}
|
|
20068
|
-
},
|
|
20026
|
+
"kind": "class",
|
|
20027
|
+
"description": "",
|
|
20028
|
+
"name": "FocusableMixinInterface",
|
|
20029
|
+
"members": [
|
|
20069
20030
|
{
|
|
20070
|
-
"
|
|
20031
|
+
"kind": "field",
|
|
20032
|
+
"name": "focusableRef",
|
|
20071
20033
|
"type": {
|
|
20072
|
-
"text": "
|
|
20073
|
-
}
|
|
20034
|
+
"text": "Ref<HTMLElement>"
|
|
20035
|
+
},
|
|
20036
|
+
"privacy": "protected"
|
|
20074
20037
|
},
|
|
20075
20038
|
{
|
|
20076
|
-
"
|
|
20077
|
-
"
|
|
20078
|
-
|
|
20079
|
-
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20086
|
-
|
|
20087
|
-
|
|
20088
|
-
|
|
20089
|
-
|
|
20090
|
-
|
|
20091
|
-
|
|
20092
|
-
{
|
|
20093
|
-
"name": "condition",
|
|
20094
|
-
"type": {
|
|
20095
|
-
"text": "true"
|
|
20096
|
-
}
|
|
20039
|
+
"kind": "method",
|
|
20040
|
+
"name": "focus",
|
|
20041
|
+
"return": {
|
|
20042
|
+
"type": {
|
|
20043
|
+
"text": "void"
|
|
20044
|
+
}
|
|
20045
|
+
},
|
|
20046
|
+
"parameters": [
|
|
20047
|
+
{
|
|
20048
|
+
"name": "options",
|
|
20049
|
+
"optional": true,
|
|
20050
|
+
"type": {
|
|
20051
|
+
"text": "FocusOptions"
|
|
20052
|
+
}
|
|
20053
|
+
}
|
|
20054
|
+
]
|
|
20097
20055
|
},
|
|
20098
20056
|
{
|
|
20099
|
-
"
|
|
20100
|
-
"
|
|
20101
|
-
|
|
20057
|
+
"kind": "method",
|
|
20058
|
+
"name": "blur",
|
|
20059
|
+
"return": {
|
|
20060
|
+
"type": {
|
|
20061
|
+
"text": "void"
|
|
20062
|
+
}
|
|
20102
20063
|
}
|
|
20103
20064
|
},
|
|
20104
20065
|
{
|
|
20105
|
-
"
|
|
20106
|
-
"
|
|
20107
|
-
|
|
20066
|
+
"kind": "method",
|
|
20067
|
+
"name": "click",
|
|
20068
|
+
"return": {
|
|
20069
|
+
"type": {
|
|
20070
|
+
"text": "void"
|
|
20071
|
+
}
|
|
20108
20072
|
}
|
|
20109
20073
|
}
|
|
20110
20074
|
]
|
|
20111
20075
|
},
|
|
20112
20076
|
{
|
|
20113
|
-
"kind": "
|
|
20114
|
-
"
|
|
20115
|
-
"
|
|
20116
|
-
|
|
20117
|
-
"text": "TInner | TWrapper"
|
|
20118
|
-
}
|
|
20119
|
-
},
|
|
20120
|
-
"parameters": [
|
|
20077
|
+
"kind": "mixin",
|
|
20078
|
+
"description": "",
|
|
20079
|
+
"name": "FocusableMixin",
|
|
20080
|
+
"members": [
|
|
20121
20081
|
{
|
|
20122
|
-
"
|
|
20123
|
-
"
|
|
20124
|
-
|
|
20125
|
-
}
|
|
20082
|
+
"kind": "field",
|
|
20083
|
+
"name": "focusableRef",
|
|
20084
|
+
"privacy": "protected"
|
|
20126
20085
|
},
|
|
20127
20086
|
{
|
|
20128
|
-
"
|
|
20129
|
-
"
|
|
20130
|
-
|
|
20131
|
-
|
|
20087
|
+
"kind": "method",
|
|
20088
|
+
"name": "focus",
|
|
20089
|
+
"parameters": [
|
|
20090
|
+
{
|
|
20091
|
+
"name": "options",
|
|
20092
|
+
"optional": true,
|
|
20093
|
+
"type": {
|
|
20094
|
+
"text": "FocusOptions"
|
|
20095
|
+
},
|
|
20096
|
+
"description": "An object which controls aspects of the focusing process."
|
|
20097
|
+
}
|
|
20098
|
+
],
|
|
20099
|
+
"description": "Programmatically move focus to the component."
|
|
20132
20100
|
},
|
|
20133
20101
|
{
|
|
20134
|
-
"
|
|
20135
|
-
"
|
|
20136
|
-
|
|
20137
|
-
}
|
|
20138
|
-
}
|
|
20139
|
-
]
|
|
20140
|
-
},
|
|
20141
|
-
{
|
|
20142
|
-
"kind": "function",
|
|
20143
|
-
"name": "wrapIf",
|
|
20144
|
-
"parameters": [
|
|
20145
|
-
{
|
|
20146
|
-
"name": "condition",
|
|
20147
|
-
"type": {
|
|
20148
|
-
"text": "any"
|
|
20149
|
-
}
|
|
20102
|
+
"kind": "method",
|
|
20103
|
+
"name": "blur",
|
|
20104
|
+
"description": "Programmatically remove focus from the component."
|
|
20150
20105
|
},
|
|
20151
20106
|
{
|
|
20152
|
-
"
|
|
20153
|
-
"
|
|
20154
|
-
|
|
20155
|
-
|
|
20156
|
-
|
|
20107
|
+
"kind": "method",
|
|
20108
|
+
"name": "click",
|
|
20109
|
+
"description": "Programmatically simulates a click on the component."
|
|
20110
|
+
}
|
|
20111
|
+
],
|
|
20112
|
+
"parameters": [
|
|
20157
20113
|
{
|
|
20158
|
-
"name": "
|
|
20114
|
+
"name": "superClass",
|
|
20159
20115
|
"type": {
|
|
20160
|
-
"text": "
|
|
20116
|
+
"text": "T"
|
|
20161
20117
|
}
|
|
20162
20118
|
}
|
|
20163
|
-
]
|
|
20164
|
-
"return": {
|
|
20165
|
-
"type": {
|
|
20166
|
-
"text": ""
|
|
20167
|
-
}
|
|
20168
|
-
}
|
|
20119
|
+
]
|
|
20169
20120
|
}
|
|
20170
20121
|
],
|
|
20171
20122
|
"exports": [
|
|
20172
20123
|
{
|
|
20173
20124
|
"kind": "js",
|
|
20174
|
-
"name": "
|
|
20125
|
+
"name": "FocusableMixinInterface",
|
|
20175
20126
|
"declaration": {
|
|
20176
|
-
"name": "
|
|
20177
|
-
"module": "src/common/
|
|
20127
|
+
"name": "FocusableMixinInterface",
|
|
20128
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
20178
20129
|
}
|
|
20179
20130
|
},
|
|
20180
20131
|
{
|
|
20181
20132
|
"kind": "js",
|
|
20182
|
-
"name": "
|
|
20183
|
-
"declaration": {
|
|
20184
|
-
"name": "wrapIf",
|
|
20185
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
20186
|
-
}
|
|
20187
|
-
},
|
|
20188
|
-
{
|
|
20189
|
-
"kind": "js",
|
|
20190
|
-
"name": "wrapIf",
|
|
20191
|
-
"declaration": {
|
|
20192
|
-
"name": "wrapIf",
|
|
20193
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
20194
|
-
}
|
|
20195
|
-
},
|
|
20196
|
-
{
|
|
20197
|
-
"kind": "js",
|
|
20198
|
-
"name": "wrapIf",
|
|
20133
|
+
"name": "FocusableMixin",
|
|
20199
20134
|
"declaration": {
|
|
20200
|
-
"name": "
|
|
20201
|
-
"module": "src/common/
|
|
20135
|
+
"name": "FocusableMixin",
|
|
20136
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
20202
20137
|
}
|
|
20203
20138
|
}
|
|
20204
20139
|
]
|
|
20205
20140
|
},
|
|
20206
20141
|
{
|
|
20207
20142
|
"kind": "javascript-module",
|
|
20208
|
-
"path": "src/common/mixins/
|
|
20143
|
+
"path": "src/common/mixins/FormAssociatedMixin.ts",
|
|
20209
20144
|
"declarations": [
|
|
20210
20145
|
{
|
|
20211
20146
|
"kind": "class",
|
|
20212
20147
|
"description": "",
|
|
20213
|
-
"name": "
|
|
20148
|
+
"name": "FormAssociatedMixinInterface",
|
|
20214
20149
|
"members": [
|
|
20215
20150
|
{
|
|
20216
20151
|
"kind": "field",
|
|
20217
|
-
"name": "
|
|
20152
|
+
"name": "label",
|
|
20218
20153
|
"type": {
|
|
20219
|
-
"text": "
|
|
20154
|
+
"text": "string"
|
|
20220
20155
|
}
|
|
20221
|
-
}
|
|
20222
|
-
]
|
|
20223
|
-
},
|
|
20224
|
-
{
|
|
20225
|
-
"kind": "mixin",
|
|
20226
|
-
"description": "",
|
|
20227
|
-
"name": "AutocompleteMixin",
|
|
20228
|
-
"members": [
|
|
20156
|
+
},
|
|
20229
20157
|
{
|
|
20230
20158
|
"kind": "field",
|
|
20231
|
-
"name": "
|
|
20159
|
+
"name": "required",
|
|
20232
20160
|
"type": {
|
|
20233
|
-
"text": "
|
|
20234
|
-
}
|
|
20235
|
-
|
|
20236
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
20237
|
-
"attribute": "autocomplete"
|
|
20238
|
-
}
|
|
20239
|
-
],
|
|
20240
|
-
"attributes": [
|
|
20161
|
+
"text": "boolean"
|
|
20162
|
+
}
|
|
20163
|
+
},
|
|
20241
20164
|
{
|
|
20242
|
-
"
|
|
20165
|
+
"kind": "field",
|
|
20166
|
+
"name": "hideRequired",
|
|
20243
20167
|
"type": {
|
|
20244
|
-
"text": "
|
|
20245
|
-
}
|
|
20246
|
-
|
|
20247
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
20248
|
-
"fieldName": "autocomplete"
|
|
20249
|
-
}
|
|
20250
|
-
],
|
|
20251
|
-
"parameters": [
|
|
20168
|
+
"text": "boolean"
|
|
20169
|
+
}
|
|
20170
|
+
},
|
|
20252
20171
|
{
|
|
20253
|
-
"
|
|
20172
|
+
"kind": "field",
|
|
20173
|
+
"name": "hint",
|
|
20254
20174
|
"type": {
|
|
20255
|
-
"text": "
|
|
20175
|
+
"text": "string | undefined"
|
|
20256
20176
|
}
|
|
20257
|
-
}
|
|
20258
|
-
]
|
|
20259
|
-
}
|
|
20260
|
-
],
|
|
20261
|
-
"exports": [
|
|
20262
|
-
{
|
|
20263
|
-
"kind": "js",
|
|
20264
|
-
"name": "AutocompleteMixinInterface",
|
|
20265
|
-
"declaration": {
|
|
20266
|
-
"name": "AutocompleteMixinInterface",
|
|
20267
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
20268
|
-
}
|
|
20269
|
-
},
|
|
20270
|
-
{
|
|
20271
|
-
"kind": "js",
|
|
20272
|
-
"name": "AutocompleteMixin",
|
|
20273
|
-
"declaration": {
|
|
20274
|
-
"name": "AutocompleteMixin",
|
|
20275
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
20276
|
-
}
|
|
20277
|
-
}
|
|
20278
|
-
]
|
|
20279
|
-
},
|
|
20280
|
-
{
|
|
20281
|
-
"kind": "javascript-module",
|
|
20282
|
-
"path": "src/common/mixins/DraftComponentMixin.ts",
|
|
20283
|
-
"declarations": [
|
|
20284
|
-
{
|
|
20285
|
-
"kind": "mixin",
|
|
20286
|
-
"description": "",
|
|
20287
|
-
"name": "DraftComponentMixin",
|
|
20288
|
-
"members": [
|
|
20177
|
+
},
|
|
20289
20178
|
{
|
|
20290
20179
|
"kind": "field",
|
|
20291
|
-
"name": "
|
|
20180
|
+
"name": "hideLabel",
|
|
20292
20181
|
"type": {
|
|
20293
20182
|
"text": "boolean"
|
|
20294
|
-
}
|
|
20295
|
-
|
|
20296
|
-
"static": true,
|
|
20297
|
-
"default": "false"
|
|
20298
|
-
}
|
|
20299
|
-
],
|
|
20300
|
-
"parameters": [
|
|
20183
|
+
}
|
|
20184
|
+
},
|
|
20301
20185
|
{
|
|
20302
|
-
"
|
|
20186
|
+
"kind": "field",
|
|
20187
|
+
"name": "placeholder",
|
|
20303
20188
|
"type": {
|
|
20304
|
-
"text": "
|
|
20189
|
+
"text": "string | undefined"
|
|
20305
20190
|
}
|
|
20306
|
-
}
|
|
20307
|
-
]
|
|
20308
|
-
}
|
|
20309
|
-
],
|
|
20310
|
-
"exports": [
|
|
20311
|
-
{
|
|
20312
|
-
"kind": "js",
|
|
20313
|
-
"name": "DraftComponentMixin",
|
|
20314
|
-
"declaration": {
|
|
20315
|
-
"name": "DraftComponentMixin",
|
|
20316
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
20317
|
-
}
|
|
20318
|
-
}
|
|
20319
|
-
]
|
|
20320
|
-
},
|
|
20321
|
-
{
|
|
20322
|
-
"kind": "javascript-module",
|
|
20323
|
-
"path": "src/common/mixins/FloatingComponentMixin.ts",
|
|
20324
|
-
"declarations": [
|
|
20325
|
-
{
|
|
20326
|
-
"kind": "class",
|
|
20327
|
-
"description": "",
|
|
20328
|
-
"name": "FloatingMixinInterface",
|
|
20329
|
-
"members": [
|
|
20191
|
+
},
|
|
20330
20192
|
{
|
|
20331
20193
|
"kind": "field",
|
|
20332
|
-
"name": "
|
|
20194
|
+
"name": "error",
|
|
20333
20195
|
"type": {
|
|
20334
|
-
"text": "
|
|
20196
|
+
"text": "string | undefined"
|
|
20335
20197
|
}
|
|
20336
20198
|
},
|
|
20337
20199
|
{
|
|
20338
20200
|
"kind": "field",
|
|
20339
|
-
"name": "
|
|
20201
|
+
"name": "inputId",
|
|
20340
20202
|
"type": {
|
|
20341
|
-
"text": "
|
|
20342
|
-
}
|
|
20203
|
+
"text": "string"
|
|
20204
|
+
},
|
|
20205
|
+
"privacy": "protected"
|
|
20343
20206
|
},
|
|
20344
20207
|
{
|
|
20345
20208
|
"kind": "field",
|
|
20346
|
-
"name": "
|
|
20209
|
+
"name": "errorId",
|
|
20347
20210
|
"type": {
|
|
20348
|
-
"text": "
|
|
20349
|
-
}
|
|
20350
|
-
|
|
20351
|
-
|
|
20352
|
-
},
|
|
20353
|
-
{
|
|
20354
|
-
"kind": "mixin",
|
|
20355
|
-
"description": "",
|
|
20356
|
-
"name": "FloatingMixin",
|
|
20357
|
-
"members": [
|
|
20211
|
+
"text": "string"
|
|
20212
|
+
},
|
|
20213
|
+
"privacy": "protected"
|
|
20214
|
+
},
|
|
20358
20215
|
{
|
|
20359
20216
|
"kind": "field",
|
|
20360
|
-
"name": "
|
|
20217
|
+
"name": "hintId",
|
|
20361
20218
|
"type": {
|
|
20362
|
-
"text": "
|
|
20219
|
+
"text": "string"
|
|
20363
20220
|
},
|
|
20364
|
-
"
|
|
20365
|
-
"description": "Controls whether the component is open or not.",
|
|
20366
|
-
"attribute": "open",
|
|
20367
|
-
"reflects": true
|
|
20221
|
+
"privacy": "protected"
|
|
20368
20222
|
},
|
|
20369
20223
|
{
|
|
20370
20224
|
"kind": "field",
|
|
20371
|
-
"name": "
|
|
20225
|
+
"name": "labelSlot",
|
|
20372
20226
|
"type": {
|
|
20373
|
-
"text": "
|
|
20227
|
+
"text": "SlotController"
|
|
20374
20228
|
},
|
|
20375
|
-
"
|
|
20376
|
-
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
20377
|
-
"attribute": "align",
|
|
20378
|
-
"reflects": true
|
|
20229
|
+
"privacy": "protected"
|
|
20379
20230
|
},
|
|
20380
20231
|
{
|
|
20381
20232
|
"kind": "field",
|
|
20382
|
-
"name": "
|
|
20233
|
+
"name": "hintSlot",
|
|
20383
20234
|
"type": {
|
|
20384
|
-
"text": "
|
|
20235
|
+
"text": "SlotController"
|
|
20385
20236
|
},
|
|
20386
|
-
"
|
|
20387
|
-
|
|
20388
|
-
"attribute": "position",
|
|
20389
|
-
"reflects": true
|
|
20390
|
-
}
|
|
20391
|
-
],
|
|
20392
|
-
"attributes": [
|
|
20237
|
+
"privacy": "protected"
|
|
20238
|
+
},
|
|
20393
20239
|
{
|
|
20394
|
-
"
|
|
20240
|
+
"kind": "field",
|
|
20241
|
+
"name": "errorSlot",
|
|
20395
20242
|
"type": {
|
|
20396
|
-
"text": "
|
|
20243
|
+
"text": "SlotController"
|
|
20397
20244
|
},
|
|
20398
|
-
"
|
|
20399
|
-
"description": "Controls whether the component is open or not.",
|
|
20400
|
-
"fieldName": "open"
|
|
20245
|
+
"privacy": "protected"
|
|
20401
20246
|
},
|
|
20402
20247
|
{
|
|
20403
|
-
"
|
|
20248
|
+
"kind": "field",
|
|
20249
|
+
"name": "formData",
|
|
20404
20250
|
"type": {
|
|
20405
|
-
"text": "
|
|
20251
|
+
"text": "FormDataController"
|
|
20406
20252
|
},
|
|
20407
|
-
"
|
|
20408
|
-
"description": "Set the alignment in relation to the toggle (or anchor) depending on the position.\n`start` will align it to the left of the toggle (or anchor).\n`end` will align it to the right of the toggle (or anchor).\nSetting the `position` to `inline-start` or `inline-end` will switch\n`start` and `end` to the top and bottom respectively.",
|
|
20409
|
-
"fieldName": "align"
|
|
20253
|
+
"privacy": "protected"
|
|
20410
20254
|
},
|
|
20411
20255
|
{
|
|
20412
|
-
"
|
|
20256
|
+
"kind": "field",
|
|
20257
|
+
"name": "formValue",
|
|
20413
20258
|
"type": {
|
|
20414
|
-
"text": "
|
|
20259
|
+
"text": "string | undefined"
|
|
20415
20260
|
},
|
|
20416
|
-
"
|
|
20417
|
-
"
|
|
20418
|
-
|
|
20419
|
-
}
|
|
20420
|
-
],
|
|
20421
|
-
"parameters": [
|
|
20261
|
+
"privacy": "protected",
|
|
20262
|
+
"readonly": true
|
|
20263
|
+
},
|
|
20422
20264
|
{
|
|
20423
|
-
"
|
|
20424
|
-
"
|
|
20425
|
-
"text": "T"
|
|
20426
|
-
}
|
|
20427
|
-
}
|
|
20428
|
-
]
|
|
20429
|
-
}
|
|
20430
|
-
],
|
|
20431
|
-
"exports": [
|
|
20432
|
-
{
|
|
20433
|
-
"kind": "js",
|
|
20434
|
-
"name": "FloatingMixinInterface",
|
|
20435
|
-
"declaration": {
|
|
20436
|
-
"name": "FloatingMixinInterface",
|
|
20437
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
20438
|
-
}
|
|
20439
|
-
},
|
|
20440
|
-
{
|
|
20441
|
-
"kind": "js",
|
|
20442
|
-
"name": "FloatingMixin",
|
|
20443
|
-
"declaration": {
|
|
20444
|
-
"name": "FloatingMixin",
|
|
20445
|
-
"module": "src/common/mixins/FloatingComponentMixin.ts"
|
|
20446
|
-
}
|
|
20447
|
-
}
|
|
20448
|
-
]
|
|
20449
|
-
},
|
|
20450
|
-
{
|
|
20451
|
-
"kind": "javascript-module",
|
|
20452
|
-
"path": "src/common/mixins/FocusableMixin.ts",
|
|
20453
|
-
"declarations": [
|
|
20454
|
-
{
|
|
20455
|
-
"kind": "class",
|
|
20456
|
-
"description": "",
|
|
20457
|
-
"name": "FocusableMixinInterface",
|
|
20458
|
-
"members": [
|
|
20459
|
-
{
|
|
20460
|
-
"kind": "field",
|
|
20461
|
-
"name": "focusableRef",
|
|
20462
|
-
"type": {
|
|
20463
|
-
"text": "Ref<HTMLElement>"
|
|
20464
|
-
},
|
|
20465
|
-
"privacy": "protected"
|
|
20466
|
-
},
|
|
20467
|
-
{
|
|
20468
|
-
"kind": "method",
|
|
20469
|
-
"name": "focus",
|
|
20470
|
-
"return": {
|
|
20471
|
-
"type": {
|
|
20472
|
-
"text": "void"
|
|
20473
|
-
}
|
|
20474
|
-
},
|
|
20475
|
-
"parameters": [
|
|
20476
|
-
{
|
|
20477
|
-
"name": "options",
|
|
20478
|
-
"optional": true,
|
|
20479
|
-
"type": {
|
|
20480
|
-
"text": "FocusOptions"
|
|
20481
|
-
}
|
|
20482
|
-
}
|
|
20483
|
-
]
|
|
20484
|
-
},
|
|
20485
|
-
{
|
|
20486
|
-
"kind": "method",
|
|
20487
|
-
"name": "blur",
|
|
20488
|
-
"return": {
|
|
20489
|
-
"type": {
|
|
20490
|
-
"text": "void"
|
|
20491
|
-
}
|
|
20492
|
-
}
|
|
20493
|
-
},
|
|
20494
|
-
{
|
|
20495
|
-
"kind": "method",
|
|
20496
|
-
"name": "click",
|
|
20497
|
-
"return": {
|
|
20498
|
-
"type": {
|
|
20499
|
-
"text": "void"
|
|
20500
|
-
}
|
|
20501
|
-
}
|
|
20502
|
-
}
|
|
20503
|
-
]
|
|
20504
|
-
},
|
|
20505
|
-
{
|
|
20506
|
-
"kind": "mixin",
|
|
20507
|
-
"description": "",
|
|
20508
|
-
"name": "FocusableMixin",
|
|
20509
|
-
"members": [
|
|
20510
|
-
{
|
|
20511
|
-
"kind": "field",
|
|
20512
|
-
"name": "focusableRef",
|
|
20513
|
-
"privacy": "protected"
|
|
20514
|
-
},
|
|
20515
|
-
{
|
|
20516
|
-
"kind": "method",
|
|
20517
|
-
"name": "focus",
|
|
20518
|
-
"parameters": [
|
|
20519
|
-
{
|
|
20520
|
-
"name": "options",
|
|
20521
|
-
"optional": true,
|
|
20522
|
-
"type": {
|
|
20523
|
-
"text": "FocusOptions"
|
|
20524
|
-
},
|
|
20525
|
-
"description": "An object which controls aspects of the focusing process."
|
|
20526
|
-
}
|
|
20527
|
-
],
|
|
20528
|
-
"description": "Programmatically move focus to the component."
|
|
20529
|
-
},
|
|
20530
|
-
{
|
|
20531
|
-
"kind": "method",
|
|
20532
|
-
"name": "blur",
|
|
20533
|
-
"description": "Programmatically remove focus from the component."
|
|
20534
|
-
},
|
|
20535
|
-
{
|
|
20536
|
-
"kind": "method",
|
|
20537
|
-
"name": "click",
|
|
20538
|
-
"description": "Programmatically simulates a click on the component."
|
|
20539
|
-
}
|
|
20540
|
-
],
|
|
20541
|
-
"parameters": [
|
|
20542
|
-
{
|
|
20543
|
-
"name": "superClass",
|
|
20544
|
-
"type": {
|
|
20545
|
-
"text": "T"
|
|
20546
|
-
}
|
|
20547
|
-
}
|
|
20548
|
-
]
|
|
20549
|
-
}
|
|
20550
|
-
],
|
|
20551
|
-
"exports": [
|
|
20552
|
-
{
|
|
20553
|
-
"kind": "js",
|
|
20554
|
-
"name": "FocusableMixinInterface",
|
|
20555
|
-
"declaration": {
|
|
20556
|
-
"name": "FocusableMixinInterface",
|
|
20557
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
20558
|
-
}
|
|
20559
|
-
},
|
|
20560
|
-
{
|
|
20561
|
-
"kind": "js",
|
|
20562
|
-
"name": "FocusableMixin",
|
|
20563
|
-
"declaration": {
|
|
20564
|
-
"name": "FocusableMixin",
|
|
20565
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
20566
|
-
}
|
|
20567
|
-
}
|
|
20568
|
-
]
|
|
20569
|
-
},
|
|
20570
|
-
{
|
|
20571
|
-
"kind": "javascript-module",
|
|
20572
|
-
"path": "src/common/mixins/FormAssociatedMixin.ts",
|
|
20573
|
-
"declarations": [
|
|
20574
|
-
{
|
|
20575
|
-
"kind": "class",
|
|
20576
|
-
"description": "",
|
|
20577
|
-
"name": "FormAssociatedMixinInterface",
|
|
20578
|
-
"members": [
|
|
20579
|
-
{
|
|
20580
|
-
"kind": "field",
|
|
20581
|
-
"name": "label",
|
|
20582
|
-
"type": {
|
|
20583
|
-
"text": "string"
|
|
20584
|
-
}
|
|
20585
|
-
},
|
|
20586
|
-
{
|
|
20587
|
-
"kind": "field",
|
|
20588
|
-
"name": "required",
|
|
20589
|
-
"type": {
|
|
20590
|
-
"text": "boolean"
|
|
20591
|
-
}
|
|
20592
|
-
},
|
|
20593
|
-
{
|
|
20594
|
-
"kind": "field",
|
|
20595
|
-
"name": "hideRequired",
|
|
20596
|
-
"type": {
|
|
20597
|
-
"text": "boolean"
|
|
20598
|
-
}
|
|
20599
|
-
},
|
|
20600
|
-
{
|
|
20601
|
-
"kind": "field",
|
|
20602
|
-
"name": "hint",
|
|
20603
|
-
"type": {
|
|
20604
|
-
"text": "string | undefined"
|
|
20605
|
-
}
|
|
20606
|
-
},
|
|
20607
|
-
{
|
|
20608
|
-
"kind": "field",
|
|
20609
|
-
"name": "hideLabel",
|
|
20610
|
-
"type": {
|
|
20611
|
-
"text": "boolean"
|
|
20612
|
-
}
|
|
20613
|
-
},
|
|
20614
|
-
{
|
|
20615
|
-
"kind": "field",
|
|
20616
|
-
"name": "placeholder",
|
|
20617
|
-
"type": {
|
|
20618
|
-
"text": "string | undefined"
|
|
20619
|
-
}
|
|
20620
|
-
},
|
|
20621
|
-
{
|
|
20622
|
-
"kind": "field",
|
|
20623
|
-
"name": "error",
|
|
20624
|
-
"type": {
|
|
20625
|
-
"text": "string | undefined"
|
|
20626
|
-
}
|
|
20627
|
-
},
|
|
20628
|
-
{
|
|
20629
|
-
"kind": "field",
|
|
20630
|
-
"name": "inputId",
|
|
20631
|
-
"type": {
|
|
20632
|
-
"text": "string"
|
|
20633
|
-
},
|
|
20634
|
-
"privacy": "protected"
|
|
20635
|
-
},
|
|
20636
|
-
{
|
|
20637
|
-
"kind": "field",
|
|
20638
|
-
"name": "errorId",
|
|
20639
|
-
"type": {
|
|
20640
|
-
"text": "string"
|
|
20641
|
-
},
|
|
20642
|
-
"privacy": "protected"
|
|
20643
|
-
},
|
|
20644
|
-
{
|
|
20645
|
-
"kind": "field",
|
|
20646
|
-
"name": "hintId",
|
|
20647
|
-
"type": {
|
|
20648
|
-
"text": "string"
|
|
20649
|
-
},
|
|
20650
|
-
"privacy": "protected"
|
|
20651
|
-
},
|
|
20652
|
-
{
|
|
20653
|
-
"kind": "field",
|
|
20654
|
-
"name": "labelSlot",
|
|
20655
|
-
"type": {
|
|
20656
|
-
"text": "SlotController"
|
|
20657
|
-
},
|
|
20658
|
-
"privacy": "protected"
|
|
20659
|
-
},
|
|
20660
|
-
{
|
|
20661
|
-
"kind": "field",
|
|
20662
|
-
"name": "hintSlot",
|
|
20663
|
-
"type": {
|
|
20664
|
-
"text": "SlotController"
|
|
20665
|
-
},
|
|
20666
|
-
"privacy": "protected"
|
|
20667
|
-
},
|
|
20668
|
-
{
|
|
20669
|
-
"kind": "field",
|
|
20670
|
-
"name": "errorSlot",
|
|
20671
|
-
"type": {
|
|
20672
|
-
"text": "SlotController"
|
|
20673
|
-
},
|
|
20674
|
-
"privacy": "protected"
|
|
20675
|
-
},
|
|
20676
|
-
{
|
|
20677
|
-
"kind": "field",
|
|
20678
|
-
"name": "formData",
|
|
20679
|
-
"type": {
|
|
20680
|
-
"text": "FormDataController"
|
|
20681
|
-
},
|
|
20682
|
-
"privacy": "protected"
|
|
20683
|
-
},
|
|
20684
|
-
{
|
|
20685
|
-
"kind": "field",
|
|
20686
|
-
"name": "formValue",
|
|
20687
|
-
"type": {
|
|
20688
|
-
"text": "string | undefined"
|
|
20689
|
-
},
|
|
20690
|
-
"privacy": "protected",
|
|
20691
|
-
"readonly": true
|
|
20692
|
-
},
|
|
20693
|
-
{
|
|
20694
|
-
"kind": "field",
|
|
20695
|
-
"name": "hasError",
|
|
20265
|
+
"kind": "field",
|
|
20266
|
+
"name": "hasError",
|
|
20696
20267
|
"type": {
|
|
20697
20268
|
"text": "boolean"
|
|
20698
20269
|
},
|
|
@@ -21770,6 +21341,440 @@
|
|
|
21770
21341
|
}
|
|
21771
21342
|
}
|
|
21772
21343
|
]
|
|
21344
|
+
},
|
|
21345
|
+
{
|
|
21346
|
+
"kind": "javascript-module",
|
|
21347
|
+
"path": "src/common/directives/cond.ts",
|
|
21348
|
+
"declarations": [
|
|
21349
|
+
{
|
|
21350
|
+
"kind": "function",
|
|
21351
|
+
"name": "cond",
|
|
21352
|
+
"return": {
|
|
21353
|
+
"type": {
|
|
21354
|
+
"text": "typeof value | typeof nothing"
|
|
21355
|
+
}
|
|
21356
|
+
},
|
|
21357
|
+
"parameters": [
|
|
21358
|
+
{
|
|
21359
|
+
"name": "value",
|
|
21360
|
+
"type": {
|
|
21361
|
+
"text": "any"
|
|
21362
|
+
}
|
|
21363
|
+
}
|
|
21364
|
+
],
|
|
21365
|
+
"description": "if value is truthy, return it, otherwise return nothing"
|
|
21366
|
+
},
|
|
21367
|
+
{
|
|
21368
|
+
"kind": "function",
|
|
21369
|
+
"name": "cond",
|
|
21370
|
+
"return": {
|
|
21371
|
+
"type": {
|
|
21372
|
+
"text": "typeof trueCase | typeof nothing"
|
|
21373
|
+
}
|
|
21374
|
+
},
|
|
21375
|
+
"parameters": [
|
|
21376
|
+
{
|
|
21377
|
+
"name": "condition",
|
|
21378
|
+
"type": {
|
|
21379
|
+
"text": "unknown"
|
|
21380
|
+
}
|
|
21381
|
+
},
|
|
21382
|
+
{
|
|
21383
|
+
"name": "trueCase",
|
|
21384
|
+
"type": {
|
|
21385
|
+
"text": "any"
|
|
21386
|
+
}
|
|
21387
|
+
}
|
|
21388
|
+
],
|
|
21389
|
+
"description": "if condition is truthy, return trueCase, otherwise return nothing"
|
|
21390
|
+
},
|
|
21391
|
+
{
|
|
21392
|
+
"kind": "function",
|
|
21393
|
+
"name": "cond",
|
|
21394
|
+
"return": {
|
|
21395
|
+
"type": {
|
|
21396
|
+
"text": "typeof trueCase"
|
|
21397
|
+
}
|
|
21398
|
+
},
|
|
21399
|
+
"parameters": [
|
|
21400
|
+
{
|
|
21401
|
+
"name": "condition",
|
|
21402
|
+
"type": {
|
|
21403
|
+
"text": "true"
|
|
21404
|
+
}
|
|
21405
|
+
},
|
|
21406
|
+
{
|
|
21407
|
+
"name": "trueCase",
|
|
21408
|
+
"type": {
|
|
21409
|
+
"text": "any"
|
|
21410
|
+
}
|
|
21411
|
+
}
|
|
21412
|
+
],
|
|
21413
|
+
"description": "condition is true, so always return trueCase"
|
|
21414
|
+
},
|
|
21415
|
+
{
|
|
21416
|
+
"kind": "function",
|
|
21417
|
+
"name": "cond",
|
|
21418
|
+
"return": {
|
|
21419
|
+
"type": {
|
|
21420
|
+
"text": "typeof nothing"
|
|
21421
|
+
}
|
|
21422
|
+
},
|
|
21423
|
+
"parameters": [
|
|
21424
|
+
{
|
|
21425
|
+
"name": "condition",
|
|
21426
|
+
"type": {
|
|
21427
|
+
"text": "false"
|
|
21428
|
+
}
|
|
21429
|
+
},
|
|
21430
|
+
{
|
|
21431
|
+
"name": "trueCase",
|
|
21432
|
+
"type": {
|
|
21433
|
+
"text": "any"
|
|
21434
|
+
}
|
|
21435
|
+
}
|
|
21436
|
+
],
|
|
21437
|
+
"description": "condition is false, to will always return nothing"
|
|
21438
|
+
},
|
|
21439
|
+
{
|
|
21440
|
+
"kind": "function",
|
|
21441
|
+
"name": "cond",
|
|
21442
|
+
"return": {
|
|
21443
|
+
"type": {
|
|
21444
|
+
"text": "typeof trueCase | typeof falseCase"
|
|
21445
|
+
}
|
|
21446
|
+
},
|
|
21447
|
+
"parameters": [
|
|
21448
|
+
{
|
|
21449
|
+
"name": "condition",
|
|
21450
|
+
"type": {
|
|
21451
|
+
"text": "unknown"
|
|
21452
|
+
}
|
|
21453
|
+
},
|
|
21454
|
+
{
|
|
21455
|
+
"name": "trueCase",
|
|
21456
|
+
"type": {
|
|
21457
|
+
"text": "any"
|
|
21458
|
+
}
|
|
21459
|
+
},
|
|
21460
|
+
{
|
|
21461
|
+
"name": "falseCase",
|
|
21462
|
+
"type": {
|
|
21463
|
+
"text": "any"
|
|
21464
|
+
}
|
|
21465
|
+
}
|
|
21466
|
+
],
|
|
21467
|
+
"description": "if condition is truthy, return trueCase, otherwise return falseCase"
|
|
21468
|
+
},
|
|
21469
|
+
{
|
|
21470
|
+
"kind": "function",
|
|
21471
|
+
"name": "cond",
|
|
21472
|
+
"return": {
|
|
21473
|
+
"type": {
|
|
21474
|
+
"text": "typeof trueCase"
|
|
21475
|
+
}
|
|
21476
|
+
},
|
|
21477
|
+
"parameters": [
|
|
21478
|
+
{
|
|
21479
|
+
"name": "condition",
|
|
21480
|
+
"type": {
|
|
21481
|
+
"text": "true"
|
|
21482
|
+
}
|
|
21483
|
+
},
|
|
21484
|
+
{
|
|
21485
|
+
"name": "trueCase",
|
|
21486
|
+
"type": {
|
|
21487
|
+
"text": "any"
|
|
21488
|
+
}
|
|
21489
|
+
},
|
|
21490
|
+
{
|
|
21491
|
+
"name": "falseCase",
|
|
21492
|
+
"type": {
|
|
21493
|
+
"text": "any"
|
|
21494
|
+
}
|
|
21495
|
+
}
|
|
21496
|
+
],
|
|
21497
|
+
"description": "condition is true, so always return trueCase"
|
|
21498
|
+
},
|
|
21499
|
+
{
|
|
21500
|
+
"kind": "function",
|
|
21501
|
+
"name": "cond",
|
|
21502
|
+
"return": {
|
|
21503
|
+
"type": {
|
|
21504
|
+
"text": "typeof falseCase"
|
|
21505
|
+
}
|
|
21506
|
+
},
|
|
21507
|
+
"parameters": [
|
|
21508
|
+
{
|
|
21509
|
+
"name": "condition",
|
|
21510
|
+
"type": {
|
|
21511
|
+
"text": "false"
|
|
21512
|
+
}
|
|
21513
|
+
},
|
|
21514
|
+
{
|
|
21515
|
+
"name": "trueCase",
|
|
21516
|
+
"type": {
|
|
21517
|
+
"text": "any"
|
|
21518
|
+
}
|
|
21519
|
+
},
|
|
21520
|
+
{
|
|
21521
|
+
"name": "falseCase",
|
|
21522
|
+
"type": {
|
|
21523
|
+
"text": "any"
|
|
21524
|
+
}
|
|
21525
|
+
}
|
|
21526
|
+
],
|
|
21527
|
+
"description": "condition is false, so always return falseCase"
|
|
21528
|
+
},
|
|
21529
|
+
{
|
|
21530
|
+
"kind": "function",
|
|
21531
|
+
"name": "cond",
|
|
21532
|
+
"parameters": [
|
|
21533
|
+
{
|
|
21534
|
+
"name": "condition",
|
|
21535
|
+
"type": {
|
|
21536
|
+
"text": "unknown"
|
|
21537
|
+
}
|
|
21538
|
+
},
|
|
21539
|
+
{
|
|
21540
|
+
"name": "trueCase",
|
|
21541
|
+
"default": "condition",
|
|
21542
|
+
"type": {
|
|
21543
|
+
"text": "any"
|
|
21544
|
+
}
|
|
21545
|
+
},
|
|
21546
|
+
{
|
|
21547
|
+
"name": "falseCase",
|
|
21548
|
+
"default": "nothing",
|
|
21549
|
+
"type": {
|
|
21550
|
+
"text": "any"
|
|
21551
|
+
}
|
|
21552
|
+
}
|
|
21553
|
+
]
|
|
21554
|
+
}
|
|
21555
|
+
],
|
|
21556
|
+
"exports": [
|
|
21557
|
+
{
|
|
21558
|
+
"kind": "js",
|
|
21559
|
+
"name": "cond",
|
|
21560
|
+
"declaration": {
|
|
21561
|
+
"name": "cond",
|
|
21562
|
+
"module": "src/common/directives/cond.ts"
|
|
21563
|
+
}
|
|
21564
|
+
},
|
|
21565
|
+
{
|
|
21566
|
+
"kind": "js",
|
|
21567
|
+
"name": "cond",
|
|
21568
|
+
"declaration": {
|
|
21569
|
+
"name": "cond",
|
|
21570
|
+
"module": "src/common/directives/cond.ts"
|
|
21571
|
+
}
|
|
21572
|
+
},
|
|
21573
|
+
{
|
|
21574
|
+
"kind": "js",
|
|
21575
|
+
"name": "cond",
|
|
21576
|
+
"declaration": {
|
|
21577
|
+
"name": "cond",
|
|
21578
|
+
"module": "src/common/directives/cond.ts"
|
|
21579
|
+
}
|
|
21580
|
+
},
|
|
21581
|
+
{
|
|
21582
|
+
"kind": "js",
|
|
21583
|
+
"name": "cond",
|
|
21584
|
+
"declaration": {
|
|
21585
|
+
"name": "cond",
|
|
21586
|
+
"module": "src/common/directives/cond.ts"
|
|
21587
|
+
}
|
|
21588
|
+
},
|
|
21589
|
+
{
|
|
21590
|
+
"kind": "js",
|
|
21591
|
+
"name": "cond",
|
|
21592
|
+
"declaration": {
|
|
21593
|
+
"name": "cond",
|
|
21594
|
+
"module": "src/common/directives/cond.ts"
|
|
21595
|
+
}
|
|
21596
|
+
},
|
|
21597
|
+
{
|
|
21598
|
+
"kind": "js",
|
|
21599
|
+
"name": "cond",
|
|
21600
|
+
"declaration": {
|
|
21601
|
+
"name": "cond",
|
|
21602
|
+
"module": "src/common/directives/cond.ts"
|
|
21603
|
+
}
|
|
21604
|
+
},
|
|
21605
|
+
{
|
|
21606
|
+
"kind": "js",
|
|
21607
|
+
"name": "cond",
|
|
21608
|
+
"declaration": {
|
|
21609
|
+
"name": "cond",
|
|
21610
|
+
"module": "src/common/directives/cond.ts"
|
|
21611
|
+
}
|
|
21612
|
+
},
|
|
21613
|
+
{
|
|
21614
|
+
"kind": "js",
|
|
21615
|
+
"name": "cond",
|
|
21616
|
+
"declaration": {
|
|
21617
|
+
"name": "cond",
|
|
21618
|
+
"module": "src/common/directives/cond.ts"
|
|
21619
|
+
}
|
|
21620
|
+
}
|
|
21621
|
+
]
|
|
21622
|
+
},
|
|
21623
|
+
{
|
|
21624
|
+
"kind": "javascript-module",
|
|
21625
|
+
"path": "src/common/directives/wrapIf.ts",
|
|
21626
|
+
"declarations": [
|
|
21627
|
+
{
|
|
21628
|
+
"kind": "function",
|
|
21629
|
+
"name": "wrapIf",
|
|
21630
|
+
"return": {
|
|
21631
|
+
"type": {
|
|
21632
|
+
"text": "TInner"
|
|
21633
|
+
}
|
|
21634
|
+
},
|
|
21635
|
+
"parameters": [
|
|
21636
|
+
{
|
|
21637
|
+
"name": "condition",
|
|
21638
|
+
"type": {
|
|
21639
|
+
"text": "false"
|
|
21640
|
+
}
|
|
21641
|
+
},
|
|
21642
|
+
{
|
|
21643
|
+
"name": "inner",
|
|
21644
|
+
"type": {
|
|
21645
|
+
"text": "() => TInner"
|
|
21646
|
+
}
|
|
21647
|
+
},
|
|
21648
|
+
{
|
|
21649
|
+
"name": "wrapper",
|
|
21650
|
+
"type": {
|
|
21651
|
+
"text": "(inner: TInner) => TWrapper"
|
|
21652
|
+
}
|
|
21653
|
+
}
|
|
21654
|
+
]
|
|
21655
|
+
},
|
|
21656
|
+
{
|
|
21657
|
+
"kind": "function",
|
|
21658
|
+
"name": "wrapIf",
|
|
21659
|
+
"return": {
|
|
21660
|
+
"type": {
|
|
21661
|
+
"text": "TWrapper"
|
|
21662
|
+
}
|
|
21663
|
+
},
|
|
21664
|
+
"parameters": [
|
|
21665
|
+
{
|
|
21666
|
+
"name": "condition",
|
|
21667
|
+
"type": {
|
|
21668
|
+
"text": "true"
|
|
21669
|
+
}
|
|
21670
|
+
},
|
|
21671
|
+
{
|
|
21672
|
+
"name": "inner",
|
|
21673
|
+
"type": {
|
|
21674
|
+
"text": "() => TInner"
|
|
21675
|
+
}
|
|
21676
|
+
},
|
|
21677
|
+
{
|
|
21678
|
+
"name": "wrapper",
|
|
21679
|
+
"type": {
|
|
21680
|
+
"text": "(inner: TInner) => TWrapper"
|
|
21681
|
+
}
|
|
21682
|
+
}
|
|
21683
|
+
]
|
|
21684
|
+
},
|
|
21685
|
+
{
|
|
21686
|
+
"kind": "function",
|
|
21687
|
+
"name": "wrapIf",
|
|
21688
|
+
"return": {
|
|
21689
|
+
"type": {
|
|
21690
|
+
"text": "TInner | TWrapper"
|
|
21691
|
+
}
|
|
21692
|
+
},
|
|
21693
|
+
"parameters": [
|
|
21694
|
+
{
|
|
21695
|
+
"name": "condition",
|
|
21696
|
+
"type": {
|
|
21697
|
+
"text": "unknown"
|
|
21698
|
+
}
|
|
21699
|
+
},
|
|
21700
|
+
{
|
|
21701
|
+
"name": "inner",
|
|
21702
|
+
"type": {
|
|
21703
|
+
"text": "() => TInner"
|
|
21704
|
+
}
|
|
21705
|
+
},
|
|
21706
|
+
{
|
|
21707
|
+
"name": "wrapper",
|
|
21708
|
+
"type": {
|
|
21709
|
+
"text": "(inner: TInner) => TWrapper"
|
|
21710
|
+
}
|
|
21711
|
+
}
|
|
21712
|
+
]
|
|
21713
|
+
},
|
|
21714
|
+
{
|
|
21715
|
+
"kind": "function",
|
|
21716
|
+
"name": "wrapIf",
|
|
21717
|
+
"parameters": [
|
|
21718
|
+
{
|
|
21719
|
+
"name": "condition",
|
|
21720
|
+
"type": {
|
|
21721
|
+
"text": "any"
|
|
21722
|
+
}
|
|
21723
|
+
},
|
|
21724
|
+
{
|
|
21725
|
+
"name": "inner",
|
|
21726
|
+
"type": {
|
|
21727
|
+
"text": "() => TInner"
|
|
21728
|
+
}
|
|
21729
|
+
},
|
|
21730
|
+
{
|
|
21731
|
+
"name": "wrapper",
|
|
21732
|
+
"type": {
|
|
21733
|
+
"text": "(innards: TInner) => TWrapper"
|
|
21734
|
+
}
|
|
21735
|
+
}
|
|
21736
|
+
],
|
|
21737
|
+
"return": {
|
|
21738
|
+
"type": {
|
|
21739
|
+
"text": ""
|
|
21740
|
+
}
|
|
21741
|
+
}
|
|
21742
|
+
}
|
|
21743
|
+
],
|
|
21744
|
+
"exports": [
|
|
21745
|
+
{
|
|
21746
|
+
"kind": "js",
|
|
21747
|
+
"name": "wrapIf",
|
|
21748
|
+
"declaration": {
|
|
21749
|
+
"name": "wrapIf",
|
|
21750
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
21751
|
+
}
|
|
21752
|
+
},
|
|
21753
|
+
{
|
|
21754
|
+
"kind": "js",
|
|
21755
|
+
"name": "wrapIf",
|
|
21756
|
+
"declaration": {
|
|
21757
|
+
"name": "wrapIf",
|
|
21758
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
21759
|
+
}
|
|
21760
|
+
},
|
|
21761
|
+
{
|
|
21762
|
+
"kind": "js",
|
|
21763
|
+
"name": "wrapIf",
|
|
21764
|
+
"declaration": {
|
|
21765
|
+
"name": "wrapIf",
|
|
21766
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
21767
|
+
}
|
|
21768
|
+
},
|
|
21769
|
+
{
|
|
21770
|
+
"kind": "js",
|
|
21771
|
+
"name": "wrapIf",
|
|
21772
|
+
"declaration": {
|
|
21773
|
+
"name": "wrapIf",
|
|
21774
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
21775
|
+
}
|
|
21776
|
+
}
|
|
21777
|
+
]
|
|
21773
21778
|
}
|
|
21774
21779
|
]
|
|
21775
21780
|
}
|