@lion/ui 0.3.0 → 0.3.2
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/components/checkbox-group/src/LionCheckboxIndeterminate.js +2 -2
- package/components/checkbox-group/test/lion-checkbox-indeterminate-integrations.test.js +6 -0
- package/components/checkbox-group/{test/lion-checkbox-indeterminate.test.js → test-suites/CheckboxIndeterminate.suite.js} +209 -187
- package/components/combobox/src/LionCombobox.js +3 -1
- package/components/combobox/test/lion-combobox.test.js +52 -0
- package/components/input-file/src/LionInputFile.js +15 -8
- package/components/input-file/src/LionSelectedFileList.js +0 -3
- package/components/input-file/test/lion-input-file.test.js +2 -3
- package/components/listbox/src/ListboxMixin.js +3 -2
- package/components/listbox/test-suites/ListboxMixin.suite.js +31 -1
- package/components/localize/src/number/utils/normalize-format-number-to-parts/forceNoSpaceBetweenCurrencySymbolAndNumber.js +22 -0
- package/components/localize/src/number/utils/normalize-format-number-to-parts/forceSymbols.js +64 -0
- package/components/localize/src/number/utils/normalize-format-number-to-parts/normalizeIntl.js +13 -7
- package/components/localize/test/number/formatNumber.test.js +6 -28
- package/custom-elements.json +213 -40
- package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts +12 -0
- package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -0
- package/dist-types/components/combobox/src/LionCombobox.d.ts.map +1 -1
- package/dist-types/components/combobox/test/lion-combobox.test.d.ts.map +1 -1
- package/dist-types/components/input-file/src/LionInputFile.d.ts +5 -0
- package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
- package/dist-types/components/input-file/src/LionSelectedFileList.d.ts.map +1 -1
- package/dist-types/components/listbox/src/ListboxMixin.d.ts.map +1 -1
- package/dist-types/components/listbox/test-suites/ListboxMixin.suite.d.ts.map +1 -1
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceNoSpaceBetweenCurrencySymbolAndNumber.d.ts +14 -0
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceNoSpaceBetweenCurrencySymbolAndNumber.d.ts.map +1 -0
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceSymbols.d.ts +20 -0
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceSymbols.d.ts.map +1 -0
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/normalizeIntl.d.ts.map +1 -1
- package/dist-types/exports/checkbox-group-test-suites.d.ts +2 -0
- package/dist-types/exports/checkbox-group-test-suites.d.ts.map +1 -0
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/checkbox-group/overview.md +9 -10
- package/docs/components/checkbox-group/use-cases.md +110 -142
- package/docs/components/collapsible/overview.md +1 -1
- package/docs/components/combobox/overview.md +1 -1
- package/docs/components/combobox/use-cases.md +1 -1
- package/docs/components/dialog/overview.md +1 -1
- package/docs/components/fieldset/overview.md +5 -5
- package/docs/components/form/overview.md +3 -3
- package/docs/components/icon/use-cases.md +1 -1
- package/docs/components/input/overview.md +1 -1
- package/docs/components/input-amount/overview.md +3 -3
- package/docs/components/input-date/overview.md +3 -3
- package/docs/components/input-datepicker/overview.md +5 -5
- package/docs/components/input-email/overview.md +2 -2
- package/docs/components/input-file/overview.md +1 -1
- package/docs/components/input-iban/overview.md +2 -2
- package/docs/components/input-range/overview.md +2 -2
- package/docs/components/input-stepper/overview.md +1 -1
- package/docs/components/input-tel/overview.md +1 -1
- package/docs/components/input-tel/use-cases.md +6 -6
- package/docs/components/input-tel-dropdown/overview.md +1 -1
- package/docs/components/radio-group/overview.md +3 -3
- package/docs/components/select-rich/use-cases.md +1 -1
- package/docs/components/tabs/examples.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
- package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
- package/docs/fundamentals/rationales/accessibility.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +1 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
- package/docs/fundamentals/systems/form/model-value.md +1 -1
- package/docs/fundamentals/systems/form/overview.md +28 -28
- package/docs/fundamentals/systems/form/validate.md +1 -1
- package/docs/fundamentals/systems/localize/overview.md +4 -4
- package/docs/fundamentals/systems/overlays/configuration.md +2 -2
- package/docs/fundamentals/systems/overlays/overview.md +5 -5
- package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/how-to/get-started.md +28 -1
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/exports/checkbox-group-test-suites.js +1 -0
- package/package.json +1 -1
- package/components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.js +0 -25
- package/components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.js +0 -15
- package/dist-types/components/checkbox-group/test/lion-checkbox-indeterminate.test.d.ts +0 -4
- package/dist-types/components/checkbox-group/test/lion-checkbox-indeterminate.test.d.ts.map +0 -1
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.d.ts +0 -14
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.d.ts.map +0 -1
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.d.ts +0 -9
- package/dist-types/components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.d.ts.map +0 -1
|
@@ -63,7 +63,7 @@ class MyForm extends LitElement {
|
|
|
63
63
|
}
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
> Today, rendering to light dom is the only way to [stay accessible](https://github.com/ing-bank/lion/blob/
|
|
66
|
+
> Today, rendering to light dom is the only way to [stay accessible](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/fundamentals/rationales/accessibility.md#shadow-roots-and-accessibility).
|
|
67
67
|
|
|
68
68
|
The registration mechanism relies on light dom by design: as soon as you do start to use shadow roots, you will notice that your form components won't register themselves anymore to their parents.
|
|
69
69
|
|
|
@@ -73,7 +73,7 @@ Extending form components is not recommended for Application Developers: it shou
|
|
|
73
73
|
This team will add the styling and default configuration needed to make it fit the particular Design System.
|
|
74
74
|
|
|
75
75
|
With the toolbox provided by the team that creates your Design System, you should be able to build all your forms. Only if you have a really good reason, look into
|
|
76
|
-
[exceptional cases](https://github.com/ing-bank/lion/blob/
|
|
76
|
+
[exceptional cases](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/how-to/#exceptional-cases) below.
|
|
77
77
|
|
|
78
78
|
### Exceptional cases
|
|
79
79
|
|
|
@@ -81,8 +81,8 @@ If the form component you need is still missing, you have two options:
|
|
|
81
81
|
|
|
82
82
|
- is it a generic primitive that should be part of Lion? Request it in [Lion discussions](https://github.com/ing-bank/lion/discussions)
|
|
83
83
|
- is it a non generic component that is unique to your app?
|
|
84
|
-
- follow [create a custom field](https://github.com/ing-bank/lion/blob/
|
|
85
|
-
- follow [extend a native input](https://github.com/ing-bank/lion/blob/
|
|
84
|
+
- follow [create a custom field](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/how-to/create-a-custom-field.md)
|
|
85
|
+
- follow [extend a native input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/how-to/extend-a-native-input.md)
|
|
86
86
|
|
|
87
87
|
It's also possible to extend other components, like LionListbox or LionCombobox. You need to be aware that you're building on top of protected apis.
|
|
88
88
|
Changing/overriding functionality is only recommended if the source code in `form-core` is fully understood.
|
|
@@ -11,9 +11,9 @@ import '../../fundamentals/systems/form/assets/h-output.js';
|
|
|
11
11
|
loadDefaultFeedbackMessages();
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Input fields can be created by extending [LionInput](https://github.com/ing-bank/lion/blob/
|
|
14
|
+
Input fields can be created by extending [LionInput](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/components/input/overview.md).
|
|
15
15
|
|
|
16
|
-
> In case you want to wrap a custom form element, follow [Create a custom Field](https://github.com/ing-bank/lion/blob/
|
|
16
|
+
> In case you want to wrap a custom form element, follow [Create a custom Field](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/how-to/create-a-custom-field.md).
|
|
17
17
|
|
|
18
18
|
For this tutorial, we create an input that wraps native `input[type=datetime-local]`.
|
|
19
19
|
This is as simple as adding a type:
|
|
@@ -22,8 +22,22 @@ npm init @open-wc
|
|
|
22
22
|
|
|
23
23
|
### Install lion packages
|
|
24
24
|
|
|
25
|
+
To get started with consuming lion's UI components install package `@lion/ui` as follows:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm i @lion/ui
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
You can install lion's ajax package with:
|
|
32
|
+
|
|
25
33
|
```bash
|
|
26
|
-
npm i @lion
|
|
34
|
+
npm i @lion/ajax
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
You can install lion's singleton-manager package with:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm i --save singleton-manager
|
|
27
41
|
```
|
|
28
42
|
|
|
29
43
|
### Extend a Web Component
|
|
@@ -75,3 +89,16 @@ You can also use the lion elements directly, although this is likely not a commo
|
|
|
75
89
|
|
|
76
90
|
<lion-input name="firstName" label="First name"></lion-input>
|
|
77
91
|
```
|
|
92
|
+
|
|
93
|
+
### Code Completion for VS Code
|
|
94
|
+
|
|
95
|
+
The @lion/ui package includes a file named vscode.html-custom-data.json that allows you to define custom elements to be recognized by Visual Studio Code. This enables code completion for @lion/ui components. To activate this feature, follow these steps after having installed `@lion/ui`:
|
|
96
|
+
|
|
97
|
+
1. Navigate to the root of your project
|
|
98
|
+
2. Add the following to root level of object in file `.vscode/settings.json` (create file if it doesn't exist):
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
"html.customData": ["./node_modules/@lion/ui/vscode.html-custom-data.json"]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
3. Restart your Visual Studio Code for the changes to take effect.
|
package/docs/guides/index.md
CHANGED
|
@@ -12,9 +12,9 @@ Developers consuming our web components inside an application (not extending the
|
|
|
12
12
|
`Application Developers` are only allowed to interact with `public` properties and methods.
|
|
13
13
|
Can be abbreviated as `AD`. Sometimes also called `Consuming Developer`.
|
|
14
14
|
|
|
15
|
-
- [Definitions and Terms](https://github.com/ing-bank/lion/blob/
|
|
16
|
-
- [Styling](https://github.com/ing-bank/lion/blob/
|
|
17
|
-
- [Scoped Elements](https://github.com/ing-bank/lion/blob/
|
|
15
|
+
- [Definitions and Terms](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/definitions-and-terms.md)
|
|
16
|
+
- [Styling](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/styling.md)
|
|
17
|
+
- [Scoped Elements](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/scoped-elements.md)
|
|
18
18
|
|
|
19
19
|
## Extending Developer
|
|
20
20
|
|
|
@@ -22,13 +22,13 @@ Developers extending our web components, for instance: `class MaterialInput exte
|
|
|
22
22
|
|
|
23
23
|
Especially for subclassers we have some extra documentation:
|
|
24
24
|
|
|
25
|
-
- [Subclasser APIs](https://github.com/ing-bank/lion/blob/
|
|
26
|
-
- [Extend documentation](https://github.com/ing-bank/lion/blob/
|
|
25
|
+
- [Subclasser APIs](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/subclasser-apis.md)
|
|
26
|
+
- [Extend documentation](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/blog/extending-documentation.md)
|
|
27
27
|
|
|
28
28
|
## How To
|
|
29
29
|
|
|
30
30
|
Next to that we have some specific "How To" documentations.
|
|
31
31
|
|
|
32
|
-
- [Get started](https://github.com/ing-bank/lion/blob/
|
|
33
|
-
- [Create a custom field](https://github.com/ing-bank/lion/blob/
|
|
34
|
-
- [Extend a native input](https://github.com/ing-bank/lion/blob/
|
|
32
|
+
- [Get started](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/how-to/get-started.md)
|
|
33
|
+
- [Create a custom field](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/how-to/create-a-custom-field.md)
|
|
34
|
+
- [Extend a native input](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/how-to/extend-a-native-input.md)
|
|
@@ -12,9 +12,9 @@ Developers consuming our web components inside an application (not extending the
|
|
|
12
12
|
`Application Developers` are only allowed to interact with `public` properties and methods.
|
|
13
13
|
Can be abbreviated as `AD`. Sometimes also called `Consuming Developer`.
|
|
14
14
|
|
|
15
|
-
- [Definitions and Terms](https://github.com/ing-bank/lion/blob/
|
|
16
|
-
- [Styling](https://github.com/ing-bank/lion/blob/
|
|
17
|
-
- [Scoped Elements](https://github.com/ing-bank/lion/blob/
|
|
15
|
+
- [Definitions and Terms](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/definitions-and-terms.md)
|
|
16
|
+
- [Styling](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/styling.md)
|
|
17
|
+
- [Scoped Elements](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/scoped-elements.md)
|
|
18
18
|
|
|
19
19
|
## Extending Developer
|
|
20
20
|
|
|
@@ -22,5 +22,5 @@ Developers extending our web components, for instance: `class MaterialInput exte
|
|
|
22
22
|
|
|
23
23
|
Especially for subclassers we have some extra documentation:
|
|
24
24
|
|
|
25
|
-
- [Subclasser APIs](https://github.com/ing-bank/lion/blob/
|
|
26
|
-
- [Extend documentation](https://github.com/ing-bank/lion/blob/
|
|
25
|
+
- [Subclasser APIs](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/subclasser-apis.md)
|
|
26
|
+
- [Extend documentation](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/blog/extending-documentation.md)
|
|
@@ -19,7 +19,7 @@ Examples for both categories can be found below:
|
|
|
19
19
|
- Accessibility examples:
|
|
20
20
|
- Content (for instance a caption in a table) can be `visually hidden`: it will be
|
|
21
21
|
readable by screen readers, but invisible for end users.
|
|
22
|
-
- When an html table is used, we allow [subclassers](https://github.com/ing-bank/lion/blob/
|
|
22
|
+
- When an html table is used, we allow [subclassers](https://github.com/ing-bank/lion/blob/91b582d8c9597873621e40ba61de7e90b0ae20ec/docs/guides/principles/subclasser-apis.md) to override the display property (`table-cell`) to `flex`. By putting the proper accessible roles (`role="cell"`) in the markup, we guarantee our markup stays accessible.
|
|
23
23
|
|
|
24
24
|
Although Lion components try to stay as unbiased as possible with regard to styling, defaults will be needed. In these cases we try to follow the platform as much as possible. If the platform doesn't provide defaults, the largest common denominator across existing UI systems is taken as a lead.
|
|
25
25
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { runCheckboxIndeterminateSuite } from '../components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js';
|
package/package.json
CHANGED
package/components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** @type {Object.<string,string>} */
|
|
2
|
-
const CURRENCY_CODE_SYMBOL_MAP = {
|
|
3
|
-
EUR: '€',
|
|
4
|
-
USD: '$',
|
|
5
|
-
JPY: '¥',
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Change the symbols for locale 'en-AU', due to bug in Chrome
|
|
10
|
-
*
|
|
11
|
-
* @typedef {import('../../../../types/LocalizeMixinTypes.js').FormatNumberPart} FormatNumberPart
|
|
12
|
-
* @param {FormatNumberPart[]} formattedParts
|
|
13
|
-
* @param {import('../../../../types/LocalizeMixinTypes.js').FormatNumberOptions} options
|
|
14
|
-
* @returns {FormatNumberPart[]}
|
|
15
|
-
*/
|
|
16
|
-
export function forceENAUSymbols(formattedParts, { currency, currencyDisplay } = {}) {
|
|
17
|
-
const result = formattedParts;
|
|
18
|
-
if (formattedParts.length > 1 && currencyDisplay === 'symbol' && currency) {
|
|
19
|
-
if (Object.keys(CURRENCY_CODE_SYMBOL_MAP).includes(currency)) {
|
|
20
|
-
result[0].value = CURRENCY_CODE_SYMBOL_MAP[currency];
|
|
21
|
-
}
|
|
22
|
-
result[1].value = '';
|
|
23
|
-
}
|
|
24
|
-
return result;
|
|
25
|
-
}
|
package/components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('../../../../types/LocalizeMixinTypes.js').FormatNumberPart} FormatNumberPart
|
|
3
|
-
* @param {FormatNumberPart[]} formattedParts
|
|
4
|
-
* @param {import('../../../../types/LocalizeMixinTypes.js').FormatNumberOptions} options
|
|
5
|
-
* @returns {FormatNumberPart[]}
|
|
6
|
-
*/
|
|
7
|
-
export function forceYenSymbol(formattedParts, { currency, currencyDisplay } = {}) {
|
|
8
|
-
const result = formattedParts;
|
|
9
|
-
const numberOfParts = result.length;
|
|
10
|
-
// Change the symbol from JPY to ¥, due to bug in Chrome
|
|
11
|
-
if (numberOfParts > 1 && currency === 'JPY' && currencyDisplay === 'symbol') {
|
|
12
|
-
result[numberOfParts - 1].value = '¥';
|
|
13
|
-
}
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type LionCheckbox = import('../src/LionCheckbox.js').LionCheckbox;
|
|
2
|
-
export type LionCheckboxIndeterminate = import('../src/LionCheckboxIndeterminate.js').LionCheckboxIndeterminate;
|
|
3
|
-
export type LionCheckboxGroup = import('../src/LionCheckboxGroup.js').LionCheckboxGroup;
|
|
4
|
-
//# sourceMappingURL=lion-checkbox-indeterminate.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lion-checkbox-indeterminate.test.d.ts","sourceRoot":"","sources":["../../../../components/checkbox-group/test/lion-checkbox-indeterminate.test.js"],"names":[],"mappings":"2BAQa,OAAO,wBAAwB,EAAE,YAAY;wCAC7C,OAAO,qCAAqC,EAAE,yBAAyB;gCACvE,OAAO,6BAA6B,EAAE,iBAAiB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Change the symbols for locale 'en-AU', due to bug in Chrome
|
|
3
|
-
*
|
|
4
|
-
* @typedef {import('../../../../types/LocalizeMixinTypes.js').FormatNumberPart} FormatNumberPart
|
|
5
|
-
* @param {FormatNumberPart[]} formattedParts
|
|
6
|
-
* @param {import('../../../../types/LocalizeMixinTypes.js').FormatNumberOptions} options
|
|
7
|
-
* @returns {FormatNumberPart[]}
|
|
8
|
-
*/
|
|
9
|
-
export function forceENAUSymbols(formattedParts: FormatNumberPart[], { currency, currencyDisplay }?: import('../../../../types/LocalizeMixinTypes.js').FormatNumberOptions): FormatNumberPart[];
|
|
10
|
-
/**
|
|
11
|
-
* Change the symbols for locale 'en-AU', due to bug in Chrome
|
|
12
|
-
*/
|
|
13
|
-
export type FormatNumberPart = import('../../../../types/LocalizeMixinTypes.js').FormatNumberPart;
|
|
14
|
-
//# sourceMappingURL=forceENAUSymbols.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forceENAUSymbols.d.ts","sourceRoot":"","sources":["../../../../../../../components/localize/src/number/utils/normalize-format-number-to-parts/forceENAUSymbols.js"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,iDAJW,gBAAgB,EAAE,kCAClB,OAAO,yCAAyC,EAAE,mBAAmB,GACnE,gBAAgB,EAAE,CAW9B;;;;+BAdY,OAAO,yCAAyC,EAAE,gBAAgB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('../../../../types/LocalizeMixinTypes.js').FormatNumberPart} FormatNumberPart
|
|
3
|
-
* @param {FormatNumberPart[]} formattedParts
|
|
4
|
-
* @param {import('../../../../types/LocalizeMixinTypes.js').FormatNumberOptions} options
|
|
5
|
-
* @returns {FormatNumberPart[]}
|
|
6
|
-
*/
|
|
7
|
-
export function forceYenSymbol(formattedParts: FormatNumberPart[], { currency, currencyDisplay }?: import('../../../../types/LocalizeMixinTypes.js').FormatNumberOptions): FormatNumberPart[];
|
|
8
|
-
export type FormatNumberPart = import('../../../../types/LocalizeMixinTypes.js').FormatNumberPart;
|
|
9
|
-
//# sourceMappingURL=forceYenSymbol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forceYenSymbol.d.ts","sourceRoot":"","sources":["../../../../../../../components/localize/src/number/utils/normalize-format-number-to-parts/forceYenSymbol.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,+CAJW,gBAAgB,EAAE,kCAClB,OAAO,yCAAyC,EAAE,mBAAmB,GACnE,gBAAgB,EAAE,CAU9B;+BAbY,OAAO,yCAAyC,EAAE,gBAAgB"}
|