@maggioli-design-system/magma 2.0.0-alpha.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/dist/cjs/{datetime-CVIe4VUc.js → datetime-DHnUzK2K.js} +1 -1
- package/dist/cjs/{index-BoL6yK0y.js → index-CNuKb6Lv.js} +482 -370
- package/dist/cjs/index.cjs.js +257 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/magma-components.cjs.js +3 -3
- package/dist/cjs/mds-accordion-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +7 -5
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +9 -7
- package/dist/cjs/mds-accordion.cjs.entry.js +4 -4
- package/dist/cjs/mds-author.cjs.entry.js +4 -4
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +4 -4
- package/dist/cjs/mds-avatar.cjs.entry.js +41 -14
- package/dist/cjs/mds-badge.cjs.entry.js +8 -6
- package/dist/cjs/mds-banner_3.cjs.entry.js +33 -19
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +8 -6
- package/dist/cjs/mds-bibliography.cjs.entry.js +8 -8
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +7 -4
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/mds-button-group.cjs.entry.js +4 -4
- package/dist/cjs/mds-button_3.cjs.entry.js +44 -249
- package/dist/cjs/mds-calendar_2.cjs.entry.js +287 -144
- package/dist/cjs/mds-card-content.cjs.entry.js +4 -4
- package/dist/cjs/mds-card-footer.cjs.entry.js +4 -4
- package/dist/cjs/mds-card-header.cjs.entry.js +4 -4
- package/dist/cjs/mds-card-media.cjs.entry.js +4 -4
- package/dist/cjs/mds-card.cjs.entry.js +11 -13
- package/dist/cjs/mds-details.cjs.entry.js +7 -5
- package/dist/cjs/mds-dropdown.cjs.entry.js +42 -18
- package/dist/cjs/mds-emoji.cjs.entry.js +29 -20
- package/dist/cjs/mds-entity.cjs.entry.js +4 -4
- package/dist/cjs/mds-file-preview.cjs.entry.js +18 -6
- package/dist/cjs/mds-file.cjs.entry.js +10 -5
- package/dist/cjs/mds-filter-item.cjs.entry.js +7 -7
- package/dist/cjs/mds-filter.cjs.entry.js +5 -5
- package/dist/cjs/mds-header-bar.cjs.entry.js +8 -4
- package/dist/cjs/mds-header.cjs.entry.js +30 -16
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +18 -13
- package/dist/cjs/mds-hr.cjs.entry.js +4 -4
- package/dist/cjs/mds-img.cjs.entry.js +15 -8
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +4 -4
- package/dist/cjs/mds-input-date-range.cjs.entry.js +221 -71
- package/dist/cjs/mds-input-date.cjs.entry.js +40 -17
- package/dist/cjs/mds-input-field.cjs.entry.js +7 -7
- package/dist/cjs/mds-input-otp.cjs.entry.js +6 -6
- package/dist/cjs/mds-input-range.cjs.entry.js +19 -9
- package/dist/cjs/mds-input-select.cjs.entry.js +39 -19
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -10
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +14 -9
- package/dist/cjs/mds-input-upload.cjs.entry.js +19 -12
- package/dist/cjs/mds-input.cjs.entry.js +39 -16
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +8 -5
- package/dist/cjs/mds-keyboard.cjs.entry.js +13 -8
- package/dist/cjs/mds-kpi-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-kpi.cjs.entry.js +4 -4
- package/dist/cjs/mds-label.cjs.entry.js +7 -4
- package/dist/cjs/mds-list-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-list.cjs.entry.js +4 -4
- package/dist/cjs/mds-mention.cjs.entry.js +4 -4
- package/dist/cjs/mds-modal.cjs.entry.js +22 -15
- package/dist/cjs/mds-note.cjs.entry.js +7 -4
- package/dist/cjs/mds-notification.cjs.entry.js +11 -9
- package/dist/cjs/mds-paginator-item.cjs.entry.js +7 -7
- package/dist/cjs/mds-paginator.cjs.entry.js +4 -4
- package/dist/cjs/mds-policy-ai.cjs.entry.js +7 -4
- package/dist/cjs/mds-pref-animation.cjs.entry.js +13 -8
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +13 -8
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +14 -9
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +7 -4
- package/dist/cjs/mds-pref-language.cjs.entry.js +8 -5
- package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +8 -5
- package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +9 -6
- package/dist/cjs/mds-pref-theme.cjs.entry.js +17 -12
- package/dist/cjs/mds-pref.cjs.entry.js +15 -8
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-header.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -4
- package/dist/cjs/mds-price-table.cjs.entry.js +4 -4
- package/dist/cjs/mds-progress_2.cjs.entry.js +17 -11
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +12 -7
- package/dist/cjs/mds-push-notification.cjs.entry.js +22 -10
- package/dist/cjs/mds-quote.cjs.entry.js +4 -4
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +7 -4
- package/dist/cjs/mds-radial-menu.cjs.entry.js +30 -14
- package/dist/cjs/mds-separator.cjs.entry.js +4 -4
- package/dist/cjs/mds-status-bar.cjs.entry.js +10 -5
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +13 -6
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +8 -6
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +14 -7
- package/dist/cjs/mds-tab-bar.cjs.entry.js +4 -4
- package/dist/cjs/mds-tab_2.cjs.entry.js +28 -16
- package/dist/cjs/mds-table-body.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-footer.cjs.entry.js +4 -4
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +27 -12
- package/dist/cjs/mds-table-header.cjs.entry.js +13 -5
- package/dist/cjs/mds-table-row.cjs.entry.js +12 -6
- package/dist/cjs/mds-table.cjs.entry.js +11 -7
- package/dist/cjs/mds-text.cjs.entry.js +9 -7
- package/dist/cjs/mds-toast.cjs.entry.js +12 -8
- package/dist/cjs/mds-tooltip.cjs.entry.js +35 -15
- package/dist/cjs/mds-tree-item.cjs.entry.js +16 -6
- package/dist/cjs/mds-tree.cjs.entry.js +14 -8
- package/dist/cjs/mds-url-view.cjs.entry.js +10 -7
- package/dist/cjs/mds-usage.cjs.entry.js +7 -4
- package/dist/cjs/mds-video-wall.cjs.entry.js +4 -4
- package/dist/cjs/mds-zero.cjs.entry.js +4 -4
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/mds-accordion/mds-accordion.js +4 -3
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +10 -6
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +6 -5
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +12 -7
- package/dist/collection/components/mds-author/mds-author.js +2 -2
- package/dist/collection/components/mds-avatar/mds-avatar.js +30 -9
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +6 -2
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.js +5 -3
- package/dist/collection/components/mds-badge/mds-badge.js +9 -6
- package/dist/collection/components/mds-banner/mds-banner.js +11 -6
- package/dist/collection/components/mds-benchmark-bar/mds-benchmark-bar.js +9 -6
- package/dist/collection/components/mds-bibliography/mds-bibliography.js +15 -10
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +8 -4
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.js +3 -2
- package/dist/collection/components/mds-button/mds-button.js +23 -13
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +16 -7
- package/dist/collection/components/mds-button-group/mds-button-group.js +4 -1
- package/dist/collection/components/mds-calendar/mds-calendar.css +63 -5
- package/dist/collection/components/mds-calendar/mds-calendar.js +450 -143
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.js +7 -4
- package/dist/collection/components/mds-card/mds-card.js +8 -10
- package/dist/collection/components/mds-card-content/mds-card-content.js +2 -2
- package/dist/collection/components/mds-card-footer/mds-card-footer.js +2 -2
- package/dist/collection/components/mds-card-header/mds-card-header.js +2 -2
- package/dist/collection/components/mds-card-media/mds-card-media.js +2 -2
- package/dist/collection/components/mds-chip/mds-chip.js +20 -12
- package/dist/collection/components/mds-details/mds-details.js +2 -2
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +16 -10
- package/dist/collection/components/mds-emoji/mds-emoji.js +18 -7
- package/dist/collection/components/mds-entity/mds-entity.js +6 -4
- package/dist/collection/components/mds-file/mds-file.js +10 -5
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +21 -8
- package/dist/collection/components/mds-filter/mds-filter.js +5 -4
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +6 -5
- package/dist/collection/components/mds-header/mds-header.js +30 -17
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +16 -7
- package/dist/collection/components/mds-help/mds-help.js +4 -3
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.js +19 -13
- package/dist/collection/components/mds-hr/mds-hr.js +1 -1
- package/dist/collection/components/mds-icon/mds-icon.js +2 -2
- package/dist/collection/components/mds-icon/services/icons-set.service.js +33 -1
- package/dist/collection/components/mds-img/mds-img.js +17 -9
- package/dist/collection/components/mds-input/mds-input.js +65 -30
- package/dist/collection/components/mds-input-date/mds-input-date.js +52 -22
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +37 -1
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +245 -84
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +10 -0
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.js +4 -1
- package/dist/collection/components/mds-input-field/mds-input-field.js +9 -5
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +3 -3
- package/dist/collection/components/mds-input-range/mds-input-range.js +2 -1
- package/dist/collection/components/mds-input-select/mds-input-select.js +33 -16
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +18 -9
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +6 -2
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +11 -4
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +15 -10
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +13 -6
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +9 -5
- package/dist/collection/components/mds-kpi/mds-kpi.js +2 -2
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +1 -1
- package/dist/collection/components/mds-label/mds-label.js +11 -5
- package/dist/collection/components/mds-list/mds-list.js +2 -2
- package/dist/collection/components/mds-list-item/mds-list-item.js +8 -5
- package/dist/collection/components/mds-mention/mds-mention.js +3 -2
- package/dist/collection/components/mds-modal/mds-modal.js +25 -17
- package/dist/collection/components/mds-note/mds-note.js +8 -4
- package/dist/collection/components/mds-notification/mds-notification.js +7 -6
- package/dist/collection/components/mds-paginator/mds-paginator.js +3 -2
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +5 -5
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +7 -3
- package/dist/collection/components/mds-pref/mds-pref.js +10 -6
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +14 -8
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +14 -8
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +15 -9
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +13 -7
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +7 -3
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +20 -13
- package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +16 -9
- package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +10 -5
- package/dist/collection/components/mds-price-table/mds-price-table.js +4 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -2
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +4 -3
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +2 -2
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +4 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +2 -2
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +6 -2
- package/dist/collection/components/mds-progress/mds-progress.js +10 -6
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +27 -15
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +17 -9
- package/dist/collection/components/mds-quote/mds-quote.js +6 -4
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +16 -8
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +11 -5
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +5 -3
- package/dist/collection/components/mds-separator/mds-separator.js +1 -1
- package/dist/collection/components/mds-spinner/mds-spinner.js +1 -1
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +10 -5
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +7 -5
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +9 -4
- package/dist/collection/components/mds-tab/mds-tab.js +13 -9
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +4 -3
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +9 -5
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +11 -6
- package/dist/collection/components/mds-table/mds-table.js +9 -7
- package/dist/collection/components/mds-table-body/mds-table-body.js +4 -4
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -2
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -2
- package/dist/collection/components/mds-table-header/mds-table-header.js +23 -9
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +21 -9
- package/dist/collection/components/mds-table-row/mds-table-row.js +16 -10
- package/dist/collection/components/mds-text/mds-text.js +15 -10
- package/dist/collection/components/mds-toast/mds-toast.js +10 -7
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +9 -6
- package/dist/collection/components/mds-tree/mds-tree.js +13 -8
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +21 -10
- package/dist/collection/components/mds-url-view/mds-url-view.js +10 -6
- package/dist/collection/components/mds-usage/mds-usage.js +8 -4
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +6 -4
- package/dist/collection/components/mds-zero/mds-zero.js +2 -2
- package/dist/collection/index.js +15 -0
- package/dist/components/_commonjsHelpers.js +1 -32
- package/dist/components/aria.js +1 -45
- package/dist/components/arrow-back.js +1 -3
- package/dist/components/arrow-forward.js +1 -3
- package/dist/components/broken-image.js +1 -3
- package/dist/components/browser.js +1 -8
- package/dist/components/calendar-today.js +1 -3
- package/dist/components/cancel.js +1 -3
- package/dist/components/check-circle.js +1 -3
- package/dist/components/circle.js +1 -3
- package/dist/components/close.js +1 -3
- package/dist/components/clsx.js +1 -3
- package/dist/components/date.js +1 -14
- package/dist/components/done.js +1 -3
- package/dist/components/floating-controller.js +1 -200
- package/dist/components/floating-ui.dom.js +1 -1695
- package/dist/components/horizontal-rule.js +1 -3
- package/dist/components/icons-set.service.js +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/keyboard-arrow-down.js +1 -3
- package/dist/components/keyboard-arrow-right.js +1 -3
- package/dist/components/keyboard-arrow-up.js +1 -3
- package/dist/components/keyboard-manager.js +1 -50
- package/dist/components/keys.js +1 -775
- package/dist/components/locale.it.js +1 -571
- package/dist/components/locale.js +1 -831
- package/dist/components/mds-accordion-item.js +1 -63
- package/dist/components/mds-accordion-timer-item.js +1 -120
- package/dist/components/mds-accordion-timer.js +1 -179
- package/dist/components/mds-accordion.js +1 -83
- package/dist/components/mds-author.js +1 -39
- package/dist/components/mds-avatar-stack-item.js +1 -6
- package/dist/components/mds-avatar-stack-item2.js +1 -78
- package/dist/components/mds-avatar-stack.js +1 -84
- package/dist/components/mds-avatar.js +1 -6
- package/dist/components/mds-avatar2.js +1 -246
- package/dist/components/mds-badge.js +1 -6
- package/dist/components/mds-badge2.js +1 -71
- package/dist/components/mds-banner.js +1 -6
- package/dist/components/mds-banner2.js +1 -177
- package/dist/components/mds-benchmark-bar.js +1 -99
- package/dist/components/mds-bibliography.js +1 -179
- package/dist/components/mds-breadcrumb-item.js +1 -70
- package/dist/components/mds-breadcrumb.js +1 -177
- package/dist/components/mds-button-dropdown.js +1 -104
- package/dist/components/mds-button-group.js +1 -35
- package/dist/components/mds-button.js +1 -6
- package/dist/components/mds-button2.js +1 -280
- package/dist/components/mds-calendar-cell.js +1 -6
- package/dist/components/mds-calendar-cell2.js +1 -86
- package/dist/components/mds-calendar.js +1 -6
- package/dist/components/mds-calendar2.js +1 -8602
- package/dist/components/mds-card-content.js +1 -35
- package/dist/components/mds-card-footer.js +1 -35
- package/dist/components/mds-card-header.js +1 -39
- package/dist/components/mds-card-media.js +1 -35
- package/dist/components/mds-card.js +1 -60
- package/dist/components/mds-chip.js +1 -6
- package/dist/components/mds-chip2.js +1 -195
- package/dist/components/mds-details.js +1 -81
- package/dist/components/mds-dropdown.js +1 -6
- package/dist/components/mds-dropdown2.js +1 -285
- package/dist/components/mds-emoji.js +3 -6971
- package/dist/components/mds-entity.js +1 -99
- package/dist/components/mds-file-preview.js +1 -6
- package/dist/components/mds-file-preview2.js +8 -359
- package/dist/components/mds-file.js +14 -7649
- package/dist/components/mds-filter-item.js +1 -6
- package/dist/components/mds-filter-item2.js +1 -67
- package/dist/components/mds-filter.js +1 -151
- package/dist/components/mds-header-bar.js +1 -88
- package/dist/components/mds-header.js +1 -256
- package/dist/components/mds-help.js +1 -6
- package/dist/components/mds-help2.js +1 -65
- package/dist/components/mds-horizontal-scroll.js +1 -267
- package/dist/components/mds-hr.js +1 -35
- package/dist/components/mds-icon.js +1 -6
- package/dist/components/mds-icon2.js +1 -313
- package/dist/components/mds-img.js +1 -6
- package/dist/components/mds-img2.js +1 -209
- package/dist/components/mds-input-date-range-preselection.js +1 -73
- package/dist/components/mds-input-date-range.js +1 -420
- package/dist/components/mds-input-date.js +1 -257
- package/dist/components/mds-input-field.js +1 -75
- package/dist/components/mds-input-otp.js +1 -156
- package/dist/components/mds-input-range.js +1 -153
- package/dist/components/mds-input-select.js +1 -236
- package/dist/components/mds-input-switch.js +1 -6
- package/dist/components/mds-input-switch2.js +1 -253
- package/dist/components/mds-input-tip-item.js +1 -6
- package/dist/components/mds-input-tip-item2.js +1 -112
- package/dist/components/mds-input-tip.js +1 -6
- package/dist/components/mds-input-tip2.js +1 -43
- package/dist/components/mds-input-upload.js +1 -753
- package/dist/components/mds-input.js +1 -6
- package/dist/components/mds-input2.js +1 -738
- package/dist/components/mds-keyboard-key.js +1 -334
- package/dist/components/mds-keyboard.js +1 -269
- package/dist/components/mds-kpi-item.js +1 -74
- package/dist/components/mds-kpi.js +1 -35
- package/dist/components/mds-label.js +1 -143
- package/dist/components/mds-list-item.js +1 -65
- package/dist/components/mds-list.js +1 -35
- package/dist/components/mds-mention.js +1 -76
- package/dist/components/mds-modal.js +1 -6
- package/dist/components/mds-modal2.js +1 -270
- package/dist/components/mds-note.js +1 -128
- package/dist/components/mds-notification.js +1 -120
- package/dist/components/mds-paginator-item.js +1 -6
- package/dist/components/mds-paginator-item2.js +1 -65
- package/dist/components/mds-paginator.js +1 -116
- package/dist/components/mds-policy-ai.js +1 -219
- package/dist/components/mds-pref-animation.js +1 -188
- package/dist/components/mds-pref-consumption.js +1 -202
- package/dist/components/mds-pref-contrast.js +1 -213
- package/dist/components/mds-pref-language-item.js +1 -306
- package/dist/components/mds-pref-language.js +1 -1025
- package/dist/components/mds-pref-theme-variant-item.js +1 -109
- package/dist/components/mds-pref-theme-variant.js +1 -213
- package/dist/components/mds-pref-theme.js +1 -333
- package/dist/components/mds-pref.js +1 -150
- package/dist/components/mds-price-table-features-cell.js +1 -49
- package/dist/components/mds-price-table-features-row.js +1 -45
- package/dist/components/mds-price-table-features.js +1 -43
- package/dist/components/mds-price-table-header.js +1 -35
- package/dist/components/mds-price-table-list-item.js +1 -54
- package/dist/components/mds-price-table-list.js +1 -48
- package/dist/components/mds-price-table.js +1 -35
- package/dist/components/mds-progress.js +1 -6
- package/dist/components/mds-progress2.js +1 -121
- package/dist/components/mds-push-notification-item.js +1 -326
- package/dist/components/mds-push-notification.js +1 -205
- package/dist/components/mds-quote.js +1 -52
- package/dist/components/mds-radial-menu-item.js +1 -80
- package/dist/components/mds-radial-menu.js +1 -248
- package/dist/components/mds-radial-progress.js +1 -6
- package/dist/components/mds-radial-progress2.js +1 -119
- package/dist/components/mds-separator.js +1 -6
- package/dist/components/mds-separator2.js +1 -32
- package/dist/components/mds-spinner.js +1 -6
- package/dist/components/mds-spinner2.js +1 -54
- package/dist/components/mds-status-bar.js +1 -98
- package/dist/components/mds-stepper-bar-item.js +1 -194
- package/dist/components/mds-stepper-bar.js +1 -136
- package/dist/components/mds-tab-bar-item.js +1 -89
- package/dist/components/mds-tab-bar.js +1 -51
- package/dist/components/mds-tab-item.js +1 -6
- package/dist/components/mds-tab-item2.js +1 -112
- package/dist/components/mds-tab.js +1 -6
- package/dist/components/mds-tab2.js +1 -261
- package/dist/components/mds-table-body.js +1 -38
- package/dist/components/mds-table-cell.js +1 -6
- package/dist/components/mds-table-cell2.js +1 -39
- package/dist/components/mds-table-footer.js +1 -35
- package/dist/components/mds-table-header-cell.js +1 -6
- package/dist/components/mds-table-header-cell2.js +1 -173
- package/dist/components/mds-table-header.js +1 -164
- package/dist/components/mds-table-row.js +1 -141
- package/dist/components/mds-table.js +1 -200
- package/dist/components/mds-text.js +1 -6
- package/dist/components/mds-text2.js +1 -324
- package/dist/components/mds-toast.js +1 -127
- package/dist/components/mds-tooltip.js +1 -6
- package/dist/components/mds-tooltip2.js +1 -177
- package/dist/components/mds-tree-item.js +1 -201
- package/dist/components/mds-tree.js +1 -121
- package/dist/components/mds-url-view.js +1 -146
- package/dist/components/mds-usage.js +1 -108
- package/dist/components/mds-video-wall.js +1 -68
- package/dist/components/mds-zero.js +1 -35
- package/dist/components/panorama.js +1 -3
- package/dist/components/remove.js +1 -3
- package/dist/components/settings.js +1 -3
- package/dist/components/slot.js +1 -48
- package/dist/components/unit.js +1 -41
- package/dist/documentation.d.ts +37 -0
- package/dist/documentation.json +1520 -707
- package/dist/esm/{datetime-C4yPBff1.js → datetime-BJtA1qmE.js} +1 -1
- package/dist/esm/{index-BfAC4pqU.js → index-CAd5312P.js} +482 -370
- package/dist/esm/index.js +256 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/magma-components.js +4 -4
- package/dist/esm/mds-accordion-item.entry.js +4 -4
- package/dist/esm/mds-accordion-timer-item.entry.js +7 -5
- package/dist/esm/mds-accordion-timer.entry.js +9 -7
- package/dist/esm/mds-accordion.entry.js +4 -4
- package/dist/esm/mds-author.entry.js +4 -4
- package/dist/esm/mds-avatar-stack-item.entry.js +4 -4
- package/dist/esm/mds-avatar-stack.entry.js +4 -4
- package/dist/esm/mds-avatar.entry.js +41 -14
- package/dist/esm/mds-badge.entry.js +8 -6
- package/dist/esm/mds-banner_3.entry.js +33 -19
- package/dist/esm/mds-benchmark-bar.entry.js +8 -6
- package/dist/esm/mds-bibliography.entry.js +8 -8
- package/dist/esm/mds-breadcrumb-item.entry.js +4 -4
- package/dist/esm/mds-breadcrumb.entry.js +7 -4
- package/dist/esm/mds-button-dropdown.entry.js +4 -4
- package/dist/esm/mds-button-group.entry.js +4 -4
- package/dist/esm/mds-button_3.entry.js +40 -245
- package/dist/esm/mds-calendar_2.entry.js +287 -144
- package/dist/esm/mds-card-content.entry.js +4 -4
- package/dist/esm/mds-card-footer.entry.js +4 -4
- package/dist/esm/mds-card-header.entry.js +4 -4
- package/dist/esm/mds-card-media.entry.js +4 -4
- package/dist/esm/mds-card.entry.js +11 -13
- package/dist/esm/mds-details.entry.js +7 -5
- package/dist/esm/mds-dropdown.entry.js +42 -18
- package/dist/esm/mds-emoji.entry.js +29 -20
- package/dist/esm/mds-entity.entry.js +4 -4
- package/dist/esm/mds-file-preview.entry.js +18 -6
- package/dist/esm/mds-file.entry.js +10 -5
- package/dist/esm/mds-filter-item.entry.js +7 -7
- package/dist/esm/mds-filter.entry.js +5 -5
- package/dist/esm/mds-header-bar.entry.js +8 -4
- package/dist/esm/mds-header.entry.js +30 -16
- package/dist/esm/mds-horizontal-scroll.entry.js +18 -13
- package/dist/esm/mds-hr.entry.js +4 -4
- package/dist/esm/mds-img.entry.js +15 -8
- package/dist/esm/mds-input-date-range-preselection.entry.js +4 -4
- package/dist/esm/mds-input-date-range.entry.js +221 -71
- package/dist/esm/mds-input-date.entry.js +40 -17
- package/dist/esm/mds-input-field.entry.js +7 -7
- package/dist/esm/mds-input-otp.entry.js +6 -6
- package/dist/esm/mds-input-range.entry.js +19 -9
- package/dist/esm/mds-input-select.entry.js +39 -19
- package/dist/esm/mds-input-switch_2.entry.js +19 -10
- package/dist/esm/mds-input-tip_2.entry.js +14 -9
- package/dist/esm/mds-input-upload.entry.js +19 -12
- package/dist/esm/mds-input.entry.js +39 -16
- package/dist/esm/mds-keyboard-key.entry.js +8 -5
- package/dist/esm/mds-keyboard.entry.js +13 -8
- package/dist/esm/mds-kpi-item.entry.js +4 -4
- package/dist/esm/mds-kpi.entry.js +4 -4
- package/dist/esm/mds-label.entry.js +7 -4
- package/dist/esm/mds-list-item.entry.js +4 -4
- package/dist/esm/mds-list.entry.js +4 -4
- package/dist/esm/mds-mention.entry.js +4 -4
- package/dist/esm/mds-modal.entry.js +22 -15
- package/dist/esm/mds-note.entry.js +7 -4
- package/dist/esm/mds-notification.entry.js +11 -9
- package/dist/esm/mds-paginator-item.entry.js +7 -7
- package/dist/esm/mds-paginator.entry.js +4 -4
- package/dist/esm/mds-policy-ai.entry.js +7 -4
- package/dist/esm/mds-pref-animation.entry.js +13 -8
- package/dist/esm/mds-pref-consumption.entry.js +13 -8
- package/dist/esm/mds-pref-contrast.entry.js +14 -9
- package/dist/esm/mds-pref-language-item.entry.js +7 -4
- package/dist/esm/mds-pref-language.entry.js +8 -5
- package/dist/esm/mds-pref-theme-variant-item.entry.js +8 -5
- package/dist/esm/mds-pref-theme-variant.entry.js +9 -6
- package/dist/esm/mds-pref-theme.entry.js +17 -12
- package/dist/esm/mds-pref.entry.js +15 -8
- package/dist/esm/mds-price-table-features-cell.entry.js +4 -4
- package/dist/esm/mds-price-table-features-row.entry.js +4 -4
- package/dist/esm/mds-price-table-features.entry.js +4 -4
- package/dist/esm/mds-price-table-header.entry.js +4 -4
- package/dist/esm/mds-price-table-list-item.entry.js +4 -4
- package/dist/esm/mds-price-table-list.entry.js +4 -4
- package/dist/esm/mds-price-table.entry.js +4 -4
- package/dist/esm/mds-progress_2.entry.js +17 -11
- package/dist/esm/mds-push-notification-item.entry.js +12 -7
- package/dist/esm/mds-push-notification.entry.js +22 -10
- package/dist/esm/mds-quote.entry.js +4 -4
- package/dist/esm/mds-radial-menu-item.entry.js +7 -4
- package/dist/esm/mds-radial-menu.entry.js +30 -14
- package/dist/esm/mds-separator.entry.js +4 -4
- package/dist/esm/mds-status-bar.entry.js +10 -5
- package/dist/esm/mds-stepper-bar-item.entry.js +13 -6
- package/dist/esm/mds-stepper-bar.entry.js +8 -6
- package/dist/esm/mds-tab-bar-item.entry.js +14 -7
- package/dist/esm/mds-tab-bar.entry.js +4 -4
- package/dist/esm/mds-tab_2.entry.js +28 -16
- package/dist/esm/mds-table-body.entry.js +4 -4
- package/dist/esm/mds-table-footer.entry.js +4 -4
- package/dist/esm/mds-table-header-cell.entry.js +27 -12
- package/dist/esm/mds-table-header.entry.js +13 -5
- package/dist/esm/mds-table-row.entry.js +12 -6
- package/dist/esm/mds-table.entry.js +11 -7
- package/dist/esm/mds-text.entry.js +9 -7
- package/dist/esm/mds-toast.entry.js +12 -8
- package/dist/esm/mds-tooltip.entry.js +35 -15
- package/dist/esm/mds-tree-item.entry.js +16 -6
- package/dist/esm/mds-tree.entry.js +14 -8
- package/dist/esm/mds-url-view.entry.js +10 -7
- package/dist/esm/mds-usage.entry.js +7 -4
- package/dist/esm/mds-video-wall.entry.js +4 -4
- package/dist/esm/mds-zero.entry.js +4 -4
- package/dist/esm-es5/{datetime-C4yPBff1.js → datetime-BJtA1qmE.js} +1 -1
- package/dist/esm-es5/index-CAd5312P.js +1 -0
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/magma-components.js +1 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion.entry.js +1 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +1 -1
- package/dist/esm-es5/mds-badge.entry.js +1 -1
- package/dist/esm-es5/mds-banner_3.entry.js +1 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +1 -1
- package/dist/esm-es5/mds-bibliography.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +1 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +1 -1
- package/dist/esm-es5/mds-details.entry.js +1 -1
- package/dist/esm-es5/mds-dropdown.entry.js +1 -1
- package/dist/esm-es5/mds-emoji.entry.js +3 -3
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +2 -2
- package/dist/esm-es5/mds-file.entry.js +2 -2
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +1 -1
- package/dist/esm-es5/mds-header-bar.entry.js +1 -1
- package/dist/esm-es5/mds-header.entry.js +1 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +1 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-input-field.entry.js +1 -1
- package/dist/esm-es5/mds-input-otp.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-select.entry.js +1 -1
- package/dist/esm-es5/mds-input-switch_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-upload.entry.js +1 -1
- package/dist/esm-es5/mds-input.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard.entry.js +1 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +1 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +1 -1
- package/dist/esm-es5/mds-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-note.entry.js +1 -1
- package/dist/esm-es5/mds-notification.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-policy-ai.entry.js +1 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-language.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-variant-item.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme-variant.entry.js +1 -1
- package/dist/esm-es5/mds-pref-theme.entry.js +1 -1
- package/dist/esm-es5/mds-pref.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification-item.entry.js +1 -1
- package/dist/esm-es5/mds-push-notification.entry.js +1 -1
- package/dist/esm-es5/mds-quote.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu-item.entry.js +1 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +1 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +1 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +1 -1
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +1 -1
- package/dist/esm-es5/mds-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/esm-es5/mds-toast.entry.js +1 -1
- package/dist/esm-es5/mds-tooltip.entry.js +1 -1
- package/dist/esm-es5/mds-tree-item.entry.js +1 -1
- package/dist/esm-es5/mds-tree.entry.js +1 -1
- package/dist/esm-es5/mds-url-view.entry.js +1 -1
- package/dist/esm-es5/mds-usage.entry.js +1 -1
- package/dist/esm-es5/mds-video-wall.entry.js +1 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/hydrate/index.d.ts +12 -0
- package/dist/hydrate/index.js +6687 -1804
- package/dist/hydrate/index.mjs +6686 -1805
- package/dist/magma-components/index.esm.js +1 -0
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/{p-da1e08a8.system.entry.js → p-00313884.entry.js} +1 -1
- package/dist/magma-components/{p-8c757fad.entry.js → p-01dc43dd.entry.js} +1 -1
- package/dist/magma-components/p-01dca5e8.entry.js +1 -0
- package/dist/magma-components/p-030d45e3.entry.js +1 -0
- package/dist/magma-components/p-0328a23e.system.entry.js +1 -0
- package/dist/magma-components/{p-54a1e963.entry.js → p-08c6869a.entry.js} +1 -1
- package/dist/magma-components/p-09de9fc5.system.entry.js +1 -0
- package/dist/magma-components/{p-18412b69.entry.js → p-0acb46c8.entry.js} +1 -1
- package/dist/magma-components/p-0b10ef9f.system.entry.js +1 -0
- package/dist/magma-components/p-0b11f03b.entry.js +1 -0
- package/dist/magma-components/p-0be56202.system.entry.js +1 -0
- package/dist/magma-components/p-0de58147.entry.js +1 -0
- package/dist/magma-components/p-0e481e5c.system.entry.js +1 -0
- package/dist/magma-components/p-0f104850.system.entry.js +1 -0
- package/dist/magma-components/p-1073bf63.entry.js +1 -0
- package/dist/magma-components/p-11490a89.entry.js +1 -0
- package/dist/magma-components/p-137b0bbe.system.entry.js +1 -0
- package/dist/magma-components/{p-37c304a8.entry.js → p-14a98729.entry.js} +1 -1
- package/dist/magma-components/p-14d858f8.system.entry.js +1 -0
- package/dist/magma-components/p-14e918de.system.entry.js +1 -0
- package/dist/magma-components/p-154ef5b9.entry.js +1 -0
- package/dist/magma-components/p-158af6e3.entry.js +1 -0
- package/dist/magma-components/p-17427d8a.system.entry.js +1 -0
- package/dist/magma-components/p-1805592d.entry.js +1 -0
- package/dist/magma-components/p-18563022.entry.js +1 -0
- package/dist/magma-components/{p-7a88d5b1.entry.js → p-19f99447.entry.js} +1 -1
- package/dist/magma-components/p-1a56d383.system.entry.js +1 -0
- package/dist/magma-components/p-1bb7895a.system.entry.js +1 -0
- package/dist/magma-components/p-1ce791c1.system.entry.js +1 -0
- package/dist/magma-components/p-1da904c3.system.entry.js +1 -0
- package/dist/magma-components/p-20961bf1.entry.js +1 -0
- package/dist/magma-components/p-24a9ed63.system.entry.js +1 -0
- package/dist/magma-components/{p-2431bf5b.entry.js → p-26b131cf.entry.js} +1 -1
- package/dist/magma-components/p-28ebb626.entry.js +1 -0
- package/dist/magma-components/{p-25d96882.system.entry.js → p-292f4566.system.entry.js} +1 -1
- package/dist/magma-components/p-2a1d3680.system.entry.js +1 -0
- package/dist/magma-components/p-2ab75334.system.entry.js +1 -0
- package/dist/magma-components/p-2ccc796b.system.entry.js +1 -0
- package/dist/magma-components/p-2d9d0887.system.entry.js +1 -0
- package/dist/magma-components/p-2df01d02.system.entry.js +1 -0
- package/dist/magma-components/{p-2b47fe1f.entry.js → p-3145c7eb.entry.js} +1 -1
- package/dist/magma-components/p-34018dfe.entry.js +1 -0
- package/dist/magma-components/{p-86cdcab6.system.entry.js → p-35a9f1b4.system.entry.js} +3 -3
- package/dist/magma-components/p-35ec8bbd.entry.js +1 -0
- package/dist/magma-components/p-370f9463.system.entry.js +1 -0
- package/dist/magma-components/p-387948c4.system.entry.js +1 -0
- package/dist/magma-components/p-3aeecbba.system.entry.js +1 -0
- package/dist/magma-components/p-3af9132f.system.entry.js +1 -0
- package/dist/magma-components/p-3bfd085f.system.entry.js +1 -0
- package/dist/magma-components/{p-eca9aeea.entry.js → p-3c246a39.entry.js} +1 -1
- package/dist/magma-components/p-3c2bf79b.entry.js +1 -0
- package/dist/magma-components/p-3ce52f3c.entry.js +1 -0
- package/dist/magma-components/p-3e5993b4.entry.js +1 -0
- package/dist/magma-components/p-3ef80cd4.system.entry.js +1 -0
- package/dist/magma-components/{p-fb852b6f.entry.js → p-3fc3b8b4.entry.js} +1 -1
- package/dist/magma-components/p-423955d1.system.entry.js +1 -0
- package/dist/magma-components/p-42f336df.system.entry.js +1 -0
- package/dist/magma-components/p-45a85712.system.entry.js +1 -0
- package/dist/magma-components/p-460cd731.system.entry.js +1 -0
- package/dist/magma-components/p-473f6954.entry.js +1 -0
- package/dist/magma-components/p-47fa0ecf.entry.js +1 -0
- package/dist/magma-components/p-4b07fe37.entry.js +1 -0
- package/dist/magma-components/p-4b884441.entry.js +1 -0
- package/dist/magma-components/{p-1faa59ee.entry.js → p-4ba583c9.entry.js} +1 -1
- package/dist/magma-components/{p-e3090966.entry.js → p-4c08fe3e.entry.js} +1 -1
- package/dist/magma-components/p-4f490917.entry.js +1 -0
- package/dist/magma-components/p-4f98fdba.system.entry.js +1 -0
- package/dist/magma-components/p-50553954.system.entry.js +1 -0
- package/dist/magma-components/{p-74aeba83.entry.js → p-523d4716.entry.js} +1 -1
- package/dist/magma-components/p-52ccfafc.system.entry.js +1 -0
- package/dist/magma-components/p-52e2f903.entry.js +1 -0
- package/dist/magma-components/p-53195d95.system.entry.js +1 -0
- package/dist/magma-components/p-5488f51f.system.entry.js +1 -0
- package/dist/magma-components/p-553927f9.system.entry.js +1 -0
- package/dist/magma-components/p-55b4bbba.entry.js +1 -0
- package/dist/magma-components/{p-379a4998.entry.js → p-583f5ffa.entry.js} +1 -1
- package/dist/magma-components/{p-312e1512.entry.js → p-59d65cff.entry.js} +1 -1
- package/dist/magma-components/p-59f53701.system.entry.js +1 -0
- package/dist/magma-components/p-5b881091.entry.js +1 -0
- package/dist/magma-components/p-5c44d208.entry.js +1 -0
- package/dist/magma-components/p-5fdcd8e2.system.entry.js +1 -0
- package/dist/magma-components/p-5fe7b875.system.entry.js +1 -0
- package/dist/magma-components/p-614e7f83.system.entry.js +1 -0
- package/dist/magma-components/p-62cf9003.system.entry.js +1 -0
- package/dist/magma-components/{p-014d0127.entry.js → p-63898681.entry.js} +1 -1
- package/dist/magma-components/p-663a510e.entry.js +1 -0
- package/dist/magma-components/{p-a68b2bd1.entry.js → p-68f57bb1.entry.js} +1 -1
- package/dist/magma-components/p-6ae4df92.system.entry.js +1 -0
- package/dist/magma-components/p-6d268a59.entry.js +1 -0
- package/dist/magma-components/p-7306b02e.system.entry.js +17 -0
- package/dist/magma-components/p-75011fed.system.entry.js +9 -0
- package/dist/magma-components/{p-8cadef2a.entry.js → p-7595afcf.entry.js} +3 -3
- package/dist/magma-components/p-77e9bd68.entry.js +1 -0
- package/dist/magma-components/p-7d836722.entry.js +1 -0
- package/dist/magma-components/p-7e037cf3.entry.js +8 -0
- package/dist/magma-components/p-8106dbfd.system.entry.js +1 -0
- package/dist/magma-components/p-82deeaa0.system.entry.js +1 -0
- package/dist/magma-components/p-83589b83.entry.js +1 -0
- package/dist/magma-components/{p-1650e033.entry.js → p-83721814.entry.js} +2 -2
- package/dist/magma-components/p-83de0e53.system.entry.js +1 -0
- package/dist/magma-components/p-849760e7.system.entry.js +1 -0
- package/dist/magma-components/{p-76abcca3.system.entry.js → p-85ac6e54.system.entry.js} +1 -1
- package/dist/magma-components/p-87f8a213.entry.js +1 -0
- package/dist/magma-components/p-89bf698e.system.entry.js +1 -0
- package/dist/magma-components/p-89f96753.system.entry.js +1 -0
- package/dist/magma-components/p-8b3065b4.entry.js +1 -0
- package/dist/magma-components/p-8bec8ad6.system.entry.js +1 -0
- package/dist/magma-components/p-8d76853c.system.entry.js +1 -0
- package/dist/magma-components/p-8f1ce3f1.system.entry.js +1 -0
- package/dist/magma-components/p-9021fa60.entry.js +1 -0
- package/dist/magma-components/p-90b72c1c.system.entry.js +1 -0
- package/dist/magma-components/p-90d5b6df.system.entry.js +1 -0
- package/dist/magma-components/p-913372ff.entry.js +1 -0
- package/dist/magma-components/p-94093140.system.entry.js +1 -0
- package/dist/magma-components/p-944d9b27.system.entry.js +1 -0
- package/dist/magma-components/{p-2086a922.entry.js → p-94713401.entry.js} +1 -1
- package/dist/magma-components/{p-199d6fc7.entry.js → p-956b5ae6.entry.js} +1 -1
- package/dist/magma-components/p-95eae04e.entry.js +1 -0
- package/dist/magma-components/p-961a2531.entry.js +1 -0
- package/dist/magma-components/p-9658cb0c.entry.js +1 -0
- package/dist/magma-components/p-96d1a168.entry.js +1 -0
- package/dist/magma-components/p-96f6a646.entry.js +1 -0
- package/dist/magma-components/p-98435b90.system.entry.js +1 -0
- package/dist/magma-components/p-988b0c7c.entry.js +1 -0
- package/dist/magma-components/p-98a05642.system.entry.js +1 -0
- package/dist/magma-components/p-99f7a1b6.system.entry.js +1 -0
- package/dist/magma-components/p-9a1940c1.system.entry.js +1 -0
- package/dist/magma-components/p-9a89bc78.system.entry.js +1 -0
- package/dist/magma-components/p-9ad586a7.system.entry.js +1 -0
- package/dist/magma-components/p-9b52918e.system.entry.js +1 -0
- package/dist/magma-components/{p-B2gc1lkP.system.js → p-BJKToXNf.system.js} +1 -1
- package/dist/magma-components/{p-C4yPBff1.js → p-BJtA1qmE.js} +1 -1
- package/dist/magma-components/p-CAd5312P.js +2 -0
- package/dist/magma-components/p-DI5DWqw4.system.js +2 -0
- package/dist/magma-components/p-DTZViJWJ.system.js +1 -0
- package/dist/magma-components/p-a1af65e8.entry.js +1 -0
- package/dist/magma-components/p-a5473293.system.entry.js +1 -0
- package/dist/magma-components/p-a6caafcb.system.entry.js +1 -0
- package/dist/magma-components/p-a7bd4585.entry.js +1 -0
- package/dist/magma-components/p-a88fba47.system.entry.js +1 -0
- package/dist/magma-components/{p-408abcfd.entry.js → p-a959ade4.entry.js} +1 -1
- package/dist/magma-components/p-aa7d8972.entry.js +1 -0
- package/dist/magma-components/p-aa98652f.entry.js +1 -0
- package/dist/magma-components/p-aaeb0ee3.system.entry.js +1 -0
- package/dist/magma-components/p-ab89bf5b.system.entry.js +1 -0
- package/dist/magma-components/p-abc720e3.entry.js +1 -0
- package/dist/magma-components/p-abe87810.entry.js +1 -0
- package/dist/magma-components/{p-492e2cc1.entry.js → p-ac80aca8.entry.js} +1 -1
- package/dist/magma-components/p-acb07134.system.entry.js +1 -0
- package/dist/magma-components/p-acd4f96a.entry.js +1 -0
- package/dist/magma-components/{p-00649cfc.entry.js → p-af49bca2.entry.js} +1 -1
- package/dist/magma-components/{p-6ccffbff.entry.js → p-af670eaf.entry.js} +1 -1
- package/dist/magma-components/p-b14a94e0.system.entry.js +1 -0
- package/dist/magma-components/p-b2bc194a.entry.js +1 -0
- package/dist/magma-components/p-b2e76c18.system.entry.js +1 -0
- package/dist/magma-components/p-b37dff80.system.entry.js +1 -0
- package/dist/magma-components/p-b3e3226e.entry.js +1 -0
- package/dist/magma-components/p-b40f1153.entry.js +1 -0
- package/dist/magma-components/p-b4709a95.entry.js +1 -0
- package/dist/magma-components/p-b5db6527.system.entry.js +1 -0
- package/dist/magma-components/p-b764defa.entry.js +1 -0
- package/dist/magma-components/p-b9b2501e.system.entry.js +1 -0
- package/dist/magma-components/p-b9b5bcdd.system.entry.js +1 -0
- package/dist/magma-components/p-ba2a0bc1.system.entry.js +1 -0
- package/dist/magma-components/p-bb4380cd.entry.js +1 -0
- package/dist/magma-components/p-bce3a8b0.system.entry.js +1 -0
- package/dist/magma-components/p-bd2998e6.system.entry.js +1 -0
- package/dist/magma-components/p-bd3dbc2d.entry.js +1 -0
- package/dist/magma-components/p-bed57abb.entry.js +1 -0
- package/dist/magma-components/p-bfed0b7a.entry.js +1 -0
- package/dist/magma-components/p-c6177cb9.system.entry.js +1 -0
- package/dist/magma-components/p-c638556c.entry.js +1 -0
- package/dist/magma-components/{p-9b5cfdd8.entry.js → p-c6fa4a21.entry.js} +1 -1
- package/dist/magma-components/p-c8e99385.system.entry.js +1 -0
- package/dist/magma-components/{p-e69e24a3.entry.js → p-c9231987.entry.js} +1 -1
- package/dist/magma-components/p-c9c51ba6.system.entry.js +1 -0
- package/dist/magma-components/p-cc53b30c.entry.js +1 -0
- package/dist/magma-components/{p-823a5efc.entry.js → p-ccc0521c.entry.js} +1 -1
- package/dist/magma-components/p-cd71630e.system.entry.js +1 -0
- package/dist/magma-components/p-cd879243.system.entry.js +1 -0
- package/dist/magma-components/{p-c288b9a1.entry.js → p-ce064d47.entry.js} +1 -1
- package/dist/magma-components/{p-d4a1c10f.system.entry.js → p-d1eea8ca.system.entry.js} +1 -1
- package/dist/magma-components/p-d2537229.system.entry.js +1 -0
- package/dist/magma-components/p-d2617a1a.entry.js +1 -0
- package/dist/magma-components/p-d41c4637.system.entry.js +1 -0
- package/dist/magma-components/{p-a2d2cb35.entry.js → p-d88f44aa.entry.js} +1 -1
- package/dist/magma-components/p-dae9ae8e.system.entry.js +1 -0
- package/dist/magma-components/{p-b9d6a1f7.entry.js → p-dd860de4.entry.js} +1 -1
- package/dist/magma-components/p-df87e2f5.system.entry.js +1 -0
- package/dist/magma-components/p-dfe082be.system.entry.js +1 -0
- package/dist/magma-components/{p-1b165893.entry.js → p-e00ba5a0.entry.js} +1 -1
- package/dist/magma-components/p-e0d12fa2.system.entry.js +1 -0
- package/dist/magma-components/{p-6e94ea64.entry.js → p-e2cd11c3.entry.js} +1 -1
- package/dist/magma-components/p-e5fb3081.system.entry.js +1 -0
- package/dist/magma-components/{p-08f81a0c.entry.js → p-e67a6452.entry.js} +1 -1
- package/dist/magma-components/p-e6d8c9e3.system.entry.js +1 -0
- package/dist/magma-components/p-e71aecc1.entry.js +1 -0
- package/dist/magma-components/p-eac692ea.system.entry.js +1 -0
- package/dist/magma-components/p-ecf2e98d.system.entry.js +1 -0
- package/dist/magma-components/p-ed6d1453.system.entry.js +1 -0
- package/dist/magma-components/p-f289eb5a.entry.js +1 -0
- package/dist/magma-components/p-f3604c99.entry.js +1 -0
- package/dist/magma-components/{p-f56acab0.entry.js → p-f3dbca34.entry.js} +1 -1
- package/dist/magma-components/p-f4b4bdf2.system.entry.js +1 -0
- package/dist/magma-components/p-f56d16f7.entry.js +1 -0
- package/dist/magma-components/p-f8014852.system.entry.js +1 -0
- package/dist/magma-components/{p-41e50837.entry.js → p-f851100d.entry.js} +1 -1
- package/dist/magma-components/{p-6f7bce81.entry.js → p-f8d5adce.entry.js} +1 -1
- package/dist/magma-components/p-fa427f75.system.entry.js +1 -0
- package/dist/magma-components/p-fa6a05b5.entry.js +1 -0
- package/dist/magma-components/p-fb8b0104.entry.js +1 -0
- package/dist/magma-components/p-fcf59139.system.entry.js +1 -0
- package/dist/magma-components/p-fe3d5720.system.entry.js +1 -0
- package/dist/magma-components/p-fe85ad8e.system.entry.js +1 -0
- package/dist/magma-components/p-ffae137a.entry.js +1 -0
- package/dist/magma-components/p-oCzRm29V.system.js +1 -0
- package/dist/stats.json +4561 -2983
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +1 -1
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +1 -1
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +1 -1
- package/dist/types/components/mds-author/mds-author.d.ts +1 -1
- package/dist/types/components/mds-avatar-stack/mds-avatar-stack.d.ts +3 -0
- package/dist/types/components/mds-badge/mds-badge.d.ts +1 -1
- package/dist/types/components/mds-banner/mds-banner.d.ts +4 -1
- package/dist/types/components/mds-benchmark-bar/mds-benchmark-bar.d.ts +1 -1
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +4 -1
- package/dist/types/components/mds-button/mds-button.d.ts +1 -1
- package/dist/types/components/mds-button-dropdown/mds-button-dropdown.d.ts +3 -0
- package/dist/types/components/mds-button-group/mds-button-group.d.ts +3 -0
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +75 -8
- package/dist/types/components/mds-card-content/mds-card-content.d.ts +1 -1
- package/dist/types/components/mds-card-footer/mds-card-footer.d.ts +1 -1
- package/dist/types/components/mds-card-header/mds-card-header.d.ts +1 -1
- package/dist/types/components/mds-card-media/mds-card-media.d.ts +1 -1
- package/dist/types/components/mds-chip/mds-chip.d.ts +3 -0
- package/dist/types/components/mds-details/mds-details.d.ts +1 -1
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +4 -4
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +7 -0
- package/dist/types/components/mds-entity/mds-entity.d.ts +1 -1
- package/dist/types/components/mds-file/mds-file.d.ts +3 -0
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +3 -0
- package/dist/types/components/mds-filter/mds-filter.d.ts +1 -1
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +1 -1
- package/dist/types/components/mds-header/mds-header.d.ts +5 -1
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +5 -1
- package/dist/types/components/mds-help/mds-help.d.ts +1 -1
- package/dist/types/components/mds-horizontal-scroll/mds-horizontal-scroll.d.ts +1 -1
- package/dist/types/components/mds-icon/services/icons-set.service.d.ts +2 -1
- package/dist/types/components/mds-img/mds-img.d.ts +3 -0
- package/dist/types/components/mds-input/mds-input.d.ts +15 -0
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +19 -1
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +38 -4
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +12 -0
- package/dist/types/components/mds-input-date-range-preselection/mds-input-date-range-preselection.d.ts +3 -0
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +2 -1
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +4 -0
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +4 -1
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +3 -0
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +6 -0
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +3 -0
- package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +7 -1
- package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +3 -0
- package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
- package/dist/types/components/mds-kpi/mds-kpi.d.ts +1 -1
- package/dist/types/components/mds-label/mds-label.d.ts +4 -1
- package/dist/types/components/mds-list/mds-list.d.ts +1 -1
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +1 -1
- package/dist/types/components/mds-modal/mds-modal.d.ts +4 -1
- package/dist/types/components/mds-note/mds-note.d.ts +4 -1
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +2 -2
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +3 -0
- package/dist/types/components/mds-pref/mds-pref.d.ts +4 -1
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +3 -0
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +3 -0
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +3 -0
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +4 -1
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -0
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +3 -0
- package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +4 -1
- package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +3 -0
- package/dist/types/components/mds-price-table/mds-price-table.d.ts +3 -0
- package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +1 -1
- package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +1 -1
- package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +1 -1
- package/dist/types/components/mds-price-table-header/mds-price-table-header.d.ts +3 -0
- package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +1 -1
- package/dist/types/components/mds-price-table-list-item/mds-price-table-list-item.d.ts +3 -0
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +12 -4
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +3 -0
- package/dist/types/components/mds-quote/mds-quote.d.ts +1 -1
- package/dist/types/components/mds-radial-menu/mds-radial-menu.d.ts +3 -0
- package/dist/types/components/mds-radial-menu-item/mds-radial-menu-item.d.ts +3 -0
- package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +4 -1
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +1 -1
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +3 -0
- package/dist/types/components/mds-tab/mds-tab.d.ts +1 -1
- package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +1 -1
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +4 -1
- package/dist/types/components/mds-table/mds-table.d.ts +5 -2
- package/dist/types/components/mds-table-body/mds-table-body.d.ts +7 -1
- package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +1 -1
- package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +1 -1
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +12 -1
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +3 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +19 -1
- package/dist/types/components/mds-text/mds-text.d.ts +1 -1
- package/dist/types/components/mds-toast/mds-toast.d.ts +1 -1
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +1 -1
- package/dist/types/components/mds-tree/mds-tree.d.ts +1 -1
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +10 -1
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +4 -1
- package/dist/types/components/mds-usage/mds-usage.d.ts +4 -1
- package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +1 -1
- package/dist/types/components/mds-zero/mds-zero.d.ts +1 -1
- package/dist/types/components.d.ts +1316 -219
- package/dist/types/index.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +110 -5
- package/package.json +57 -11
- package/dist/esm-es5/index-BfAC4pqU.js +0 -1
- package/dist/magma-components/p-0130bb78.system.entry.js +0 -1
- package/dist/magma-components/p-01ed6d96.system.entry.js +0 -1
- package/dist/magma-components/p-01ff9d4c.system.entry.js +0 -1
- package/dist/magma-components/p-020e7201.entry.js +0 -1
- package/dist/magma-components/p-0228b956.entry.js +0 -1
- package/dist/magma-components/p-0291dd4c.entry.js +0 -1
- package/dist/magma-components/p-035d53f9.system.entry.js +0 -1
- package/dist/magma-components/p-03fc3cb6.system.entry.js +0 -1
- package/dist/magma-components/p-05069088.system.entry.js +0 -1
- package/dist/magma-components/p-0515681e.system.entry.js +0 -1
- package/dist/magma-components/p-0c530d94.system.entry.js +0 -1
- package/dist/magma-components/p-0e5f654a.entry.js +0 -1
- package/dist/magma-components/p-12a177ab.entry.js +0 -1
- package/dist/magma-components/p-12ba0511.system.entry.js +0 -1
- package/dist/magma-components/p-156af42d.entry.js +0 -1
- package/dist/magma-components/p-15b809ad.entry.js +0 -1
- package/dist/magma-components/p-15d3742b.entry.js +0 -1
- package/dist/magma-components/p-189867fe.system.entry.js +0 -1
- package/dist/magma-components/p-18b16f64.system.entry.js +0 -1
- package/dist/magma-components/p-1ed337e0.entry.js +0 -1
- package/dist/magma-components/p-1eebabf2.entry.js +0 -1
- package/dist/magma-components/p-1f29eafd.entry.js +0 -1
- package/dist/magma-components/p-1ffda3d3.entry.js +0 -1
- package/dist/magma-components/p-20a0e4ed.entry.js +0 -1
- package/dist/magma-components/p-23bdb4b9.entry.js +0 -1
- package/dist/magma-components/p-243cd6ac.entry.js +0 -1
- package/dist/magma-components/p-2445abc7.entry.js +0 -1
- package/dist/magma-components/p-262d9b35.system.entry.js +0 -1
- package/dist/magma-components/p-2634fdb6.system.entry.js +0 -1
- package/dist/magma-components/p-26a6c88d.system.entry.js +0 -1
- package/dist/magma-components/p-26aa7c0a.entry.js +0 -1
- package/dist/magma-components/p-273da050.system.entry.js +0 -1
- package/dist/magma-components/p-28d0a199.entry.js +0 -1
- package/dist/magma-components/p-29666107.system.entry.js +0 -1
- package/dist/magma-components/p-2c591bb6.system.entry.js +0 -1
- package/dist/magma-components/p-2ea972ee.entry.js +0 -1
- package/dist/magma-components/p-2f9a4987.entry.js +0 -1
- package/dist/magma-components/p-2ff9602e.system.entry.js +0 -1
- package/dist/magma-components/p-306e8c38.system.entry.js +0 -1
- package/dist/magma-components/p-311501ee.entry.js +0 -1
- package/dist/magma-components/p-3174b23d.entry.js +0 -1
- package/dist/magma-components/p-3310f321.entry.js +0 -1
- package/dist/magma-components/p-3498386e.entry.js +0 -1
- package/dist/magma-components/p-35347823.system.entry.js +0 -1
- package/dist/magma-components/p-366a19e8.entry.js +0 -1
- package/dist/magma-components/p-378f31a6.system.entry.js +0 -1
- package/dist/magma-components/p-37ed33dd.system.entry.js +0 -1
- package/dist/magma-components/p-37fc281b.system.entry.js +0 -1
- package/dist/magma-components/p-3d26511d.entry.js +0 -1
- package/dist/magma-components/p-3ee572f8.entry.js +0 -1
- package/dist/magma-components/p-40f01f36.system.entry.js +0 -1
- package/dist/magma-components/p-4173feeb.entry.js +0 -1
- package/dist/magma-components/p-424c3870.system.entry.js +0 -1
- package/dist/magma-components/p-425d8aa7.system.entry.js +0 -1
- package/dist/magma-components/p-4337ae15.system.entry.js +0 -1
- package/dist/magma-components/p-4576a939.entry.js +0 -1
- package/dist/magma-components/p-47af67d2.system.entry.js +0 -1
- package/dist/magma-components/p-4c135083.system.entry.js +0 -17
- package/dist/magma-components/p-4cec5cdd.system.entry.js +0 -1
- package/dist/magma-components/p-4dc6a848.system.entry.js +0 -1
- package/dist/magma-components/p-4de2320c.system.entry.js +0 -1
- package/dist/magma-components/p-4e62891c.system.entry.js +0 -1
- package/dist/magma-components/p-50260c87.entry.js +0 -1
- package/dist/magma-components/p-50dae232.entry.js +0 -1
- package/dist/magma-components/p-532ab129.system.entry.js +0 -1
- package/dist/magma-components/p-54c5f7c1.entry.js +0 -1
- package/dist/magma-components/p-54f4ca42.system.entry.js +0 -1
- package/dist/magma-components/p-5846c25b.system.entry.js +0 -1
- package/dist/magma-components/p-588942b7.system.entry.js +0 -1
- package/dist/magma-components/p-58dda765.system.entry.js +0 -1
- package/dist/magma-components/p-5cd12f3a.entry.js +0 -1
- package/dist/magma-components/p-5f73aa83.system.entry.js +0 -1
- package/dist/magma-components/p-6062f434.entry.js +0 -1
- package/dist/magma-components/p-60911cb6.system.entry.js +0 -1
- package/dist/magma-components/p-62e44706.entry.js +0 -1
- package/dist/magma-components/p-67586c4c.system.entry.js +0 -1
- package/dist/magma-components/p-67a980ba.system.entry.js +0 -1
- package/dist/magma-components/p-68489eef.system.entry.js +0 -1
- package/dist/magma-components/p-697204cf.system.entry.js +0 -1
- package/dist/magma-components/p-69f23add.system.entry.js +0 -1
- package/dist/magma-components/p-6ce95afa.entry.js +0 -1
- package/dist/magma-components/p-6f008516.system.entry.js +0 -1
- package/dist/magma-components/p-75ace8e3.entry.js +0 -1
- package/dist/magma-components/p-78657972.system.entry.js +0 -1
- package/dist/magma-components/p-7b437b69.system.entry.js +0 -1
- package/dist/magma-components/p-81cc57c3.system.entry.js +0 -1
- package/dist/magma-components/p-83f64f85.system.entry.js +0 -1
- package/dist/magma-components/p-85f80db8.system.entry.js +0 -1
- package/dist/magma-components/p-862cabb7.entry.js +0 -1
- package/dist/magma-components/p-88a64306.system.entry.js +0 -1
- package/dist/magma-components/p-8904037f.system.entry.js +0 -1
- package/dist/magma-components/p-8a06e18f.system.entry.js +0 -1
- package/dist/magma-components/p-8b3a86e9.system.entry.js +0 -1
- package/dist/magma-components/p-8dc2ff30.entry.js +0 -1
- package/dist/magma-components/p-8e65b812.system.entry.js +0 -1
- package/dist/magma-components/p-9671bf48.system.entry.js +0 -1
- package/dist/magma-components/p-96b887e1.system.entry.js +0 -1
- package/dist/magma-components/p-9a9197b4.system.entry.js +0 -1
- package/dist/magma-components/p-9d276d82.entry.js +0 -1
- package/dist/magma-components/p-9d413aae.system.entry.js +0 -1
- package/dist/magma-components/p-9ed86996.entry.js +0 -1
- package/dist/magma-components/p-BfAC4pqU.js +0 -2
- package/dist/magma-components/p-C3FmKB70.system.js +0 -1
- package/dist/magma-components/p-DQqgZ0cY.system.js +0 -2
- package/dist/magma-components/p-YWpyar7R.system.js +0 -1
- package/dist/magma-components/p-a301089d.system.entry.js +0 -1
- package/dist/magma-components/p-a3b7c3a4.system.entry.js +0 -1
- package/dist/magma-components/p-a8045692.entry.js +0 -8
- package/dist/magma-components/p-a80cccaf.system.entry.js +0 -1
- package/dist/magma-components/p-a97f5bcf.entry.js +0 -1
- package/dist/magma-components/p-aa36fa23.system.entry.js +0 -1
- package/dist/magma-components/p-ab9f8323.system.entry.js +0 -1
- package/dist/magma-components/p-ac58144b.system.entry.js +0 -1
- package/dist/magma-components/p-ac83e397.system.entry.js +0 -1
- package/dist/magma-components/p-b095c76c.system.entry.js +0 -1
- package/dist/magma-components/p-b099c62f.system.entry.js +0 -1
- package/dist/magma-components/p-b1ed5b11.system.entry.js +0 -1
- package/dist/magma-components/p-b357828f.entry.js +0 -1
- package/dist/magma-components/p-b3a2264a.system.entry.js +0 -1
- package/dist/magma-components/p-b3c10df3.system.entry.js +0 -1
- package/dist/magma-components/p-b3f73660.system.entry.js +0 -1
- package/dist/magma-components/p-b4365088.entry.js +0 -1
- package/dist/magma-components/p-b56cbc41.entry.js +0 -1
- package/dist/magma-components/p-b7095315.entry.js +0 -1
- package/dist/magma-components/p-b73122dd.entry.js +0 -1
- package/dist/magma-components/p-b7c13b8f.entry.js +0 -1
- package/dist/magma-components/p-b9accbfe.entry.js +0 -1
- package/dist/magma-components/p-bc187c3e.system.entry.js +0 -1
- package/dist/magma-components/p-bcd19fac.entry.js +0 -1
- package/dist/magma-components/p-bd4d2dde.entry.js +0 -1
- package/dist/magma-components/p-be5f3afa.system.entry.js +0 -1
- package/dist/magma-components/p-bed25376.system.entry.js +0 -1
- package/dist/magma-components/p-c0c4d65e.system.entry.js +0 -1
- package/dist/magma-components/p-c409307f.system.entry.js +0 -1
- package/dist/magma-components/p-c6410cd5.entry.js +0 -1
- package/dist/magma-components/p-c8349720.entry.js +0 -1
- package/dist/magma-components/p-cb329d03.system.entry.js +0 -1
- package/dist/magma-components/p-cd80c3d4.entry.js +0 -1
- package/dist/magma-components/p-ce6e9905.system.entry.js +0 -1
- package/dist/magma-components/p-cfd475d8.system.entry.js +0 -1
- package/dist/magma-components/p-d057243f.system.entry.js +0 -1
- package/dist/magma-components/p-d1188a0a.system.entry.js +0 -9
- package/dist/magma-components/p-d1574fd4.system.entry.js +0 -1
- package/dist/magma-components/p-d1d1d3f9.entry.js +0 -1
- package/dist/magma-components/p-d5aa3d8f.system.entry.js +0 -1
- package/dist/magma-components/p-d7b05354.system.entry.js +0 -1
- package/dist/magma-components/p-d87a0a3c.system.entry.js +0 -1
- package/dist/magma-components/p-dd905ce6.entry.js +0 -1
- package/dist/magma-components/p-de2cf21a.entry.js +0 -1
- package/dist/magma-components/p-e285b234.system.entry.js +0 -1
- package/dist/magma-components/p-e4b2f4a5.entry.js +0 -1
- package/dist/magma-components/p-e5bb0588.system.entry.js +0 -1
- package/dist/magma-components/p-e8a68ec6.system.entry.js +0 -1
- package/dist/magma-components/p-eaf44e56.entry.js +0 -1
- package/dist/magma-components/p-ec80755e.entry.js +0 -1
- package/dist/magma-components/p-ec86fabf.system.entry.js +0 -1
- package/dist/magma-components/p-ed988ff9.entry.js +0 -1
- package/dist/magma-components/p-ef766346.system.entry.js +0 -1
- package/dist/magma-components/p-f02b5c85.system.entry.js +0 -1
- package/dist/magma-components/p-f0df5249.entry.js +0 -1
- package/dist/magma-components/p-f1418e28.system.entry.js +0 -1
- package/dist/magma-components/p-f483796b.system.entry.js +0 -1
- package/dist/magma-components/p-f528e98a.entry.js +0 -1
- package/dist/magma-components/p-f69095c5.entry.js +0 -1
- package/dist/magma-components/p-f6bffd82.entry.js +0 -1
- package/dist/magma-components/p-f7023e4e.system.entry.js +0 -1
- package/dist/magma-components/p-f8f2b590.system.entry.js +0 -1
- package/dist/magma-components/p-f902cb3a.system.entry.js +0 -1
- package/dist/magma-components/p-f962b4dc.entry.js +0 -1
- package/dist/magma-components/p-fa038ac2.entry.js +0 -1
- package/dist/magma-components/p-fbf60d0d.system.entry.js +0 -1
- package/dist/magma-components/p-fdf44de5.system.entry.js +0 -1
- package/dist/magma-components/p-ffeeb010.entry.js +0 -1
|
@@ -2,834 +2,4 @@
|
|
|
2
2
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
3
3
|
* http://github.com/janl/mustache.js
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
var objectToString = Object.prototype.toString;
|
|
7
|
-
var isArray = Array.isArray || function isArrayPolyfill (object) {
|
|
8
|
-
return objectToString.call(object) === '[object Array]';
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
function isFunction (object) {
|
|
12
|
-
return typeof object === 'function';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* More correct typeof string handling array
|
|
17
|
-
* which normally returns typeof 'object'
|
|
18
|
-
*/
|
|
19
|
-
function typeStr (obj) {
|
|
20
|
-
return isArray(obj) ? 'array' : typeof obj;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function escapeRegExp (string) {
|
|
24
|
-
return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Null safe way of checking whether or not an object,
|
|
29
|
-
* including its prototype, has a given property
|
|
30
|
-
*/
|
|
31
|
-
function hasProperty (obj, propName) {
|
|
32
|
-
return obj != null && typeof obj === 'object' && (propName in obj);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Safe way of detecting whether or not the given thing is a primitive and
|
|
37
|
-
* whether it has the given property
|
|
38
|
-
*/
|
|
39
|
-
function primitiveHasOwnProperty (primitive, propName) {
|
|
40
|
-
return (
|
|
41
|
-
primitive != null
|
|
42
|
-
&& typeof primitive !== 'object'
|
|
43
|
-
&& primitive.hasOwnProperty
|
|
44
|
-
&& primitive.hasOwnProperty(propName)
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Workaround for https://issues.apache.org/jira/browse/COUCHDB-577
|
|
49
|
-
// See https://github.com/janl/mustache.js/issues/189
|
|
50
|
-
var regExpTest = RegExp.prototype.test;
|
|
51
|
-
function testRegExp (re, string) {
|
|
52
|
-
return regExpTest.call(re, string);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
var nonSpaceRe = /\S/;
|
|
56
|
-
function isWhitespace (string) {
|
|
57
|
-
return !testRegExp(nonSpaceRe, string);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
var entityMap = {
|
|
61
|
-
'&': '&',
|
|
62
|
-
'<': '<',
|
|
63
|
-
'>': '>',
|
|
64
|
-
'"': '"',
|
|
65
|
-
"'": ''',
|
|
66
|
-
'/': '/',
|
|
67
|
-
'`': '`',
|
|
68
|
-
'=': '='
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
function escapeHtml (string) {
|
|
72
|
-
return String(string).replace(/[&<>"'`=\/]/g, function fromEntityMap (s) {
|
|
73
|
-
return entityMap[s];
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
var whiteRe = /\s*/;
|
|
78
|
-
var spaceRe = /\s+/;
|
|
79
|
-
var equalsRe = /\s*=/;
|
|
80
|
-
var curlyRe = /\s*\}/;
|
|
81
|
-
var tagRe = /#|\^|\/|>|\{|&|=|!/;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Breaks up the given `template` string into a tree of tokens. If the `tags`
|
|
85
|
-
* argument is given here it must be an array with two string values: the
|
|
86
|
-
* opening and closing tags used in the template (e.g. [ "<%", "%>" ]). Of
|
|
87
|
-
* course, the default is to use mustaches (i.e. mustache.tags).
|
|
88
|
-
*
|
|
89
|
-
* A token is an array with at least 4 elements. The first element is the
|
|
90
|
-
* mustache symbol that was used inside the tag, e.g. "#" or "&". If the tag
|
|
91
|
-
* did not contain a symbol (i.e. {{myValue}}) this element is "name". For
|
|
92
|
-
* all text that appears outside a symbol this element is "text".
|
|
93
|
-
*
|
|
94
|
-
* The second element of a token is its "value". For mustache tags this is
|
|
95
|
-
* whatever else was inside the tag besides the opening symbol. For text tokens
|
|
96
|
-
* this is the text itself.
|
|
97
|
-
*
|
|
98
|
-
* The third and fourth elements of the token are the start and end indices,
|
|
99
|
-
* respectively, of the token in the original template.
|
|
100
|
-
*
|
|
101
|
-
* Tokens that are the root node of a subtree contain two more elements: 1) an
|
|
102
|
-
* array of tokens in the subtree and 2) the index in the original template at
|
|
103
|
-
* which the closing tag for that section begins.
|
|
104
|
-
*
|
|
105
|
-
* Tokens for partials also contain two more elements: 1) a string value of
|
|
106
|
-
* indendation prior to that tag and 2) the index of that tag on that line -
|
|
107
|
-
* eg a value of 2 indicates the partial is the third tag on this line.
|
|
108
|
-
*/
|
|
109
|
-
function parseTemplate (template, tags) {
|
|
110
|
-
if (!template)
|
|
111
|
-
return [];
|
|
112
|
-
var lineHasNonSpace = false;
|
|
113
|
-
var sections = []; // Stack to hold section tokens
|
|
114
|
-
var tokens = []; // Buffer to hold the tokens
|
|
115
|
-
var spaces = []; // Indices of whitespace tokens on the current line
|
|
116
|
-
var hasTag = false; // Is there a {{tag}} on the current line?
|
|
117
|
-
var nonSpace = false; // Is there a non-space char on the current line?
|
|
118
|
-
var indentation = ''; // Tracks indentation for tags that use it
|
|
119
|
-
var tagIndex = 0; // Stores a count of number of tags encountered on a line
|
|
120
|
-
|
|
121
|
-
// Strips all whitespace tokens array for the current line
|
|
122
|
-
// if there was a {{#tag}} on it and otherwise only space.
|
|
123
|
-
function stripSpace () {
|
|
124
|
-
if (hasTag && !nonSpace) {
|
|
125
|
-
while (spaces.length)
|
|
126
|
-
delete tokens[spaces.pop()];
|
|
127
|
-
} else {
|
|
128
|
-
spaces = [];
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
hasTag = false;
|
|
132
|
-
nonSpace = false;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
var openingTagRe, closingTagRe, closingCurlyRe;
|
|
136
|
-
function compileTags (tagsToCompile) {
|
|
137
|
-
if (typeof tagsToCompile === 'string')
|
|
138
|
-
tagsToCompile = tagsToCompile.split(spaceRe, 2);
|
|
139
|
-
|
|
140
|
-
if (!isArray(tagsToCompile) || tagsToCompile.length !== 2)
|
|
141
|
-
throw new Error('Invalid tags: ' + tagsToCompile);
|
|
142
|
-
|
|
143
|
-
openingTagRe = new RegExp(escapeRegExp(tagsToCompile[0]) + '\\s*');
|
|
144
|
-
closingTagRe = new RegExp('\\s*' + escapeRegExp(tagsToCompile[1]));
|
|
145
|
-
closingCurlyRe = new RegExp('\\s*' + escapeRegExp('}' + tagsToCompile[1]));
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
compileTags(tags || mustache.tags);
|
|
149
|
-
|
|
150
|
-
var scanner = new Scanner(template);
|
|
151
|
-
|
|
152
|
-
var start, type, value, chr, token, openSection;
|
|
153
|
-
while (!scanner.eos()) {
|
|
154
|
-
start = scanner.pos;
|
|
155
|
-
|
|
156
|
-
// Match any text between tags.
|
|
157
|
-
value = scanner.scanUntil(openingTagRe);
|
|
158
|
-
|
|
159
|
-
if (value) {
|
|
160
|
-
for (var i = 0, valueLength = value.length; i < valueLength; ++i) {
|
|
161
|
-
chr = value.charAt(i);
|
|
162
|
-
|
|
163
|
-
if (isWhitespace(chr)) {
|
|
164
|
-
spaces.push(tokens.length);
|
|
165
|
-
indentation += chr;
|
|
166
|
-
} else {
|
|
167
|
-
nonSpace = true;
|
|
168
|
-
lineHasNonSpace = true;
|
|
169
|
-
indentation += ' ';
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
tokens.push([ 'text', chr, start, start + 1 ]);
|
|
173
|
-
start += 1;
|
|
174
|
-
|
|
175
|
-
// Check for whitespace on the current line.
|
|
176
|
-
if (chr === '\n') {
|
|
177
|
-
stripSpace();
|
|
178
|
-
indentation = '';
|
|
179
|
-
tagIndex = 0;
|
|
180
|
-
lineHasNonSpace = false;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// Match the opening tag.
|
|
186
|
-
if (!scanner.scan(openingTagRe))
|
|
187
|
-
break;
|
|
188
|
-
|
|
189
|
-
hasTag = true;
|
|
190
|
-
|
|
191
|
-
// Get the tag type.
|
|
192
|
-
type = scanner.scan(tagRe) || 'name';
|
|
193
|
-
scanner.scan(whiteRe);
|
|
194
|
-
|
|
195
|
-
// Get the tag value.
|
|
196
|
-
if (type === '=') {
|
|
197
|
-
value = scanner.scanUntil(equalsRe);
|
|
198
|
-
scanner.scan(equalsRe);
|
|
199
|
-
scanner.scanUntil(closingTagRe);
|
|
200
|
-
} else if (type === '{') {
|
|
201
|
-
value = scanner.scanUntil(closingCurlyRe);
|
|
202
|
-
scanner.scan(curlyRe);
|
|
203
|
-
scanner.scanUntil(closingTagRe);
|
|
204
|
-
type = '&';
|
|
205
|
-
} else {
|
|
206
|
-
value = scanner.scanUntil(closingTagRe);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// Match the closing tag.
|
|
210
|
-
if (!scanner.scan(closingTagRe))
|
|
211
|
-
throw new Error('Unclosed tag at ' + scanner.pos);
|
|
212
|
-
|
|
213
|
-
if (type == '>') {
|
|
214
|
-
token = [ type, value, start, scanner.pos, indentation, tagIndex, lineHasNonSpace ];
|
|
215
|
-
} else {
|
|
216
|
-
token = [ type, value, start, scanner.pos ];
|
|
217
|
-
}
|
|
218
|
-
tagIndex++;
|
|
219
|
-
tokens.push(token);
|
|
220
|
-
|
|
221
|
-
if (type === '#' || type === '^') {
|
|
222
|
-
sections.push(token);
|
|
223
|
-
} else if (type === '/') {
|
|
224
|
-
// Check section nesting.
|
|
225
|
-
openSection = sections.pop();
|
|
226
|
-
|
|
227
|
-
if (!openSection)
|
|
228
|
-
throw new Error('Unopened section "' + value + '" at ' + start);
|
|
229
|
-
|
|
230
|
-
if (openSection[1] !== value)
|
|
231
|
-
throw new Error('Unclosed section "' + openSection[1] + '" at ' + start);
|
|
232
|
-
} else if (type === 'name' || type === '{' || type === '&') {
|
|
233
|
-
nonSpace = true;
|
|
234
|
-
} else if (type === '=') {
|
|
235
|
-
// Set the tags for the next time around.
|
|
236
|
-
compileTags(value);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
stripSpace();
|
|
241
|
-
|
|
242
|
-
// Make sure there are no open sections when we're done.
|
|
243
|
-
openSection = sections.pop();
|
|
244
|
-
|
|
245
|
-
if (openSection)
|
|
246
|
-
throw new Error('Unclosed section "' + openSection[1] + '" at ' + scanner.pos);
|
|
247
|
-
|
|
248
|
-
return nestTokens(squashTokens(tokens));
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Combines the values of consecutive text tokens in the given `tokens` array
|
|
253
|
-
* to a single token.
|
|
254
|
-
*/
|
|
255
|
-
function squashTokens (tokens) {
|
|
256
|
-
var squashedTokens = [];
|
|
257
|
-
|
|
258
|
-
var token, lastToken;
|
|
259
|
-
for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) {
|
|
260
|
-
token = tokens[i];
|
|
261
|
-
|
|
262
|
-
if (token) {
|
|
263
|
-
if (token[0] === 'text' && lastToken && lastToken[0] === 'text') {
|
|
264
|
-
lastToken[1] += token[1];
|
|
265
|
-
lastToken[3] = token[3];
|
|
266
|
-
} else {
|
|
267
|
-
squashedTokens.push(token);
|
|
268
|
-
lastToken = token;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
return squashedTokens;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Forms the given array of `tokens` into a nested tree structure where
|
|
278
|
-
* tokens that represent a section have two additional items: 1) an array of
|
|
279
|
-
* all tokens that appear in that section and 2) the index in the original
|
|
280
|
-
* template that represents the end of that section.
|
|
281
|
-
*/
|
|
282
|
-
function nestTokens (tokens) {
|
|
283
|
-
var nestedTokens = [];
|
|
284
|
-
var collector = nestedTokens;
|
|
285
|
-
var sections = [];
|
|
286
|
-
|
|
287
|
-
var token, section;
|
|
288
|
-
for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) {
|
|
289
|
-
token = tokens[i];
|
|
290
|
-
|
|
291
|
-
switch (token[0]) {
|
|
292
|
-
case '#':
|
|
293
|
-
case '^':
|
|
294
|
-
collector.push(token);
|
|
295
|
-
sections.push(token);
|
|
296
|
-
collector = token[4] = [];
|
|
297
|
-
break;
|
|
298
|
-
case '/':
|
|
299
|
-
section = sections.pop();
|
|
300
|
-
section[5] = token[2];
|
|
301
|
-
collector = sections.length > 0 ? sections[sections.length - 1][4] : nestedTokens;
|
|
302
|
-
break;
|
|
303
|
-
default:
|
|
304
|
-
collector.push(token);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
return nestedTokens;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* A simple string scanner that is used by the template parser to find
|
|
313
|
-
* tokens in template strings.
|
|
314
|
-
*/
|
|
315
|
-
function Scanner (string) {
|
|
316
|
-
this.string = string;
|
|
317
|
-
this.tail = string;
|
|
318
|
-
this.pos = 0;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Returns `true` if the tail is empty (end of string).
|
|
323
|
-
*/
|
|
324
|
-
Scanner.prototype.eos = function eos () {
|
|
325
|
-
return this.tail === '';
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Tries to match the given regular expression at the current position.
|
|
330
|
-
* Returns the matched text if it can match, the empty string otherwise.
|
|
331
|
-
*/
|
|
332
|
-
Scanner.prototype.scan = function scan (re) {
|
|
333
|
-
var match = this.tail.match(re);
|
|
334
|
-
|
|
335
|
-
if (!match || match.index !== 0)
|
|
336
|
-
return '';
|
|
337
|
-
|
|
338
|
-
var string = match[0];
|
|
339
|
-
|
|
340
|
-
this.tail = this.tail.substring(string.length);
|
|
341
|
-
this.pos += string.length;
|
|
342
|
-
|
|
343
|
-
return string;
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Skips all text until the given regular expression can be matched. Returns
|
|
348
|
-
* the skipped string, which is the entire tail if no match can be made.
|
|
349
|
-
*/
|
|
350
|
-
Scanner.prototype.scanUntil = function scanUntil (re) {
|
|
351
|
-
var index = this.tail.search(re), match;
|
|
352
|
-
|
|
353
|
-
switch (index) {
|
|
354
|
-
case -1:
|
|
355
|
-
match = this.tail;
|
|
356
|
-
this.tail = '';
|
|
357
|
-
break;
|
|
358
|
-
case 0:
|
|
359
|
-
match = '';
|
|
360
|
-
break;
|
|
361
|
-
default:
|
|
362
|
-
match = this.tail.substring(0, index);
|
|
363
|
-
this.tail = this.tail.substring(index);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
this.pos += match.length;
|
|
367
|
-
|
|
368
|
-
return match;
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Represents a rendering context by wrapping a view object and
|
|
373
|
-
* maintaining a reference to the parent context.
|
|
374
|
-
*/
|
|
375
|
-
function Context (view, parentContext) {
|
|
376
|
-
this.view = view;
|
|
377
|
-
this.cache = { '.': this.view };
|
|
378
|
-
this.parent = parentContext;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* Creates a new context using the given view with this context
|
|
383
|
-
* as the parent.
|
|
384
|
-
*/
|
|
385
|
-
Context.prototype.push = function push (view) {
|
|
386
|
-
return new Context(view, this);
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* Returns the value of the given name in this context, traversing
|
|
391
|
-
* up the context hierarchy if the value is absent in this context's view.
|
|
392
|
-
*/
|
|
393
|
-
Context.prototype.lookup = function lookup (name) {
|
|
394
|
-
var cache = this.cache;
|
|
395
|
-
|
|
396
|
-
var value;
|
|
397
|
-
if (cache.hasOwnProperty(name)) {
|
|
398
|
-
value = cache[name];
|
|
399
|
-
} else {
|
|
400
|
-
var context = this, intermediateValue, names, index, lookupHit = false;
|
|
401
|
-
|
|
402
|
-
while (context) {
|
|
403
|
-
if (name.indexOf('.') > 0) {
|
|
404
|
-
intermediateValue = context.view;
|
|
405
|
-
names = name.split('.');
|
|
406
|
-
index = 0;
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Using the dot notion path in `name`, we descend through the
|
|
410
|
-
* nested objects.
|
|
411
|
-
*
|
|
412
|
-
* To be certain that the lookup has been successful, we have to
|
|
413
|
-
* check if the last object in the path actually has the property
|
|
414
|
-
* we are looking for. We store the result in `lookupHit`.
|
|
415
|
-
*
|
|
416
|
-
* This is specially necessary for when the value has been set to
|
|
417
|
-
* `undefined` and we want to avoid looking up parent contexts.
|
|
418
|
-
*
|
|
419
|
-
* In the case where dot notation is used, we consider the lookup
|
|
420
|
-
* to be successful even if the last "object" in the path is
|
|
421
|
-
* not actually an object but a primitive (e.g., a string, or an
|
|
422
|
-
* integer), because it is sometimes useful to access a property
|
|
423
|
-
* of an autoboxed primitive, such as the length of a string.
|
|
424
|
-
**/
|
|
425
|
-
while (intermediateValue != null && index < names.length) {
|
|
426
|
-
if (index === names.length - 1)
|
|
427
|
-
lookupHit = (
|
|
428
|
-
hasProperty(intermediateValue, names[index])
|
|
429
|
-
|| primitiveHasOwnProperty(intermediateValue, names[index])
|
|
430
|
-
);
|
|
431
|
-
|
|
432
|
-
intermediateValue = intermediateValue[names[index++]];
|
|
433
|
-
}
|
|
434
|
-
} else {
|
|
435
|
-
intermediateValue = context.view[name];
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Only checking against `hasProperty`, which always returns `false` if
|
|
439
|
-
* `context.view` is not an object. Deliberately omitting the check
|
|
440
|
-
* against `primitiveHasOwnProperty` if dot notation is not used.
|
|
441
|
-
*
|
|
442
|
-
* Consider this example:
|
|
443
|
-
* ```
|
|
444
|
-
* Mustache.render("The length of a football field is {{#length}}{{length}}{{/length}}.", {length: "100 yards"})
|
|
445
|
-
* ```
|
|
446
|
-
*
|
|
447
|
-
* If we were to check also against `primitiveHasOwnProperty`, as we do
|
|
448
|
-
* in the dot notation case, then render call would return:
|
|
449
|
-
*
|
|
450
|
-
* "The length of a football field is 9."
|
|
451
|
-
*
|
|
452
|
-
* rather than the expected:
|
|
453
|
-
*
|
|
454
|
-
* "The length of a football field is 100 yards."
|
|
455
|
-
**/
|
|
456
|
-
lookupHit = hasProperty(context.view, name);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
if (lookupHit) {
|
|
460
|
-
value = intermediateValue;
|
|
461
|
-
break;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
context = context.parent;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
cache[name] = value;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
if (isFunction(value))
|
|
471
|
-
value = value.call(this.view);
|
|
472
|
-
|
|
473
|
-
return value;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* A Writer knows how to take a stream of tokens and render them to a
|
|
478
|
-
* string, given a context. It also maintains a cache of templates to
|
|
479
|
-
* avoid the need to parse the same template twice.
|
|
480
|
-
*/
|
|
481
|
-
function Writer () {
|
|
482
|
-
this.templateCache = {
|
|
483
|
-
_cache: {},
|
|
484
|
-
set: function set (key, value) {
|
|
485
|
-
this._cache[key] = value;
|
|
486
|
-
},
|
|
487
|
-
get: function get (key) {
|
|
488
|
-
return this._cache[key];
|
|
489
|
-
},
|
|
490
|
-
clear: function clear () {
|
|
491
|
-
this._cache = {};
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Clears all cached templates in this writer.
|
|
498
|
-
*/
|
|
499
|
-
Writer.prototype.clearCache = function clearCache () {
|
|
500
|
-
if (typeof this.templateCache !== 'undefined') {
|
|
501
|
-
this.templateCache.clear();
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Parses and caches the given `template` according to the given `tags` or
|
|
507
|
-
* `mustache.tags` if `tags` is omitted, and returns the array of tokens
|
|
508
|
-
* that is generated from the parse.
|
|
509
|
-
*/
|
|
510
|
-
Writer.prototype.parse = function parse (template, tags) {
|
|
511
|
-
var cache = this.templateCache;
|
|
512
|
-
var cacheKey = template + ':' + (tags || mustache.tags).join(':');
|
|
513
|
-
var isCacheEnabled = typeof cache !== 'undefined';
|
|
514
|
-
var tokens = isCacheEnabled ? cache.get(cacheKey) : undefined;
|
|
515
|
-
|
|
516
|
-
if (tokens == undefined) {
|
|
517
|
-
tokens = parseTemplate(template, tags);
|
|
518
|
-
isCacheEnabled && cache.set(cacheKey, tokens);
|
|
519
|
-
}
|
|
520
|
-
return tokens;
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* High-level method that is used to render the given `template` with
|
|
525
|
-
* the given `view`.
|
|
526
|
-
*
|
|
527
|
-
* The optional `partials` argument may be an object that contains the
|
|
528
|
-
* names and templates of partials that are used in the template. It may
|
|
529
|
-
* also be a function that is used to load partial templates on the fly
|
|
530
|
-
* that takes a single argument: the name of the partial.
|
|
531
|
-
*
|
|
532
|
-
* If the optional `config` argument is given here, then it should be an
|
|
533
|
-
* object with a `tags` attribute or an `escape` attribute or both.
|
|
534
|
-
* If an array is passed, then it will be interpreted the same way as
|
|
535
|
-
* a `tags` attribute on a `config` object.
|
|
536
|
-
*
|
|
537
|
-
* The `tags` attribute of a `config` object must be an array with two
|
|
538
|
-
* string values: the opening and closing tags used in the template (e.g.
|
|
539
|
-
* [ "<%", "%>" ]). The default is to mustache.tags.
|
|
540
|
-
*
|
|
541
|
-
* The `escape` attribute of a `config` object must be a function which
|
|
542
|
-
* accepts a string as input and outputs a safely escaped string.
|
|
543
|
-
* If an `escape` function is not provided, then an HTML-safe string
|
|
544
|
-
* escaping function is used as the default.
|
|
545
|
-
*/
|
|
546
|
-
Writer.prototype.render = function render (template, view, partials, config) {
|
|
547
|
-
var tags = this.getConfigTags(config);
|
|
548
|
-
var tokens = this.parse(template, tags);
|
|
549
|
-
var context = (view instanceof Context) ? view : new Context(view, undefined);
|
|
550
|
-
return this.renderTokens(tokens, context, partials, template, config);
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* Low-level method that renders the given array of `tokens` using
|
|
555
|
-
* the given `context` and `partials`.
|
|
556
|
-
*
|
|
557
|
-
* Note: The `originalTemplate` is only ever used to extract the portion
|
|
558
|
-
* of the original template that was contained in a higher-order section.
|
|
559
|
-
* If the template doesn't use higher-order sections, this argument may
|
|
560
|
-
* be omitted.
|
|
561
|
-
*/
|
|
562
|
-
Writer.prototype.renderTokens = function renderTokens (tokens, context, partials, originalTemplate, config) {
|
|
563
|
-
var buffer = '';
|
|
564
|
-
|
|
565
|
-
var token, symbol, value;
|
|
566
|
-
for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) {
|
|
567
|
-
value = undefined;
|
|
568
|
-
token = tokens[i];
|
|
569
|
-
symbol = token[0];
|
|
570
|
-
|
|
571
|
-
if (symbol === '#') value = this.renderSection(token, context, partials, originalTemplate, config);
|
|
572
|
-
else if (symbol === '^') value = this.renderInverted(token, context, partials, originalTemplate, config);
|
|
573
|
-
else if (symbol === '>') value = this.renderPartial(token, context, partials, config);
|
|
574
|
-
else if (symbol === '&') value = this.unescapedValue(token, context);
|
|
575
|
-
else if (symbol === 'name') value = this.escapedValue(token, context, config);
|
|
576
|
-
else if (symbol === 'text') value = this.rawValue(token);
|
|
577
|
-
|
|
578
|
-
if (value !== undefined)
|
|
579
|
-
buffer += value;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
return buffer;
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
Writer.prototype.renderSection = function renderSection (token, context, partials, originalTemplate, config) {
|
|
586
|
-
var self = this;
|
|
587
|
-
var buffer = '';
|
|
588
|
-
var value = context.lookup(token[1]);
|
|
589
|
-
|
|
590
|
-
// This function is used to render an arbitrary template
|
|
591
|
-
// in the current context by higher-order sections.
|
|
592
|
-
function subRender (template) {
|
|
593
|
-
return self.render(template, context, partials, config);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
if (!value) return;
|
|
597
|
-
|
|
598
|
-
if (isArray(value)) {
|
|
599
|
-
for (var j = 0, valueLength = value.length; j < valueLength; ++j) {
|
|
600
|
-
buffer += this.renderTokens(token[4], context.push(value[j]), partials, originalTemplate, config);
|
|
601
|
-
}
|
|
602
|
-
} else if (typeof value === 'object' || typeof value === 'string' || typeof value === 'number') {
|
|
603
|
-
buffer += this.renderTokens(token[4], context.push(value), partials, originalTemplate, config);
|
|
604
|
-
} else if (isFunction(value)) {
|
|
605
|
-
if (typeof originalTemplate !== 'string')
|
|
606
|
-
throw new Error('Cannot use higher-order sections without the original template');
|
|
607
|
-
|
|
608
|
-
// Extract the portion of the original template that the section contains.
|
|
609
|
-
value = value.call(context.view, originalTemplate.slice(token[3], token[5]), subRender);
|
|
610
|
-
|
|
611
|
-
if (value != null)
|
|
612
|
-
buffer += value;
|
|
613
|
-
} else {
|
|
614
|
-
buffer += this.renderTokens(token[4], context, partials, originalTemplate, config);
|
|
615
|
-
}
|
|
616
|
-
return buffer;
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
Writer.prototype.renderInverted = function renderInverted (token, context, partials, originalTemplate, config) {
|
|
620
|
-
var value = context.lookup(token[1]);
|
|
621
|
-
|
|
622
|
-
// Use JavaScript's definition of falsy. Include empty arrays.
|
|
623
|
-
// See https://github.com/janl/mustache.js/issues/186
|
|
624
|
-
if (!value || (isArray(value) && value.length === 0))
|
|
625
|
-
return this.renderTokens(token[4], context, partials, originalTemplate, config);
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
Writer.prototype.indentPartial = function indentPartial (partial, indentation, lineHasNonSpace) {
|
|
629
|
-
var filteredIndentation = indentation.replace(/[^ \t]/g, '');
|
|
630
|
-
var partialByNl = partial.split('\n');
|
|
631
|
-
for (var i = 0; i < partialByNl.length; i++) {
|
|
632
|
-
if (partialByNl[i].length && (i > 0 || !lineHasNonSpace)) {
|
|
633
|
-
partialByNl[i] = filteredIndentation + partialByNl[i];
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return partialByNl.join('\n');
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
Writer.prototype.renderPartial = function renderPartial (token, context, partials, config) {
|
|
640
|
-
if (!partials) return;
|
|
641
|
-
var tags = this.getConfigTags(config);
|
|
642
|
-
|
|
643
|
-
var value = isFunction(partials) ? partials(token[1]) : partials[token[1]];
|
|
644
|
-
if (value != null) {
|
|
645
|
-
var lineHasNonSpace = token[6];
|
|
646
|
-
var tagIndex = token[5];
|
|
647
|
-
var indentation = token[4];
|
|
648
|
-
var indentedValue = value;
|
|
649
|
-
if (tagIndex == 0 && indentation) {
|
|
650
|
-
indentedValue = this.indentPartial(value, indentation, lineHasNonSpace);
|
|
651
|
-
}
|
|
652
|
-
var tokens = this.parse(indentedValue, tags);
|
|
653
|
-
return this.renderTokens(tokens, context, partials, indentedValue, config);
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
|
-
|
|
657
|
-
Writer.prototype.unescapedValue = function unescapedValue (token, context) {
|
|
658
|
-
var value = context.lookup(token[1]);
|
|
659
|
-
if (value != null)
|
|
660
|
-
return value;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
Writer.prototype.escapedValue = function escapedValue (token, context, config) {
|
|
664
|
-
var escape = this.getConfigEscape(config) || mustache.escape;
|
|
665
|
-
var value = context.lookup(token[1]);
|
|
666
|
-
if (value != null)
|
|
667
|
-
return (typeof value === 'number' && escape === mustache.escape) ? String(value) : escape(value);
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
Writer.prototype.rawValue = function rawValue (token) {
|
|
671
|
-
return token[1];
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
Writer.prototype.getConfigTags = function getConfigTags (config) {
|
|
675
|
-
if (isArray(config)) {
|
|
676
|
-
return config;
|
|
677
|
-
}
|
|
678
|
-
else if (config && typeof config === 'object') {
|
|
679
|
-
return config.tags;
|
|
680
|
-
}
|
|
681
|
-
else {
|
|
682
|
-
return undefined;
|
|
683
|
-
}
|
|
684
|
-
};
|
|
685
|
-
|
|
686
|
-
Writer.prototype.getConfigEscape = function getConfigEscape (config) {
|
|
687
|
-
if (config && typeof config === 'object' && !isArray(config)) {
|
|
688
|
-
return config.escape;
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
return undefined;
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
|
|
695
|
-
var mustache = {
|
|
696
|
-
name: 'mustache.js',
|
|
697
|
-
version: '4.2.0',
|
|
698
|
-
tags: [ '{{', '}}' ],
|
|
699
|
-
clearCache: undefined,
|
|
700
|
-
escape: undefined,
|
|
701
|
-
parse: undefined,
|
|
702
|
-
render: undefined,
|
|
703
|
-
Scanner: undefined,
|
|
704
|
-
Context: undefined,
|
|
705
|
-
Writer: undefined,
|
|
706
|
-
/**
|
|
707
|
-
* Allows a user to override the default caching strategy, by providing an
|
|
708
|
-
* object with set, get and clear methods. This can also be used to disable
|
|
709
|
-
* the cache by setting it to the literal `undefined`.
|
|
710
|
-
*/
|
|
711
|
-
set templateCache (cache) {
|
|
712
|
-
defaultWriter.templateCache = cache;
|
|
713
|
-
},
|
|
714
|
-
/**
|
|
715
|
-
* Gets the default or overridden caching object from the default writer.
|
|
716
|
-
*/
|
|
717
|
-
get templateCache () {
|
|
718
|
-
return defaultWriter.templateCache;
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
// All high-level mustache.* functions use this writer.
|
|
723
|
-
var defaultWriter = new Writer();
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Clears all cached templates in the default writer.
|
|
727
|
-
*/
|
|
728
|
-
mustache.clearCache = function clearCache () {
|
|
729
|
-
return defaultWriter.clearCache();
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Parses and caches the given template in the default writer and returns the
|
|
734
|
-
* array of tokens it contains. Doing this ahead of time avoids the need to
|
|
735
|
-
* parse templates on the fly as they are rendered.
|
|
736
|
-
*/
|
|
737
|
-
mustache.parse = function parse (template, tags) {
|
|
738
|
-
return defaultWriter.parse(template, tags);
|
|
739
|
-
};
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Renders the `template` with the given `view`, `partials`, and `config`
|
|
743
|
-
* using the default writer.
|
|
744
|
-
*/
|
|
745
|
-
mustache.render = function render (template, view, partials, config) {
|
|
746
|
-
if (typeof template !== 'string') {
|
|
747
|
-
throw new TypeError('Invalid template! Template should be a "string" ' +
|
|
748
|
-
'but "' + typeStr(template) + '" was given as the first ' +
|
|
749
|
-
'argument for mustache#render(template, view, partials)');
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
return defaultWriter.render(template, view, partials, config);
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
// Export the escaping function so that the user may override it.
|
|
756
|
-
// See https://github.com/janl/mustache.js/issues/244
|
|
757
|
-
mustache.escape = escapeHtml;
|
|
758
|
-
|
|
759
|
-
// Export these mainly for testing, but also for advanced usage.
|
|
760
|
-
mustache.Scanner = Scanner;
|
|
761
|
-
mustache.Context = Context;
|
|
762
|
-
mustache.Writer = Writer;
|
|
763
|
-
|
|
764
|
-
class Locale {
|
|
765
|
-
constructor(configData) {
|
|
766
|
-
this.rollbackLanguage = 'en';
|
|
767
|
-
this.set = (configData) => {
|
|
768
|
-
this.config = configData;
|
|
769
|
-
};
|
|
770
|
-
this.lang = (el) => {
|
|
771
|
-
this.element = el;
|
|
772
|
-
this.closestElement = this.element.closest('[lang]');
|
|
773
|
-
if (this.closestElement) {
|
|
774
|
-
if (this.closestElement.lang) {
|
|
775
|
-
this.language = this.closestElement.lang;
|
|
776
|
-
return this.language;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
this.language = this.rollbackLanguage;
|
|
780
|
-
return this.language;
|
|
781
|
-
};
|
|
782
|
-
this.update = (doc) => {
|
|
783
|
-
const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
|
|
784
|
-
if (context) {
|
|
785
|
-
context.querySelectorAll('*').forEach((el) => {
|
|
786
|
-
if (el.tagName.toLowerCase().startsWith('mds-')) {
|
|
787
|
-
if (el && 'updateLang' in el) {
|
|
788
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
789
|
-
el.updateLang();
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
};
|
|
795
|
-
this.pluralize = (tag, context) => {
|
|
796
|
-
const languagePhrase = this.config[this.language]
|
|
797
|
-
? this.config[this.language][tag]
|
|
798
|
-
: this.config[this.rollbackLanguage][tag];
|
|
799
|
-
const phrases = [];
|
|
800
|
-
if (Array.isArray(languagePhrase)) {
|
|
801
|
-
phrases.push(languagePhrase[0]);
|
|
802
|
-
phrases.push(languagePhrase[1]);
|
|
803
|
-
}
|
|
804
|
-
else {
|
|
805
|
-
phrases.push(languagePhrase);
|
|
806
|
-
phrases.push(languagePhrase);
|
|
807
|
-
}
|
|
808
|
-
const [defaultPhrase] = phrases;
|
|
809
|
-
let translatePhrase = defaultPhrase;
|
|
810
|
-
const keys = Object.keys(context);
|
|
811
|
-
if (keys.length > 0) {
|
|
812
|
-
const [firstKey] = keys;
|
|
813
|
-
if (typeof context[firstKey] === 'number') {
|
|
814
|
-
if (context[firstKey] !== 1) {
|
|
815
|
-
translatePhrase = phrases[1];
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
return mustache.render(translatePhrase, context);
|
|
820
|
-
};
|
|
821
|
-
this.get = (tag, context) => {
|
|
822
|
-
if (context) {
|
|
823
|
-
return this.pluralize(tag, context);
|
|
824
|
-
}
|
|
825
|
-
return this.config[this.language]
|
|
826
|
-
? this.config[this.language][tag]
|
|
827
|
-
: this.config[this.rollbackLanguage][tag];
|
|
828
|
-
};
|
|
829
|
-
if (configData) {
|
|
830
|
-
this.set(configData);
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
export { Locale as L };
|
|
5
|
+
var t=Object.prototype.toString,i=Array.isArray||function(i){return"[object Array]"===t.call(i)};function n(t){return"function"==typeof t}function r(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function e(t,i){return null!=t&&"object"==typeof t&&i in t}var s=RegExp.prototype.test,o=/\S/;var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},u=/\s*/,f=/\s+/,a=/\s*=/,c=/\s*\}/,l=/#|\^|\/|>|\{|&|=|!/;function v(t){this.string=t,this.tail=t,this.pos=0}function p(t,i){this.view=t,this.cache={".":this.view},this.parent=i}function d(){this.templateCache={_cache:{},set:function(t,i){this._cache[t]=i},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}v.prototype.eos=function(){return""===this.tail},v.prototype.scan=function(t){var i=this.tail.match(t);if(!i||0!==i.index)return"";var n=i[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},v.prototype.scanUntil=function(t){var i,n=this.tail.search(t);switch(n){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=i.length,i},p.prototype.push=function(t){return new p(t,this)},p.prototype.lookup=function(t){var i,r,s=this.cache;if(s.hasOwnProperty(t))i=s[t];else{for(var o,h,u,f=this,a=!1;f;){if(t.indexOf(".")>0)for(o=f.view,h=t.split("."),u=0;null!=o&&u<h.length;)u===h.length-1&&(a=e(o,h[u])||null!=(r=o)&&"object"!=typeof r&&r.hasOwnProperty&&r.hasOwnProperty(h[u])),o=o[h[u++]];else o=f.view[t],a=e(f.view,t);if(a){i=o;break}f=f.parent}s[t]=i}return n(i)&&(i=i.call(this.view)),i},d.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},d.prototype.parse=function(t,n){var e=this.templateCache,h=t+":"+(n||g.tags).join(":"),p=void 0!==e,d=p?e.get(h):void 0;return null==d&&(d=function(t,n){if(!t)return[];var e,h,p,d=!1,w=[],b=[],y=[],m=!1,x=!1,E="",j=0;function k(){if(m&&!x)for(;y.length;)delete b[y.pop()];else y=[];m=!1,x=!1}function C(t){if("string"==typeof t&&(t=t.split(f,2)),!i(t)||2!==t.length)throw new Error("Invalid tags: "+t);e=new RegExp(r(t[0])+"\\s*"),h=new RegExp("\\s*"+r(t[1])),p=new RegExp("\\s*"+r("}"+t[1]))}C(n||g.tags);for(var R,S,U,A,I,L,O=new v(t);!O.eos();){if(R=O.pos,U=O.scanUntil(e))for(var T=0,$=U.length;T<$;++T)(function(t,i){return s.call(o,i)})(0,A=U.charAt(T))?(x=!0,d=!0,E+=" "):(y.push(b.length),E+=A),b.push(["text",A,R,R+1]),R+=1,"\n"===A&&(k(),E="",j=0,d=!1);if(!O.scan(e))break;if(m=!0,S=O.scan(l)||"name",O.scan(u),"="===S?(U=O.scanUntil(a),O.scan(a),O.scanUntil(h)):"{"===S?(U=O.scanUntil(p),O.scan(c),O.scanUntil(h),S="&"):U=O.scanUntil(h),!O.scan(h))throw new Error("Unclosed tag at "+O.pos);if(I=">"==S?[S,U,R,O.pos,E,j,d]:[S,U,R,O.pos],j++,b.push(I),"#"===S||"^"===S)w.push(I);else if("/"===S){if(!(L=w.pop()))throw new Error('Unopened section "'+U+'" at '+R);if(L[1]!==U)throw new Error('Unclosed section "'+L[1]+'" at '+R)}else"name"===S||"{"===S||"&"===S?x=!0:"="===S&&C(U)}if(k(),L=w.pop())throw new Error('Unclosed section "'+L[1]+'" at '+O.pos);return function(t){for(var i,n=[],r=n,e=[],s=0,o=t.length;s<o;++s)switch((i=t[s])[0]){case"#":case"^":r.push(i),e.push(i),r=i[4]=[];break;case"/":e.pop()[5]=i[2],r=e.length>0?e[e.length-1][4]:n;break;default:r.push(i)}return n}(function(t){for(var i,n,r=[],e=0,s=t.length;e<s;++e)(i=t[e])&&("text"===i[0]&&n&&"text"===n[0]?(n[1]+=i[1],n[3]=i[3]):(r.push(i),n=i));return r}(b))}(t,n),p&&e.set(h,d)),d},d.prototype.render=function(t,i,n,r){var e=this.getConfigTags(r),s=this.parse(t,e),o=i instanceof p?i:new p(i,void 0);return this.renderTokens(s,o,n,t,r)},d.prototype.renderTokens=function(t,i,n,r,e){for(var s,o,h,u="",f=0,a=t.length;f<a;++f)h=void 0,"#"===(o=(s=t[f])[0])?h=this.renderSection(s,i,n,r,e):"^"===o?h=this.renderInverted(s,i,n,r,e):">"===o?h=this.renderPartial(s,i,n,e):"&"===o?h=this.unescapedValue(s,i):"name"===o?h=this.escapedValue(s,i,e):"text"===o&&(h=this.rawValue(s)),void 0!==h&&(u+=h);return u},d.prototype.renderSection=function(t,r,e,s,o){var h=this,u="",f=r.lookup(t[1]);if(f){if(i(f))for(var a=0,c=f.length;a<c;++a)u+=this.renderTokens(t[4],r.push(f[a]),e,s,o);else if("object"==typeof f||"string"==typeof f||"number"==typeof f)u+=this.renderTokens(t[4],r.push(f),e,s,o);else if(n(f)){if("string"!=typeof s)throw new Error("Cannot use higher-order sections without the original template");null!=(f=f.call(r.view,s.slice(t[3],t[5]),(function(t){return h.render(t,r,e,o)})))&&(u+=f)}else u+=this.renderTokens(t[4],r,e,s,o);return u}},d.prototype.renderInverted=function(t,n,r,e,s){var o=n.lookup(t[1]);if(!o||i(o)&&0===o.length)return this.renderTokens(t[4],n,r,e,s)},d.prototype.indentPartial=function(t,i,n){for(var r=i.replace(/[^ \t]/g,""),e=t.split("\n"),s=0;s<e.length;s++)e[s].length&&(s>0||!n)&&(e[s]=r+e[s]);return e.join("\n")},d.prototype.renderPartial=function(t,i,r,e){if(r){var s=this.getConfigTags(e),o=n(r)?r(t[1]):r[t[1]];if(null!=o){var h=t[4],u=o;0==t[5]&&h&&(u=this.indentPartial(o,h,t[6]));var f=this.parse(u,s);return this.renderTokens(f,i,r,u,e)}}},d.prototype.unescapedValue=function(t,i){var n=i.lookup(t[1]);if(null!=n)return n},d.prototype.escapedValue=function(t,i,n){var r=this.getConfigEscape(n)||g.escape,e=i.lookup(t[1]);if(null!=e)return"number"==typeof e&&r===g.escape?String(e):r(e)},d.prototype.rawValue=function(t){return t[1]},d.prototype.getConfigTags=function(t){return i(t)?t:t&&"object"==typeof t?t.tags:void 0},d.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!i(t)?t.escape:void 0};var g={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){w.templateCache=t},get templateCache(){return w.templateCache}},w=new d;g.clearCache=function(){return w.clearCache()},g.parse=function(t,i){return w.parse(t,i)},g.render=function(t,n,r,e){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(i(s=t)?"array":typeof s)+'" was given as the first argument for mustache#render(template, view, partials)');var s;return w.render(t,n,r,e)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return h[t]}))},g.Scanner=v,g.Context=p,g.Writer=d;class b{constructor(t){this.rollbackLanguage="en",this.set=t=>{this.config=t},this.lang=t=>(this.element=t,this.closestElement=this.element.closest("[lang]"),this.closestElement&&this.closestElement.lang?(this.language=this.closestElement.lang,this.language):(this.language=this.rollbackLanguage,this.language)),this.update=t=>{const i=null!=t?t:this.element.shadowRoot;i&&i.querySelectorAll("*").forEach((t=>{t.tagName.toLowerCase().startsWith("mds-")&&t&&"updateLang"in t&&t.updateLang()}))},this.pluralize=(t,i)=>{const n=this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],r=[];Array.isArray(n)?(r.push(n[0]),r.push(n[1])):(r.push(n),r.push(n));const[e]=r;let s=e;const o=Object.keys(i);if(o.length>0){const[t]=o;"number"==typeof i[t]&&1!==i[t]&&(s=r[1])}return g.render(s,i)},this.get=(t,i)=>i?this.pluralize(t,i):this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],t&&this.set(t)}}export{b as L}
|