@nldd/design-system 0.8.49 → 0.8.51
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/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +1 -0
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +1 -0
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/components.js +93 -86
- package/dist/components/content/code-viewer/code-viewer.d.ts +37 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.i18n.d.ts +8 -0
- package/dist/components/content/code-viewer/code-viewer.i18n.d.ts.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.i18n.js +7 -0
- package/dist/components/content/code-viewer/code-viewer.i18n.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.js +104 -1
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +112 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +50 -3
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +17 -0
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +12 -0
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/image/image.d.ts +151 -0
- package/dist/components/content/image/image.d.ts.map +1 -0
- package/dist/components/content/image/image.i18n.d.ts +8 -0
- package/dist/components/content/image/image.i18n.d.ts.map +1 -0
- package/dist/components/content/image/image.i18n.js +7 -0
- package/dist/components/content/image/image.i18n.js.map +1 -0
- package/dist/components/content/image/image.js +320 -0
- package/dist/components/content/image/image.js.map +1 -0
- package/dist/components/content/image/image.styles.d.ts +2 -0
- package/dist/components/content/image/image.styles.d.ts.map +1 -0
- package/dist/components/content/image/image.styles.js +402 -0
- package/dist/components/content/image/image.styles.js.map +1 -0
- package/dist/components/content/image/image.template.d.ts +3 -0
- package/dist/components/content/image/image.template.d.ts.map +1 -0
- package/dist/components/content/image/image.template.js +109 -0
- package/dist/components/content/image/image.template.js.map +1 -0
- package/dist/components/content/image/lqip-encoder-element.d.ts +39 -0
- package/dist/components/content/image/lqip-encoder-element.d.ts.map +1 -0
- package/dist/components/content/image/lqip-encoder-element.js +240 -0
- package/dist/components/content/image/lqip-encoder-element.js.map +1 -0
- package/dist/components/content/image/lqip-encoder.d.ts +59 -0
- package/dist/components/content/image/lqip-encoder.d.ts.map +1 -0
- package/dist/components/content/image/lqip-encoder.js +279 -0
- package/dist/components/content/image/lqip-encoder.js.map +1 -0
- package/dist/components/content/rich-text/rich-text.d.ts +9 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.i18n.d.ts +5 -0
- package/dist/components/content/rich-text/rich-text.i18n.d.ts.map +1 -0
- package/dist/components/content/rich-text/rich-text.i18n.js +4 -0
- package/dist/components/content/rich-text/rich-text.i18n.js.map +1 -0
- package/dist/components/content/rich-text/rich-text.js +61 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +10 -0
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +74 -2
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/{index-BVOcPb8I.js → index-DYnIl3ts.js} +5435 -2205
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +1 -0
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +4 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +1 -0
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +4 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +4 -1
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +1 -0
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +4 -1
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +1 -0
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.js +1 -0
- package/dist/components/inputs/stepper/stepper.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +1 -0
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +4 -1
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +22 -14
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +16 -11
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +32 -16
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
- package/dist/components/inputs/token/token.styles.js +1 -0
- package/dist/components/inputs/token/token.styles.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +6 -0
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +12 -1
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +40 -1
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +1 -0
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.i18n.d.ts +1 -0
- package/dist/components/layout/collection/collection.i18n.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.i18n.js +1 -0
- package/dist/components/layout/collection/collection.i18n.js.map +1 -1
- package/dist/components/layout/collection/collection.js +14 -0
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +27 -0
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +12 -4
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/lists-and-menus/list/list.d.ts +10 -3
- package/dist/components/lists-and-menus/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-menus/list/list.js +8 -3
- package/dist/components/lists-and-menus/list/list.js.map +1 -1
- package/dist/components/lists-and-menus/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/list/list.styles.js +33 -6
- package/dist/components/lists-and-menus/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-menus/list-item/list-item.js +1 -1
- package/dist/components/lists-and-menus/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-menus/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/menu/menu.styles.js +1 -0
- package/dist/components/lists-and-menus/menu/menu.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +1 -0
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.js +1 -0
- package/dist/components/navigation/menu-bar/menu-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +1 -0
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +10 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/{prism-python-C1D7CYBc.js → prism-python-C9GXiQLy.js} +1 -1
- package/dist/components/{prism-rust-DI5vrP6V.js → prism-rust-De_U8Otq.js} +1 -1
- package/dist/components/{prism-typescript-DBgOPJ4M.js → prism-typescript-BJbUDHsa.js} +1 -1
- package/dist/components/sample-images/butterfly-1200.jpg +0 -0
- package/dist/components/sample-images/butterfly-1600.jpg +0 -0
- package/dist/components/sample-images/butterfly-480.jpg +0 -0
- package/dist/components/sample-images/butterfly-960.jpg +0 -0
- package/dist/components/status-and-feedback/badge/badge.d.ts +2 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +1 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +126 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +89 -0
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -0
- package/dist/components/status-and-feedback/banner/banner.i18n.d.ts +5 -0
- package/dist/components/status-and-feedback/banner/banner.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/banner/banner.i18n.js +4 -0
- package/dist/components/status-and-feedback/banner/banner.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/banner/banner.js +206 -0
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -0
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts +2 -0
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/banner/banner.styles.js +160 -0
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -0
- package/dist/components/status-and-feedback/banner/banner.template.d.ts +3 -0
- package/dist/components/status-and-feedback/banner/banner.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/banner/banner.template.js +51 -0
- package/dist/components/status-and-feedback/banner/banner.template.js.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.d.ts +77 -0
- package/dist/components/status-and-feedback/progress/progress.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.i18n.d.ts +5 -0
- package/dist/components/status-and-feedback/progress/progress.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.i18n.js +4 -0
- package/dist/components/status-and-feedback/progress/progress.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.js +137 -0
- package/dist/components/status-and-feedback/progress/progress.js.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.styles.d.ts +2 -0
- package/dist/components/status-and-feedback/progress/progress.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.styles.js +57 -0
- package/dist/components/status-and-feedback/progress/progress.styles.js.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.template.d.ts +4 -0
- package/dist/components/status-and-feedback/progress/progress.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress/progress.template.js +26 -0
- package/dist/components/status-and-feedback/progress/progress.template.js.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +131 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts +8 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js +7 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +426 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts +3 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +400 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts +3 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +60 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +132 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts +8 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js +7 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +437 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts +3 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +245 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts +14 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +115 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -0
- package/dist/css/settings.css +346 -18
- package/package.json +21 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.i18n.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress/progress.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC,kCAAkC,EAAE,OAAO;CAC3C,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Nederlandse Digitale Dienst Progress Component (Lit + TypeScript)
|
|
9
|
+
*
|
|
10
|
+
* Layout placeholder that fills its parent and centres an indeterminate
|
|
11
|
+
* progress indicator. Holds the indicator back for 1000ms so brief loading
|
|
12
|
+
* states don't flash a spinner; once the delay passes the indicator fades in.
|
|
13
|
+
*
|
|
14
|
+
* Default is an indeterminate `<nldd-progress-circle>` with the translated
|
|
15
|
+
* "Laden" label. Drop anything in the slot (a progress-bar, a customised
|
|
16
|
+
* progress-circle, etc.) to override.
|
|
17
|
+
*
|
|
18
|
+
* Reconnect behaviour: every `connectedCallback` resets the timer and hides
|
|
19
|
+
* the indicator again. If a consumer toggles the element via a conditional
|
|
20
|
+
* render (remove + re-insert) the spinner will disappear and re-fade after
|
|
21
|
+
* another 1000ms. Keep the element mounted and toggle visibility / `hidden`
|
|
22
|
+
* instead if you want the timer to run only once.
|
|
23
|
+
*
|
|
24
|
+
* Accessibility: the host element carries `aria-busy="true"` for as long as
|
|
25
|
+
* it is connected and not marked `complete`, including the silent 1000 ms
|
|
26
|
+
* pre-spinner window. AT users landing on the region during that window are
|
|
27
|
+
* told loading is in progress, even before the visual spinner appears.
|
|
28
|
+
*
|
|
29
|
+
* Two patterns to signal "done":
|
|
30
|
+
* 1. (Preferred.) Unmount `<nldd-progress>` entirely. aria-busy goes away
|
|
31
|
+
* with the element, and the indicator's `progressbar` role disappears
|
|
32
|
+
* from the AT tree.
|
|
33
|
+
* 2. Set the boolean `complete` attribute. aria-busy is cleared and the
|
|
34
|
+
* indicator is hidden, but the element stays in the DOM. Use this when
|
|
35
|
+
* you want a CSS transition out, or when the wrapper sits in a layout
|
|
36
|
+
* slot that would collapse if unmounted.
|
|
37
|
+
*
|
|
38
|
+
* @element nldd-progress
|
|
39
|
+
*
|
|
40
|
+
* @attr {string} text - Label under the default indicator. Falls back to the
|
|
41
|
+
* translated "Laden" string when unset. Ignored when the slot is filled.
|
|
42
|
+
* @attr {boolean} no-label - Suppress the label under the default indicator
|
|
43
|
+
* entirely. Use when the surrounding UI already conveys "loading" and an
|
|
44
|
+
* extra "Laden" caption would be redundant noise.
|
|
45
|
+
* @attr {boolean} complete - Mark the loader as finished while keeping the
|
|
46
|
+
* element mounted; clears aria-busy and hides the indicator.
|
|
47
|
+
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
48
|
+
*
|
|
49
|
+
* @slot - Optional custom indicator; overrides the default progress-circle.
|
|
50
|
+
* The host carries `aria-busy="true"` for AT users, but the default ARIA
|
|
51
|
+
* semantics on the visible indicator (role="progressbar", aria-valuetext)
|
|
52
|
+
* come from the built-in `<nldd-progress-circle>`. Consumers replacing the
|
|
53
|
+
* slot are responsible for supplying their own progressbar role / label
|
|
54
|
+
* on the custom indicator.
|
|
55
|
+
*/
|
|
56
|
+
import { LitElement } from 'lit';
|
|
57
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
58
|
+
import { progressStyles } from './progress.styles.js';
|
|
59
|
+
import { progressTemplate } from './progress.template.js';
|
|
60
|
+
import { nlddProgressTranslations } from './progress.i18n.js';
|
|
61
|
+
import '../progress-circle/progress-circle.js';
|
|
62
|
+
/** Delay before the indicator fades in. Brief loading states finish within
|
|
63
|
+
* this window and the spinner is never shown — avoids a jarring flash. */
|
|
64
|
+
const DELAY_MS = 1000;
|
|
65
|
+
let NLDDProgress = class NLDDProgress extends LitElement {
|
|
66
|
+
constructor() {
|
|
67
|
+
super(...arguments);
|
|
68
|
+
this.text = '';
|
|
69
|
+
/** Suppress the indicator's label entirely. The component still
|
|
70
|
+
* renders the spinner and announces aria-busy; only the visible
|
|
71
|
+
* "Laden" caption is hidden. Replaces the old text=" " sentinel. */
|
|
72
|
+
this.noLabel = false;
|
|
73
|
+
/** Mark the loader as finished while keeping the element mounted.
|
|
74
|
+
* Clears aria-busy and hides the indicator. Default false. */
|
|
75
|
+
this.complete = false;
|
|
76
|
+
this.translations = {};
|
|
77
|
+
this._visible = false;
|
|
78
|
+
}
|
|
79
|
+
_t(key) {
|
|
80
|
+
return this.translations[key] ?? nlddProgressTranslations[key];
|
|
81
|
+
}
|
|
82
|
+
connectedCallback() {
|
|
83
|
+
super.connectedCallback();
|
|
84
|
+
// aria-busy signals "loading in progress" to AT users immediately,
|
|
85
|
+
// even during the silent 1000 ms window before the visual indicator
|
|
86
|
+
// fades in. Set unless the consumer connected the element already
|
|
87
|
+
// marked complete (rare but valid — e.g. server-rendered "done" state).
|
|
88
|
+
if (!this.complete)
|
|
89
|
+
this.setAttribute('aria-busy', 'true');
|
|
90
|
+
this._visible = false;
|
|
91
|
+
this._delayTimeout = setTimeout(() => {
|
|
92
|
+
this._visible = true;
|
|
93
|
+
this._delayTimeout = undefined;
|
|
94
|
+
}, DELAY_MS);
|
|
95
|
+
}
|
|
96
|
+
willUpdate(changed) {
|
|
97
|
+
if (changed.has('complete')) {
|
|
98
|
+
if (this.complete) {
|
|
99
|
+
this.removeAttribute('aria-busy');
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
this.setAttribute('aria-busy', 'true');
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
disconnectedCallback() {
|
|
107
|
+
super.disconnectedCallback();
|
|
108
|
+
if (this._delayTimeout) {
|
|
109
|
+
clearTimeout(this._delayTimeout);
|
|
110
|
+
this._delayTimeout = undefined;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return progressTemplate(this);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
NLDDProgress.styles = progressStyles;
|
|
118
|
+
__decorate([
|
|
119
|
+
property({ type: String, reflect: true })
|
|
120
|
+
], NLDDProgress.prototype, "text", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
property({ type: Boolean, reflect: true, attribute: 'no-label' })
|
|
123
|
+
], NLDDProgress.prototype, "noLabel", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
property({ type: Boolean, reflect: true })
|
|
126
|
+
], NLDDProgress.prototype, "complete", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
property({ type: Object })
|
|
129
|
+
], NLDDProgress.prototype, "translations", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
state()
|
|
132
|
+
], NLDDProgress.prototype, "_visible", void 0);
|
|
133
|
+
NLDDProgress = __decorate([
|
|
134
|
+
customElement('nldd-progress')
|
|
135
|
+
], NLDDProgress);
|
|
136
|
+
export { NLDDProgress };
|
|
137
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress/progress.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,uCAAuC,CAAC;AAE/C;2EAC2E;AAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC;AAGf,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAIN,SAAI,GAAG,EAAE,CAAC;QAEV;;6EAEqE;QAErE,YAAO,GAAG,KAAK,CAAC;QAEhB;uEAC+D;QAE/D,aAAQ,GAAG,KAAK,CAAC;QAGjB,iBAAY,GAAsC,EAAE,CAAC;QAGrD,aAAQ,GAAG,KAAK,CAAC;IA2ClB,CAAC;IAvCO,EAAE,CAAC,GAAmC;QAC5C,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAChE,CAAC;IAEQ,iBAAiB;QACzB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,mEAAmE;QACnE,oEAAoE;QACpE,kEAAkE;QAClE,wEAAwE;QACxE,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,GAAG,EAAE;YACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrB,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QAChC,CAAC,EAAE,QAAQ,CAAC,CAAC;IACd,CAAC;IAEQ,UAAU,CAAC,OAA6B;QAChD,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;YAC7B,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACnB,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;YACnC,CAAC;iBAAM,CAAC;gBACP,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;YACxC,CAAC;QACF,CAAC;IACF,CAAC;IAEQ,oBAAoB;QAC5B,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACjC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QAChC,CAAC;IACF,CAAC;IAEQ,MAAM;QACd,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;;AA9De,mBAAM,GAAG,cAAc,AAAjB,CAAkB;AAGxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAChC;AAMV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;6CAClD;AAKhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAC0B;AAGrD;IADC,KAAK,EAAE;8CACS;AArBL,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAgExB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress/progress.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBAsD1B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const progressStyles = css `
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/* # Host */
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--_fade-duration: var(--primitives-transition-duration-slow);
|
|
9
|
+
--_indicator-max-width: var(--primitives-area-240);
|
|
10
|
+
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-grow: 1;
|
|
14
|
+
flex-shrink: 1;
|
|
15
|
+
flex-basis: auto;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([hidden]) {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* # Indicator
|
|
28
|
+
Wrapper around the slot so we can fade the indicator in once the delay
|
|
29
|
+
has passed. The host itself stays visible from mount to take up its
|
|
30
|
+
layout space; only the indicator inside fades.
|
|
31
|
+
width:100% + max-width gives the bar a concrete width to fill (without
|
|
32
|
+
this it has no containing block reference and collapses to 0). The
|
|
33
|
+
inner flex centring keeps a small circle aligned in the middle of that
|
|
34
|
+
width. */
|
|
35
|
+
|
|
36
|
+
.progress__indicator {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: 100%;
|
|
40
|
+
max-width: var(--_indicator-max-width);
|
|
41
|
+
animation: progress-fade-in var(--_fade-duration) ease-out;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes progress-fade-in {
|
|
45
|
+
from { opacity: 0; }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/* # Accessibility */
|
|
50
|
+
|
|
51
|
+
@media (prefers-reduced-motion: reduce) {
|
|
52
|
+
.progress__indicator {
|
|
53
|
+
animation: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
//# sourceMappingURL=progress.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress/progress.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.template.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress/progress.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,yDAsBvD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
export function progressTemplate(component) {
|
|
3
|
+
// Render nothing while the delay window is open so the indicator doesn't
|
|
4
|
+
// even flash for sub-second loads, or once `complete` is set so the
|
|
5
|
+
// element stays mounted but ARIA / visuals reflect the finished state.
|
|
6
|
+
if (!component._visible || component.complete)
|
|
7
|
+
return nothing;
|
|
8
|
+
// `text` attribute overrides the translated default. To suppress the
|
|
9
|
+
// label entirely use the `no-label` boolean attribute — passing
|
|
10
|
+
// text="" leaves the translated fallback in place by design.
|
|
11
|
+
const text = component.noLabel
|
|
12
|
+
? ''
|
|
13
|
+
: (component.text || component._t('components.progress.loading-text'));
|
|
14
|
+
return html `
|
|
15
|
+
<div class="progress__indicator">
|
|
16
|
+
<slot>
|
|
17
|
+
<nldd-progress-circle
|
|
18
|
+
size="28"
|
|
19
|
+
indeterminate
|
|
20
|
+
.text=${text}
|
|
21
|
+
></nldd-progress-circle>
|
|
22
|
+
</slot>
|
|
23
|
+
</div>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=progress.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.template.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress/progress.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGpC,MAAM,UAAU,gBAAgB,CAAC,SAAuB;IACvD,yEAAyE;IACzE,oEAAoE;IACpE,uEAAuE;IACvE,IAAI,CAAC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ;QAAE,OAAO,OAAO,CAAC;IAC9D,qEAAqE;IACrE,gEAAgE;IAChE,6DAA6D;IAC7D,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO;QAC7B,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,EAAE,CAAC,kCAAkC,CAAC,CAAC,CAAC;IACxE,OAAO,IAAI,CAAA;;;;;;aAMC,IAAI;;;;EAIf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nederlandse Digitale Dienst Progress Bar Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* Exports both NLDDProgressBar and NLDDProgressBarSegment.
|
|
5
|
+
*
|
|
6
|
+
* A progress bar that supports a single value (loading-style) or
|
|
7
|
+
* multiple segments (multi-stage progress, or distribution like
|
|
8
|
+
* storage usage). The consumer provides raw values; the component
|
|
9
|
+
* computes percentages from `max`.
|
|
10
|
+
*
|
|
11
|
+
* Two modes:
|
|
12
|
+
* - `progress` (default): segments sum toward `max`; remaining space
|
|
13
|
+
* is empty track. ARIA reads "X% voltooid".
|
|
14
|
+
* - `distribution`: segments fill the bar; ARIA enumerates segments.
|
|
15
|
+
*
|
|
16
|
+
* If the sum of segment values exceeds `max`, segments are normalized
|
|
17
|
+
* proportionally to fit and a warning is logged.
|
|
18
|
+
*
|
|
19
|
+
* @element nldd-progress-bar
|
|
20
|
+
*
|
|
21
|
+
* @attr {'progress'|'distribution'} mode - Semantics for ARIA and visualization (default: 'progress')
|
|
22
|
+
* @attr {number} max - Total value (default: 100)
|
|
23
|
+
* @attr {number} value - Single-segment shorthand (ignored when segment children are present)
|
|
24
|
+
* @attr {string} color - Color for the single-segment shorthand (default: 'accent')
|
|
25
|
+
* @attr {'sm'|'md'|'lg'} size - Height of the bar (default: 'md')
|
|
26
|
+
* @attr {string} text - Label above the bar (left)
|
|
27
|
+
* @attr {'percentage'|'absolute'|'fraction'|'none'} value-format - Format for the value at the top right (default: 'percentage')
|
|
28
|
+
* @attr {string} value-text - Full override of the displayed value
|
|
29
|
+
* @attr {string} accessible-label - Full override of aria-valuetext
|
|
30
|
+
* @attr {boolean} indeterminate - Shows a sliding indicator animation (only without segments)
|
|
31
|
+
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
32
|
+
*
|
|
33
|
+
* @slot - Place for nldd-progress-bar-segment elements
|
|
34
|
+
*
|
|
35
|
+
* @element nldd-progress-bar-segment
|
|
36
|
+
*
|
|
37
|
+
* @attr {number} value - Share of the parent's total (default 0; <=0 hides segment)
|
|
38
|
+
* @attr {string} color - Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'.
|
|
39
|
+
* @attr {string} name - Name for screenreader text (optional)
|
|
40
|
+
* @attr {string} tooltip-text - Override of the auto-generated tooltip text
|
|
41
|
+
*/
|
|
42
|
+
import { LitElement } from 'lit';
|
|
43
|
+
import type { NLDDProgressBarTranslations } from './progress-bar.i18n.js';
|
|
44
|
+
import '../../content/tooltip/tooltip.js';
|
|
45
|
+
/** Indeterminate ↔ determinate crossfade duration. Must stay in sync with
|
|
46
|
+
* --primitives-transition-duration-slow used by the matching CSS animations
|
|
47
|
+
* and with nldd-progress-circle's matching constant. Exported so the
|
|
48
|
+
* test suite can cross-check this value against the resolved CSS token. */
|
|
49
|
+
export declare const INDETERMINATE_TRANSITION_MS = 300;
|
|
50
|
+
export type ProgressBarMode = 'progress' | 'distribution';
|
|
51
|
+
export type ProgressBarSize = 'sm' | 'md' | 'lg';
|
|
52
|
+
export type ProgressBarValueFormat = 'percentage' | 'absolute' | 'fraction' | 'none';
|
|
53
|
+
export type ProgressBarColor = 'neutral' | 'accent' | 'success' | 'warning' | 'critical' | 'coolgray' | 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen';
|
|
54
|
+
export declare class NLDDProgressBarSegment extends LitElement {
|
|
55
|
+
static styles: import("lit").CSSResult;
|
|
56
|
+
value: number;
|
|
57
|
+
color: ProgressBarColor;
|
|
58
|
+
name: string;
|
|
59
|
+
/** Tooltip text override. By default, this is generated by the parent based on
|
|
60
|
+
* value-format and the segment `name`. Set explicitly for custom text,
|
|
61
|
+
* for example with distribution that has units ("200 GB of 500 GB"). */
|
|
62
|
+
tooltipText: string;
|
|
63
|
+
/** Set by the parent based on value-format. Internal state, not a public
|
|
64
|
+
* property — consumers use `tooltip-text` to override. */
|
|
65
|
+
_autoTooltipText: string;
|
|
66
|
+
get _effectiveTooltip(): string;
|
|
67
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
68
|
+
}
|
|
69
|
+
export declare class NLDDProgressBar extends LitElement {
|
|
70
|
+
static styles: import("lit").CSSResult;
|
|
71
|
+
mode: ProgressBarMode;
|
|
72
|
+
max: number;
|
|
73
|
+
value: number | null;
|
|
74
|
+
color: ProgressBarColor;
|
|
75
|
+
size: ProgressBarSize;
|
|
76
|
+
text: string;
|
|
77
|
+
valueFormat: ProgressBarValueFormat;
|
|
78
|
+
valueText: string;
|
|
79
|
+
accessibleLabel: string;
|
|
80
|
+
indeterminate: boolean;
|
|
81
|
+
/** Override one or more translation keys. Unspecified keys fall back to Dutch. */
|
|
82
|
+
translations: Partial<NLDDProgressBarTranslations>;
|
|
83
|
+
private _segments;
|
|
84
|
+
/** True for 300ms after indeterminate=true→false: indicator fades out while
|
|
85
|
+
* the segment grows from 0 to its target value. */
|
|
86
|
+
_indeterminateExiting: boolean;
|
|
87
|
+
/** True for 300ms after indeterminate=false→true: indicator fades in while
|
|
88
|
+
* the segment shrinks from its current width to 0. */
|
|
89
|
+
_indeterminateEntering: boolean;
|
|
90
|
+
private _exitTimeout?;
|
|
91
|
+
private _enterTimeout?;
|
|
92
|
+
_t(key: keyof NLDDProgressBarTranslations): string;
|
|
93
|
+
/** Returns true when the user has provided segment children. */
|
|
94
|
+
get _hasSegments(): boolean;
|
|
95
|
+
/** Sum of all segment values, or the parent's own value, or 0. */
|
|
96
|
+
get _totalValue(): number;
|
|
97
|
+
/** Percentage filled (0–100). */
|
|
98
|
+
get _percentage(): number;
|
|
99
|
+
/** Formatted value string for the header. */
|
|
100
|
+
get _displayValue(): string;
|
|
101
|
+
/** Computed aria-valuetext, unless overridden. */
|
|
102
|
+
get _ariaValueText(): string;
|
|
103
|
+
/** True when the header is rendered. Header only shows when `text` is set;
|
|
104
|
+
* used to suppress redundant auto-tooltips on single-segment bars. */
|
|
105
|
+
get _hasHeader(): boolean;
|
|
106
|
+
private _attributeObserver?;
|
|
107
|
+
firstUpdated(): void;
|
|
108
|
+
willUpdate(changed: Map<string, unknown>): void;
|
|
109
|
+
updated(): void;
|
|
110
|
+
/** Indicator fades out, segment grows from 0 to its target — both 300ms
|
|
111
|
+
* (matches --primitives-transition-duration-slow and nldd-progress-circle). */
|
|
112
|
+
private _beginIndeterminateExit;
|
|
113
|
+
/** Indicator fades in, segment shrinks from current width to 0 — both 300ms. */
|
|
114
|
+
private _beginIndeterminateEnter;
|
|
115
|
+
private _cancelIndeterminateExit;
|
|
116
|
+
private _cancelIndeterminateEnter;
|
|
117
|
+
/** Auto-tooltip based on parent's value-format. Override via segment.tooltip. */
|
|
118
|
+
private _formatSegmentTooltip;
|
|
119
|
+
disconnectedCallback(): void;
|
|
120
|
+
private _onSlotChange;
|
|
121
|
+
private _syncSegments;
|
|
122
|
+
private _onSlotChangeBound;
|
|
123
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
124
|
+
}
|
|
125
|
+
declare global {
|
|
126
|
+
interface HTMLElementTagNameMap {
|
|
127
|
+
'nldd-progress-bar': NLDDProgressBar;
|
|
128
|
+
'nldd-progress-bar-segment': NLDDProgressBarSegment;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=progress-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress-bar/progress-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,kCAAkC,CAAC;AAE1C;;;4EAG4E;AAC5E,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,cAAc,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjD,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAErF,MAAM,MAAM,gBAAgB,GACzB,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GACzD,UAAU,GACV,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GACzD,OAAO,GAAG,QAAQ,GAClB,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GACzC,YAAY,GAAG,MAAM,GACrB,aAAa,GAAG,OAAO,GACvB,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;AAKtD,qBACa,sBAAuB,SAAQ,UAAU;IACrD,OAAgB,MAAM,0BAA4B;IAGlD,KAAK,SAAK;IAGV,KAAK,EAAE,gBAAgB,CAAY;IAGnC,IAAI,SAAM;IAEV;;6EAEyE;IAEzE,WAAW,SAAM;IAEjB;+DAC2D;IAE3D,gBAAgB,SAAM;IAEtB,IAAI,iBAAiB,IAAI,MAAM,CAE9B;IAEQ,MAAM;CA2Bf;AAKD,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,IAAI,EAAE,eAAe,CAAc;IAGnC,GAAG,SAAO;IAGV,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAG5B,KAAK,EAAE,gBAAgB,CAAY;IAGnC,IAAI,EAAE,eAAe,CAAQ;IAG7B,IAAI,SAAM;IAGV,WAAW,EAAE,sBAAsB,CAAgB;IAGnD,SAAS,SAAM;IAGf,eAAe,SAAM;IAGrB,aAAa,UAAS;IAEtB,kFAAkF;IAElF,YAAY,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAM;IAGxD,OAAO,CAAC,SAAS,CAAgC;IAEjD;wDACoD;IAEpD,qBAAqB,UAAS;IAE9B;2DACuD;IAEvD,sBAAsB,UAAS;IAE/B,OAAO,CAAC,YAAY,CAAC,CAAgC;IACrD,OAAO,CAAC,aAAa,CAAC,CAAgC;IAE/C,EAAE,CAAC,GAAG,EAAE,MAAM,2BAA2B,GAAG,MAAM;IAIzD,gEAAgE;IAChE,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,kEAAkE;IAClE,IAAI,WAAW,IAAI,MAAM,CAKxB;IAED,iCAAiC;IACjC,IAAI,WAAW,IAAI,MAAM,CAGxB;IAED,6CAA6C;IAC7C,IAAI,aAAa,IAAI,MAAM,CAW1B;IAED,kDAAkD;IAClD,IAAI,cAAc,IAAI,MAAM,CAgC3B;IAED;2EACuE;IACvE,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,OAAO,CAAC,kBAAkB,CAAC,CAAmB;IAErC,YAAY,IAAI,IAAI;IAIpB,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAgB/C,OAAO,IAAI,IAAI;IAMxB;oFACgF;IAChF,OAAO,CAAC,uBAAuB;IAS/B,gFAAgF;IAChF,OAAO,CAAC,wBAAwB;IAShC,OAAO,CAAC,wBAAwB;IAQhC,OAAO,CAAC,yBAAyB;IAQjC,iFAAiF;IACjF,OAAO,CAAC,qBAAqB;IAkBpB,oBAAoB,IAAI,IAAI;IAOrC,OAAO,CAAC,aAAa;IA6BrB,OAAO,CAAC,aAAa;IAoDrB,OAAO,CAAC,kBAAkB,CAAiC;IAElD,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;QACrC,2BAA2B,EAAE,sBAAsB,CAAC;KACpD;CACD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const nlddProgressBarTranslations: {
|
|
2
|
+
'components.progress-bar.completed-suffix-text': string;
|
|
3
|
+
'components.progress-bar.total-prefix-text': string;
|
|
4
|
+
'components.progress-bar.loading-text': string;
|
|
5
|
+
'components.progress-bar.label-text': string;
|
|
6
|
+
};
|
|
7
|
+
export type NLDDProgressBarTranslations = typeof nlddProgressBarTranslations;
|
|
8
|
+
//# sourceMappingURL=progress-bar.i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress-bar/progress-bar.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;;;;CAKvC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const nlddProgressBarTranslations = {
|
|
2
|
+
'components.progress-bar.completed-suffix-text': 'voltooid',
|
|
3
|
+
'components.progress-bar.total-prefix-text': 'Totaal',
|
|
4
|
+
'components.progress-bar.loading-text': 'Aan het laden',
|
|
5
|
+
'components.progress-bar.label-text': 'Voortgang',
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=progress-bar.i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar.i18n.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/progress-bar/progress-bar.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C,+CAA+C,EAAE,UAAU;IAC3D,2CAA2C,EAAE,QAAQ;IACrD,sCAAsC,EAAE,eAAe;IACvD,oCAAoC,EAAE,WAAW;CACjD,CAAC"}
|