@vonage/vivid 3.0.0-next.7 → 3.0.0-next.71
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 +137 -4
- package/accordion/index.js +59 -0
- package/accordion-item/index.js +131 -0
- package/action-group/index.js +47 -0
- package/avatar/index.js +51 -0
- package/badge/index.js +58 -0
- package/banner/index.js +149 -0
- package/breadcrumb/index.js +103 -0
- package/breadcrumb-item/index.js +62 -0
- package/button/index.js +130 -0
- package/calendar/index.js +1563 -0
- package/calendar-event/index.js +115 -0
- package/card/index.js +132 -0
- package/checkbox/index.js +184 -0
- package/dialog/index.js +281 -0
- package/divider/index.js +86 -0
- package/elevation/index.js +3 -0
- package/fab/index.js +105 -0
- package/focus/index.js +18 -0
- package/header/index.js +66 -0
- package/icon/index.js +38 -0
- package/{src/index.ts → index.d.ts} +2 -2
- package/index.js +63 -0
- package/layout/index.js +51 -0
- package/lib/accordion/accordion.d.ts +9 -0
- package/lib/accordion/accordion.template.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion-item/accordion-item.d.ts +13 -0
- package/lib/accordion-item/accordion-item.template.d.ts +4 -0
- package/lib/accordion-item/index.d.ts +4 -0
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/avatar/avatar.d.ts +14 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +17 -0
- package/lib/badge/badge.template.d.ts +4 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +4 -0
- package/lib/banner/index.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb/index.d.ts +2 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -0
- package/lib/breadcrumb-item/index.d.ts +4 -0
- package/lib/button/button.d.ts +18 -0
- package/lib/button/button.template.d.ts +4 -0
- package/lib/button/index.d.ts +4 -0
- package/lib/calendar/calendar.d.ts +13 -0
- package/lib/calendar/calendar.template.d.ts +4 -0
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +32 -0
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +5 -0
- package/lib/elevation/elevation.template.d.ts +4 -0
- package/lib/elevation/index.d.ts +2 -0
- package/lib/enums.d.ts +51 -0
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/focus.d.ts +3 -0
- package/lib/focus/focus.template.d.ts +4 -0
- package/lib/focus/index.d.ts +2 -0
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.placeholder.d.ts +1 -0
- package/lib/icon/icon.template.d.ts +4 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/layout/layout.d.ts +16 -0
- package/lib/layout/layout.template.d.ts +4 -0
- package/lib/menu/index.d.ts +12 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/index.d.ts +3 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/index.d.ts +2 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/index.d.ts +4 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/index.d.ts +4 -0
- package/lib/nav-item/nav-item.d.ts +6 -0
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/note/index.d.ts +2 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +18 -0
- package/lib/popup/popup.template.d.ts +4 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/progress/progress.d.ts +9 -0
- package/lib/progress/progress.template.d.ts +5 -0
- package/lib/progress-ring/index.d.ts +2 -0
- package/lib/progress-ring/progress-ring.d.ts +7 -0
- package/lib/progress-ring/progress-ring.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +9 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/text-anchor/index.d.ts +2 -0
- package/lib/text-anchor/text-anchor.d.ts +7 -0
- package/lib/text-anchor/text-anchor.template.d.ts +4 -0
- package/lib/text-area/index.d.ts +3 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +16 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/menu/index.js +380 -0
- package/menu-item/index.js +19 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +88 -0
- package/nav-item/index.js +45 -0
- package/note/index.js +66 -0
- package/package.json +56 -5
- package/popup/index.js +26 -0
- package/progress/index.js +105 -0
- package/progress-ring/index.js +80 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +29 -0
- package/shared/anchor.js +86 -0
- package/shared/apply-mixins.js +22 -0
- package/shared/aria-global.js +72 -0
- package/shared/base-progress.js +70 -0
- package/shared/breadcrumb-item.js +25 -0
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +26 -0
- package/shared/class-names.js +15 -0
- package/shared/design-system/index.d.ts +3 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +69 -0
- package/shared/export.js +995 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +299 -0
- package/shared/icon.js +1406 -0
- package/shared/index.js +5014 -0
- package/shared/index2.js +35 -0
- package/shared/index3.js +2117 -0
- package/shared/index4.js +371 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +90 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/affix.d.ts +9 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements.d.ts +22 -0
- package/shared/patterns/index.d.ts +2 -0
- package/shared/ref.js +41 -0
- package/shared/slotted.js +119 -0
- package/shared/start-end.js +50 -0
- package/shared/text-anchor.js +12 -0
- package/shared/text-anchor.template.js +57 -0
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +474 -0
- package/shared/when.js +15 -0
- package/side-drawer/index.js +102 -0
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +20 -0
- package/styles/tokens/theme-dark.css +210 -0
- package/styles/tokens/theme-light.css +210 -0
- package/text-anchor/index.js +27 -0
- package/text-area/index.js +304 -0
- package/text-field/index.js +152 -0
- package/tooltip/index.js +71 -0
- package/.babelrc +0 -3
- package/.eslintrc.json +0 -70
- package/.stylelintrc.json +0 -8
- package/CHANGELOG.json +0 -343
- package/CHANGELOG.md +0 -45
- package/jest.config.cjs +0 -20
- package/playwright.config.dev.ts +0 -21
- package/playwright.config.ts +0 -34
- package/project.json +0 -122
- package/rollup.config.prod.ts +0 -50
- package/setupJestTests.js +0 -17
- package/src/lib/accordion/README.md +0 -55
- package/src/lib/accordion/accordion.scss +0 -10
- package/src/lib/accordion/accordion.spec.ts +0 -91
- package/src/lib/accordion/accordion.template.ts +0 -23
- package/src/lib/accordion/accordion.ts +0 -49
- package/src/lib/accordion/index.ts +0 -14
- package/src/lib/accordion/ui.test.ts +0 -37
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Chrome-Stable-darwin.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Chrome-Stable-linux.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Firefox-linux.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Safari-darwin.png +0 -0
- package/src/lib/accordion/ui.test.ts-snapshots/snapshots-accordion-Desktop-Safari-linux.png +0 -0
- package/src/lib/accordion-item/README.md +0 -113
- package/src/lib/accordion-item/accordion-item.scss +0 -91
- package/src/lib/accordion-item/accordion-item.spec.ts +0 -103
- package/src/lib/accordion-item/accordion-item.template.ts +0 -62
- package/src/lib/accordion-item/accordion-item.ts +0 -67
- package/src/lib/accordion-item/index.ts +0 -14
- package/src/lib/accordion-item/partials/variables.scss +0 -1
- package/src/lib/accordion-item/ui.test.ts +0 -37
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Chrome-Stable-darwin.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Chrome-Stable-linux.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Firefox-linux.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Safari-darwin.png +0 -0
- package/src/lib/accordion-item/ui.test.ts-snapshots/snapshots-accordion-item-Desktop-Safari-linux.png +0 -0
- package/src/lib/badge/README.md +0 -112
- package/src/lib/badge/badge.scss +0 -64
- package/src/lib/badge/badge.spec.ts +0 -114
- package/src/lib/badge/badge.template.ts +0 -36
- package/src/lib/badge/badge.ts +0 -97
- package/src/lib/badge/index.ts +0 -23
- package/src/lib/badge/ui.test.ts +0 -28
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Chrome-Stable-darwin.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Chrome-Stable-linux.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Firefox-linux.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Safari-darwin.png +0 -0
- package/src/lib/badge/ui.test.ts-snapshots/snapshots-badge-Desktop-Safari-linux.png +0 -0
- package/src/lib/banner/README.md +0 -117
- package/src/lib/banner/banner.scss +0 -71
- package/src/lib/banner/banner.spec.ts +0 -355
- package/src/lib/banner/banner.template.ts +0 -61
- package/src/lib/banner/banner.ts +0 -77
- package/src/lib/banner/index.ts +0 -14
- package/src/lib/banner/ui.test.ts +0 -64
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Chrome-Stable-darwin.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Chrome-Stable-linux.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Firefox-linux.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Safari-darwin.png +0 -0
- package/src/lib/banner/ui.test.ts-snapshots/snapshots-banner-Desktop-Safari-linux.png +0 -0
- package/src/lib/breadcrumb/README.md +0 -25
- package/src/lib/breadcrumb/breadcrumb.scss +0 -3
- package/src/lib/breadcrumb/breadcrumb.spec.ts +0 -78
- package/src/lib/breadcrumb/breadcrumb.ts +0 -10
- package/src/lib/breadcrumb/index.ts +0 -13
- package/src/lib/breadcrumb/ui.test.ts +0 -36
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Chrome-Stable-darwin.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Chrome-Stable-linux.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Firefox-linux.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Safari-darwin.png +0 -0
- package/src/lib/breadcrumb/ui.test.ts-snapshots/snapshots-breadcrumb-Desktop-Safari-linux.png +0 -0
- package/src/lib/breadcrumb-item/README.md +0 -40
- package/src/lib/breadcrumb-item/breadcrumb-item.scss +0 -28
- package/src/lib/breadcrumb-item/breadcrumb-item.spec.ts +0 -192
- package/src/lib/breadcrumb-item/breadcrumb-item.template.ts +0 -37
- package/src/lib/breadcrumb-item/breadcrumb-item.ts +0 -15
- package/src/lib/breadcrumb-item/index.ts +0 -16
- package/src/lib/breadcrumb-item/ui.test.ts +0 -38
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Chrome-Stable-darwin.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Chrome-Stable-linux.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Firefox-linux.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Safari-darwin.png +0 -0
- package/src/lib/breadcrumb-item/ui.test.ts-snapshots/snapshots-breadcrumb-item-Desktop-Safari-linux.png +0 -0
- package/src/lib/button/README.md +0 -120
- package/src/lib/button/button.scss +0 -142
- package/src/lib/button/button.spec.ts +0 -131
- package/src/lib/button/button.template.ts +0 -89
- package/src/lib/button/button.ts +0 -95
- package/src/lib/button/index.ts +0 -25
- package/src/lib/button/partials/variables.scss +0 -2
- package/src/lib/button/ui.test.ts +0 -32
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Chrome-Stable-darwin.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Chrome-Stable-linux.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Firefox-linux.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Safari-darwin.png +0 -0
- package/src/lib/button/ui.test.ts-snapshots/snapshots-button-Desktop-Safari-linux.png +0 -0
- package/src/lib/calendar/README.md +0 -70
- package/src/lib/calendar/calendar.scss +0 -176
- package/src/lib/calendar/calendar.spec.ts +0 -341
- package/src/lib/calendar/calendar.template.ts +0 -93
- package/src/lib/calendar/calendar.ts +0 -139
- package/src/lib/calendar/helpers/calendar.date-functions.ts +0 -31
- package/src/lib/calendar/helpers/calendar.event-context.ts +0 -72
- package/src/lib/calendar/helpers/calendar.keyboard-interactions.ts +0 -65
- package/src/lib/calendar/index.ts +0 -16
- package/src/lib/calendar/partials/_variables.scss +0 -15
- package/src/lib/calendar/ui.test.ts +0 -32
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Chrome-Stable-darwin.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Chrome-Stable-linux.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Firefox-linux.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Safari-darwin.png +0 -0
- package/src/lib/calendar/ui.test.ts-snapshots/snapshots-calendar-Desktop-Safari-linux.png +0 -0
- package/src/lib/components.spec.ts +0 -7
- package/src/lib/components.ts +0 -16
- package/src/lib/elevation/README.md +0 -99
- package/src/lib/elevation/elevation.scss +0 -15
- package/src/lib/elevation/elevation.spec.ts +0 -55
- package/src/lib/elevation/elevation.template.ts +0 -26
- package/src/lib/elevation/elevation.ts +0 -17
- package/src/lib/elevation/index.ts +0 -17
- package/src/lib/elevation/partials/_elevation.mixin.scss +0 -4
- package/src/lib/elevation/ui.test.ts +0 -32
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Chrome-Stable-darwin.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Chrome-Stable-linux.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Firefox-linux.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Safari-darwin.png +0 -0
- package/src/lib/elevation/ui.test.ts-snapshots/snapshots-elevation-Desktop-Safari-linux.png +0 -0
- package/src/lib/enums.ts +0 -55
- package/src/lib/focus/README.md +0 -1
- package/src/lib/focus/focus.scss +0 -17
- package/src/lib/focus/focus.template.ts +0 -16
- package/src/lib/focus/focus.ts +0 -10
- package/src/lib/focus/index.ts +0 -21
- package/src/lib/focus/partials/variables.scss +0 -2
- package/src/lib/icon/README.md +0 -70
- package/src/lib/icon/__snapshots__/icon.spec.ts.snap +0 -16
- package/src/lib/icon/icon.placeholder.ts +0 -12
- package/src/lib/icon/icon.scss +0 -52
- package/src/lib/icon/icon.spec.ts +0 -106
- package/src/lib/icon/icon.template.ts +0 -23
- package/src/lib/icon/icon.ts +0 -93
- package/src/lib/icon/index.ts +0 -14
- package/src/lib/layout/README.md +0 -154
- package/src/lib/layout/index.ts +0 -18
- package/src/lib/layout/layout.scss +0 -40
- package/src/lib/layout/layout.spec.ts +0 -73
- package/src/lib/layout/layout.template.ts +0 -29
- package/src/lib/layout/layout.ts +0 -46
- package/src/lib/layout/partials/_functions.scss +0 -15
- package/src/lib/layout/partials/_mixins.scss +0 -5
- package/src/lib/layout/partials/_variables.scss +0 -23
- package/src/lib/layout/ui.test.ts +0 -32
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Chrome-Stable-darwin.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Chrome-Stable-linux.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Firefox-linux.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Safari-darwin.png +0 -0
- package/src/lib/layout/ui.test.ts-snapshots/snapshots-layout-Desktop-Safari-linux.png +0 -0
- package/src/lib/popup/README.md +0 -261
- package/src/lib/popup/index.ts +0 -21
- package/src/lib/popup/popup.scss +0 -43
- package/src/lib/popup/popup.spec.ts +0 -265
- package/src/lib/popup/popup.template.ts +0 -41
- package/src/lib/popup/popup.ts +0 -158
- package/src/lib/popup/ui.test.ts +0 -111
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Chrome-Stable-darwin.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Chrome-Stable-linux.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Firefox-linux.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Safari-darwin.png +0 -0
- package/src/lib/popup/ui.test.ts-snapshots/snapshots-popup-Desktop-Safari-linux.png +0 -0
- package/src/lib/progress/README.md +0 -107
- package/src/lib/progress/index.ts +0 -14
- package/src/lib/progress/progress.scss +0 -133
- package/src/lib/progress/progress.spec.ts +0 -173
- package/src/lib/progress/progress.template.ts +0 -62
- package/src/lib/progress/progress.ts +0 -25
- package/src/lib/progress/ui.test.ts +0 -70
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Chrome-Stable-darwin.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Chrome-Stable-linux.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Firefox-linux.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Safari-darwin.png +0 -0
- package/src/lib/progress/ui.test.ts-snapshots/snapshots-progress-Desktop-Safari-linux.png +0 -0
- package/src/lib/progress-ring/README.md +0 -90
- package/src/lib/progress-ring/index.ts +0 -15
- package/src/lib/progress-ring/progress-ring.scss +0 -75
- package/src/lib/progress-ring/progress-ring.spec.ts +0 -139
- package/src/lib/progress-ring/progress-ring.template.ts +0 -82
- package/src/lib/progress-ring/progress-ring.ts +0 -18
- package/src/lib/progress-ring/ui.test.ts +0 -35
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Chrome-Stable-darwin.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Chrome-Stable-linux.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Firefox-linux.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Safari-darwin.png +0 -0
- package/src/lib/progress-ring/ui.test.ts-snapshots/snapshots-progress-ring-Desktop-Safari-linux.png +0 -0
- package/src/lib/side-drawer/README.md +0 -304
- package/src/lib/side-drawer/index.ts +0 -16
- package/src/lib/side-drawer/partials/variables.scss +0 -6
- package/src/lib/side-drawer/side-drawer.scss +0 -109
- package/src/lib/side-drawer/side-drawer.spec.ts +0 -118
- package/src/lib/side-drawer/side-drawer.template.ts +0 -51
- package/src/lib/side-drawer/side-drawer.ts +0 -58
- package/src/lib/side-drawer/ui.test.ts +0 -102
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Chrome-Stable-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Chrome-Stable-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Firefox-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Safari-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-Desktop-Safari-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Chrome-Stable-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Chrome-Stable-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Firefox-linux.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Safari-darwin.png +0 -0
- package/src/lib/side-drawer/ui.test.ts-snapshots/snapshots-side-drawer-modal-Desktop-Safari-linux.png +0 -0
- package/src/lib/sidenav-item/README.md +0 -41
- package/src/lib/sidenav-item/index.ts +0 -20
- package/src/lib/sidenav-item/sidenav-item.scss +0 -51
- package/src/lib/sidenav-item/sidenav-item.spec.ts +0 -64
- package/src/lib/sidenav-item/sidenav-item.template.ts +0 -25
- package/src/lib/sidenav-item/sidenav-item.ts +0 -15
- package/src/lib/sidenav-item/ui.test.ts +0 -32
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Chrome-Stable-darwin.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Chrome-Stable-linux.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Firefox-linux.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Safari-darwin.png +0 -0
- package/src/lib/sidenav-item/ui.test.ts-snapshots/snapshots-sidenav-item-Desktop-Safari-linux.png +0 -0
- package/src/lib/text/README.md +0 -119
- package/src/lib/text/index.ts +0 -14
- package/src/lib/text/text.scss +0 -92
- package/src/lib/text/text.spec.ts +0 -54
- package/src/lib/text/text.template.ts +0 -28
- package/src/lib/text/text.ts +0 -55
- package/src/lib/text/ui.test.ts +0 -39
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Chrome-Stable-darwin.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Chrome-Stable-linux.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Firefox-linux.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Safari-darwin.png +0 -0
- package/src/lib/text/ui.test.ts-snapshots/snapshots-text-Desktop-Safari-linux.png +0 -0
- package/src/lib/text-anchor/README.md +0 -5
- package/src/lib/text-anchor/index.ts +0 -12
- package/src/lib/text-anchor/text-anchor.spec.ts +0 -153
- package/src/lib/text-anchor/text-anchor.template.ts +0 -66
- package/src/lib/text-anchor/text-anchor.ts +0 -22
- package/src/lib/tooltip/README.md +0 -132
- package/src/lib/tooltip/index.ts +0 -16
- package/src/lib/tooltip/partials/variables.scss +0 -1
- package/src/lib/tooltip/tooltip.scss +0 -18
- package/src/lib/tooltip/tooltip.spec.ts +0 -70
- package/src/lib/tooltip/tooltip.template.ts +0 -30
- package/src/lib/tooltip/tooltip.ts +0 -44
- package/src/lib/tooltip/ui.test.ts +0 -53
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Chrome-Stable-darwin.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Chrome-Stable-linux.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Firefox-darwin.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Firefox-linux.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Safari-darwin.png +0 -0
- package/src/lib/tooltip/ui.test.ts-snapshots/snapshots-tooltip-Desktop-Safari-linux.png +0 -0
- package/src/shared/design-system/index.ts +0 -12
- package/src/shared/patterns/affix.ts +0 -56
- package/src/shared/patterns/index.ts +0 -1
- package/src/types/extract-gfm.d.ts +0 -5
- package/src/types/style.d.ts +0 -4
- package/src/visual-tests/visual-tests-utils.ts +0 -76
- package/tsconfig.json +0 -36
- package/tsconfig.lib.json +0 -11
- package/tsconfig.spec.json +0 -16
package/package.json
CHANGED
|
@@ -1,10 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.71",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"module": "index.js",
|
|
6
|
-
"main": "index.js",
|
|
5
|
+
"module": "./index.esm.js",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"homepage": "https://vivid.deno.dev",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/vonage/vivid-3",
|
|
11
|
+
"directory": "libs/components"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Vonage/vivid-3/issues"
|
|
15
|
+
},
|
|
16
|
+
"license": "Apache-2.0",
|
|
7
17
|
"exports": {
|
|
8
|
-
"
|
|
9
|
-
|
|
18
|
+
"./accordion": "./accordion",
|
|
19
|
+
"./accordion-item": "./accordion-item",
|
|
20
|
+
"./action-group": "./action-group",
|
|
21
|
+
"./avatar": "./avatar",
|
|
22
|
+
"./badge": "./badge",
|
|
23
|
+
"./banner": "./banner",
|
|
24
|
+
"./breadcrumb": "./breadcrumb",
|
|
25
|
+
"./breadcrumb-item": "./breadcrumb-item",
|
|
26
|
+
"./button": "./button",
|
|
27
|
+
"./calendar": "./calendar",
|
|
28
|
+
"./calendar-event": "./calendar-event",
|
|
29
|
+
"./card": "./card",
|
|
30
|
+
"./checkbox": "./checkbox",
|
|
31
|
+
"./elevation": "./elevation",
|
|
32
|
+
"./dialog": "./dialog",
|
|
33
|
+
"./divider": "./divider",
|
|
34
|
+
"./fab": "./fab",
|
|
35
|
+
"./icon": "./icon",
|
|
36
|
+
"./layout": "./layout",
|
|
37
|
+
"./menu": "./menu",
|
|
38
|
+
"./menu-item": "./menu-item",
|
|
39
|
+
"./nav": "./nav",
|
|
40
|
+
"./nav-disclosure": "./nav-disclosure",
|
|
41
|
+
"./nav-item": "./nav-item",
|
|
42
|
+
"./note": "./note",
|
|
43
|
+
"./popup": "./popup",
|
|
44
|
+
"./progress": "./progress",
|
|
45
|
+
"./progress-ring": "./progress-ring",
|
|
46
|
+
"./side-drawer": "./side-drawer",
|
|
47
|
+
"./text-field": "./text-field",
|
|
48
|
+
"./text-area": "./text-area",
|
|
49
|
+
"./tooltip": "./tooltip"
|
|
50
|
+
},
|
|
51
|
+
"typings": "./index.d.ts",
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@microsoft/fast-element": "^1.10.5",
|
|
54
|
+
"@microsoft/fast-foundation": "^2.46.14",
|
|
55
|
+
"@microsoft/fast-web-utilities": "^5.4.1",
|
|
56
|
+
"ramda": "^0.27.2",
|
|
57
|
+
"dialog-polyfill": "^0.5.6",
|
|
58
|
+
"@floating-ui/dom": "^0.5.4"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {}
|
|
10
61
|
}
|
package/popup/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import '../shared/index2.js';
|
|
2
|
+
import '../button/index.js';
|
|
3
|
+
import '../shared/index.js';
|
|
4
|
+
export { v as vividPopup } from '../shared/index3.js';
|
|
5
|
+
import '../shared/class-names.js';
|
|
6
|
+
import '../icon/index.js';
|
|
7
|
+
import '../shared/icon.js';
|
|
8
|
+
import '../shared/export.js';
|
|
9
|
+
import '../shared/iterators.js';
|
|
10
|
+
import '../shared/to-string.js';
|
|
11
|
+
import '../shared/_has.js';
|
|
12
|
+
import '../shared/when.js';
|
|
13
|
+
import '../focus/index.js';
|
|
14
|
+
import '../shared/focus.js';
|
|
15
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
16
|
+
import '../shared/object-keys.js';
|
|
17
|
+
import '../shared/affix.js';
|
|
18
|
+
import '../shared/button.js';
|
|
19
|
+
import '../shared/apply-mixins.js';
|
|
20
|
+
import '../shared/form-associated.js';
|
|
21
|
+
import '../shared/key-codes.js';
|
|
22
|
+
import '../shared/aria-global.js';
|
|
23
|
+
import '../shared/start-end.js';
|
|
24
|
+
import '../shared/ref.js';
|
|
25
|
+
import '../shared/focus2.js';
|
|
26
|
+
import '../shared/es.object.assign.js';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
3
|
+
import { c as classofRaw, _ as _export, f as functionUncurryThis } from '../shared/export.js';
|
|
4
|
+
import { B as BaseProgress } from '../shared/base-progress.js';
|
|
5
|
+
import { w as when } from '../shared/when.js';
|
|
6
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
8
|
+
import '../shared/iterators.js';
|
|
9
|
+
|
|
10
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 06 Oct 2022 14:03:46 GMT\n */\n.base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-information-200), var(--vvd-color-cta-600));\n}\n\n.progress {\n position: relative;\n display: flex;\n overflow: hidden;\n align-items: center;\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n inline-size: 100%;\n /* Shape */\n}\n.base:not(.shape-sharp) .progress {\n border-radius: 3px;\n}\n\n.indeterminate {\n display: flex;\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n inline-size: 100%;\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n.paused .determinate {\n background-color: var(--vvd-color-neutral-300);\n}\n\n.indicator-1 {\n animation: indeterminate-1 2s infinite;\n inline-size: 30%;\n}\n\n.indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.indicator-1,\n.indicator-2 {\n position: absolute;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n opacity: 0;\n}\n.connotation-pacific .indicator-1,\n.connotation-pacific .indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n.paused .indicator-1,\n.paused .indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n.reverse .indicator-1,\n.reverse .indicator-2 {\n animation-direction: reverse;\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
|
|
11
|
+
|
|
12
|
+
var classof = classofRaw;
|
|
13
|
+
|
|
14
|
+
// `IsArray` abstract operation
|
|
15
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
16
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
17
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
18
|
+
return classof(argument) == 'Array';
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var $ = _export;
|
|
22
|
+
var uncurryThis = functionUncurryThis;
|
|
23
|
+
var isArray = isArray$1;
|
|
24
|
+
|
|
25
|
+
var nativeReverse = uncurryThis([].reverse);
|
|
26
|
+
var test = [1, 2];
|
|
27
|
+
|
|
28
|
+
// `Array.prototype.reverse` method
|
|
29
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
30
|
+
// fix for Safari 12.0 bug
|
|
31
|
+
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
32
|
+
$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
33
|
+
reverse: function reverse() {
|
|
34
|
+
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
35
|
+
if (isArray(this)) this.length = this.length;
|
|
36
|
+
return nativeReverse(this);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
class Progress extends BaseProgress {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this.reverse = false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "shape", void 0);
|
|
49
|
+
|
|
50
|
+
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "connotation", void 0);
|
|
51
|
+
|
|
52
|
+
__decorate([attr({
|
|
53
|
+
mode: 'boolean'
|
|
54
|
+
}), __metadata("design:type", Object)], Progress.prototype, "reverse", void 0);
|
|
55
|
+
|
|
56
|
+
let _2 = t => t,
|
|
57
|
+
_t,
|
|
58
|
+
_t2,
|
|
59
|
+
_t3;
|
|
60
|
+
|
|
61
|
+
const getClasses = ({
|
|
62
|
+
connotation,
|
|
63
|
+
shape,
|
|
64
|
+
reverse,
|
|
65
|
+
paused
|
|
66
|
+
}) => classNames('base', [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ['reverse', Boolean(reverse)], ['paused', Boolean(paused)]);
|
|
67
|
+
|
|
68
|
+
function determinate() {
|
|
69
|
+
return html(_t || (_t = _2`
|
|
70
|
+
<span class="determinate" style="width: ${0}%"></span>`), x => x.percentComplete);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function indeterminate() {
|
|
74
|
+
return html(_t2 || (_t2 = _2`
|
|
75
|
+
<span class="indeterminate" name="indeterminate">
|
|
76
|
+
<span class="indicator-1"></span>
|
|
77
|
+
<span class="indicator-2"></span>
|
|
78
|
+
</span>`));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const ProgressTemplate = _ => {
|
|
82
|
+
return html(_t3 || (_t3 = _2`
|
|
83
|
+
<div
|
|
84
|
+
role="progressbar"
|
|
85
|
+
aria-valuenow="${0}"
|
|
86
|
+
aria-valuemin="${0}"
|
|
87
|
+
aria-valuemax="${0}"
|
|
88
|
+
class="${0}"
|
|
89
|
+
>
|
|
90
|
+
<div class="progress">
|
|
91
|
+
${0}
|
|
92
|
+
${0}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
`), x => x.value, x => x.min, x => x.max, getClasses, when(x => typeof x.value === 'number', determinate()), when(x => typeof x.value !== 'number', indeterminate()));
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const vividProgress = Progress.compose({
|
|
99
|
+
baseName: 'progress',
|
|
100
|
+
template: ProgressTemplate,
|
|
101
|
+
styles: css_248z
|
|
102
|
+
});
|
|
103
|
+
designSystem.register(vividProgress());
|
|
104
|
+
|
|
105
|
+
export { vividProgress };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { B as BaseProgress } from '../shared/base-progress.js';
|
|
3
|
+
import { w as when } from '../shared/when.js';
|
|
4
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
+
|
|
6
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 06 Oct 2022 14:03:46 GMT\n */\n.base {\n align-items: center;\n block-size: var(--_density);\n color: var(--_appearance-color-text);\n inline-size: var(--_density);\n outline: none;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base.density-5 {\n --_density: calc(5 * 4px);\n}\n.base.density-6 {\n --_density: calc(6 * 4px);\n}\n.base.density-7 {\n --_density: calc(7 * 4px);\n}\n.base.density-8 {\n --_density: calc(8 * 4px);\n}\n.base.density-9 {\n --_density: calc(9 * 4px);\n}\n.base.density-11 {\n --_density: calc(11 * 4px);\n}\n.base.density-12 {\n --_density: calc(12 * 4px);\n}\n.base.density-13 {\n --_density: calc(13 * 4px);\n}\n.base:not(.density-5, .density-6, .density-7, .density-8, .density-9, .density-11, .density-12, .density-13) {\n --_density: calc(10 * 4px);\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 2px;\n}\n\n.determinate {\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
|
|
7
|
+
|
|
8
|
+
class ProgressRing extends BaseProgress {}
|
|
9
|
+
|
|
10
|
+
__decorate([attr, __metadata("design:type", String)], ProgressRing.prototype, "connotation", void 0);
|
|
11
|
+
|
|
12
|
+
__decorate([attr, __metadata("design:type", Number)], ProgressRing.prototype, "density", void 0);
|
|
13
|
+
|
|
14
|
+
let _2 = t => t,
|
|
15
|
+
_t,
|
|
16
|
+
_t2,
|
|
17
|
+
_t3;
|
|
18
|
+
|
|
19
|
+
const getClasses = ({
|
|
20
|
+
connotation,
|
|
21
|
+
density,
|
|
22
|
+
paused
|
|
23
|
+
}) => classNames('base', ['disabled', !!paused], [`connotation-${connotation}`, !!connotation], [`density-${(density ? Number(density) : 0) + 10}`, !!density]);
|
|
24
|
+
|
|
25
|
+
const progressSegments = 44;
|
|
26
|
+
const ProgressRingTemplate = _ => html(_t || (_t = _2`
|
|
27
|
+
<div
|
|
28
|
+
role="progressbar"
|
|
29
|
+
aria-valuenow="${0}"
|
|
30
|
+
aria-valuemin="${0}"
|
|
31
|
+
aria-valuemax="${0}"
|
|
32
|
+
class="${0} ${0}"
|
|
33
|
+
>
|
|
34
|
+
${0}
|
|
35
|
+
${0}
|
|
36
|
+
</div>
|
|
37
|
+
`), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
|
|
38
|
+
<svg
|
|
39
|
+
class="progress"
|
|
40
|
+
viewBox="0 0 16 16"
|
|
41
|
+
>
|
|
42
|
+
<circle
|
|
43
|
+
class="background"
|
|
44
|
+
cx="8px"
|
|
45
|
+
cy="8px"
|
|
46
|
+
r="7px"
|
|
47
|
+
></circle>
|
|
48
|
+
<circle
|
|
49
|
+
class="determinate"
|
|
50
|
+
style="stroke-dasharray: ${0}px ${0}px"
|
|
51
|
+
cx="8px"
|
|
52
|
+
cy="8px"
|
|
53
|
+
r="7px"
|
|
54
|
+
></circle>
|
|
55
|
+
</svg>
|
|
56
|
+
`), x => progressSegments * x.percentComplete / 100, progressSegments)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
|
|
57
|
+
<svg class="progress" viewBox="0 0 16 16">
|
|
58
|
+
<circle
|
|
59
|
+
class="background"
|
|
60
|
+
cx="8px"
|
|
61
|
+
cy="8px"
|
|
62
|
+
r="7px"
|
|
63
|
+
></circle>
|
|
64
|
+
<circle
|
|
65
|
+
class="indeterminate-indicator-1"
|
|
66
|
+
cx="8px"
|
|
67
|
+
cy="8px"
|
|
68
|
+
r="7px"
|
|
69
|
+
></circle>
|
|
70
|
+
</svg>
|
|
71
|
+
`))));
|
|
72
|
+
|
|
73
|
+
const vividProgressRing = ProgressRing.compose({
|
|
74
|
+
baseName: 'progress-ring',
|
|
75
|
+
template: ProgressRingTemplate,
|
|
76
|
+
styles: css_248z
|
|
77
|
+
});
|
|
78
|
+
designSystem.register(vividProgressRing());
|
|
79
|
+
|
|
80
|
+
export { vividProgressRing };
|
package/shared/_has.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function _isPlaceholder(a) {
|
|
2
|
+
return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Optimized internal one-arity curry function.
|
|
7
|
+
*
|
|
8
|
+
* @private
|
|
9
|
+
* @category Function
|
|
10
|
+
* @param {Function} fn The function to curry.
|
|
11
|
+
* @return {Function} The curried function.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
function _curry1(fn) {
|
|
15
|
+
return function f1(a) {
|
|
16
|
+
if (arguments.length === 0 || _isPlaceholder(a)) {
|
|
17
|
+
return f1;
|
|
18
|
+
} else {
|
|
19
|
+
return fn.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Optimized internal two-arity curry function.
|
|
26
|
+
*
|
|
27
|
+
* @private
|
|
28
|
+
* @category Function
|
|
29
|
+
* @param {Function} fn The function to curry.
|
|
30
|
+
* @return {Function} The curried function.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
function _curry2(fn) {
|
|
34
|
+
return function f2(a, b) {
|
|
35
|
+
switch (arguments.length) {
|
|
36
|
+
case 0:
|
|
37
|
+
return f2;
|
|
38
|
+
|
|
39
|
+
case 1:
|
|
40
|
+
return _isPlaceholder(a) ? f2 : _curry1(function (_b) {
|
|
41
|
+
return fn(a, _b);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
default:
|
|
45
|
+
return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {
|
|
46
|
+
return fn(_a, b);
|
|
47
|
+
}) : _isPlaceholder(b) ? _curry1(function (_b) {
|
|
48
|
+
return fn(a, _b);
|
|
49
|
+
}) : fn(a, b);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _has(prop, obj) {
|
|
55
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { _curry1 as _, _curry2 as a, _has as b };
|
package/shared/affix.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import './web.dom-collections.iterator.js';
|
|
2
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html } from './index.js';
|
|
3
|
+
import { I as Icon } from './icon.js';
|
|
4
|
+
|
|
5
|
+
let _ = t => t,
|
|
6
|
+
_t;
|
|
7
|
+
class AffixIcon {}
|
|
8
|
+
|
|
9
|
+
__decorate([attr, __metadata("design:type", String)], AffixIcon.prototype, "icon", void 0);
|
|
10
|
+
|
|
11
|
+
class AffixIconWithTrailing extends AffixIcon {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.iconTrailing = false;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
__decorate([attr({
|
|
20
|
+
mode: 'boolean',
|
|
21
|
+
attribute: 'icon-trailing'
|
|
22
|
+
}), __metadata("design:type", Object)], AffixIconWithTrailing.prototype, "iconTrailing", void 0);
|
|
23
|
+
|
|
24
|
+
const affixIconTemplateFactory = context => {
|
|
25
|
+
const iconTag = context.tagFor(Icon);
|
|
26
|
+
return icon => icon ? html(_t || (_t = _`<span class="icon"><${0} :type="${0}"></${0}></span>`), iconTag, () => icon, iconTag) : null;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { AffixIconWithTrailing as A, affixIconTemplateFactory as a, AffixIcon as b };
|
package/shared/anchor.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
|
|
2
|
+
import { a as applyMixins } from './apply-mixins.js';
|
|
3
|
+
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
4
|
+
import { S as StartEnd } from './start-end.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* An Anchor Custom HTML Element.
|
|
8
|
+
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
|
9
|
+
*
|
|
10
|
+
* @slot start - Content which can be provided before the anchor content
|
|
11
|
+
* @slot end - Content which can be provided after the anchor content
|
|
12
|
+
* @slot - The default slot for anchor content
|
|
13
|
+
* @csspart control - The anchor element
|
|
14
|
+
* @csspart content - The element wrapping anchor content
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
class Anchor extends FoundationElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
/**
|
|
22
|
+
* Overrides the focus call for where delegatesFocus is unsupported.
|
|
23
|
+
* This check works for Chrome, Edge Chromium, FireFox, and Safari
|
|
24
|
+
* Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
|
|
25
|
+
*/
|
|
26
|
+
this.handleUnsupportedDelegatesFocus = () => {
|
|
27
|
+
var _a;
|
|
28
|
+
// Check to see if delegatesFocus is supported
|
|
29
|
+
if (window.ShadowRoot &&
|
|
30
|
+
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
31
|
+
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
32
|
+
this.focus = () => {
|
|
33
|
+
this.control.focus();
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
super.connectedCallback();
|
|
43
|
+
this.handleUnsupportedDelegatesFocus();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
__decorate([
|
|
47
|
+
attr
|
|
48
|
+
], Anchor.prototype, "download", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
attr
|
|
51
|
+
], Anchor.prototype, "href", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
attr
|
|
54
|
+
], Anchor.prototype, "hreflang", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
attr
|
|
57
|
+
], Anchor.prototype, "ping", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
attr
|
|
60
|
+
], Anchor.prototype, "referrerpolicy", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
attr
|
|
63
|
+
], Anchor.prototype, "rel", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
attr
|
|
66
|
+
], Anchor.prototype, "target", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
attr
|
|
69
|
+
], Anchor.prototype, "type", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
observable
|
|
72
|
+
], Anchor.prototype, "defaultSlottedContent", void 0);
|
|
73
|
+
/**
|
|
74
|
+
* Includes ARIA states and properties relating to the ARIA link role
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
class DelegatesARIALink {
|
|
79
|
+
}
|
|
80
|
+
__decorate([
|
|
81
|
+
attr({ attribute: "aria-expanded" })
|
|
82
|
+
], DelegatesARIALink.prototype, "ariaExpanded", void 0);
|
|
83
|
+
applyMixins(DelegatesARIALink, ARIAGlobalStatesAndProperties);
|
|
84
|
+
applyMixins(Anchor, StartEnd, DelegatesARIALink);
|
|
85
|
+
|
|
86
|
+
export { Anchor as A, DelegatesARIALink as D };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apply mixins to a constructor.
|
|
3
|
+
* Sourced from {@link https://www.typescriptlang.org/docs/handbook/mixins.html | TypeScript Documentation }.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
function applyMixins(derivedCtor, ...baseCtors) {
|
|
7
|
+
baseCtors.forEach(baseCtor => {
|
|
8
|
+
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
|
|
9
|
+
if (name !== "constructor") {
|
|
10
|
+
Object.defineProperty(derivedCtor.prototype, name,
|
|
11
|
+
/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */
|
|
12
|
+
Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
if (baseCtor.attributes) {
|
|
16
|
+
const existing = derivedCtor.attributes || [];
|
|
17
|
+
derivedCtor.attributes = existing.concat(baseCtor.attributes);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { applyMixins as a };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { _ as __decorate, a as attr } from './index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Some states and properties are applicable to all host language elements regardless of whether a role is applied.
|
|
5
|
+
* The following global states and properties are supported by all roles and by all base markup elements.
|
|
6
|
+
* {@link https://www.w3.org/TR/wai-aria-1.1/#global_states}
|
|
7
|
+
*
|
|
8
|
+
* This is intended to be used as a mixin. Be sure you extend FASTElement.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
class ARIAGlobalStatesAndProperties {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
attr({ attribute: "aria-atomic" })
|
|
16
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", void 0);
|
|
17
|
+
__decorate([
|
|
18
|
+
attr({ attribute: "aria-busy" })
|
|
19
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
attr({ attribute: "aria-controls" })
|
|
22
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaControls", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
attr({ attribute: "aria-current" })
|
|
25
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
attr({ attribute: "aria-describedby" })
|
|
28
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
attr({ attribute: "aria-details" })
|
|
31
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
attr({ attribute: "aria-disabled" })
|
|
34
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
attr({ attribute: "aria-errormessage" })
|
|
37
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
attr({ attribute: "aria-flowto" })
|
|
40
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
attr({ attribute: "aria-haspopup" })
|
|
43
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
attr({ attribute: "aria-hidden" })
|
|
46
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
attr({ attribute: "aria-invalid" })
|
|
49
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
attr({ attribute: "aria-keyshortcuts" })
|
|
52
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
attr({ attribute: "aria-label" })
|
|
55
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
attr({ attribute: "aria-labelledby" })
|
|
58
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
attr({ attribute: "aria-live" })
|
|
61
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaLive", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
attr({ attribute: "aria-owns" })
|
|
64
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
attr({ attribute: "aria-relevant" })
|
|
67
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
attr({ attribute: "aria-roledescription" })
|
|
70
|
+
], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
|
|
71
|
+
|
|
72
|
+
export { ARIAGlobalStatesAndProperties as A };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumberConverter, o as observable } from './index.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An Progress HTML Element.
|
|
5
|
+
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
6
|
+
*
|
|
7
|
+
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
8
|
+
* @csspart progress - Represents the progress element
|
|
9
|
+
* @csspart determinate - The determinate indicator
|
|
10
|
+
* @csspart indeterminate - The indeterminate indicator
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
class BaseProgress extends FoundationElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Indicates progress in %
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
this.percentComplete = 0;
|
|
22
|
+
}
|
|
23
|
+
valueChanged() {
|
|
24
|
+
if (this.$fastController.isConnected) {
|
|
25
|
+
this.updatePercentComplete();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
minChanged() {
|
|
29
|
+
if (this.$fastController.isConnected) {
|
|
30
|
+
this.updatePercentComplete();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
maxChanged() {
|
|
34
|
+
if (this.$fastController.isConnected) {
|
|
35
|
+
this.updatePercentComplete();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
super.connectedCallback();
|
|
43
|
+
this.updatePercentComplete();
|
|
44
|
+
}
|
|
45
|
+
updatePercentComplete() {
|
|
46
|
+
const min = typeof this.min === "number" ? this.min : 0;
|
|
47
|
+
const max = typeof this.max === "number" ? this.max : 100;
|
|
48
|
+
const value = typeof this.value === "number" ? this.value : 0;
|
|
49
|
+
const range = max - min;
|
|
50
|
+
this.percentComplete =
|
|
51
|
+
range === 0 ? 0 : Math.fround(((value - min) / range) * 100);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
__decorate([
|
|
55
|
+
attr({ converter: nullableNumberConverter })
|
|
56
|
+
], BaseProgress.prototype, "value", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
attr({ converter: nullableNumberConverter })
|
|
59
|
+
], BaseProgress.prototype, "min", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
attr({ converter: nullableNumberConverter })
|
|
62
|
+
], BaseProgress.prototype, "max", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
attr({ mode: "boolean" })
|
|
65
|
+
], BaseProgress.prototype, "paused", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
observable
|
|
68
|
+
], BaseProgress.prototype, "percentComplete", void 0);
|
|
69
|
+
|
|
70
|
+
export { BaseProgress as B };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { _ as __decorate, o as observable } from './index.js';
|
|
2
|
+
import { A as Anchor, D as DelegatesARIALink } from './anchor.js';
|
|
3
|
+
import { a as applyMixins } from './apply-mixins.js';
|
|
4
|
+
import { S as StartEnd } from './start-end.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A Breadcrumb Item Custom HTML Element.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
class BreadcrumbItem extends Anchor {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
this.separator = true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
observable
|
|
22
|
+
], BreadcrumbItem.prototype, "separator", void 0);
|
|
23
|
+
applyMixins(BreadcrumbItem, StartEnd, DelegatesARIALink);
|
|
24
|
+
|
|
25
|
+
export { BreadcrumbItem as B };
|