@nldd/design-system 0.8.95 → 0.8.96
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/README.md +6 -9
- package/custom-elements.json +288 -288
- package/dist/assets/styles/shadow-resets.d.ts +1 -1
- package/dist/assets/styles/shadow-resets.js +1 -1
- package/dist/components/actions/button/button.js +3 -3
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.js +273 -273
- package/dist/components/actions/button-bar/button-bar.styles.js +34 -34
- package/dist/components/actions/button-group/button-group.styles.js +11 -11
- package/dist/components/actions/icon-button/icon-button.js +3 -3
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +203 -203
- package/dist/components/actions/menu/menu.d.ts +3 -3
- package/dist/components/actions/menu/menu.js +15 -15
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +46 -41
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.js +3 -3
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +30 -30
- package/dist/components/actions/toolbar/toolbar.d.ts +5 -0
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +28 -18
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +55 -55
- package/dist/components/components.js +4095 -4003
- package/dist/components/content/avatar/avatar.d.ts +1 -1
- package/dist/components/content/avatar/avatar.js +3 -3
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +39 -39
- package/dist/components/content/avatar-group/avatar-group.styles.js +36 -36
- package/dist/components/content/blockquote/blockquote.styles.js +14 -14
- package/dist/components/content/code-viewer/code-viewer.js +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +36 -36
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +16 -0
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +14 -42
- package/dist/components/content/icon/icon-gallery-status.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/icon/icon.js +2 -2
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.js +48 -48
- package/dist/components/content/identity/identity.styles.js +17 -17
- package/dist/components/content/image/image.js +3 -3
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.js +153 -153
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +42 -40
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/tag/tag.styles.js +95 -95
- package/dist/components/content/text/text.styles.js +23 -23
- package/dist/components/content/title/title.styles.js +38 -38
- package/dist/components/content/token/token.styles.js +4 -4
- package/dist/components/content/tooltip/tooltip.js +5 -5
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +21 -18
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +5 -5
- package/dist/components/forms/validation-list/validation-list.styles.js +7 -7
- package/dist/components/{icon-Typdp4av.js → icon-DQHT2C7z.js} +70 -50
- package/dist/components/{icon-button-9mo3oIyL.js → icon-button-mevRsl4C.js} +278 -275
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -2
- 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 +31 -16
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +2 -2
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +30 -30
- package/dist/components/inputs/combo-box/combo-box.js +2 -2
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +30 -30
- package/dist/components/inputs/date-field/date-field.js +4 -4
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +46 -46
- package/dist/components/inputs/date-picker/date-picker.js +3 -3
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +65 -65
- package/dist/components/inputs/dropdown/dropdown.js +2 -2
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +66 -66
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +33 -30
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +3 -3
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +30 -30
- package/dist/components/inputs/number-field/number-field.js +3 -3
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +18 -18
- package/dist/components/inputs/password-field/password-field.js +2 -2
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +37 -37
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +29 -13
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +2 -2
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +30 -30
- package/dist/components/inputs/segmented-control/segmented-control.js +4 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +108 -108
- package/dist/components/inputs/stepper/stepper.styles.js +10 -10
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +39 -31
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +7 -7
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +138 -138
- package/dist/components/inputs/text-field/text-field.js +2 -2
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +27 -27
- package/dist/components/inputs/time-field/time-field.js +4 -4
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +40 -40
- package/dist/components/inputs/time-picker/time-picker.js +4 -4
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +30 -30
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +145 -145
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +7 -3
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +28 -28
- package/dist/components/layout/app-view/app-view.d.ts +1 -1
- package/dist/components/layout/app-view/app-view.js +1 -1
- package/dist/components/layout/app-view/app-view.styles.js +3 -3
- package/dist/components/layout/box/box.styles.js +13 -13
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +24 -21
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.js +6 -6
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +19 -19
- package/dist/components/layout/container/container.d.ts +2 -2
- package/dist/components/layout/container/container.js +30 -30
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +125 -125
- package/dist/components/layout/page/page.js +5 -5
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +20 -20
- package/dist/components/layout/page-footer/page-footer.js +4 -4
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +26 -26
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -3
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +17 -17
- package/dist/components/layout/page-sections/hero/hero.js +6 -6
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +74 -74
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +3 -3
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +17 -17
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +3 -3
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +17 -17
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +5 -5
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +29 -27
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +3 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +17 -17
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +3 -3
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +17 -17
- package/dist/components/layout/popover/popover.d.ts +1 -1
- package/dist/components/layout/popover/popover.js +5 -5
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +4 -3
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.js +4 -4
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +8 -8
- package/dist/components/layout/spacer/spacer.styles.js +76 -76
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +5 -5
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +4 -4
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +12 -12
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +6 -6
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +4 -4
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +4 -4
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +6 -6
- package/dist/components/layout/window/window.d.ts +1 -1
- package/dist/components/layout/window/window.js +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +3 -1
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +8 -8
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js +9 -9
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +8 -8
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +10 -10
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js +9 -9
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +14 -14
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js +20 -20
- package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.d.ts → step-cell/step-cell.d.ts} +18 -17
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.js → step-cell/step-cell.js} +33 -32
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +184 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts +4 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.template.js → step-cell/step-cell.template.js} +10 -10
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +9 -9
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +37 -37
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +8 -8
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +37 -37
- package/dist/components/lists-and-tables/list/list.js +7 -7
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +49 -48
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +9 -9
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +69 -67
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +30 -30
- package/dist/components/lists-and-tables/table/table.js +2 -2
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +21 -21
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +3 -3
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +12 -12
- package/dist/components/navigation/document-tab-bar/document-tab-bar.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 +51 -49
- package/dist/components/navigation/document-tab-bar/document-tab-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 +23 -17
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +29 -29
- package/dist/components/navigation/skip-link/skip-link.styles.js +8 -8
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +53 -53
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +3 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.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 +35 -32
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +3 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
- package/dist/components/{shadow-resets-aG-rgyNQ.js → shadow-resets-CPa58rmc.js} +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +46 -46
- package/dist/components/status-and-feedback/badge/badge.js +2 -2
- 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 +120 -119
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +49 -49
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +19 -19
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +12 -12
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +58 -58
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +6 -6
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +45 -39
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.js +2 -2
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +121 -119
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +58 -58
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +36 -36
- package/dist/components/status-and-feedback/{step-indicator/step-indicator.d.ts → step-bar/step-bar.d.ts} +32 -32
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.d.ts +9 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js +8 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/{step-indicator/step-indicator.js → step-bar/step-bar.js} +46 -46
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts +3 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +294 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts +5 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +69 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -0
- package/dist/css/rich-text.css +35 -32
- package/dist/css/variables.css +54 -410
- package/dist/nldd.min.js +4154 -4035
- package/dist/translations/en-US.js +5 -5
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.js +5 -5
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +5 -5
- package/dist/translations/nl.generated.js +2 -2
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.js +5 -5
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.js +5 -5
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +59 -59
- package/dist/utilities/codemirror/theme.js +17 -17
- package/dist/utilities/codemirror/theme.js.map +1 -1
- package/dist/utilities/page-section-mixin.js +3 -3
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/spacing-scale.d.ts +1 -1
- package/dist/utilities/spacing-scale.js +1 -1
- package/package.json +10 -8
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts +0 -2
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +0 -184
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts +0 -4
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts +0 -9
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js +0 -8
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts +0 -3
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js +0 -294
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts +0 -5
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +0 -69
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js.map +0 -1
|
@@ -8,10 +8,10 @@ export const spacerCellStyles = css `
|
|
|
8
8
|
/* # Host */
|
|
9
9
|
|
|
10
10
|
:host {
|
|
11
|
-
--
|
|
11
|
+
--_spacer-cell-width: var(--primitives-space-16);
|
|
12
12
|
|
|
13
13
|
display: block;
|
|
14
|
-
width: var(--
|
|
14
|
+
width: var(--_spacer-cell-width);
|
|
15
15
|
flex-grow: 0;
|
|
16
16
|
flex-shrink: 0;
|
|
17
17
|
}
|
|
@@ -23,26 +23,26 @@ export const spacerCellStyles = css `
|
|
|
23
23
|
|
|
24
24
|
/* # Size */
|
|
25
25
|
|
|
26
|
-
:host([size="2"]) { --
|
|
27
|
-
:host([size="4"]) { --
|
|
28
|
-
:host([size="6"]) { --
|
|
29
|
-
:host([size="8"]) { --
|
|
30
|
-
:host([size="10"]) { --
|
|
31
|
-
:host([size="12"]) { --
|
|
32
|
-
:host([size="20"]) { --
|
|
33
|
-
:host([size="24"]) { --
|
|
34
|
-
:host([size="28"]) { --
|
|
35
|
-
:host([size="32"]) { --
|
|
36
|
-
:host([size="40"]) { --
|
|
37
|
-
:host([size="44"]) { --
|
|
38
|
-
:host([size="48"]) { --
|
|
39
|
-
:host([size="56"]) { --
|
|
40
|
-
:host([size="64"]) { --
|
|
41
|
-
:host([size="80"]) { --
|
|
42
|
-
:host([size="96"]) { --
|
|
26
|
+
:host([size="2"]) { --_spacer-cell-width: var(--primitives-space-2); }
|
|
27
|
+
:host([size="4"]) { --_spacer-cell-width: var(--primitives-space-4); }
|
|
28
|
+
:host([size="6"]) { --_spacer-cell-width: var(--primitives-space-6); }
|
|
29
|
+
:host([size="8"]) { --_spacer-cell-width: var(--primitives-space-8); }
|
|
30
|
+
:host([size="10"]) { --_spacer-cell-width: var(--primitives-space-10); }
|
|
31
|
+
:host([size="12"]) { --_spacer-cell-width: var(--primitives-space-12); }
|
|
32
|
+
:host([size="20"]) { --_spacer-cell-width: var(--primitives-space-20); }
|
|
33
|
+
:host([size="24"]) { --_spacer-cell-width: var(--primitives-space-24); }
|
|
34
|
+
:host([size="28"]) { --_spacer-cell-width: var(--primitives-space-28); }
|
|
35
|
+
:host([size="32"]) { --_spacer-cell-width: var(--primitives-space-32); }
|
|
36
|
+
:host([size="40"]) { --_spacer-cell-width: var(--primitives-space-40); }
|
|
37
|
+
:host([size="44"]) { --_spacer-cell-width: var(--primitives-space-44); }
|
|
38
|
+
:host([size="48"]) { --_spacer-cell-width: var(--primitives-space-48); }
|
|
39
|
+
:host([size="56"]) { --_spacer-cell-width: var(--primitives-space-56); }
|
|
40
|
+
:host([size="64"]) { --_spacer-cell-width: var(--primitives-space-64); }
|
|
41
|
+
:host([size="80"]) { --_spacer-cell-width: var(--primitives-space-80); }
|
|
42
|
+
:host([size="96"]) { --_spacer-cell-width: var(--primitives-space-96); }
|
|
43
43
|
|
|
44
44
|
:host([size="flexible"]) {
|
|
45
|
-
--
|
|
45
|
+
--_spacer-cell-width: auto;
|
|
46
46
|
flex-grow: 1;
|
|
47
47
|
flex-shrink: 1;
|
|
48
48
|
flex-basis: 0;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Nederlandse Digitale Dienst
|
|
2
|
+
* Nederlandse Digitale Dienst Step Cell Component (Lit + TypeScript)
|
|
3
3
|
*
|
|
4
|
-
* A cell
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* A cell that draws steps under each other in an `nldd-list`: a vertical track
|
|
5
|
+
* with a dot per row, colored by how far along each step is. It is the vertical
|
|
6
|
+
* counterpart of `nldd-step-bar`, with the same `status` values. Other systems
|
|
7
|
+
* call this a stepper, a progress list or a timeline. The row's block padding
|
|
8
|
+
* belongs to the cell itself (via `--context-cell-padding-block`), so the line
|
|
9
|
+
* spans the cell's own box edge to edge and consecutive steps connect without
|
|
10
|
+
* gaps.
|
|
9
11
|
*
|
|
10
|
-
* By default the
|
|
11
|
-
* of
|
|
12
|
-
*
|
|
13
|
-
* of `nldd-step-indicator`. The size belongs to the lane rather than to the
|
|
12
|
+
* By default the dot is small and empty, for steps without a number, such as
|
|
13
|
+
* the moments in the history of a case. With `size="md"` it grows big enough
|
|
14
|
+
* for a number or an icon. The size belongs to the lane rather than to the
|
|
14
15
|
* content: every dot in a list is the same size, or the track would jump.
|
|
15
16
|
*
|
|
16
|
-
* @element nldd-
|
|
17
|
+
* @element nldd-step-cell
|
|
17
18
|
* @attr {'major' | 'minor' | 'none'} level - What stands in the lane: a whole dot (`major`, the default), a smaller one for a row that belongs under the one above it (`minor`), or nothing at all (`none`) for a row that carries what a step holds rather than being a step. A `none` row keeps its `size` and its `status`, so it stays in the same lane and the track runs on in the right color
|
|
18
|
-
* @attr {'past' | 'current' | 'future'} status - How far along this row is (default 'past'); the same values as `nldd-step-
|
|
19
|
-
* @attr {'sm' | 'md'} size - How wide the lane is and so how big the dot: `sm` (default, 16px) for
|
|
19
|
+
* @attr {'past' | 'current' | 'future'} status - How far along this row is (default 'past'); the same values as `nldd-step-bar-item`. It colors the dot and the track around it: covered above where you are, still ahead below
|
|
20
|
+
* @attr {'sm' | 'md'} size - How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps
|
|
20
21
|
* @attr {'down' | 'up'} direction - The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there
|
|
21
22
|
* @attr {'first' | 'between' | 'last' | 'only'} position - Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it
|
|
22
23
|
* @attr {'auto' | 'top' | 'bottom' | 'both' | 'none'} line - Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you
|
|
@@ -33,11 +34,11 @@ type Level = 'major' | 'minor' | 'none';
|
|
|
33
34
|
type Direction = 'down' | 'up';
|
|
34
35
|
type Position = 'first' | 'between' | 'last' | 'only';
|
|
35
36
|
type Line = 'auto' | 'top' | 'bottom' | 'both' | 'none';
|
|
36
|
-
declare const
|
|
37
|
+
declare const NLDDStepCell_base: typeof LitElement & (new (...args: any[]) => LitElement & {
|
|
37
38
|
hideBelow?: string;
|
|
38
39
|
hideAbove?: string;
|
|
39
40
|
});
|
|
40
|
-
export declare class
|
|
41
|
+
export declare class NLDDStepCell extends NLDDStepCell_base {
|
|
41
42
|
static styles: import("lit").CSSResult;
|
|
42
43
|
/**
|
|
43
44
|
* What stands in the lane: a whole dot, a smaller one, or nothing.
|
|
@@ -89,8 +90,8 @@ export declare class NLDDTimelineTrackCell extends NLDDTimelineTrackCell_base {
|
|
|
89
90
|
}
|
|
90
91
|
declare global {
|
|
91
92
|
interface HTMLElementTagNameMap {
|
|
92
|
-
'nldd-
|
|
93
|
+
'nldd-step-cell': NLDDStepCell;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
export {};
|
|
96
|
-
//# sourceMappingURL=
|
|
97
|
+
//# sourceMappingURL=step-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAMtD,OAAO,+BAA+B,CAAC;AAEvC,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC5C,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,KAAK,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AACxC,KAAK,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;AAC/B,KAAK,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AACtD,KAAK,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;AAExD,qBACa,YAAa,SAAQ,iBAA8C;IAC/E,OAAgB,MAAM,0BAAkB;IAExC;;;;;;;;;OASG;IAEH,KAAK,EAAE,KAAK,CAAW;IAGvB,MAAM,EAAE,MAAM,CAAU;IAExB;2DACuD;IAEvD,IAAI,EAAE,IAAI,CAAQ;IAElB;;;;4BAIwB;IAExB,SAAS,EAAE,SAAS,CAAU;IAG9B,QAAQ,EAAE,QAAQ,CAAa;IAE/B;;;;;;;;;;;;;;;OAeG;IAEH,IAAI,EAAE,IAAI,CAAU;IAGpB,IAAI,SAAM;IAGV,IAAI,SAAM;IAEV;kEAC8D;IAC9D,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,OAAO,CAAC,cAAc,CAAS;IAEtB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAatC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
|
|
@@ -5,24 +5,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
|
-
* Nederlandse Digitale Dienst
|
|
8
|
+
* Nederlandse Digitale Dienst Step Cell Component (Lit + TypeScript)
|
|
9
9
|
*
|
|
10
|
-
* A cell
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
10
|
+
* A cell that draws steps under each other in an `nldd-list`: a vertical track
|
|
11
|
+
* with a dot per row, colored by how far along each step is. It is the vertical
|
|
12
|
+
* counterpart of `nldd-step-bar`, with the same `status` values. Other systems
|
|
13
|
+
* call this a stepper, a progress list or a timeline. The row's block padding
|
|
14
|
+
* belongs to the cell itself (via `--context-cell-padding-block`), so the line
|
|
15
|
+
* spans the cell's own box edge to edge and consecutive steps connect without
|
|
16
|
+
* gaps.
|
|
15
17
|
*
|
|
16
|
-
* By default the
|
|
17
|
-
* of
|
|
18
|
-
*
|
|
19
|
-
* of `nldd-step-indicator`. The size belongs to the lane rather than to the
|
|
18
|
+
* By default the dot is small and empty, for steps without a number, such as
|
|
19
|
+
* the moments in the history of a case. With `size="md"` it grows big enough
|
|
20
|
+
* for a number or an icon. The size belongs to the lane rather than to the
|
|
20
21
|
* content: every dot in a list is the same size, or the track would jump.
|
|
21
22
|
*
|
|
22
|
-
* @element nldd-
|
|
23
|
+
* @element nldd-step-cell
|
|
23
24
|
* @attr {'major' | 'minor' | 'none'} level - What stands in the lane: a whole dot (`major`, the default), a smaller one for a row that belongs under the one above it (`minor`), or nothing at all (`none`) for a row that carries what a step holds rather than being a step. A `none` row keeps its `size` and its `status`, so it stays in the same lane and the track runs on in the right color
|
|
24
|
-
* @attr {'past' | 'current' | 'future'} status - How far along this row is (default 'past'); the same values as `nldd-step-
|
|
25
|
-
* @attr {'sm' | 'md'} size - How wide the lane is and so how big the dot: `sm` (default, 16px) for
|
|
25
|
+
* @attr {'past' | 'current' | 'future'} status - How far along this row is (default 'past'); the same values as `nldd-step-bar-item`. It colors the dot and the track around it: covered above where you are, still ahead below
|
|
26
|
+
* @attr {'sm' | 'md'} size - How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps
|
|
26
27
|
* @attr {'down' | 'up'} direction - The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there
|
|
27
28
|
* @attr {'first' | 'between' | 'last' | 'only'} position - Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it
|
|
28
29
|
* @attr {'auto' | 'top' | 'bottom' | 'both' | 'none'} line - Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you
|
|
@@ -35,10 +36,10 @@ import { LitElement } from 'lit';
|
|
|
35
36
|
import { customElement, property } from 'lit/decorators.js';
|
|
36
37
|
import { reflectNonDefault } from '../../../../utilities/reflect-non-default.js';
|
|
37
38
|
import { VisibilityMixin } from '../../../../utilities/visibility-mixin.js';
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
39
|
+
import { stepCellStyles } from './step-cell.styles.js';
|
|
40
|
+
import { stepCellTemplate } from './step-cell.template.js';
|
|
40
41
|
import '../../../content/icon/icon.js';
|
|
41
|
-
let
|
|
42
|
+
let NLDDStepCell = class NLDDStepCell extends VisibilityMixin(LitElement, 'cells-container') {
|
|
42
43
|
constructor() {
|
|
43
44
|
super(...arguments);
|
|
44
45
|
/**
|
|
@@ -96,43 +97,43 @@ let NLDDTimelineTrackCell = class NLDDTimelineTrackCell extends VisibilityMixin(
|
|
|
96
97
|
const ignored = !this.showsContent && Boolean(this.text || this.icon);
|
|
97
98
|
if (ignored && !this._warnedContent) {
|
|
98
99
|
this._warnedContent = true;
|
|
99
|
-
console.warn('<nldd-
|
|
100
|
+
console.warn('<nldd-step-cell>: `text` and `icon` only fit in a full dot on a wide track (`size="md"` with `level="major"`); they are not shown here.');
|
|
100
101
|
}
|
|
101
102
|
else if (!ignored) {
|
|
102
103
|
this._warnedContent = false;
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
render() {
|
|
106
|
-
return
|
|
107
|
+
return stepCellTemplate(this);
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
|
-
|
|
110
|
+
NLDDStepCell.styles = stepCellStyles;
|
|
110
111
|
__decorate([
|
|
111
112
|
property({ reflect: true, converter: reflectNonDefault('major') })
|
|
112
|
-
],
|
|
113
|
+
], NLDDStepCell.prototype, "level", void 0);
|
|
113
114
|
__decorate([
|
|
114
115
|
property({ reflect: true, converter: reflectNonDefault('past') })
|
|
115
|
-
],
|
|
116
|
+
], NLDDStepCell.prototype, "status", void 0);
|
|
116
117
|
__decorate([
|
|
117
118
|
property({ reflect: true, converter: reflectNonDefault('sm') })
|
|
118
|
-
],
|
|
119
|
+
], NLDDStepCell.prototype, "size", void 0);
|
|
119
120
|
__decorate([
|
|
120
121
|
property({ reflect: true, converter: reflectNonDefault('down') })
|
|
121
|
-
],
|
|
122
|
+
], NLDDStepCell.prototype, "direction", void 0);
|
|
122
123
|
__decorate([
|
|
123
124
|
property({ reflect: true, converter: reflectNonDefault('between') })
|
|
124
|
-
],
|
|
125
|
+
], NLDDStepCell.prototype, "position", void 0);
|
|
125
126
|
__decorate([
|
|
126
127
|
property({ reflect: true, converter: reflectNonDefault('auto') })
|
|
127
|
-
],
|
|
128
|
+
], NLDDStepCell.prototype, "line", void 0);
|
|
128
129
|
__decorate([
|
|
129
130
|
property({ type: String })
|
|
130
|
-
],
|
|
131
|
+
], NLDDStepCell.prototype, "text", void 0);
|
|
131
132
|
__decorate([
|
|
132
133
|
property({ type: String })
|
|
133
|
-
],
|
|
134
|
-
|
|
135
|
-
customElement('nldd-
|
|
136
|
-
],
|
|
137
|
-
export {
|
|
138
|
-
//# sourceMappingURL=
|
|
134
|
+
], NLDDStepCell.prototype, "icon", void 0);
|
|
135
|
+
NLDDStepCell = __decorate([
|
|
136
|
+
customElement('nldd-step-cell')
|
|
137
|
+
], NLDDStepCell);
|
|
138
|
+
export { NLDDStepCell };
|
|
139
|
+
//# sourceMappingURL=step-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-cell.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,+BAA+B,CAAC;AAUhC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,eAAe,CAAC,UAAU,EAAE,iBAAiB,CAAC;IAAzE;;QAGN;;;;;;;;;WASG;QAEH,UAAK,GAAU,OAAO,CAAC;QAGvB,WAAM,GAAW,MAAM,CAAC;QAExB;+DACuD;QAEvD,SAAI,GAAS,IAAI,CAAC;QAElB;;;;gCAIwB;QAExB,cAAS,GAAc,MAAM,CAAC;QAG9B,aAAQ,GAAa,SAAS,CAAC;QAE/B;;;;;;;;;;;;;;;WAeG;QAEH,SAAI,GAAS,MAAM,CAAC;QAGpB,SAAI,GAAG,EAAE,CAAC;QAGV,SAAI,GAAG,EAAE,CAAC;QAQF,mBAAc,GAAG,KAAK,CAAC;IAkBhC,CAAC;IAxBA;kEAC8D;IAC9D,IAAI,YAAY;QACf,OAAO,IAAI,CAAC,KA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,EAAE,iBAAiB,CAAW,SAAS,CAAC,EAAE,CAAC;8CAChD;AAmB/B;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAO,MAAM,CAAC,EAAE,CAAC;0CACpD;AAGpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACjB;AA1DE,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAoFxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-cell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBAqL1B,CAAC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const stepCellStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--_step-cell-lane-size: var(--primitives-space-16);
|
|
9
|
+
--_step-cell-marker-size: var(--primitives-space-16);
|
|
10
|
+
--_step-cell-marker-corner-radius: var(--primitives-corner-radius-full);
|
|
11
|
+
|
|
12
|
+
--_step-cell-line-width: var(--primitives-space-2);
|
|
13
|
+
--_step-cell-track-color: light-dark(var(--primitives-color-accent-750), var(--primitives-color-accent-650));
|
|
14
|
+
--_step-cell-future-fill-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
15
|
+
--_step-cell-marker-z-index: 1;
|
|
16
|
+
--_step-cell-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
17
|
+
--_step-cell-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
18
|
+
--_step-cell-marker-content-color: var(--semantics-content-contrast-color);
|
|
19
|
+
--_step-cell-future-content-color: var(--semantics-content-secondary-color);
|
|
20
|
+
--_step-cell-current-fill-color: light-dark(var(--primitives-color-accent-75), var(--primitives-color-accent-100));
|
|
21
|
+
--_step-cell-icon-size: calc(var(--_step-cell-marker-size) * 2 / 3);
|
|
22
|
+
|
|
23
|
+
isolation: isolate;
|
|
24
|
+
display: flex;
|
|
25
|
+
/* !important: shields the row padding from consumer universal resets, which beat normal :host declarations per CSS Scoping. */
|
|
26
|
+
padding-block: var(--context-cell-padding-block, 0px) !important;
|
|
27
|
+
width: var(--_step-cell-lane-size);
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-self: stretch;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([hidden]) {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([size="md"]) {
|
|
38
|
+
--_step-cell-lane-size: var(--primitives-space-24);
|
|
39
|
+
--_step-cell-marker-size: var(--primitives-space-24);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host([level="minor"]) {
|
|
43
|
+
--_step-cell-marker-size: var(--primitives-space-10);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([size="md"][level="minor"]) {
|
|
47
|
+
--_step-cell-marker-size: var(--primitives-space-12);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Bleeds back over the host's block padding, so consecutive rows connect. */
|
|
51
|
+
.step-cell {
|
|
52
|
+
position: relative;
|
|
53
|
+
width: var(--_step-cell-lane-size);
|
|
54
|
+
height: calc(100% + 2 * var(--context-cell-padding-block, 0px));
|
|
55
|
+
min-height: var(--primitives-space-48);
|
|
56
|
+
margin-block: calc(var(--context-cell-padding-block, 0px) * -1);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* The ring, but only left and right. A spread would put the same band above
|
|
60
|
+
and below the line, and there it would cut the track at every row
|
|
61
|
+
boundary: the lines that run on downward deliberately reach past the cell
|
|
62
|
+
to bridge the divider. Two offset copies do the sides and nothing else. A
|
|
63
|
+
copy shifted sideways has the same top and bottom as the line itself, so
|
|
64
|
+
it can only show along the edge it is pushed out from. */
|
|
65
|
+
.step-cell__full-line,
|
|
66
|
+
.step-cell__top-line,
|
|
67
|
+
.step-cell__bottom-line {
|
|
68
|
+
position: absolute;
|
|
69
|
+
left: 50%;
|
|
70
|
+
margin-left: calc(var(--_step-cell-line-width) / -2);
|
|
71
|
+
box-shadow:
|
|
72
|
+
calc(-1 * var(--_step-cell-ring-thickness)) 0 0 0 var(--_step-cell-ring-color),
|
|
73
|
+
var(--_step-cell-ring-thickness) 0 0 0 var(--_step-cell-ring-color);
|
|
74
|
+
background-color: var(--_step-cell-track-color);
|
|
75
|
+
width: var(--_step-cell-line-width);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* The lines that run on downward also bridge the row boundary: an
|
|
79
|
+
nldd-list-item reserves a divider's worth of space below itself, and
|
|
80
|
+
without this the track breaks at every row. The top line needs nothing —
|
|
81
|
+
the row above already covers the band. */
|
|
82
|
+
.step-cell__full-line {
|
|
83
|
+
top: 0;
|
|
84
|
+
bottom: calc(-1 * var(--semantics-dividers-thickness));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.step-cell__top-line {
|
|
88
|
+
bottom: 50%;
|
|
89
|
+
height: 50%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.step-cell__bottom-line {
|
|
93
|
+
top: 50%;
|
|
94
|
+
bottom: calc(-1 * var(--semantics-dividers-thickness));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([status="future"]:not([line])) .step-cell__top-line,
|
|
98
|
+
:host([status="future"]:not([line])) .step-cell__bottom-line {
|
|
99
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([status="current"]:not([line])) .step-cell__bottom-line {
|
|
103
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([status="current"][direction="up"]:not([line])) .step-cell__bottom-line {
|
|
107
|
+
background-color: var(--_step-cell-track-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([status="current"][direction="up"]:not([line])) .step-cell__top-line {
|
|
111
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([line="top"]) .step-cell__top-line,
|
|
115
|
+
:host([line="bottom"]) .step-cell__bottom-line,
|
|
116
|
+
:host([line="both"]) .step-cell__top-line,
|
|
117
|
+
:host([line="both"]) .step-cell__bottom-line {
|
|
118
|
+
background-color: var(--_step-cell-track-color);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([level="none"][status="future"]) .step-cell__full-line,
|
|
122
|
+
:host([level="none"][status="current"]:not([direction="up"])) .step-cell__full-line,
|
|
123
|
+
:host([level="none"][line="none"]) .step-cell__full-line {
|
|
124
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([line="top"]) .step-cell__bottom-line,
|
|
128
|
+
:host([line="bottom"]) .step-cell__top-line,
|
|
129
|
+
:host([line="none"]) .step-cell__top-line,
|
|
130
|
+
:host([line="none"]) .step-cell__bottom-line {
|
|
131
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.step-cell__marker {
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: 50%;
|
|
138
|
+
left: 50%;
|
|
139
|
+
z-index: var(--_step-cell-marker-z-index);
|
|
140
|
+
display: flex;
|
|
141
|
+
width: var(--_step-cell-marker-size);
|
|
142
|
+
height: var(--_step-cell-marker-size);
|
|
143
|
+
margin-top: calc(var(--_step-cell-marker-size) / -2);
|
|
144
|
+
margin-left: calc(var(--_step-cell-marker-size) / -2);
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
border: var(--_step-cell-line-width) solid var(--_step-cell-track-color);
|
|
148
|
+
border-radius: var(--_step-cell-marker-corner-radius);
|
|
149
|
+
box-shadow: 0 0 0 var(--_step-cell-ring-thickness) var(--_step-cell-ring-color);
|
|
150
|
+
color: var(--_step-cell-marker-content-color);
|
|
151
|
+
font: var(--primitives-font-body-sm-medium-flat);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host([status="past"]) .step-cell__marker,
|
|
155
|
+
:host(:not([status])) .step-cell__marker {
|
|
156
|
+
background-color: var(--_step-cell-track-color);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:host([status="current"]) .step-cell__marker {
|
|
160
|
+
background-color: var(--_step-cell-current-fill-color);
|
|
161
|
+
color: var(--_step-cell-track-color);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host([status="future"]) .step-cell__marker {
|
|
165
|
+
border-color: var(--_step-cell-future-fill-color);
|
|
166
|
+
background-color: var(--_step-cell-future-fill-color);
|
|
167
|
+
color: var(--_step-cell-future-content-color);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.step-cell__icon {
|
|
171
|
+
width: var(--_step-cell-icon-size);
|
|
172
|
+
height: var(--_step-cell-icon-size);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@media (forced-colors: active) {
|
|
176
|
+
.step-cell__marker,
|
|
177
|
+
.step-cell__top-line,
|
|
178
|
+
.step-cell__bottom-line,
|
|
179
|
+
.step-cell__full-line {
|
|
180
|
+
forced-color-adjust: none;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
`;
|
|
184
|
+
//# sourceMappingURL=step-cell.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-cell.styles.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqLhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-cell.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,GAAG,cAAc,CAuCxE"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
|
-
export function
|
|
2
|
+
export function stepCellTemplate(component) {
|
|
3
3
|
// No dot means no point where a fill could change over, so the row draws one
|
|
4
4
|
// line from edge to edge instead of two halves. `only` says the track runs
|
|
5
5
|
// neither above nor below, which here leaves nothing to draw.
|
|
6
6
|
if (component.level === 'none') {
|
|
7
7
|
return html `
|
|
8
|
-
<div class="
|
|
9
|
-
${component.position === 'only' ? nothing : html `<div class="
|
|
8
|
+
<div class="step-cell">
|
|
9
|
+
${component.position === 'only' ? nothing : html `<div class="step-cell__full-line"></div>`}
|
|
10
10
|
</div>
|
|
11
11
|
`;
|
|
12
12
|
}
|
|
@@ -20,9 +20,9 @@ export function timelineTrackCellTemplate(component) {
|
|
|
20
20
|
const marker = !component.showsContent
|
|
21
21
|
? nothing
|
|
22
22
|
: component.icon
|
|
23
|
-
? html `<nldd-icon class="
|
|
23
|
+
? html `<nldd-icon class="step-cell__icon" icon=${component.icon}></nldd-icon>`
|
|
24
24
|
: component.text
|
|
25
|
-
? html `<span class="
|
|
25
|
+
? html `<span class="step-cell__text">${component.text}</span>`
|
|
26
26
|
: nothing;
|
|
27
27
|
// The attributes are the shorthand for the common cases; the slot is there for
|
|
28
28
|
// anything else.
|
|
@@ -30,11 +30,11 @@ export function timelineTrackCellTemplate(component) {
|
|
|
30
30
|
? html `${marker}<slot></slot>`
|
|
31
31
|
: marker;
|
|
32
32
|
return html `
|
|
33
|
-
<div class="
|
|
34
|
-
${showTopLine ? html `<div class="
|
|
35
|
-
<div class="
|
|
36
|
-
${showBottomLine ? html `<div class="
|
|
33
|
+
<div class="step-cell">
|
|
34
|
+
${showTopLine ? html `<div class="step-cell__top-line"></div>` : nothing}
|
|
35
|
+
<div class="step-cell__marker">${content}</div>
|
|
36
|
+
${showBottomLine ? html `<div class="step-cell__bottom-line"></div>` : nothing}
|
|
37
37
|
</div>
|
|
38
38
|
`;
|
|
39
39
|
}
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=step-cell.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-cell.template.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAGzD,MAAM,UAAU,gBAAgB,CAAC,SAAuB;IACvD,6EAA6E;IAC7E,2EAA2E;IAC3E,8DAA8D;IAC9D,IAAI,SAAS,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;QAChC,OAAO,IAAI,CAAA;;MAEP,SAAS,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA,0CAA0C;;GAE3F,CAAC;IACH,CAAC;IAED,+EAA+E;IAC/E,4EAA4E;IAC5E,kBAAkB;IAClB,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC,QAAQ,KAAK,MAAM,CAAC;IACjF,MAAM,SAAS,GAAG,SAAS,CAAC,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC,QAAQ,KAAK,OAAO,CAAC;IACrF,MAAM,WAAW,GAAG,MAAM,IAAI,SAAS,CAAC,IAAI,KAAK,KAAK,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,CAAC;IACpF,MAAM,cAAc,GAAG,SAAS,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,CAAC;IAC7F,MAAM,MAAM,GAAG,CAAC,SAAS,CAAC,YAAY;QACrC,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,SAAS,CAAC,IAAI;YACf,CAAC,CAAC,IAAI,CAAA,2CAA2C,SAAS,CAAC,IAAI,eAAe;YAC9E,CAAC,CAAC,SAAS,CAAC,IAAI;gBACf,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,IAAI,SAAS;gBAC9D,CAAC,CAAC,OAAO,CAAC;IACb,+EAA+E;IAC/E,iBAAiB;IACjB,MAAM,OAAO,GAAG,SAAS,CAAC,YAAY;QACrC,CAAC,CAAC,IAAI,CAAA,GAAG,MAAM,eAAe;QAC9B,CAAC,CAAC,MAAM,CAAC;IAEV,OAAO,IAAI,CAAA;;KAEP,WAAW,CAAC,CAAC,CAAC,IAAI,CAAA,yCAAyC,CAAC,CAAC,CAAC,OAAO;oCACtC,OAAO;KACtC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,4CAA4C,CAAC,CAAC,CAAC,OAAO;;EAE9E,CAAC;AACH,CAAC"}
|
|
@@ -115,36 +115,36 @@ let NLDDTextCell = class NLDDTextCell extends VisibilityMixin(LitElement, 'cells
|
|
|
115
115
|
}
|
|
116
116
|
_applyDimensionStyles() {
|
|
117
117
|
// width's 'full' and 'fit-content' are handled via [width] attribute
|
|
118
|
-
// selectors in CSS; any other value is a CSS length fed through --
|
|
118
|
+
// selectors in CSS; any other value is a CSS length fed through --_text-cell-width.
|
|
119
119
|
const w = this.width;
|
|
120
120
|
const widthIsKeyword = w === 'full' || w === 'fit-content';
|
|
121
121
|
const widthIsValidLength = !!w && !widthIsKeyword && CSS.supports('width', w);
|
|
122
122
|
if (widthIsValidLength) {
|
|
123
|
-
this.style.setProperty('--
|
|
123
|
+
this.style.setProperty('--_text-cell-width', w);
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
this.style.removeProperty('--
|
|
126
|
+
this.style.removeProperty('--_text-cell-width');
|
|
127
127
|
}
|
|
128
128
|
if (w && !widthIsKeyword && !widthIsValidLength) {
|
|
129
129
|
this.width = '';
|
|
130
130
|
}
|
|
131
131
|
if (this.minWidth) {
|
|
132
|
-
this.style.setProperty('--
|
|
132
|
+
this.style.setProperty('--_text-cell-min-width', this.minWidth);
|
|
133
133
|
}
|
|
134
134
|
else {
|
|
135
|
-
this.style.removeProperty('--
|
|
135
|
+
this.style.removeProperty('--_text-cell-min-width');
|
|
136
136
|
}
|
|
137
137
|
if (this.maxWidth) {
|
|
138
|
-
this.style.setProperty('--
|
|
138
|
+
this.style.setProperty('--_text-cell-max-width', this.maxWidth);
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
this.style.removeProperty('--
|
|
141
|
+
this.style.removeProperty('--_text-cell-max-width');
|
|
142
142
|
}
|
|
143
143
|
if (this.minHeight) {
|
|
144
|
-
this.style.setProperty('--
|
|
144
|
+
this.style.setProperty('--_text-cell-min-height', this.minHeight);
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
147
|
-
this.style.removeProperty('--
|
|
147
|
+
this.style.removeProperty('--_text-cell-min-height');
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-cell.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/text-cell/text-cell.ts"],"names":[],"mappings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K,IAAI,CAAC,SAAS,EAAE,CAAC;oBACtC,OAAO,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;gBACnD,CAAC;gBACD,OAAO,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,CAAC;YAC5C,CAAC,CAAC,CAAC;YACH,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;gBACnB,KAAK,UAAU;oBACd,IAAI,CAAC,mBAAmB,GAAG,UAAU,CAAC;oBACtC,MAAM;gBACP,KAAK,iBAAiB;oBACrB,IAAI,CAAC,yBAAyB,GAAG,UAAU,CAAC;oBAC5C,MAAM;gBACP;oBACC,IAAI,CAAC,kBAAkB,GAAG,UAAU,CAAC;oBACrC,MAAM;YACR,CAAC;QACF,CAAC,CAAC;IAKH,CAAC;IAjES,OAAO,CAAC,OAA6B;QAC7C,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACvB,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAC5G,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC9B,CAAC;IACF,CAAC;IAEO,qBAAqB;QAC5B,qEAAqE;QACrE,
|
|
1
|
+
{"version":3,"file":"text-cell.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/text-cell/text-cell.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAi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