@ni/nimble-components 24.0.1 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +110 -41
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +488 -473
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/.storybook/blocks/StoryLayout.d.ts +51 -0
- package/dist/esm/src/all-components.d.ts +63 -0
- package/dist/esm/src/anchor/index.d.ts +36 -0
- package/dist/esm/src/anchor/styles.d.ts +1 -0
- package/dist/esm/src/anchor/template.d.ts +4 -0
- package/dist/esm/src/anchor/types.d.ts +9 -0
- package/dist/esm/src/anchor-base/index.d.ts +6 -0
- package/dist/esm/src/anchor-button/index.d.ts +37 -0
- package/dist/esm/src/anchor-button/styles.d.ts +1 -0
- package/dist/esm/src/anchor-button/template.d.ts +4 -0
- package/dist/esm/src/anchor-button/types.d.ts +5 -0
- package/dist/esm/src/anchor-menu-item/index.d.ts +36 -0
- package/dist/esm/src/anchor-menu-item/styles.d.ts +1 -0
- package/dist/esm/src/anchor-menu-item/template.d.ts +4 -0
- package/dist/esm/src/anchor-tab/index.d.ts +30 -0
- package/dist/esm/src/anchor-tab/styles.d.ts +1 -0
- package/dist/esm/src/anchor-tab/template.d.ts +4 -0
- package/dist/esm/src/anchor-tabs/index.d.ts +60 -0
- package/dist/esm/src/anchor-tabs/styles.d.ts +1 -0
- package/dist/esm/src/anchor-tabs/template.d.ts +4 -0
- package/dist/esm/src/anchor-tree-item/index.d.ts +57 -0
- package/dist/esm/src/anchor-tree-item/styles.d.ts +1 -0
- package/dist/esm/src/anchor-tree-item/template.d.ts +4 -0
- package/dist/esm/src/anchored-region/index.d.ts +12 -0
- package/dist/esm/src/anchored-region/styles.d.ts +1 -0
- package/dist/esm/src/banner/index.d.ts +47 -0
- package/dist/esm/src/banner/styles.d.ts +1 -0
- package/dist/esm/src/banner/template.d.ts +2 -0
- package/dist/esm/src/banner/types.d.ts +19 -0
- package/dist/esm/src/breadcrumb/index.d.ts +14 -0
- package/dist/esm/src/breadcrumb/styles.d.ts +1 -0
- package/dist/esm/src/breadcrumb/types.d.ts +9 -0
- package/dist/esm/src/breadcrumb-item/index.d.ts +12 -0
- package/dist/esm/src/breadcrumb-item/styles.d.ts +1 -0
- package/dist/esm/src/button/index.d.ts +32 -0
- package/dist/esm/src/button/styles.d.ts +1 -0
- package/dist/esm/src/button/types.d.ts +7 -0
- package/dist/esm/src/card/index.d.ts +12 -0
- package/dist/esm/src/card/styles.d.ts +1 -0
- package/dist/esm/src/card/template.d.ts +2 -0
- package/dist/esm/src/card-button/index.d.ts +18 -0
- package/dist/esm/src/card-button/styles.d.ts +1 -0
- package/dist/esm/src/checkbox/index.d.ts +12 -0
- package/dist/esm/src/checkbox/styles.d.ts +1 -0
- package/dist/esm/src/combobox/index.d.ts +82 -0
- package/dist/esm/src/combobox/styles.d.ts +1 -0
- package/dist/esm/src/combobox/template.d.ts +4 -0
- package/dist/esm/src/combobox/types.d.ts +2 -0
- package/dist/esm/src/dialog/index.d.ts +70 -0
- package/dist/esm/src/dialog/styles.d.ts +1 -0
- package/dist/esm/src/dialog/template.d.ts +2 -0
- package/dist/esm/src/drawer/index.d.ts +55 -0
- package/dist/esm/src/drawer/styles.d.ts +1 -0
- package/dist/esm/src/drawer/template.d.ts +2 -0
- package/dist/esm/src/drawer/types.d.ts +5 -0
- package/dist/esm/src/icon-base/index.d.ts +19 -0
- package/dist/esm/src/icon-base/styles.d.ts +1 -0
- package/dist/esm/src/icon-base/template.d.ts +2 -0
- package/dist/esm/src/icon-base/types.d.ts +12 -0
- package/dist/esm/src/icons/add.d.ts +13 -0
- package/dist/esm/src/icons/all-icons.d.ts +185 -0
- package/dist/esm/src/icons/arrow-down-right-and-arrow-up-left.d.ts +13 -0
- package/dist/esm/src/icons/arrow-down.d.ts +13 -0
- package/dist/esm/src/icons/arrow-expander-down.d.ts +13 -0
- package/dist/esm/src/icons/arrow-expander-left.d.ts +13 -0
- package/dist/esm/src/icons/arrow-expander-right.d.ts +13 -0
- package/dist/esm/src/icons/arrow-expander-up.d.ts +13 -0
- package/dist/esm/src/icons/arrow-in-circle.d.ts +13 -0
- package/dist/esm/src/icons/arrow-left-from-line.d.ts +13 -0
- package/dist/esm/src/icons/arrow-out-circle.d.ts +13 -0
- package/dist/esm/src/icons/arrow-partial-rotate-left.d.ts +13 -0
- package/dist/esm/src/icons/arrow-right-to-line.d.ts +13 -0
- package/dist/esm/src/icons/arrow-rotate-right.d.ts +13 -0
- package/dist/esm/src/icons/arrow-u-rotate-left.d.ts +13 -0
- package/dist/esm/src/icons/arrow-up-left-and-arrow-down-right.d.ts +13 -0
- package/dist/esm/src/icons/arrow-up-right-from-square.d.ts +13 -0
- package/dist/esm/src/icons/arrow-up.d.ts +13 -0
- package/dist/esm/src/icons/arrows-maximize.d.ts +13 -0
- package/dist/esm/src/icons/arrows-repeat.d.ts +13 -0
- package/dist/esm/src/icons/at.d.ts +13 -0
- package/dist/esm/src/icons/bars.d.ts +13 -0
- package/dist/esm/src/icons/bell-and-comment.d.ts +13 -0
- package/dist/esm/src/icons/bell-circle.d.ts +13 -0
- package/dist/esm/src/icons/bell-solid-circle.d.ts +13 -0
- package/dist/esm/src/icons/bell.d.ts +13 -0
- package/dist/esm/src/icons/block-with-ribbon.d.ts +13 -0
- package/dist/esm/src/icons/bold-b.d.ts +13 -0
- package/dist/esm/src/icons/book-magnifying-glass.d.ts +13 -0
- package/dist/esm/src/icons/calendar-check-lines.d.ts +13 -0
- package/dist/esm/src/icons/calendar-day.d.ts +13 -0
- package/dist/esm/src/icons/calendar.d.ts +13 -0
- package/dist/esm/src/icons/chart-diagram-child-focus.d.ts +13 -0
- package/dist/esm/src/icons/chart-diagram-parent-focus-two-child.d.ts +13 -0
- package/dist/esm/src/icons/chart-diagram-parent-focus.d.ts +13 -0
- package/dist/esm/src/icons/chart-diagram.d.ts +13 -0
- package/dist/esm/src/icons/check-dot.d.ts +13 -0
- package/dist/esm/src/icons/check-large.d.ts +13 -0
- package/dist/esm/src/icons/check.d.ts +13 -0
- package/dist/esm/src/icons/circle-broken.d.ts +13 -0
- package/dist/esm/src/icons/circle-check.d.ts +13 -0
- package/dist/esm/src/icons/circle-filled.d.ts +13 -0
- package/dist/esm/src/icons/circle-partial-broken.d.ts +13 -0
- package/dist/esm/src/icons/circle-slash.d.ts +13 -0
- package/dist/esm/src/icons/circle-x.d.ts +13 -0
- package/dist/esm/src/icons/circle.d.ts +13 -0
- package/dist/esm/src/icons/clipboard.d.ts +13 -0
- package/dist/esm/src/icons/clock-cog.d.ts +13 -0
- package/dist/esm/src/icons/clock-exclamation.d.ts +13 -0
- package/dist/esm/src/icons/clock-triangle.d.ts +13 -0
- package/dist/esm/src/icons/clock.d.ts +13 -0
- package/dist/esm/src/icons/clone.d.ts +13 -0
- package/dist/esm/src/icons/cloud-upload.d.ts +13 -0
- package/dist/esm/src/icons/cloud-with-arrow.d.ts +13 -0
- package/dist/esm/src/icons/cloud.d.ts +13 -0
- package/dist/esm/src/icons/cog-database-inset.d.ts +13 -0
- package/dist/esm/src/icons/cog-database.d.ts +13 -0
- package/dist/esm/src/icons/cog-small-cog.d.ts +13 -0
- package/dist/esm/src/icons/cog-zoomed.d.ts +13 -0
- package/dist/esm/src/icons/cog.d.ts +13 -0
- package/dist/esm/src/icons/comment.d.ts +13 -0
- package/dist/esm/src/icons/computer-and-monitor.d.ts +13 -0
- package/dist/esm/src/icons/copy-text.d.ts +13 -0
- package/dist/esm/src/icons/copy.d.ts +13 -0
- package/dist/esm/src/icons/dashboard-builder-legend.d.ts +13 -0
- package/dist/esm/src/icons/dashboard-builder-templates.d.ts +13 -0
- package/dist/esm/src/icons/dashboard-builder-tile.d.ts +13 -0
- package/dist/esm/src/icons/dashboard-builder.d.ts +13 -0
- package/dist/esm/src/icons/database-check.d.ts +13 -0
- package/dist/esm/src/icons/database.d.ts +13 -0
- package/dist/esm/src/icons/desktop.d.ts +13 -0
- package/dist/esm/src/icons/donut-chart.d.ts +13 -0
- package/dist/esm/src/icons/dot-solid-dot-stroke-measurement.d.ts +13 -0
- package/dist/esm/src/icons/dot-solid-dot-stroke.d.ts +13 -0
- package/dist/esm/src/icons/down-right-from-square.d.ts +13 -0
- package/dist/esm/src/icons/download.d.ts +13 -0
- package/dist/esm/src/icons/electronic-chip-zoomed.d.ts +13 -0
- package/dist/esm/src/icons/exclamation-mark.d.ts +13 -0
- package/dist/esm/src/icons/eye-dash.d.ts +13 -0
- package/dist/esm/src/icons/eye.d.ts +13 -0
- package/dist/esm/src/icons/fancy-a.d.ts +13 -0
- package/dist/esm/src/icons/file-arrow-curved-right.d.ts +13 -0
- package/dist/esm/src/icons/file-drawer.d.ts +13 -0
- package/dist/esm/src/icons/file-search.d.ts +13 -0
- package/dist/esm/src/icons/file.d.ts +13 -0
- package/dist/esm/src/icons/filter.d.ts +13 -0
- package/dist/esm/src/icons/floppy-disk-checkmark.d.ts +13 -0
- package/dist/esm/src/icons/floppy-disk-pen.d.ts +13 -0
- package/dist/esm/src/icons/floppy-disk-star-arrow-right.d.ts +13 -0
- package/dist/esm/src/icons/floppy-disk-three-dots.d.ts +13 -0
- package/dist/esm/src/icons/floppy-disk.d.ts +13 -0
- package/dist/esm/src/icons/folder-open.d.ts +13 -0
- package/dist/esm/src/icons/folder.d.ts +13 -0
- package/dist/esm/src/icons/forward-slash.d.ts +13 -0
- package/dist/esm/src/icons/four-dots-square.d.ts +13 -0
- package/dist/esm/src/icons/function.d.ts +13 -0
- package/dist/esm/src/icons/gauge-simple.d.ts +13 -0
- package/dist/esm/src/icons/grid-three-by-three.d.ts +13 -0
- package/dist/esm/src/icons/grid-two-by-two.d.ts +13 -0
- package/dist/esm/src/icons/hammer.d.ts +13 -0
- package/dist/esm/src/icons/hashtag.d.ts +13 -0
- package/dist/esm/src/icons/home.d.ts +13 -0
- package/dist/esm/src/icons/horizontal-triangle-outline.d.ts +13 -0
- package/dist/esm/src/icons/hourglass.d.ts +13 -0
- package/dist/esm/src/icons/indent.d.ts +13 -0
- package/dist/esm/src/icons/indeterminant-checkbox.d.ts +13 -0
- package/dist/esm/src/icons/info-circle.d.ts +13 -0
- package/dist/esm/src/icons/info.d.ts +13 -0
- package/dist/esm/src/icons/inward-squares-three.d.ts +13 -0
- package/dist/esm/src/icons/italic-i.d.ts +13 -0
- package/dist/esm/src/icons/key.d.ts +13 -0
- package/dist/esm/src/icons/laptop.d.ts +13 -0
- package/dist/esm/src/icons/layer-group.d.ts +13 -0
- package/dist/esm/src/icons/lightning-bolt.d.ts +13 -0
- package/dist/esm/src/icons/link-cancel.d.ts +13 -0
- package/dist/esm/src/icons/link.d.ts +13 -0
- package/dist/esm/src/icons/list-tree-database.d.ts +13 -0
- package/dist/esm/src/icons/list-tree.d.ts +13 -0
- package/dist/esm/src/icons/list.d.ts +13 -0
- package/dist/esm/src/icons/lock.d.ts +13 -0
- package/dist/esm/src/icons/magnifying-glass.d.ts +13 -0
- package/dist/esm/src/icons/markdown.d.ts +13 -0
- package/dist/esm/src/icons/minus-wide.d.ts +13 -0
- package/dist/esm/src/icons/minus.d.ts +13 -0
- package/dist/esm/src/icons/mobile.d.ts +13 -0
- package/dist/esm/src/icons/ni.d.ts +13 -0
- package/dist/esm/src/icons/notebook.d.ts +13 -0
- package/dist/esm/src/icons/number-list.d.ts +13 -0
- package/dist/esm/src/icons/outdent.d.ts +13 -0
- package/dist/esm/src/icons/outward-squares-three.d.ts +13 -0
- package/dist/esm/src/icons/paste.d.ts +13 -0
- package/dist/esm/src/icons/pause.d.ts +13 -0
- package/dist/esm/src/icons/pencil.d.ts +13 -0
- package/dist/esm/src/icons/play.d.ts +13 -0
- package/dist/esm/src/icons/pot-with-lid.d.ts +13 -0
- package/dist/esm/src/icons/question.d.ts +13 -0
- package/dist/esm/src/icons/rectangle-check-lines.d.ts +13 -0
- package/dist/esm/src/icons/running-arrow.d.ts +13 -0
- package/dist/esm/src/icons/screen-check-lines-calendar.d.ts +13 -0
- package/dist/esm/src/icons/screen-check-lines.d.ts +13 -0
- package/dist/esm/src/icons/server.d.ts +13 -0
- package/dist/esm/src/icons/share-nodes.d.ts +13 -0
- package/dist/esm/src/icons/shield-check.d.ts +13 -0
- package/dist/esm/src/icons/shield-xmark.d.ts +13 -0
- package/dist/esm/src/icons/signal-bars.d.ts +13 -0
- package/dist/esm/src/icons/sine-graph.d.ts +13 -0
- package/dist/esm/src/icons/skip-arrow.d.ts +13 -0
- package/dist/esm/src/icons/spinner.d.ts +13 -0
- package/dist/esm/src/icons/square-check.d.ts +13 -0
- package/dist/esm/src/icons/square-t.d.ts +13 -0
- package/dist/esm/src/icons/square-x.d.ts +13 -0
- package/dist/esm/src/icons/stop-square.d.ts +13 -0
- package/dist/esm/src/icons/systemlink.d.ts +13 -0
- package/dist/esm/src/icons/t.d.ts +13 -0
- package/dist/esm/src/icons/tablet.d.ts +13 -0
- package/dist/esm/src/icons/tag.d.ts +13 -0
- package/dist/esm/src/icons/tags.d.ts +13 -0
- package/dist/esm/src/icons/target-crosshairs-progress.d.ts +13 -0
- package/dist/esm/src/icons/target-crosshairs.d.ts +13 -0
- package/dist/esm/src/icons/three-circles-ascending-container.d.ts +13 -0
- package/dist/esm/src/icons/three-dots-line.d.ts +13 -0
- package/dist/esm/src/icons/three-vertical-lines.d.ts +13 -0
- package/dist/esm/src/icons/thumbtack.d.ts +13 -0
- package/dist/esm/src/icons/tile-size.d.ts +13 -0
- package/dist/esm/src/icons/times.d.ts +13 -0
- package/dist/esm/src/icons/trash.d.ts +13 -0
- package/dist/esm/src/icons/triangle-filled.d.ts +13 -0
- package/dist/esm/src/icons/triangle-two-lines-horizontal.d.ts +13 -0
- package/dist/esm/src/icons/triangle.d.ts +13 -0
- package/dist/esm/src/icons/true-false-rectangle.d.ts +13 -0
- package/dist/esm/src/icons/two-squares-in-brackets.d.ts +13 -0
- package/dist/esm/src/icons/two-triangles-between-lines.d.ts +13 -0
- package/dist/esm/src/icons/unlink.d.ts +13 -0
- package/dist/esm/src/icons/unlock.d.ts +13 -0
- package/dist/esm/src/icons/up-right-from-square.d.ts +13 -0
- package/dist/esm/src/icons/upload.d.ts +13 -0
- package/dist/esm/src/icons/user.d.ts +13 -0
- package/dist/esm/src/icons/watch.d.ts +13 -0
- package/dist/esm/src/icons/waveform.d.ts +13 -0
- package/dist/esm/src/icons/webvi-custom.d.ts +13 -0
- package/dist/esm/src/icons/webvi-host.d.ts +13 -0
- package/dist/esm/src/icons/window-code.d.ts +13 -0
- package/dist/esm/src/icons/window-text.d.ts +13 -0
- package/dist/esm/src/icons/wrench-hammer.d.ts +13 -0
- package/dist/esm/src/icons/xmark-check.d.ts +13 -0
- package/dist/esm/src/icons/xmark.d.ts +13 -0
- package/dist/esm/src/label-provider/base/index.d.ts +19 -0
- package/dist/esm/src/label-provider/core/index.d.ts +41 -0
- package/dist/esm/src/label-provider/core/label-token-defaults.d.ts +6 -0
- package/dist/esm/src/label-provider/core/label-tokens.d.ts +9 -0
- package/dist/esm/src/label-provider/rich-text/index.d.ts +29 -0
- package/dist/esm/src/label-provider/rich-text/label-token-defaults.d.ts +6 -0
- package/dist/esm/src/label-provider/rich-text/label-tokens.d.ts +5 -0
- package/dist/esm/src/label-provider/table/index.d.ts +65 -0
- package/dist/esm/src/label-provider/table/label-token-defaults.d.ts +6 -0
- package/dist/esm/src/label-provider/table/label-tokens.d.ts +17 -0
- package/dist/esm/src/list-option/index.d.ts +37 -0
- package/dist/esm/src/list-option/styles.d.ts +1 -0
- package/dist/esm/src/list-option/template.d.ts +8 -0
- package/dist/esm/src/listbox/index.d.ts +12 -0
- package/dist/esm/src/listbox/styles.d.ts +1 -0
- package/dist/esm/src/mapping/base/index.d.ts +10 -0
- package/dist/esm/src/mapping/base/template.d.ts +1 -0
- package/dist/esm/src/mapping/base/types.d.ts +3 -0
- package/dist/esm/src/mapping/icon/index.d.ts +27 -0
- package/dist/esm/src/mapping/spinner/index.d.ts +16 -0
- package/dist/esm/src/mapping/text/index.d.ts +16 -0
- package/dist/esm/src/mapping/user/index.d.ts +15 -0
- package/dist/esm/src/menu/index.d.ts +13 -0
- package/dist/esm/src/menu/styles.d.ts +1 -0
- package/dist/esm/src/menu-button/index.d.ts +54 -0
- package/dist/esm/src/menu-button/styles.d.ts +1 -0
- package/dist/esm/src/menu-button/template.d.ts +2 -0
- package/dist/esm/src/menu-button/types.d.ts +22 -0
- package/dist/esm/src/menu-item/index.d.ts +12 -0
- package/dist/esm/src/menu-item/styles.d.ts +1 -0
- package/dist/esm/src/number-field/index.d.ts +25 -0
- package/dist/esm/src/number-field/styles.d.ts +1 -0
- package/dist/esm/src/number-field/types.d.ts +9 -0
- package/dist/esm/src/patterns/button/styles.d.ts +2 -0
- package/dist/esm/src/patterns/button/types.d.ts +49 -0
- package/dist/esm/src/patterns/dialog/types.d.ts +6 -0
- package/dist/esm/src/patterns/dropdown/styles.d.ts +1 -0
- package/dist/esm/src/patterns/dropdown/types.d.ts +33 -0
- package/dist/esm/src/patterns/error/styles.d.ts +1 -0
- package/dist/esm/src/patterns/error/template.d.ts +2 -0
- package/dist/esm/src/patterns/error/types.d.ts +10 -0
- package/dist/esm/src/patterns/expand-collapse/styles.d.ts +1 -0
- package/dist/esm/src/radio/index.d.ts +12 -0
- package/dist/esm/src/radio/styles.d.ts +1 -0
- package/dist/esm/src/radio-group/index.d.ts +14 -0
- package/dist/esm/src/radio-group/styles.d.ts +1 -0
- package/dist/esm/src/rich-text/base/index.d.ts +49 -0
- package/dist/esm/src/rich-text/base/types.d.ts +5 -0
- package/dist/esm/src/rich-text/editor/index.d.ts +270 -0
- package/dist/esm/src/rich-text/editor/models/create-tiptap-editor.d.ts +5 -0
- package/dist/esm/src/rich-text/editor/styles.d.ts +1 -0
- package/dist/esm/src/rich-text/editor/template.d.ts +2 -0
- package/dist/esm/src/rich-text/editor/testing/rich-text-editor-utils.d.ts +6 -0
- package/dist/esm/src/rich-text/editor/testing/rich-text-editor.pageobject.d.ts +75 -0
- package/dist/esm/src/rich-text/editor/testing/types.d.ts +31 -0
- package/dist/esm/src/rich-text/editor/types.d.ts +27 -0
- package/dist/esm/src/rich-text/mention-listbox/index.d.ts +116 -0
- package/dist/esm/src/rich-text/mention-listbox/styles.d.ts +1 -0
- package/dist/esm/src/rich-text/mention-listbox/template.d.ts +2 -0
- package/dist/esm/src/rich-text/mention-listbox/types.d.ts +7 -0
- package/dist/esm/src/rich-text/models/configuration.d.ts +10 -0
- package/dist/esm/src/rich-text/models/editor-configuration.d.ts +10 -0
- package/dist/esm/src/rich-text/models/markdown-parser-mention-configuration.d.ts +14 -0
- package/dist/esm/src/rich-text/models/markdown-parser.d.ts +30 -0
- package/dist/esm/src/rich-text/models/markdown-serializer.d.ts +10 -0
- package/dist/esm/src/rich-text/models/mention-extension-configuration.d.ts +19 -0
- package/dist/esm/src/rich-text/models/rich-text-tracker.d.ts +19 -0
- package/dist/esm/src/rich-text/models/rich-text-validator.d.ts +15 -0
- package/dist/esm/src/rich-text/models/testing/markdown-parser-utils.d.ts +5 -0
- package/dist/esm/src/rich-text/viewer/index.d.ts +37 -0
- package/dist/esm/src/rich-text/viewer/styles.d.ts +1 -0
- package/dist/esm/src/rich-text/viewer/template.d.ts +2 -0
- package/dist/esm/src/rich-text/viewer/testing/rich-text-viewer.pageobject.d.ts +27 -0
- package/dist/esm/src/rich-text-mention/base/index.d.ts +56 -0
- package/dist/esm/src/rich-text-mention/base/models/mapping-config.d.ts +8 -0
- package/dist/esm/src/rich-text-mention/base/models/mention-internals.d.ts +45 -0
- package/dist/esm/src/rich-text-mention/base/models/mention-validator.d.ts +33 -0
- package/dist/esm/src/rich-text-mention/base/template.d.ts +2 -0
- package/dist/esm/src/rich-text-mention/base/types.d.ts +10 -0
- package/dist/esm/src/rich-text-mention/base/view/index.d.ts +20 -0
- package/dist/esm/src/rich-text-mention/users/index.d.ts +21 -0
- package/dist/esm/src/rich-text-mention/users/models/mapping-user-config.d.ts +6 -0
- package/dist/esm/src/rich-text-mention/users/models/rich-text-mention-users-validator.d.ts +16 -0
- package/dist/esm/src/rich-text-mention/users/view/index.d.ts +12 -0
- package/dist/esm/src/rich-text-mention/users/view/styles.d.ts +1 -0
- package/dist/esm/src/rich-text-mention/users/view/template.d.ts +2 -0
- package/dist/esm/src/rich-text-mention/users/view/testing/rich-text-mention-users-view.pageobject.d.ts +9 -0
- package/dist/esm/src/select/index.d.ts +281 -0
- package/dist/esm/src/select/models/select-form-associated.d.ts +16 -0
- package/dist/esm/src/select/styles.d.ts +1 -0
- package/dist/esm/src/select/template.d.ts +4 -0
- package/dist/esm/src/select/testing/select.pageobject.d.ts +39 -0
- package/dist/esm/src/select/types.d.ts +14 -0
- package/dist/esm/src/spinner/index.d.ts +20 -0
- package/dist/esm/src/spinner/styles.d.ts +1 -0
- package/dist/esm/src/spinner/template.d.ts +2 -0
- package/dist/esm/src/spinner/types.d.ts +9 -0
- package/dist/esm/src/switch/index.d.ts +12 -0
- package/dist/esm/src/switch/styles.d.ts +1 -0
- package/dist/esm/src/switch/template.d.ts +2 -0
- package/dist/esm/src/tab/index.d.ts +12 -0
- package/dist/esm/src/tab/styles.d.ts +1 -0
- package/dist/esm/src/tab-panel/index.d.ts +12 -0
- package/dist/esm/src/tab-panel/styles.d.ts +1 -0
- package/dist/esm/src/table/components/cell/index.d.ts +30 -0
- package/dist/esm/src/table/components/cell/styles.d.ts +1 -0
- package/dist/esm/src/table/components/cell/template.d.ts +2 -0
- package/dist/esm/src/table/components/group-row/index.d.ts +42 -0
- package/dist/esm/src/table/components/group-row/styles.d.ts +1 -0
- package/dist/esm/src/table/components/group-row/template.d.ts +2 -0
- package/dist/esm/src/table/components/header/index.d.ts +20 -0
- package/dist/esm/src/table/components/header/styles.d.ts +1 -0
- package/dist/esm/src/table/components/header/template.d.ts +2 -0
- package/dist/esm/src/table/components/row/index.d.ts +89 -0
- package/dist/esm/src/table/components/row/styles.d.ts +1 -0
- package/dist/esm/src/table/components/row/template.d.ts +2 -0
- package/dist/esm/src/table/index.d.ts +225 -0
- package/dist/esm/src/table/models/array-to-tree.d.ts +17 -0
- package/dist/esm/src/table/models/data-hierarchy-manager.d.ts +15 -0
- package/dist/esm/src/table/models/expansion-manager.d.ts +33 -0
- package/dist/esm/src/table/models/interactive-selection-manager.d.ts +18 -0
- package/dist/esm/src/table/models/selection-managers/disabled-selection-manager.d.ts +11 -0
- package/dist/esm/src/table/models/selection-managers/multi-selection-manager.d.ts +20 -0
- package/dist/esm/src/table/models/selection-managers/selection-manager-base.d.ts +19 -0
- package/dist/esm/src/table/models/selection-managers/single-selection-manager.d.ts +11 -0
- package/dist/esm/src/table/models/sort-operations.d.ts +7 -0
- package/dist/esm/src/table/models/table-layout-manager.d.ts +42 -0
- package/dist/esm/src/table/models/table-update-tracker.d.ts +33 -0
- package/dist/esm/src/table/models/table-validator.d.ts +32 -0
- package/dist/esm/src/table/models/virtualizer.d.ts +27 -0
- package/dist/esm/src/table/styles.d.ts +1 -0
- package/dist/esm/src/table/template.d.ts +2 -0
- package/dist/esm/src/table/testing/table.pageobject.d.ts +112 -0
- package/dist/esm/src/table/types.d.ts +186 -0
- package/dist/esm/src/table-column/anchor/cell-view/index.d.ts +22 -0
- package/dist/esm/src/table-column/anchor/cell-view/styles.d.ts +1 -0
- package/dist/esm/src/table-column/anchor/cell-view/template.d.ts +2 -0
- package/dist/esm/src/table-column/anchor/index.d.ts +77 -0
- package/dist/esm/src/table-column/base/cell-view/index.d.ts +22 -0
- package/dist/esm/src/table-column/base/cell-view/template.d.ts +3 -0
- package/dist/esm/src/table-column/base/group-header-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/base/group-header-view/template.d.ts +3 -0
- package/dist/esm/src/table-column/base/index.d.ts +35 -0
- package/dist/esm/src/table-column/base/models/column-internals.d.ts +124 -0
- package/dist/esm/src/table-column/base/models/column-validator.d.ts +19 -0
- package/dist/esm/src/table-column/base/styles.d.ts +1 -0
- package/dist/esm/src/table-column/base/template.d.ts +2 -0
- package/dist/esm/src/table-column/base/types.d.ts +38 -0
- package/dist/esm/src/table-column/date-text/cell-view/index.d.ts +14 -0
- package/dist/esm/src/table-column/date-text/group-header-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/date-text/index.d.ts +73 -0
- package/dist/esm/src/table-column/date-text/models/format-helper.d.ts +2 -0
- package/dist/esm/src/table-column/date-text/models/table-column-date-text-validator.d.ts +11 -0
- package/dist/esm/src/table-column/date-text/testing/table-column-date-text.pageobject.d.ts +8 -0
- package/dist/esm/src/table-column/date-text/types.d.ts +23 -0
- package/dist/esm/src/table-column/duration-text/cell-view/index.d.ts +14 -0
- package/dist/esm/src/table-column/duration-text/group-header-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/duration-text/index.d.ts +26 -0
- package/dist/esm/src/table-column/duration-text/models/duration-formatter.d.ts +14 -0
- package/dist/esm/src/table-column/duration-text/testing/table-column-duration-text.pageobject.d.ts +8 -0
- package/dist/esm/src/table-column/enum-base/index.d.ts +50 -0
- package/dist/esm/src/table-column/enum-base/models/mapping-config.d.ts +7 -0
- package/dist/esm/src/table-column/enum-base/models/mapping-icon-config.d.ts +15 -0
- package/dist/esm/src/table-column/enum-base/models/mapping-key-resolver.d.ts +8 -0
- package/dist/esm/src/table-column/enum-base/models/mapping-spinner-config.d.ts +7 -0
- package/dist/esm/src/table-column/enum-base/models/mapping-text-config.d.ts +6 -0
- package/dist/esm/src/table-column/enum-base/models/table-column-enum-base-validator.d.ts +15 -0
- package/dist/esm/src/table-column/enum-base/styles.d.ts +1 -0
- package/dist/esm/src/table-column/enum-base/template.d.ts +3 -0
- package/dist/esm/src/table-column/enum-base/types.d.ts +10 -0
- package/dist/esm/src/table-column/enum-text/cell-view/index.d.ts +14 -0
- package/dist/esm/src/table-column/enum-text/group-header-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/enum-text/index.d.ts +43 -0
- package/dist/esm/src/table-column/enum-text/models/table-column-enum-text-validator.d.ts +16 -0
- package/dist/esm/src/table-column/icon/cell-view/index.d.ts +23 -0
- package/dist/esm/src/table-column/icon/cell-view/template.d.ts +2 -0
- package/dist/esm/src/table-column/icon/group-header-view/index.d.ts +21 -0
- package/dist/esm/src/table-column/icon/group-header-view/styles.d.ts +1 -0
- package/dist/esm/src/table-column/icon/group-header-view/template.d.ts +2 -0
- package/dist/esm/src/table-column/icon/index.d.ts +43 -0
- package/dist/esm/src/table-column/icon/models/table-column-icon-validator.d.ts +19 -0
- package/dist/esm/src/table-column/mixins/fractional-width-column.d.ts +11 -0
- package/dist/esm/src/table-column/mixins/groupable-column.d.ts +11 -0
- package/dist/esm/src/table-column/mixins/placeholder.d.ts +9 -0
- package/dist/esm/src/table-column/number-text/cell-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/number-text/group-header-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/number-text/index.d.ts +53 -0
- package/dist/esm/src/table-column/number-text/models/number-text-unit-format.d.ts +23 -0
- package/dist/esm/src/table-column/number-text/models/table-column-number-text-validator.d.ts +16 -0
- package/dist/esm/src/table-column/number-text/template.d.ts +2 -0
- package/dist/esm/src/table-column/number-text/types.d.ts +18 -0
- package/dist/esm/src/table-column/testing/table-column-formatted-text.pageobject.d.ts +14 -0
- package/dist/esm/src/table-column/text/cell-view/index.d.ts +14 -0
- package/dist/esm/src/table-column/text/group-header-view/index.d.ts +15 -0
- package/dist/esm/src/table-column/text/index.d.ts +20 -0
- package/dist/esm/src/table-column/text-base/cell-view/index.d.ts +37 -0
- package/dist/esm/src/table-column/text-base/cell-view/styles.d.ts +1 -0
- package/dist/esm/src/table-column/text-base/cell-view/template.d.ts +2 -0
- package/dist/esm/src/table-column/text-base/cell-view/types.d.ts +8 -0
- package/dist/esm/src/table-column/text-base/group-header-view/index.d.ts +29 -0
- package/dist/esm/src/table-column/text-base/group-header-view/styles.d.ts +1 -0
- package/dist/esm/src/table-column/text-base/group-header-view/template.d.ts +2 -0
- package/dist/esm/src/table-column/text-base/index.d.ts +25 -0
- package/dist/esm/src/tabs/index.d.ts +13 -0
- package/dist/esm/src/tabs/styles.d.ts +1 -0
- package/dist/esm/src/tabs-toolbar/index.d.ts +12 -0
- package/dist/esm/src/tabs-toolbar/styles.d.ts +1 -0
- package/dist/esm/src/tabs-toolbar/template.d.ts +2 -0
- package/dist/esm/src/testing/async-helpers.d.ts +10 -0
- package/dist/esm/src/text-area/index.d.ts +68 -0
- package/dist/esm/src/text-area/styles.d.ts +1 -0
- package/dist/esm/src/text-area/template.d.ts +4 -0
- package/dist/esm/src/text-area/types.d.ts +7 -0
- package/dist/esm/src/text-field/index.d.ts +32 -0
- package/dist/esm/src/text-field/styles.d.ts +1 -0
- package/dist/esm/src/text-field/types.d.ts +15 -0
- package/dist/esm/src/theme-provider/design-token-comments.d.ts +6 -0
- package/dist/esm/src/theme-provider/design-token-names.d.ts +19 -0
- package/dist/esm/src/theme-provider/design-tokens-static.d.ts +10 -0
- package/dist/esm/src/theme-provider/design-tokens.d.ts +83 -0
- package/dist/esm/src/theme-provider/index.d.ts +30 -0
- package/dist/esm/src/theme-provider/styles.d.ts +1 -0
- package/dist/esm/src/theme-provider/template.d.ts +2 -0
- package/dist/esm/src/theme-provider/types.d.ts +6 -0
- package/dist/esm/src/toggle-button/index.d.ts +36 -0
- package/dist/esm/src/toggle-button/styles.d.ts +1 -0
- package/dist/esm/src/toggle-button/template.d.ts +4 -0
- package/dist/esm/src/toggle-button/types.d.ts +5 -0
- package/dist/esm/src/toolbar/index.d.ts +12 -0
- package/dist/esm/src/toolbar/styles.d.ts +1 -0
- package/dist/esm/src/tooltip/index.d.ts +20 -0
- package/dist/esm/src/tooltip/styles.d.ts +1 -0
- package/dist/esm/src/tooltip/template.d.ts +2 -0
- package/dist/esm/src/tooltip/types.d.ts +10 -0
- package/dist/esm/src/tree-item/index.d.ts +23 -0
- package/dist/esm/src/tree-item/styles.d.ts +1 -0
- package/dist/esm/src/tree-view/index.d.ts +29 -0
- package/dist/esm/src/tree-view/styles.d.ts +1 -0
- package/dist/esm/src/tree-view/template.d.ts +2 -0
- package/dist/esm/src/tree-view/types.d.ts +8 -0
- package/dist/esm/src/unit/base/template.d.ts +1 -0
- package/dist/esm/src/unit/base/unit.d.ts +9 -0
- package/dist/esm/src/unit/byte/index.d.ts +19 -0
- package/dist/esm/src/unit/volt/index.d.ts +13 -0
- package/dist/esm/src/utilities/directive/overflow.d.ts +36 -0
- package/dist/esm/src/utilities/models/converter.d.ts +2 -0
- package/dist/esm/src/utilities/models/document-element-lang.d.ts +9 -0
- package/dist/esm/src/utilities/models/string-normalizers.d.ts +5 -0
- package/dist/esm/src/utilities/models/tracker.d.ts +21 -0
- package/dist/esm/src/utilities/models/update-tracker.d.ts +7 -0
- package/dist/esm/src/utilities/models/validator.d.ts +11 -0
- package/dist/esm/src/utilities/style/accessibly-hidden.d.ts +6 -0
- package/dist/esm/src/utilities/style/appearance.d.ts +11 -0
- package/dist/esm/src/utilities/style/colors.d.ts +8 -0
- package/dist/esm/src/utilities/style/direction.d.ts +34 -0
- package/dist/esm/src/utilities/style/focus.d.ts +11 -0
- package/dist/esm/src/utilities/style/multivalue-property-stylesheet-behavior.d.ts +37 -0
- package/dist/esm/src/utilities/style/prefers-reduced-motion.d.ts +4 -0
- package/dist/esm/src/utilities/style/theme.d.ts +37 -0
- package/dist/esm/src/utilities/style/types.d.ts +5 -0
- package/dist/esm/src/utilities/style/user-select.d.ts +5 -0
- package/dist/esm/src/utilities/unit-format/decimal-unit-format.d.ts +19 -0
- package/dist/esm/src/utilities/unit-format/default-unit-format.d.ts +22 -0
- package/dist/esm/src/utilities/unit-format/scaled-unit/scaled-unit.d.ts +16 -0
- package/dist/esm/src/utilities/unit-format/scaled-unit-format/intl-number-format-scaled-unit-format.d.ts +11 -0
- package/dist/esm/src/utilities/unit-format/scaled-unit-format/manually-translated-scaled-unit-format.d.ts +43 -0
- package/dist/esm/src/utilities/unit-format/scaled-unit-format/scaled-unit-format.d.ts +10 -0
- package/dist/esm/src/utilities/unit-format/unit-format.d.ts +16 -0
- package/dist/esm/src/utilities/unit-format/unit-scale/byte-1024-unit-scale.d.ts +9 -0
- package/dist/esm/src/utilities/unit-format/unit-scale/byte-unit-scale.d.ts +9 -0
- package/dist/esm/src/utilities/unit-format/unit-scale/passthrough-unit-scale.d.ts +9 -0
- package/dist/esm/src/utilities/unit-format/unit-scale/unit-scale.d.ts +15 -0
- package/dist/esm/src/utilities/unit-format/unit-scale/utilities/metrix-prefixes.d.ts +1 -0
- package/dist/esm/src/utilities/unit-format/unit-scale/volt-unit-scale.d.ts +9 -0
- package/dist/esm/src/utilities/wait-until-custom-elements-defined-async.d.ts +1 -0
- package/dist/esm/src/wafer-map/index.d.ts +146 -0
- package/dist/esm/src/wafer-map/modules/computations.d.ts +39 -0
- package/dist/esm/src/wafer-map/modules/create-matrix-renderer.d.ts +10 -0
- package/dist/esm/src/wafer-map/modules/data-manager.d.ts +30 -0
- package/dist/esm/src/wafer-map/modules/experimental/computations.d.ts +31 -0
- package/dist/esm/src/wafer-map/modules/experimental/data-manager.d.ts +27 -0
- package/dist/esm/src/wafer-map/modules/experimental/hover-handler.d.ts +23 -0
- package/dist/esm/src/wafer-map/modules/experimental/worker-renderer.d.ts +12 -0
- package/dist/esm/src/wafer-map/modules/hover-handler.d.ts +20 -0
- package/dist/esm/src/wafer-map/modules/prerendering.d.ts +30 -0
- package/dist/esm/src/wafer-map/modules/rendering.d.ts +19 -0
- package/dist/esm/src/wafer-map/modules/wafer-map-update-tracker.d.ts +25 -0
- package/dist/esm/src/wafer-map/modules/wafer-map-validator.d.ts +16 -0
- package/dist/esm/src/wafer-map/modules/zoom-handler.d.ts +20 -0
- package/dist/esm/src/wafer-map/styles.d.ts +1 -0
- package/dist/esm/src/wafer-map/template.d.ts +2 -0
- package/dist/esm/src/wafer-map/types.d.ts +73 -0
- package/dist/esm/src/wafer-map/workers/matrix-renderer.d.ts +1 -0
- package/dist/esm/table-column/anchor/cell-view/index.d.ts +2 -0
- package/dist/esm/table-column/anchor/cell-view/index.js +12 -0
- package/dist/esm/table-column/anchor/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/anchor/cell-view/styles.js +6 -1
- package/dist/esm/table-column/anchor/cell-view/styles.js.map +1 -1
- package/dist/esm/table-column/anchor/cell-view/template.js +1 -0
- package/dist/esm/table-column/anchor/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/anchor/index.d.ts +5 -0
- package/dist/esm/table-column/anchor/index.js +7 -2
- package/dist/esm/table-column/anchor/index.js.map +1 -1
- package/dist/esm/table-column/date-text/cell-view/index.d.ts +1 -3
- package/dist/esm/table-column/date-text/cell-view/index.js +0 -6
- package/dist/esm/table-column/date-text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/date-text/index.d.ts +3 -1
- package/dist/esm/table-column/date-text/index.js +5 -1
- package/dist/esm/table-column/date-text/index.js.map +1 -1
- package/dist/esm/table-column/duration-text/cell-view/index.d.ts +1 -3
- package/dist/esm/table-column/duration-text/cell-view/index.js +0 -6
- package/dist/esm/table-column/duration-text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/duration-text/index.d.ts +3 -1
- package/dist/esm/table-column/duration-text/index.js +8 -9
- package/dist/esm/table-column/duration-text/index.js.map +1 -1
- package/dist/esm/table-column/enum-base/index.d.ts +2 -1
- package/dist/esm/table-column/enum-base/index.js.map +1 -1
- package/dist/esm/table-column/enum-text/cell-view/index.d.ts +1 -3
- package/dist/esm/table-column/enum-text/cell-view/index.js +0 -6
- package/dist/esm/table-column/enum-text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/mixins/placeholder.d.ts +9 -0
- package/dist/esm/table-column/mixins/placeholder.js +16 -0
- package/dist/esm/table-column/mixins/placeholder.js.map +1 -0
- package/dist/esm/table-column/number-text/cell-view/index.d.ts +2 -3
- package/dist/esm/table-column/number-text/cell-view/index.js +1 -4
- package/dist/esm/table-column/number-text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/number-text/index.d.ts +3 -1
- package/dist/esm/table-column/number-text/index.js +5 -1
- package/dist/esm/table-column/number-text/index.js.map +1 -1
- package/dist/esm/table-column/text/cell-view/index.d.ts +1 -1
- package/dist/esm/table-column/text/cell-view/index.js +1 -1
- package/dist/esm/table-column/text/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/text/index.d.ts +3 -1
- package/dist/esm/table-column/text/index.js +5 -0
- package/dist/esm/table-column/text/index.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/index.d.ts +20 -1
- package/dist/esm/table-column/text-base/cell-view/index.js +34 -0
- package/dist/esm/table-column/text-base/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/styles.js +6 -1
- package/dist/esm/table-column/text-base/cell-view/styles.js.map +1 -1
- package/dist/esm/table-column/text-base/cell-view/template.d.ts +1 -1
- package/dist/esm/table-column/text-base/cell-view/template.js +5 -3
- package/dist/esm/table-column/text-base/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/text-base/index.d.ts +3 -0
- package/dist/esm/table-column/text-base/index.js +2 -1
- package/dist/esm/table-column/text-base/index.js.map +1 -1
- package/package.json +17 -14
|
@@ -10990,7 +10990,7 @@ const BR=yt`
|
|
|
10990
10990
|
>
|
|
10991
10991
|
<slot ${Ft("contentSlot")}></slot>
|
|
10992
10992
|
</span>`
|
|
10993
|
-
function UR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return st({attribute:"fractional-width",converter:ot})(e.prototype,"fractionalWidth"),st({attribute:"min-pixel-width",converter:ot})(e.prototype,"minPixelWidth"),e}function jR(t){class e extends t{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return st({attribute:"grouping-disabled",mode:"boolean"})(e.prototype,"groupingDisabled"),st({attribute:"group-index",converter:ot})(e.prototype,"groupIndex"),e}const
|
|
10993
|
+
function UR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return st({attribute:"fractional-width",converter:ot})(e.prototype,"fractionalWidth"),st({attribute:"min-pixel-width",converter:ot})(e.prototype,"minPixelWidth"),e}function jR(t){class e extends t{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return st({attribute:"grouping-disabled",mode:"boolean"})(e.prototype,"groupingDisabled"),st({attribute:"group-index",converter:ot})(e.prototype,"groupIndex"),e}function WR(t){class e extends t{}return st({attribute:"placeholder"})(e.prototype,"placeholder"),e}const ZR=yt`
|
|
10994
10994
|
:host {
|
|
10995
10995
|
width: fit-content;
|
|
10996
10996
|
max-width: 100%;
|
|
@@ -11011,9 +11011,15 @@ function UR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.
|
|
|
11011
11011
|
overflow: hidden;
|
|
11012
11012
|
text-overflow: ellipsis;
|
|
11013
11013
|
}
|
|
11014
|
-
|
|
11014
|
+
|
|
11015
|
+
:host(.placeholder) span {
|
|
11016
|
+
font: ${bc};
|
|
11017
|
+
color: ${yc};
|
|
11018
|
+
}
|
|
11019
|
+
`,GR=Z`
|
|
11015
11020
|
<template
|
|
11016
11021
|
@click="${(t,e)=>("string"==typeof t.cellRecord?.href&&e.event.stopPropagation(),!0)}"
|
|
11022
|
+
class="${t=>t.isPlaceholder?"placeholder":""}"
|
|
11017
11023
|
>
|
|
11018
11024
|
${zt((t=>"string"==typeof t.cellRecord?.href),Z`
|
|
11019
11025
|
<${Xd}
|
|
@@ -11042,18 +11048,19 @@ function UR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.
|
|
|
11042
11048
|
</span>`)}
|
|
11043
11049
|
</template>
|
|
11044
11050
|
`
|
|
11045
|
-
class
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11051
|
+
class KR extends LO{constructor(){super(...arguments),this.hasOverflow=!1,this.isPlaceholder=!1}get text(){const t=this.cellRecord?.label??this.cellRecord?.href
|
|
11052
|
+
return null==t&&this.columnConfig?.placeholder?(this.isPlaceholder=!0,this.columnConfig.placeholder):(this.isPlaceholder=!1,"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:"")}focusedRecycleCallback(){this.anchor?.blur()}}t([g],KR.prototype,"hasOverflow",void 0),t([g],KR.prototype,"isPlaceholder",void 0),t([v],KR.prototype,"text",null)
|
|
11053
|
+
const JR=KR.compose({baseName:"table-column-anchor-cell-view",template:GR,styles:ZR})
|
|
11054
|
+
bi.getOrCreate().withPrefix("nimble").register(JR())
|
|
11055
|
+
class XR extends NO{constructor(){super(...arguments),this.hasOverflow=!1,this.text=fv.getValueFor(this),this.noValuePlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}},this.emptyPlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}}}connectedCallback(){super.connectedCallback(),fv.subscribe(this.noValuePlaceholderLabelSubscriber,this),mv.subscribe(this.emptyPlaceholderLabelSubscriber,this),this.applyPlaceholderTextIfNeeded()}disconnectedCallback(){super.disconnectedCallback(),fv.unsubscribe(this.noValuePlaceholderLabelSubscriber),mv.unsubscribe(this.emptyPlaceholderLabelSubscriber)}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}groupHeaderValueChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){return null===this.groupHeaderValue||void 0===this.groupHeaderValue?(this.text=fv.getValueFor(this),!0):""===this.groupHeaderValue&&(this.text=mv.getValueFor(this),!0)}}t([g],XR.prototype,"hasOverflow",void 0),t([g],XR.prototype,"text",void 0)
|
|
11056
|
+
const YR=Z`
|
|
11050
11057
|
<span
|
|
11051
11058
|
${lg("hasOverflow")}
|
|
11052
11059
|
title="${t=>t.hasOverflow&&t.text?t.text:null}"
|
|
11053
11060
|
>
|
|
11054
11061
|
${t=>t.text}
|
|
11055
11062
|
</span>
|
|
11056
|
-
`,
|
|
11063
|
+
`,QR=yt`
|
|
11057
11064
|
span {
|
|
11058
11065
|
font: ${Mc};
|
|
11059
11066
|
color: ${_c};
|
|
@@ -11062,19 +11069,22 @@ const XR=Z`
|
|
|
11062
11069
|
text-overflow: ellipsis;
|
|
11063
11070
|
}
|
|
11064
11071
|
`
|
|
11065
|
-
const
|
|
11066
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11067
|
-
const
|
|
11068
|
-
class
|
|
11069
|
-
const nF
|
|
11070
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11071
|
-
class
|
|
11072
|
-
try{return t.format(e)}catch(t){return""}}t([st({attribute:"field-name"})],
|
|
11073
|
-
const
|
|
11074
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11075
|
-
const
|
|
11072
|
+
const tF=class extends XR{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:YR,styles:QR})
|
|
11073
|
+
bi.getOrCreate().withPrefix("nimble").register(tF())
|
|
11074
|
+
const eF="nimble-table-column-text-group-header-view"
|
|
11075
|
+
class nF extends(jR(UR(WR(BO)))){constructor(){super(...arguments),this.underlineHidden=!1}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:eF,delegatedEvents:["click"],sortOperation:FO}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download,placeholder:this.placeholder}}}t([st({attribute:"label-field-name"})],nF.prototype,"labelFieldName",void 0),t([st({attribute:"href-field-name"})],nF.prototype,"hrefFieldName",void 0),t([st],nF.prototype,"appearance",void 0),t([st({attribute:"underline-hidden",mode:"boolean"})],nF.prototype,"underlineHidden",void 0),t([st],nF.prototype,"hreflang",void 0),t([st],nF.prototype,"ping",void 0),t([st],nF.prototype,"referrerpolicy",void 0),t([st],nF.prototype,"rel",void 0),t([st],nF.prototype,"target",void 0),t([st],nF.prototype,"type",void 0),t([st],nF.prototype,"download",void 0)
|
|
11076
|
+
const iF=nF.compose({baseName:"table-column-anchor",template:qR,styles:BR})
|
|
11077
|
+
bi.getOrCreate().withPrefix("nimble").register(iF())
|
|
11078
|
+
class oF extends(jR(UR(WR(BO)))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function rF(t,e){if("number"!=typeof e)return""
|
|
11079
|
+
try{return t.format(e)}catch(t){return""}}t([st({attribute:"field-name"})],oF.prototype,"fieldName",void 0)
|
|
11080
|
+
const sF=class extends XR{updateText(){this.columnConfig?this.text=rF(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:YR,styles:QR})
|
|
11081
|
+
bi.getOrCreate().withPrefix("nimble").register(sF())
|
|
11082
|
+
const aF="left",lF="right",cF=Z`
|
|
11076
11083
|
<template
|
|
11077
|
-
class="
|
|
11084
|
+
class="
|
|
11085
|
+
${t=>t.alignment===lF?"right-align":""}
|
|
11086
|
+
${t=>t.isPlaceholder?"placeholder":""}
|
|
11087
|
+
"
|
|
11078
11088
|
>
|
|
11079
11089
|
<span
|
|
11080
11090
|
${lg("hasOverflow")}
|
|
@@ -11083,7 +11093,7 @@ const sF="left",aF="right",lF=Z`
|
|
|
11083
11093
|
${t=>t.text}
|
|
11084
11094
|
</span>
|
|
11085
11095
|
</template>
|
|
11086
|
-
`,
|
|
11096
|
+
`,dF=yt`
|
|
11087
11097
|
:host(.right-align) {
|
|
11088
11098
|
margin-left: auto;
|
|
11089
11099
|
}
|
|
@@ -11095,23 +11105,29 @@ const sF="left",aF="right",lF=Z`
|
|
|
11095
11105
|
overflow: hidden;
|
|
11096
11106
|
text-overflow: ellipsis;
|
|
11097
11107
|
}
|
|
11108
|
+
|
|
11109
|
+
:host(.placeholder) span {
|
|
11110
|
+
font: ${bc};
|
|
11111
|
+
color: ${yc};
|
|
11112
|
+
}
|
|
11098
11113
|
`
|
|
11099
|
-
class
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
class
|
|
11105
|
-
class
|
|
11106
|
-
|
|
11114
|
+
class hF extends LO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=aF,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const t=this.cellRecord?.value,e=this.columnConfig?.placeholder
|
|
11115
|
+
return"string"==typeof e&&null==t?(this.text=e,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}t([g],hF.prototype,"hasOverflow",void 0),t([g],hF.prototype,"text",void 0),t([g],hF.prototype,"alignment",void 0),t([g],hF.prototype,"isPlaceholder",void 0)
|
|
11116
|
+
const uF=class extends hF{updateText(){this.columnConfig?this.text=rF(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:cF,styles:dF})
|
|
11117
|
+
bi.getOrCreate().withPrefix("nimble").register(uF())
|
|
11118
|
+
const pF=void 0
|
|
11119
|
+
class fF extends iI{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class mF extends fF{constructor(t,e){super(e),this.columnInternals=t}getValidity(){return this.getValidationFlags()}setConditionValue(t,e){e?this.track(t):this.untrack(t),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const gF=["invalidCustomOptionsCombination"]
|
|
11120
|
+
class vF extends mF{constructor(t){super(t,gF)}setCustomOptionsValidity(t){this.setConditionValue("invalidCustomOptionsCombination",!t)}}const bF={toView:t=>"boolean"==typeof t?t.toString():null,fromView:t=>"true"===t||!0===t||"false"!==t&&!1!==t&&void 0}
|
|
11121
|
+
class yF extends oF{constructor(){super(...arguments),this.validator=new vF(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Sa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Sa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:RO}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.createFormatter()
|
|
11122
|
+
if(t){const e={formatter:t,placeholder:this.placeholder}
|
|
11107
11123
|
this.columnInternals.columnConfig=e,this.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.validator.setCustomOptionsValidity(!1)}createFormatter(){let t
|
|
11108
|
-
t=this.format===
|
|
11109
|
-
try{return new Intl.DateTimeFormat(Sa.getValueFor(this),t)}catch(t){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}t([st],
|
|
11110
|
-
const yF
|
|
11111
|
-
bi.getOrCreate().withPrefix("nimble").register(yF())
|
|
11112
|
-
const wF=class extends dF{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:lF,styles:cF})
|
|
11124
|
+
t=this.format===pF?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
|
|
11125
|
+
try{return new Intl.DateTimeFormat(Sa.getValueFor(this),t)}catch(t){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}t([st],yF.prototype,"format",void 0),t([st({attribute:"custom-locale-matcher"})],yF.prototype,"customLocaleMatcher",void 0),t([st({attribute:"custom-weekday"})],yF.prototype,"customWeekday",void 0),t([st({attribute:"custom-era"})],yF.prototype,"customEra",void 0),t([st({attribute:"custom-year"})],yF.prototype,"customYear",void 0),t([st({attribute:"custom-month"})],yF.prototype,"customMonth",void 0),t([st({attribute:"custom-day"})],yF.prototype,"customDay",void 0),t([st({attribute:"custom-hour"})],yF.prototype,"customHour",void 0),t([st({attribute:"custom-minute"})],yF.prototype,"customMinute",void 0),t([st({attribute:"custom-second"})],yF.prototype,"customSecond",void 0),t([st({attribute:"custom-time-zone-name"})],yF.prototype,"customTimeZoneName",void 0),t([st({attribute:"custom-format-matcher"})],yF.prototype,"customFormatMatcher",void 0),t([st({attribute:"custom-hour12",converter:bF})],yF.prototype,"customHour12",void 0),t([st({attribute:"custom-time-zone"})],yF.prototype,"customTimeZone",void 0),t([st({attribute:"custom-calendar"})],yF.prototype,"customCalendar",void 0),t([st({attribute:"custom-day-period"})],yF.prototype,"customDayPeriod",void 0),t([st({attribute:"custom-numbering-system"})],yF.prototype,"customNumberingSystem",void 0),t([st({attribute:"custom-date-style"})],yF.prototype,"customDateStyle",void 0),t([st({attribute:"custom-time-style"})],yF.prototype,"customTimeStyle",void 0),t([st({attribute:"custom-hour-cycle"})],yF.prototype,"customHourCycle",void 0)
|
|
11126
|
+
const wF=yF.compose({baseName:"table-column-date-text",template:qR,styles:BR})
|
|
11113
11127
|
bi.getOrCreate().withPrefix("nimble").register(wF())
|
|
11114
|
-
class
|
|
11128
|
+
const xF=class extends hF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:cF,styles:dF})
|
|
11129
|
+
bi.getOrCreate().withPrefix("nimble").register(xF())
|
|
11130
|
+
class CF{constructor(t){this.lang=t,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(t){if("number"!=typeof t||t<0||!Number.isFinite(t))return""
|
|
11115
11131
|
const e=[],n=1e3,i=6e4,o=36e5,r=864e5,s=t/r
|
|
11116
11132
|
let a=t
|
|
11117
11133
|
const l=Math.floor(s)
|
|
@@ -11124,48 +11140,47 @@ if(a-=d*i,d){const t=this.minutesFormatter.format(d)
|
|
|
11124
11140
|
e.push(t)}const h=a/n,u=0===h?0:h%60
|
|
11125
11141
|
if(t<1&&0!==h)return this.scientificSecondsFormatter.format(h)
|
|
11126
11142
|
if(u>=5e-4||0===u&&0===e.length){const t=this.secondsFormatter.format(u)
|
|
11127
|
-
e.push(t)}return e.join(", ")}}const
|
|
11128
|
-
bi.getOrCreate().withPrefix("nimble").register(CF())
|
|
11129
|
-
const kF=class extends iF{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Sa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Sa.unsubscribe(this.langSubscriber,this)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:RO}}updateColumnConfig(){const t=new xF(Sa.getValueFor(this))
|
|
11130
|
-
if(t){const e={formatter:t}
|
|
11131
|
-
this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}}.compose({baseName:"table-column-duration-text",template:qR,styles:BR})
|
|
11143
|
+
e.push(t)}return e.join(", ")}}const kF=class extends XR{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:YR,styles:QR})
|
|
11132
11144
|
bi.getOrCreate().withPrefix("nimble").register(kF())
|
|
11133
|
-
const SF=(
|
|
11145
|
+
const SF=class extends oF{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Sa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Sa.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:RO}}updateColumnConfig(){const t={formatter:new CF(Sa.getValueFor(this)),placeholder:this.placeholder}
|
|
11146
|
+
this.columnInternals.columnConfig=t}}.compose({baseName:"table-column-duration-text",template:qR,styles:BR})
|
|
11147
|
+
bi.getOrCreate().withPrefix("nimble").register(SF())
|
|
11148
|
+
const $F=(t,e)=>{if("number"===e){const e=ot.fromView(t)
|
|
11134
11149
|
return null===e?void 0:e}return"boolean"===e?!1!==t&&"false"!==t&&(!0===t||"true"===t||void 0):t?.toString()??void 0}
|
|
11135
|
-
class
|
|
11136
|
-
return this.mappings.forEach((e=>{const n
|
|
11150
|
+
class MF extends BO{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof kv&&"string"==typeof e&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const t=new Map
|
|
11151
|
+
return this.mappings.forEach((e=>{const n=$F(e.key,this.keyType)
|
|
11137
11152
|
if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
|
|
11138
11153
|
const i=this.createMappingConfig(e)
|
|
11139
11154
|
t.set(n,i)})),t}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((t=>{t.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
|
|
11140
11155
|
for(const t of this.mappings){const e=m.getNotifier(t)
|
|
11141
|
-
e.subscribe(this),this.mappingNotifiers.push(e)}}}t([g]
|
|
11142
|
-
const
|
|
11156
|
+
e.subscribe(this),this.mappingNotifiers.push(e)}}}t([g],MF.prototype,"mappings",void 0),t([st({attribute:"field-name"})],MF.prototype,"fieldName",void 0),t([st({attribute:"key-type"})],MF.prototype,"keyType",void 0)
|
|
11157
|
+
const _F=yt`
|
|
11143
11158
|
${BR}
|
|
11144
11159
|
|
|
11145
11160
|
slot[name='mapping'] {
|
|
11146
11161
|
display: none;
|
|
11147
11162
|
}
|
|
11148
|
-
`,
|
|
11149
|
-
class
|
|
11163
|
+
`,EF=Z`${qR}<slot ${Kt("mappings")} name="mapping"></slot>`,IF=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
|
|
11164
|
+
class DF extends mF{constructor(t,e){super(t,e)}validate(t,e){this.untrackAll()
|
|
11150
11165
|
const n=t.map((t=>t.key))
|
|
11151
|
-
this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0
|
|
11152
|
-
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t
|
|
11166
|
+
this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0===$F(t,e)))
|
|
11167
|
+
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t=>$F(t,e))),i=new Set(n).size!==n.length
|
|
11153
11168
|
this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(t){const e=t.some((t=>void 0===t.key))
|
|
11154
|
-
this.setConditionValue("missingKeyValue",e)}}const
|
|
11155
|
-
class
|
|
11156
|
-
this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(
|
|
11157
|
-
this.setConditionValue("unsupportedMappingType",!e)}}class
|
|
11169
|
+
this.setConditionValue("missingKeyValue",e)}}const AF=[...IF,"unsupportedMappingType","missingTextValue"]
|
|
11170
|
+
class TF extends DF{constructor(t){super(t,AF)}static isSupportedMappingElement(t){return t instanceof $v}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateNoMissingText(t)}validateNoMissingText(t){const e=t.filter(TF.isSupportedMappingElement).some((t=>void 0===t.text))
|
|
11171
|
+
this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(TF.isSupportedMappingElement)
|
|
11172
|
+
this.setConditionValue("unsupportedMappingType",!e)}}class OF{constructor(t){this.text=t}}class RF extends OF{}const FF=class extends hF{updateText(){const t=this.cellRecord?.value
|
|
11158
11173
|
if(null==t)return void(this.text="")
|
|
11159
11174
|
const e=this.columnConfig?.mappingConfigs.get(t)
|
|
11160
|
-
this.text=e instanceof
|
|
11161
|
-
bi.getOrCreate().withPrefix("nimble").register(RF())
|
|
11162
|
-
const FF=class extends JR{updateText(){const t=this.columnConfig?.mappingConfigs.get(this.groupHeaderValue)
|
|
11163
|
-
this.text=t instanceof OF&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:XR,styles:YR})
|
|
11175
|
+
this.text=e instanceof RF&&e.text?e.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:cF,styles:dF})
|
|
11164
11176
|
bi.getOrCreate().withPrefix("nimble").register(FF())
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11168
|
-
|
|
11177
|
+
const NF=class extends XR{updateText(){const t=this.columnConfig?.mappingConfigs.get(this.groupHeaderValue)
|
|
11178
|
+
this.text=t instanceof RF&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:YR,styles:QR})
|
|
11179
|
+
bi.getOrCreate().withPrefix("nimble").register(NF())
|
|
11180
|
+
class PF extends(jR(UR(MF))){createValidator(){return new TF(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:RO}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof $v)return new RF(t.text)
|
|
11181
|
+
throw new Error("Unsupported mapping")}}const LF=PF.compose({baseName:"table-column-enum-text",template:EF,styles:_F})
|
|
11182
|
+
bi.getOrCreate().withPrefix("nimble").register(LF())
|
|
11183
|
+
const zF=Z`<span
|
|
11169
11184
|
${lg("hasOverflow")}
|
|
11170
11185
|
class="header-content"
|
|
11171
11186
|
title=${t=>t.hasOverflow&&t.headerTextContent?t.headerTextContent:null}
|
|
@@ -11173,13 +11188,13 @@ const LF=Z`<span
|
|
|
11173
11188
|
<slot ${Ft("contentSlot")}></slot>
|
|
11174
11189
|
<slot ${Kt({property:"unitElements",filter:Wt()})} name="unit"></slot>
|
|
11175
11190
|
</span>`
|
|
11176
|
-
const
|
|
11177
|
-
bi.getOrCreate().withPrefix("nimble").register(zF())
|
|
11178
|
-
const VF=class extends dF{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??sF}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:lF,styles:cF})
|
|
11191
|
+
const VF=class extends XR{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:YR,styles:QR})
|
|
11179
11192
|
bi.getOrCreate().withPrefix("nimble").register(VF())
|
|
11180
|
-
const HF={
|
|
11181
|
-
|
|
11182
|
-
|
|
11193
|
+
const HF=class extends hF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??aF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:cF,styles:dF})
|
|
11194
|
+
bi.getOrCreate().withPrefix("nimble").register(HF())
|
|
11195
|
+
const BF={default:void 0,decimal:"decimal"},qF="left",UF="right"
|
|
11196
|
+
class jF{format(t){if("number"!=typeof t)return""
|
|
11197
|
+
try{return this.tryFormat(t)}catch{return""}}}class WF{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class ZF extends WF{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new ZF(e,t)}format(t){return this.formatter.format(t)}}class GF{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class KF{constructor(t){this.supportedScaledUnits=t
|
|
11183
11198
|
const e=t.every(((t,e,n)=>0===e||n[e-1].scaleFactor<t.scaleFactor))
|
|
11184
11199
|
if(!e)throw new Error("Supported scaled units must have unique and ordered scale factors")
|
|
11185
11200
|
const n=t.find((t=>t.isBase()))
|
|
@@ -11188,38 +11203,38 @@ this.supportedScaledUnits=t,this.baseScaledUnit=n}scaleNumber(t){const e=Math.ab
|
|
|
11188
11203
|
if(1===this.supportedScaledUnits.length||0===e||e===1/0||Number.isNaN(e))return{scaledValue:t,scaledUnit:this.baseScaledUnit}
|
|
11189
11204
|
for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
|
|
11190
11205
|
if(e/i.scaleFactor>=1)return{scaledValue:t/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
|
|
11191
|
-
return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const
|
|
11192
|
-
class
|
|
11206
|
+
return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const JF=new class extends KF{constructor(){super([new GF(1,ZF.createFactory({}))])}},XF="negative"
|
|
11207
|
+
class YF extends jF{constructor(t,{unitScale:e=JF}={unitScale:JF}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:YF.maximumDigits,maximumFractionDigits:YF.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:XF},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:YF.maximumDigits,notation:"scientific",signDisplay:XF}
|
|
11193
11208
|
for(const n of e.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
|
|
11194
11209
|
this.exponentialScaledUnitFormatter=e.baseScaledUnit.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=e}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t),i=Math.abs(e)
|
|
11195
|
-
return 0!==i&&(i>=
|
|
11196
|
-
class
|
|
11210
|
+
return 0!==i&&(i>=YF.exponentialUpperBound||i<YF.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}YF.maximumDigits=6,YF.exponentialLowerBound=995e-6,YF.exponentialUpperBound=999999.5
|
|
11211
|
+
class QF extends jF{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=JF}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:JF}){super(),this.scaledUnitFormatters=new Map
|
|
11197
11212
|
const o={maximumFractionDigits:n,minimumFractionDigits:e,signDisplay:"negative"}
|
|
11198
11213
|
for(const e of i.supportedScaledUnits)this.scaledUnitFormatters.set(e.scaleFactor,e.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:o}))
|
|
11199
11214
|
this.unitScale=i,this.minimumFractionDigits=e,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t)
|
|
11200
|
-
return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class
|
|
11215
|
+
return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class tN extends jF{constructor(t,e){super(),this._resolvedOptions=this.resolveOptions(e),this.resolvedUnitFormat=this.resolveUnitFormat(t,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(t){const e=this.resolveOptions(t)
|
|
11201
11216
|
return this._resolvedOptions.decimalDigits===e.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===e.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===e.numberTextFormat&&this._resolvedOptions.unitScale===e.unitScale}tryFormat(t){return this.resolvedUnitFormat.format(t)}resolveUnitFormat(t,e){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:o,unitScale:r}=e
|
|
11202
|
-
return n===
|
|
11217
|
+
return n===BF.default?new YF(t,{unitScale:r}):new QF(t,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:r}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:r})}resolveOptions(t){if(!t||t.numberTextFormat===BF.default)return{numberTextFormat:BF.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??JF}
|
|
11203
11218
|
const e="number"==typeof t.decimalDigits,n="number"==typeof t.decimalMaximumDigits
|
|
11204
11219
|
if(e&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
|
|
11205
|
-
return e||n?{numberTextFormat:
|
|
11206
|
-
const
|
|
11207
|
-
class
|
|
11208
|
-
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===
|
|
11209
|
-
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===
|
|
11220
|
+
return e||n?{numberTextFormat:BF.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??JF}:{numberTextFormat:BF.decimal,decimalDigits:tN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??JF}}}tN.defaultDecimalDigits=2
|
|
11221
|
+
const eN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
|
|
11222
|
+
class nN extends mF{constructor(t){super(t,eN)}validateDecimalDigits(t,e){const n=!!(t===BF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
|
|
11223
|
+
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===BF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
|
|
11224
|
+
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===BF.decimal)&&("number"==typeof e&&"number"==typeof n)
|
|
11210
11225
|
this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(t){const e=t.length>1
|
|
11211
|
-
this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class
|
|
11212
|
-
class
|
|
11213
|
-
t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await lI(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof
|
|
11226
|
+
this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class iN extends Le{}t([g],iN.prototype,"resolvedUnitScale",void 0)
|
|
11227
|
+
class oN extends oF{constructor(){super(...arguments),this.validator=new nN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Sa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Sa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:RO}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=m.getNotifier(this.unit)
|
|
11228
|
+
t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await lI(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof iN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.validateAtMostOneUnit(this.unitElements??[]),this.validator.isValid()){const t={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
|
|
11214
11229
|
this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}createFormatter(){const t=this.unit?.resolvedUnitScale
|
|
11215
|
-
return new
|
|
11216
|
-
const oN
|
|
11217
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11218
|
-
const
|
|
11219
|
-
class
|
|
11220
|
-
this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(
|
|
11221
|
-
this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(
|
|
11222
|
-
this.setConditionValue("unsupportedMappingType",!e)}}const
|
|
11230
|
+
return new tN(Sa.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===qF?aF:this.alignment===UF?lF:this.format!==BF.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?aF:lF}}t([st],oN.prototype,"format",void 0),t([st],oN.prototype,"alignment",void 0),t([st({attribute:"decimal-digits",converter:ot})],oN.prototype,"decimalDigits",void 0),t([st({attribute:"decimal-maximum-digits",converter:ot})],oN.prototype,"decimalMaximumDigits",void 0),t([g],oN.prototype,"unitElements",void 0),t([g],oN.prototype,"unit",void 0)
|
|
11231
|
+
const rN=oN.compose({baseName:"table-column-number-text",template:zF,styles:BR})
|
|
11232
|
+
bi.getOrCreate().withPrefix("nimble").register(rN())
|
|
11233
|
+
const sN=[...IF,"unsupportedMappingType","invalidIconName","missingTextValue"]
|
|
11234
|
+
class aN extends DF{constructor(t){super(t,sN)}static isIconMappingElement(t){return t instanceof Ev}static isSupportedMappingElement(t){return t instanceof Ev||t instanceof Dv}static hasUnresolvedIcon(t){return"string"==typeof t.icon&&void 0===t.resolvedIcon}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(aN.isIconMappingElement).some(aN.hasUnresolvedIcon)
|
|
11235
|
+
this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(aN.isSupportedMappingElement).some((t=>void 0===t.text))
|
|
11236
|
+
this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(aN.isSupportedMappingElement)
|
|
11237
|
+
this.setConditionValue("unsupportedMappingType",!e)}}const lN=yt`
|
|
11223
11238
|
${Ao("inline-flex")}
|
|
11224
11239
|
|
|
11225
11240
|
:host {
|
|
@@ -11239,7 +11254,7 @@ this.setConditionValue("unsupportedMappingType",!e)}}const aN=yt`
|
|
|
11239
11254
|
overflow: hidden;
|
|
11240
11255
|
text-overflow: ellipsis;
|
|
11241
11256
|
}
|
|
11242
|
-
`,
|
|
11257
|
+
`,cN=Z`
|
|
11243
11258
|
${zt((t=>"icon"===t.visual),Z`
|
|
11244
11259
|
${t=>t.iconTemplate}
|
|
11245
11260
|
<span
|
|
@@ -11263,9 +11278,9 @@ this.setConditionValue("unsupportedMappingType",!e)}}const aN=yt`
|
|
|
11263
11278
|
title="${t=>t.hasOverflow&&t.text?t.text:null}"
|
|
11264
11279
|
>${t=>t.text}</span>
|
|
11265
11280
|
`)}
|
|
11266
|
-
`,
|
|
11267
|
-
class
|
|
11268
|
-
super(n),this.severity=e,this.iconTemplate=void 0===(i=t)?
|
|
11281
|
+
`,dN=Z` `
|
|
11282
|
+
class hN extends OF{constructor(t,e,n){var i
|
|
11283
|
+
super(n),this.severity=e,this.iconTemplate=void 0===(i=t)?dN:Z`
|
|
11269
11284
|
<${i}
|
|
11270
11285
|
title="${t=>t.text}"
|
|
11271
11286
|
role="img"
|
|
@@ -11274,12 +11289,12 @@ super(n),this.severity=e,this.iconTemplate=void 0===(i=t)?cN:Z`
|
|
|
11274
11289
|
class="no-shrink"
|
|
11275
11290
|
>
|
|
11276
11291
|
</${i}>
|
|
11277
|
-
`}}class
|
|
11292
|
+
`}}class uN extends OF{constructor(t){super(t)}}class pN extends XR{updateText(){if(this.visual=void 0,!this.columnConfig)return void(this.text="")
|
|
11278
11293
|
const t=this.groupHeaderValue,e=this.columnConfig.mappingConfigs.get(t)
|
|
11279
|
-
e instanceof
|
|
11280
|
-
const pN
|
|
11281
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11282
|
-
const
|
|
11294
|
+
e instanceof hN?(this.visual="icon",this.severity=e.severity,this.text=e.text??"",this.iconTemplate=e.iconTemplate):e instanceof uN&&(this.visual="spinner",this.text=e.text??"")}}t([g],pN.prototype,"severity",void 0),t([g],pN.prototype,"iconTemplate",void 0),t([g],pN.prototype,"visual",void 0)
|
|
11295
|
+
const fN=pN.compose({baseName:"table-column-icon-group-header-view",template:cN,styles:lN})
|
|
11296
|
+
bi.getOrCreate().withPrefix("nimble").register(fN())
|
|
11297
|
+
const mN=Z`
|
|
11283
11298
|
${zt((t=>"icon"===t.visual),(t=>t.iconTemplate))}
|
|
11284
11299
|
${zt((t=>"spinner"===t.visual),Z`
|
|
11285
11300
|
<${CT}
|
|
@@ -11289,22 +11304,22 @@ const fN=Z`
|
|
|
11289
11304
|
</${CT}>
|
|
11290
11305
|
`)}
|
|
11291
11306
|
`
|
|
11292
|
-
class
|
|
11307
|
+
class gN extends LO{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
|
|
11293
11308
|
const t=this.cellRecord.value
|
|
11294
11309
|
if(null==t)return
|
|
11295
11310
|
const e=this.columnConfig.mappingConfigs.get(t)
|
|
11296
|
-
e instanceof
|
|
11297
|
-
const gN
|
|
11298
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11299
|
-
class
|
|
11300
|
-
if(t instanceof Dv)return new
|
|
11301
|
-
throw new Error("Unsupported mapping")}}const bN
|
|
11302
|
-
bi.getOrCreate().withPrefix("nimble").register(bN())
|
|
11303
|
-
const yN=class extends dF{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:lF,styles:cF})
|
|
11311
|
+
e instanceof hN?(this.visual="icon",this.severity=e.severity,this.text=e.text,this.iconTemplate=e.iconTemplate):e instanceof uN&&(this.visual="spinner",this.text=e.text)}}t([g],gN.prototype,"severity",void 0),t([g],gN.prototype,"text",void 0),t([g],gN.prototype,"iconTemplate",void 0),t([g],gN.prototype,"visual",void 0)
|
|
11312
|
+
const vN=gN.compose({baseName:"table-column-icon-cell-view",template:mN})
|
|
11313
|
+
bi.getOrCreate().withPrefix("nimble").register(vN())
|
|
11314
|
+
class bN extends(jR(UR(MF))){createValidator(){return new aN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:RO}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Ev)return new hN(t.resolvedIcon,t.severity,t.text)
|
|
11315
|
+
if(t instanceof Dv)return new uN(t.text)
|
|
11316
|
+
throw new Error("Unsupported mapping")}}const yN=bN.compose({baseName:"table-column-icon",template:EF,styles:_F})
|
|
11304
11317
|
bi.getOrCreate().withPrefix("nimble").register(yN())
|
|
11305
|
-
const wN=class extends
|
|
11318
|
+
const wN=class extends hF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:cF,styles:dF})
|
|
11306
11319
|
bi.getOrCreate().withPrefix("nimble").register(wN())
|
|
11307
|
-
const xN=
|
|
11320
|
+
const xN=class extends oF{placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:eF,delegatedEvents:[],sortOperation:FO}}}.compose({baseName:"table-column-text",template:qR,styles:BR})
|
|
11321
|
+
bi.getOrCreate().withPrefix("nimble").register(xN())
|
|
11322
|
+
const CN=yt`
|
|
11308
11323
|
${Ao("grid")}
|
|
11309
11324
|
|
|
11310
11325
|
:host {
|
|
@@ -11332,7 +11347,7 @@ const xN=yt`
|
|
|
11332
11347
|
overflow: auto;
|
|
11333
11348
|
}
|
|
11334
11349
|
`
|
|
11335
|
-
const
|
|
11350
|
+
const kN=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(t,e)=>Z`
|
|
11336
11351
|
<template class="${t=>t.orientation}">
|
|
11337
11352
|
${te(0,e)}
|
|
11338
11353
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -11351,9 +11366,9 @@ const CN=class extends oo{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
11351
11366
|
<slot name="tabpanel" ${Kt("tabpanels")}></slot>
|
|
11352
11367
|
</div>
|
|
11353
11368
|
</template>
|
|
11354
|
-
`,styles:
|
|
11355
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11356
|
-
const
|
|
11369
|
+
`,styles:CN})
|
|
11370
|
+
bi.getOrCreate().withPrefix("nimble").register(kN())
|
|
11371
|
+
const SN=yt`
|
|
11357
11372
|
${Ao("flex")}
|
|
11358
11373
|
|
|
11359
11374
|
:host {
|
|
@@ -11371,15 +11386,15 @@ const kN=yt`
|
|
|
11371
11386
|
rgba(${La}, 0.3);
|
|
11372
11387
|
margin: ${nl} ${il};
|
|
11373
11388
|
}
|
|
11374
|
-
|
|
11389
|
+
`,$N=Z`
|
|
11375
11390
|
<template slot="end">
|
|
11376
11391
|
<div class="separator"></div>
|
|
11377
11392
|
<slot></slot>
|
|
11378
11393
|
</template>
|
|
11379
11394
|
`
|
|
11380
|
-
const
|
|
11381
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11382
|
-
const
|
|
11395
|
+
const MN=class extends Le{}.compose({baseName:"tabs-toolbar",template:$N,styles:SN})
|
|
11396
|
+
bi.getOrCreate().withPrefix("nimble").register(MN())
|
|
11397
|
+
const _N="outline",EN="block",IN=yt`
|
|
11383
11398
|
${Ao("inline-flex")}
|
|
11384
11399
|
${og}
|
|
11385
11400
|
|
|
@@ -11519,12 +11534,12 @@ const MN="outline",_N="block",EN=yt`
|
|
|
11519
11534
|
top: ${il};
|
|
11520
11535
|
right: var(--ni-private-scrollbar-width);
|
|
11521
11536
|
}
|
|
11522
|
-
`.withBehaviors(nh(
|
|
11537
|
+
`.withBehaviors(nh(_N,yt`
|
|
11523
11538
|
.control {
|
|
11524
11539
|
border-color: rgba(${La}, 0.3);
|
|
11525
11540
|
background-color: transparent;
|
|
11526
11541
|
}
|
|
11527
|
-
`),nh(
|
|
11542
|
+
`),nh(EN,yt`
|
|
11528
11543
|
.control {
|
|
11529
11544
|
background-color: rgba(${La}, 0.1);
|
|
11530
11545
|
}
|
|
@@ -11542,8 +11557,8 @@ const MN="outline",_N="block",EN=yt`
|
|
|
11542
11557
|
border-bottom-color: ${za};
|
|
11543
11558
|
}
|
|
11544
11559
|
`))
|
|
11545
|
-
class
|
|
11546
|
-
const DN
|
|
11560
|
+
class DN extends lo{constructor(){super(...arguments),this.appearance=_N,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([st],DN.prototype,"appearance",void 0),t([st({attribute:"error-text"})],DN.prototype,"errorText",void 0),t([st({attribute:"error-visible",mode:"boolean"})],DN.prototype,"errorVisible",void 0),t([g],DN.prototype,"scrollbarWidth",void 0)
|
|
11561
|
+
const AN=DN.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
|
|
11547
11562
|
<label
|
|
11548
11563
|
part="label"
|
|
11549
11564
|
for="control"
|
|
@@ -11600,9 +11615,9 @@ const DN=IN.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
|
|
|
11600
11615
|
></${cm}>
|
|
11601
11616
|
${Xm}
|
|
11602
11617
|
</div>
|
|
11603
|
-
`,styles:
|
|
11604
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11605
|
-
const
|
|
11618
|
+
`,styles:IN,shadowOptions:{delegatesFocus:!0}})
|
|
11619
|
+
bi.getOrCreate().withPrefix("nimble").register(AN())
|
|
11620
|
+
const TN="underline",ON="outline",RN="block",FN="frameless",NN=yt`
|
|
11606
11621
|
${Ao("inline-block")}
|
|
11607
11622
|
${og}
|
|
11608
11623
|
|
|
@@ -11774,12 +11789,12 @@ const AN="underline",TN="outline",ON="block",RN="frameless",FN=yt`
|
|
|
11774
11789
|
slot[name='actions']::slotted(*) {
|
|
11775
11790
|
${tl.cssCustomProperty}: 24px;
|
|
11776
11791
|
}
|
|
11777
|
-
`.withBehaviors(nh(
|
|
11792
|
+
`.withBehaviors(nh(TN,yt`
|
|
11778
11793
|
.root {
|
|
11779
11794
|
border-bottom-width: ${sl};
|
|
11780
11795
|
padding-bottom: 0;
|
|
11781
11796
|
}
|
|
11782
|
-
`),nh(
|
|
11797
|
+
`),nh(RN,yt`
|
|
11783
11798
|
.root {
|
|
11784
11799
|
background-color: rgba(${La}, 0.1);
|
|
11785
11800
|
}
|
|
@@ -11807,12 +11822,12 @@ const AN="underline",TN="outline",ON="block",RN="frameless",FN=yt`
|
|
|
11807
11822
|
:host([disabled]) .root {
|
|
11808
11823
|
background-color: rgba(${La}, 0.07);
|
|
11809
11824
|
}
|
|
11810
|
-
`),nh(
|
|
11825
|
+
`),nh(ON,yt`
|
|
11811
11826
|
.root {
|
|
11812
11827
|
border-width: ${sl};
|
|
11813
11828
|
padding: 0;
|
|
11814
11829
|
}
|
|
11815
|
-
`),nh(
|
|
11830
|
+
`),nh(FN,yt`
|
|
11816
11831
|
.control {
|
|
11817
11832
|
padding-left: ${sl};
|
|
11818
11833
|
padding-right: ${sl};
|
|
@@ -11830,8 +11845,8 @@ const AN="underline",TN="outline",ON="block",RN="frameless",FN=yt`
|
|
|
11830
11845
|
filter: invert(100%);
|
|
11831
11846
|
}
|
|
11832
11847
|
`))
|
|
11833
|
-
class
|
|
11834
|
-
const PN
|
|
11848
|
+
class PN extends Li{constructor(){super(...arguments),this.appearance=TN,this.errorVisible=!1,this.fullBleed=!1}}t([st],PN.prototype,"appearance",void 0),t([st({attribute:"error-text"})],PN.prototype,"errorText",void 0),t([st({attribute:"error-visible",mode:"boolean"})],PN.prototype,"errorVisible",void 0),t([st({attribute:"full-bleed",mode:"boolean"})],PN.prototype,"fullBleed",void 0)
|
|
11849
|
+
const LN=PN.compose({baseName:"text-field",baseClass:Li,template:(t,e)=>Z`
|
|
11835
11850
|
<template
|
|
11836
11851
|
class="
|
|
11837
11852
|
${t=>t.readOnly?"readonly":""}
|
|
@@ -11891,7 +11906,7 @@ const PN=NN.compose({baseName:"text-field",baseClass:Li,template:(t,e)=>Z`
|
|
|
11891
11906
|
${Qt(0,e)}
|
|
11892
11907
|
</div>
|
|
11893
11908
|
</template>
|
|
11894
|
-
`,styles:
|
|
11909
|
+
`,styles:NN,shadowOptions:{delegatesFocus:!0},end:Z`
|
|
11895
11910
|
<${cm}
|
|
11896
11911
|
severity="error"
|
|
11897
11912
|
class="error-icon"
|
|
@@ -11901,8 +11916,8 @@ const PN=NN.compose({baseName:"text-field",baseClass:Li,template:(t,e)=>Z`
|
|
|
11901
11916
|
</span>
|
|
11902
11917
|
${Xm}
|
|
11903
11918
|
`})
|
|
11904
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
11905
|
-
const
|
|
11919
|
+
bi.getOrCreate().withPrefix("nimble").register(LN())
|
|
11920
|
+
const zN=yt`
|
|
11906
11921
|
${Ao("inline-flex")}
|
|
11907
11922
|
|
|
11908
11923
|
:host {
|
|
@@ -11987,7 +12002,7 @@ const LN=yt`
|
|
|
11987
12002
|
.status-icon {
|
|
11988
12003
|
opacity: 0.6;
|
|
11989
12004
|
}
|
|
11990
|
-
`)),
|
|
12005
|
+
`)),VN=Z`
|
|
11991
12006
|
${zt((t=>t.tooltipVisible),Z`
|
|
11992
12007
|
<${Mh}
|
|
11993
12008
|
class="anchored-region"
|
|
@@ -12020,11 +12035,11 @@ const LN=yt`
|
|
|
12020
12035
|
</${Mh}>
|
|
12021
12036
|
`)}
|
|
12022
12037
|
`
|
|
12023
|
-
class
|
|
12024
|
-
const HN
|
|
12025
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
12026
|
-
const
|
|
12027
|
-
class
|
|
12038
|
+
class HN extends _o{constructor(){super(...arguments),this.iconVisible=!1}}t([st],HN.prototype,"severity",void 0),t([st({attribute:"icon-visible",mode:"boolean"})],HN.prototype,"iconVisible",void 0)
|
|
12039
|
+
const BN=HN.compose({baseName:"tooltip",baseClass:_o,template:VN,styles:zN})
|
|
12040
|
+
bi.getOrCreate().withPrefix("nimble").register(BN())
|
|
12041
|
+
const qN="group-selected",UN="all",jN="leaves-only",WN="none"
|
|
12042
|
+
class ZN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const GN=yt`
|
|
12028
12043
|
${Ao("block")}
|
|
12029
12044
|
|
|
12030
12045
|
:host {
|
|
@@ -12045,7 +12060,7 @@ class WN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12045
12060
|
}
|
|
12046
12061
|
|
|
12047
12062
|
${""}
|
|
12048
|
-
:host([${
|
|
12063
|
+
:host([${qN}])::after {
|
|
12049
12064
|
background: ${qa};
|
|
12050
12065
|
border-radius: 0px;
|
|
12051
12066
|
content: '';
|
|
@@ -12067,7 +12082,7 @@ class WN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12067
12082
|
background: ${Na};
|
|
12068
12083
|
}
|
|
12069
12084
|
|
|
12070
|
-
:host([${
|
|
12085
|
+
:host([${qN}]) .positioning-region:hover {
|
|
12071
12086
|
background: ${Fa};
|
|
12072
12087
|
}
|
|
12073
12088
|
|
|
@@ -12173,7 +12188,7 @@ class WN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12173
12188
|
display: block;
|
|
12174
12189
|
}
|
|
12175
12190
|
`.withBehaviors(new class{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
|
|
12176
|
-
e&&$a.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new
|
|
12191
|
+
e&&$a.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new ZN(this.ltr,this.rtl,t),n=$a.getValueFor(t)
|
|
12177
12192
|
$a.subscribe(e),e.attach(n),this.cache.set(t,e)}}(yt`
|
|
12178
12193
|
.expand-collapse-button {
|
|
12179
12194
|
left: var(
|
|
@@ -12205,8 +12220,8 @@ $a.subscribe(e),e.attach(n),this.cache.set(t,e)}}(yt`
|
|
|
12205
12220
|
transform: rotate(135deg);
|
|
12206
12221
|
}
|
|
12207
12222
|
`))
|
|
12208
|
-
class
|
|
12209
|
-
const KN
|
|
12223
|
+
class KN extends Io{constructor(){super(...arguments),this.groupSelected=!1}}t([st({attribute:"group-selected",mode:"boolean"})],KN.prototype,"groupSelected",void 0)
|
|
12224
|
+
const JN=KN.compose({baseName:"tree-item",baseClass:Io,template:(t,e)=>Z`
|
|
12210
12225
|
<template
|
|
12211
12226
|
role="treeitem"
|
|
12212
12227
|
slot="${t=>t.isNestedItem()?"item":void 0}"
|
|
@@ -12246,9 +12261,9 @@ const KN=GN.compose({baseName:"tree-item",baseClass:Io,template:(t,e)=>Z`
|
|
|
12246
12261
|
</div>
|
|
12247
12262
|
`)}
|
|
12248
12263
|
</template>
|
|
12249
|
-
`,styles:
|
|
12250
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
12251
|
-
const
|
|
12264
|
+
`,styles:GN,expandCollapseGlyph:Hh.data})
|
|
12265
|
+
bi.getOrCreate().withPrefix("nimble").register(JN())
|
|
12266
|
+
const XN=yt`
|
|
12252
12267
|
${Ao("flex")}
|
|
12253
12268
|
|
|
12254
12269
|
:host {
|
|
@@ -12260,7 +12275,7 @@ const JN=yt`
|
|
|
12260
12275
|
:host(${Ro}) {
|
|
12261
12276
|
outline: none;
|
|
12262
12277
|
}
|
|
12263
|
-
`,
|
|
12278
|
+
`,YN=Z`
|
|
12264
12279
|
<template
|
|
12265
12280
|
role="tree"
|
|
12266
12281
|
${Ft("treeView")}
|
|
@@ -12274,246 +12289,246 @@ const JN=yt`
|
|
|
12274
12289
|
<slot ${Kt("slottedTreeItems")}></slot>
|
|
12275
12290
|
</template>
|
|
12276
12291
|
`
|
|
12277
|
-
class
|
|
12292
|
+
class QN extends Do{constructor(){super(...arguments),this.selectionMode=UN,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
|
|
12278
12293
|
if(!(t.target instanceof Element&&Eo(t.target)))return!0
|
|
12279
12294
|
const e=t.target
|
|
12280
|
-
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case
|
|
12281
|
-
case
|
|
12282
|
-
case
|
|
12283
|
-
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof
|
|
12295
|
+
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case UN:return!0
|
|
12296
|
+
case WN:return!1
|
|
12297
|
+
case jN:return!this.itemHasChildren(t)
|
|
12298
|
+
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof KN&&(t.groupSelected=!1)
|
|
12284
12299
|
for(let t of this.selectedItems){for(;null!==t.parentElement&&t.parentElement!==this;)t=t.parentElement
|
|
12285
|
-
t instanceof
|
|
12286
|
-
const QN
|
|
12287
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
12288
|
-
const
|
|
12289
|
-
class
|
|
12290
|
-
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new
|
|
12300
|
+
t instanceof KN&&(t.groupSelected=!0)}}}t([st({attribute:"selection-mode"})],QN.prototype,"selectionMode",void 0),t([g],QN.prototype,"selectedItems",void 0)
|
|
12301
|
+
const tP=QN.compose({baseName:"tree-view",baseClass:Do,template:YN,styles:XN})
|
|
12302
|
+
bi.getOrCreate().withPrefix("nimble").register(tP())
|
|
12303
|
+
const eP=Z`<template slot="unit"></template>`
|
|
12304
|
+
class nP{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class iP extends WF{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
|
|
12305
|
+
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new iP(e,t)}format(t){const e=this.formatter.format(t)
|
|
12291
12306
|
if(""!==this.scaledPrefixText)return`${e} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
|
|
12292
12307
|
return`${e} ${"one"===this.pluralRules.select(t)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(t,e){const n=new Intl.Locale(e??"en"),i=n.language,o=n.region
|
|
12293
|
-
return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const
|
|
12294
|
-
const
|
|
12295
|
-
const
|
|
12296
|
-
class
|
|
12297
|
-
const cP
|
|
12298
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
12299
|
-
const
|
|
12300
|
-
const
|
|
12301
|
-
const
|
|
12302
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
12303
|
-
var
|
|
12304
|
-
function
|
|
12305
|
-
i[t]=[]}return new
|
|
12306
|
-
break}return null!=n&&t.push({name:e,value:n}),t}
|
|
12308
|
+
return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const oP=new Map([["en",new nP("byte","bytes","B")],["fr",new nP("octet","octets","o")],["de",new nP("Byte","Byte","B")],["ja",new nP("バイト","バイト","B")],["zh",new nP("字节","字节","B")]]),rP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
|
|
12309
|
+
const sP=new class extends KF{constructor(){super(rP.map((([t,e])=>new GF(t,iP.createFactory({unitTranslations:oP,scaledPrefixText:e})))))}},aP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
|
|
12310
|
+
const lP=new class extends KF{constructor(){super(aP.map((([t,e,n])=>new GF(t,ZF.createFactory({style:"unit",unit:e,unitDisplay:n})))))}}
|
|
12311
|
+
class cP extends iN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=lP}binaryChanged(){this.resolvedUnitScale=this.binary?sP:lP}}t([st({mode:"boolean"})],cP.prototype,"binary",void 0)
|
|
12312
|
+
const dP=cP.compose({baseName:"unit-byte",template:eP})
|
|
12313
|
+
bi.getOrCreate().withPrefix("nimble").register(dP())
|
|
12314
|
+
const hP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],uP=new Map([["en",new nP("volt","volts","V")],["fr",new nP("volt","volts","V")],["de",new nP("Volt","Volt","V")],["ja",new nP("ボルト","ボルト","V")],["zh",new nP("伏特","伏特","V")]])
|
|
12315
|
+
const pP=new class extends KF{constructor(){super(hP.map((([t,e])=>new GF(t,iP.createFactory({unitTranslations:uP,scaledPrefixText:e})))))}}
|
|
12316
|
+
const fP=class extends iN{constructor(){super(),this.resolvedUnitScale=pP}}.compose({baseName:"unit-volt",template:eP})
|
|
12317
|
+
bi.getOrCreate().withPrefix("nimble").register(fP())
|
|
12318
|
+
var mP={value:()=>{}}
|
|
12319
|
+
function gP(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
|
|
12320
|
+
i[t]=[]}return new vP(i)}function vP(t){this._=t}function bP(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function yP(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=mP,t=t.slice(0,i).concat(t.slice(i+1))
|
|
12321
|
+
break}return null!=n&&t.push({name:e,value:n}),t}vP.prototype=gP.prototype={constructor:vP,on:function(t,e){var n,i,o=this._,r=(i=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
|
|
12307
12322
|
if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12308
12323
|
return{type:t,name:e}}))),s=-1,a=r.length
|
|
12309
12324
|
if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e)
|
|
12310
|
-
for(;++s<a;)if(n=(t=r[s]).type)o[n]=
|
|
12311
|
-
else if(null==e)for(n in o)o[n]=
|
|
12312
|
-
return this}for(;++s<a;)if((n=(t=r[s]).type)&&(n=
|
|
12325
|
+
for(;++s<a;)if(n=(t=r[s]).type)o[n]=yP(o[n],t.name,e)
|
|
12326
|
+
else if(null==e)for(n in o)o[n]=yP(o[n],t.name,null)
|
|
12327
|
+
return this}for(;++s<a;)if((n=(t=r[s]).type)&&(n=bP(o[n],t.name)))return n},copy:function(){var t={},e=this._
|
|
12313
12328
|
for(var n in e)t[n]=e[n].slice()
|
|
12314
|
-
return new
|
|
12329
|
+
return new vP(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
|
|
12315
12330
|
if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12316
12331
|
for(r=0,n=(i=this._[t]).length;r<n;++r)i[r].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12317
12332
|
for(var i=this._[t],o=0,r=i.length;o<r;++o)i[o].value.apply(e,n)}}
|
|
12318
|
-
var
|
|
12319
|
-
function
|
|
12320
|
-
return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),
|
|
12321
|
-
return n===
|
|
12322
|
-
return(e.local?kP
|
|
12323
|
-
var e}}function
|
|
12324
|
-
function
|
|
12325
|
-
function
|
|
12326
|
-
for(;a<l;++a)(s=e[a])&&(o[a]=s)}function
|
|
12333
|
+
var wP="http://www.w3.org/1999/xhtml",xP={svg:"http://www.w3.org/2000/svg",xhtml:wP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|
12334
|
+
function CP(t){var e=t+="",n=e.indexOf(":")
|
|
12335
|
+
return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),xP.hasOwnProperty(e)?{space:xP[e],local:t}:t}function kP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
|
|
12336
|
+
return n===wP&&e.documentElement.namespaceURI===wP?e.createElement(t):e.createElementNS(n,t)}}function SP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function $P(t){var e=CP(t)
|
|
12337
|
+
return(e.local?SP:kP)(e)}function MP(){}function _P(t){return null==t?MP:function(){return this.querySelector(t)}}function EP(){return[]}function IP(t){return null==t?EP:function(){return this.querySelectorAll(t)}}function DP(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
|
|
12338
|
+
var e}}function AP(t){return function(){return this.matches(t)}}function TP(t){return function(e){return e.matches(t)}}var OP=Array.prototype.find
|
|
12339
|
+
function RP(){return this.firstElementChild}var FP=Array.prototype.filter
|
|
12340
|
+
function NP(){return Array.from(this.children)}function PP(t){return new Array(t.length)}function LP(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function zP(t,e,n,i,o,r){for(var s,a=0,l=e.length,c=r.length;a<c;++a)(s=e[a])?(s.__data__=r[a],i[a]=s):n[a]=new LP(t,r[a])
|
|
12341
|
+
for(;a<l;++a)(s=e[a])&&(o[a]=s)}function VP(t,e,n,i,o,r,s){var a,l,c,d=new Map,h=e.length,u=r.length,p=new Array(h)
|
|
12327
12342
|
for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=s.call(l,l.__data__,a,e)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
12328
|
-
for(a=0;a<u;++a)c=s.call(t,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new
|
|
12329
|
-
for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function
|
|
12330
|
-
null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function
|
|
12331
|
-
null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function
|
|
12332
|
-
null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function
|
|
12333
|
-
null==n?delete this[t]:this[t]=n}}function
|
|
12334
|
-
this.textContent=null==e?"":e}}function
|
|
12335
|
-
this.innerHTML=null==e?"":e}}function
|
|
12336
|
-
t&&t.removeChild(this)}function
|
|
12337
|
-
return e?e.insertBefore(t,this.nextSibling):t}function
|
|
12338
|
-
return e?e.insertBefore(t,this.nextSibling):t}function
|
|
12339
|
-
if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function
|
|
12343
|
+
for(a=0;a<u;++a)c=s.call(t,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new LP(t,r[a])
|
|
12344
|
+
for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function HP(t){return t.__data__}function BP(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function qP(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function UP(t){return function(){this.removeAttribute(t)}}function jP(t){return function(){this.removeAttributeNS(t.space,t.local)}}function WP(t,e){return function(){this.setAttribute(t,e)}}function ZP(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function GP(t,e){return function(){var n=e.apply(this,arguments)
|
|
12345
|
+
null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function KP(t,e){return function(){var n=e.apply(this,arguments)
|
|
12346
|
+
null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function JP(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function XP(t){return function(){this.style.removeProperty(t)}}function YP(t,e,n){return function(){this.style.setProperty(t,e,n)}}function QP(t,e,n){return function(){var i=e.apply(this,arguments)
|
|
12347
|
+
null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function tL(t,e){return t.style.getPropertyValue(e)||JP(t).getComputedStyle(t,null).getPropertyValue(e)}function eL(t){return function(){delete this[t]}}function nL(t,e){return function(){this[t]=e}}function iL(t,e){return function(){var n=e.apply(this,arguments)
|
|
12348
|
+
null==n?delete this[t]:this[t]=n}}function oL(t){return t.trim().split(/^|\s+/)}function rL(t){return t.classList||new sL(t)}function sL(t){this._node=t,this._names=oL(t.getAttribute("class")||"")}function aL(t,e){for(var n=rL(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function lL(t,e){for(var n=rL(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function cL(t){return function(){aL(this,t)}}function dL(t){return function(){lL(this,t)}}function hL(t,e){return function(){(e.apply(this,arguments)?aL:lL)(this,t)}}function uL(){this.textContent=""}function pL(t){return function(){this.textContent=t}}function fL(t){return function(){var e=t.apply(this,arguments)
|
|
12349
|
+
this.textContent=null==e?"":e}}function mL(){this.innerHTML=""}function gL(t){return function(){this.innerHTML=t}}function vL(t){return function(){var e=t.apply(this,arguments)
|
|
12350
|
+
this.innerHTML=null==e?"":e}}function bL(){this.nextSibling&&this.parentNode.appendChild(this)}function yL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wL(){return null}function xL(){var t=this.parentNode
|
|
12351
|
+
t&&t.removeChild(this)}function CL(){var t=this.cloneNode(!1),e=this.parentNode
|
|
12352
|
+
return e?e.insertBefore(t,this.nextSibling):t}function kL(){var t=this.cloneNode(!0),e=this.parentNode
|
|
12353
|
+
return e?e.insertBefore(t,this.nextSibling):t}function SL(t){return function(){var e=this.__on
|
|
12354
|
+
if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function $L(t,e,n){return function(){var i,o=this.__on,r=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
|
|
12340
12355
|
if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=e)
|
|
12341
|
-
this.addEventListener(t.type,r,n),i={type:t.type,name:t.name,value:e,listener:r,options:n},o?o.push(i):this.__on=[i]}}function
|
|
12342
|
-
"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function
|
|
12356
|
+
this.addEventListener(t.type,r,n),i={type:t.type,name:t.name,value:e,listener:r,options:n},o?o.push(i):this.__on=[i]}}function ML(t,e,n){var i=JP(t),o=i.CustomEvent
|
|
12357
|
+
"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function _L(t,e){return function(){return ML(this,t,e)}}function EL(t,e){return function(){return ML(this,t,e.apply(this,arguments))}}LP.prototype={constructor:LP,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},sL.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
|
|
12343
12358
|
e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}
|
|
12344
|
-
var
|
|
12345
|
-
function
|
|
12359
|
+
var IL=[null]
|
|
12360
|
+
function DL(t,e){this._groups=t,this._parents=e}function AL(){return new DL([[document.documentElement]],IL)}function TL(t){return"string"==typeof t?new DL([[document.querySelector(t)]],[document.documentElement]):new DL([[t]],IL)}function OL(t,e){if(t=function(t){let e
|
|
12346
12361
|
for(;e=t.sourceEvent;)t=e
|
|
12347
12362
|
return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e
|
|
12348
12363
|
if(n.createSVGPoint){var i=n.createSVGPoint()
|
|
12349
12364
|
return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect()
|
|
12350
|
-
return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}
|
|
12365
|
+
return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}DL.prototype=AL.prototype={constructor:DL,select:function(t){"function"!=typeof t&&(t=_P(t))
|
|
12351
12366
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=e[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=t.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
|
|
12352
|
-
return new
|
|
12367
|
+
return new DL(i,this._parents)},selectAll:function(t){t="function"==typeof t?DP(t):IP(t)
|
|
12353
12368
|
for(var e=this._groups,n=e.length,i=[],o=[],r=0;r<n;++r)for(var s,a=e[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(t.call(s,s.__data__,c,a)),o.push(s))
|
|
12354
|
-
return new
|
|
12369
|
+
return new DL(i,o)},selectChild:function(t){return this.select(null==t?RP:function(t){return function(){return OP.call(this.children,t)}}("function"==typeof t?t:TP(t)))},selectChildren:function(t){return this.selectAll(null==t?NP:function(t){return function(){return FP.call(this.children,t)}}("function"==typeof t?t:TP(t)))},filter:function(t){"function"!=typeof t&&(t=AP(t))
|
|
12355
12370
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s=e[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&t.call(r,r.__data__,c,s)&&l.push(r)
|
|
12356
|
-
return new
|
|
12357
|
-
var n,i=e?zP
|
|
12371
|
+
return new DL(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,HP)
|
|
12372
|
+
var n,i=e?VP:zP,o=this._parents,r=this._groups
|
|
12358
12373
|
"function"!=typeof t&&(n=t,t=function(){return n})
|
|
12359
|
-
for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=
|
|
12374
|
+
for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=BP(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
|
|
12360
12375
|
i(h,u,g,v,c[d]=new Array(p),f,e)
|
|
12361
|
-
for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new
|
|
12376
|
+
for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new DL(a,o))._enter=l,a._exit=c,a},enter:function(){return new DL(this._enter||this._groups.map(PP),this._parents)},exit:function(){return new DL(this._exit||this._groups.map(PP),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,r=this.exit()
|
|
12362
12377
|
return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
|
|
12363
12378
|
for(;l<o;++l)a[l]=n[l]
|
|
12364
|
-
return new
|
|
12365
|
-
return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=
|
|
12379
|
+
return new DL(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
|
|
12380
|
+
return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=qP)
|
|
12366
12381
|
for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
|
|
12367
|
-
c.sort(e)}return new
|
|
12382
|
+
c.sort(e)}return new DL(o,this._parents).order()},call:function(){var t=arguments[0]
|
|
12368
12383
|
return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,r=i.length;o<r;++o){var s=i[o]
|
|
12369
12384
|
if(s)return s}return null},size:function(){let t=0
|
|
12370
12385
|
for(const e of this)++t
|
|
12371
12386
|
return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o,r=e[n],s=0,a=r.length;s<a;++s)(o=r[s])&&t.call(o,o.__data__,s,r)
|
|
12372
|
-
return this},attr:function(t,e){var n=
|
|
12387
|
+
return this},attr:function(t,e){var n=CP(t)
|
|
12373
12388
|
if(arguments.length<2){var i=this.node()
|
|
12374
|
-
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?UP:
|
|
12375
|
-
if(arguments.length<2){for(var i=
|
|
12376
|
-
return!0}return this.each(("function"==typeof e?
|
|
12377
|
-
return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t
|
|
12378
|
-
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(
|
|
12389
|
+
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?jP:UP:"function"==typeof e?n.local?KP:GP:n.local?ZP:WP)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?XP:"function"==typeof e?QP:YP)(t,e,null==n?"":n)):tL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?eL:"function"==typeof e?iL:nL)(t,e)):this.node()[t]},classed:function(t,e){var n=oL(t+"")
|
|
12390
|
+
if(arguments.length<2){for(var i=rL(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
|
|
12391
|
+
return!0}return this.each(("function"==typeof e?hL:e?cL:dL)(n,e))},text:function(t){return arguments.length?this.each(null==t?uL:("function"==typeof t?fL:pL)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?mL:("function"==typeof t?vL:gL)(t)):this.node().innerHTML},raise:function(){return this.each(bL)},lower:function(){return this.each(yL)},append:function(t){var e="function"==typeof t?t:$P(t)
|
|
12392
|
+
return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:$P(t),i=null==e?wL:"function"==typeof e?e:_P(e)
|
|
12393
|
+
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(xL)},clone:function(t){return this.select(t?kL:CL)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,r=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
|
|
12379
12394
|
return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),s=r.length
|
|
12380
|
-
if(!(arguments.length<2)){for(a=e
|
|
12395
|
+
if(!(arguments.length<2)){for(a=e?$L:SL,i=0;i<s;++i)this.each(a(r[i],e,n))
|
|
12381
12396
|
return this}var a=this.node().__on
|
|
12382
|
-
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?_L
|
|
12383
|
-
const
|
|
12384
|
-
function
|
|
12397
|
+
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?EL:_L)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
|
|
12398
|
+
const RL={capture:!0,passive:!1}
|
|
12399
|
+
function FL(t){t.preventDefault(),t.stopImmediatePropagation()}function NL(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function PL(t,e){var n=Object.create(t.prototype)
|
|
12385
12400
|
for(var i in e)n[i]=e[i]
|
|
12386
|
-
return n}function
|
|
12387
|
-
function
|
|
12388
|
-
return t=(t+"").trim().toLowerCase(),(e=
|
|
12389
|
-
var o}function
|
|
12390
|
-
return`${1===t?"rgb(":"rgba("}${
|
|
12391
|
-
if(t instanceof
|
|
12392
|
-
if(t instanceof
|
|
12401
|
+
return n}function LL(){}var zL=.7,VL=1/zL,HL="\\s*([+-]?\\d+)\\s*",BL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UL=/^#([0-9a-f]{3,8})$/,jL=new RegExp(`^rgb\\(${HL},${HL},${HL}\\)$`),WL=new RegExp(`^rgb\\(${qL},${qL},${qL}\\)$`),ZL=new RegExp(`^rgba\\(${HL},${HL},${HL},${BL}\\)$`),GL=new RegExp(`^rgba\\(${qL},${qL},${qL},${BL}\\)$`),KL=new RegExp(`^hsl\\(${BL},${qL},${qL}\\)$`),JL=new RegExp(`^hsla\\(${BL},${qL},${qL},${BL}\\)$`),XL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
|
|
12402
|
+
function YL(){return this.rgb().formatHex()}function QL(){return this.rgb().formatRgb()}function tz(t){var e,n
|
|
12403
|
+
return t=(t+"").trim().toLowerCase(),(e=UL.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ez(e):3===n?new oz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?nz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?nz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jL.exec(t))?new oz(e[1],e[2],e[3],1):(e=WL.exec(t))?new oz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ZL.exec(t))?nz(e[1],e[2],e[3],e[4]):(e=GL.exec(t))?nz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=KL.exec(t))?dz(e[1],e[2]/100,e[3]/100,1):(e=JL.exec(t))?dz(e[1],e[2]/100,e[3]/100,e[4]):XL.hasOwnProperty(t)?ez(XL[t]):"transparent"===t?new oz(NaN,NaN,NaN,0):null}function ez(t){return new oz(t>>16&255,t>>8&255,255&t,1)}function nz(t,e,n,i){return i<=0&&(t=e=n=NaN),new oz(t,e,n,i)}function iz(t,e,n,i){return 1===arguments.length?((o=t)instanceof LL||(o=tz(o)),o?new oz((o=o.rgb()).r,o.g,o.b,o.opacity):new oz):new oz(t,e,n,null==i?1:i)
|
|
12404
|
+
var o}function oz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function rz(){return`#${cz(this.r)}${cz(this.g)}${cz(this.b)}`}function sz(){const t=az(this.opacity)
|
|
12405
|
+
return`${1===t?"rgb(":"rgba("}${lz(this.r)}, ${lz(this.g)}, ${lz(this.b)}${1===t?")":`, ${t})`}`}function az(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function lz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function cz(t){return((t=lz(t))<16?"0":"")+t.toString(16)}function dz(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new uz(t,e,n,i)}function hz(t){if(t instanceof uz)return new uz(t.h,t.s,t.l,t.opacity)
|
|
12406
|
+
if(t instanceof LL||(t=tz(t)),!t)return new uz
|
|
12407
|
+
if(t instanceof uz)return t
|
|
12393
12408
|
var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),r=Math.max(e,n,i),s=NaN,a=r-o,l=(r+o)/2
|
|
12394
|
-
return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new
|
|
12395
|
-
return new
|
|
12396
|
-
return`${1===t?"hsl(":"hsla("}${
|
|
12397
|
-
var
|
|
12398
|
-
function
|
|
12399
|
-
return n?function(t,e){return function(n){return t+n*e}}(t,n):
|
|
12400
|
-
function i(t,e){var i=n((t=
|
|
12409
|
+
return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new uz(s,a,l,t.opacity)}function uz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function pz(t){return(t=(t||0)%360)<0?t+360:t}function fz(t){return Math.max(0,Math.min(1,t||0))}function mz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}NL(LL,tz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:YL,formatHex:YL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hz(this).formatHsl()},formatRgb:QL,toString:QL}),NL(oz,iz,PL(LL,{brighter(t){return t=null==t?VL:Math.pow(VL,t),new oz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?zL:Math.pow(zL,t),new oz(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new oz(lz(this.r),lz(this.g),lz(this.b),az(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rz,formatHex:rz,formatHex8:function(){return`#${cz(this.r)}${cz(this.g)}${cz(this.b)}${cz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sz,toString:sz})),NL(uz,(function(t,e,n,i){return 1===arguments.length?hz(t):new uz(t,e,n,null==i?1:i)}),PL(LL,{brighter(t){return t=null==t?VL:Math.pow(VL,t),new uz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?zL:Math.pow(zL,t),new uz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i
|
|
12410
|
+
return new oz(mz(t>=240?t-240:t+120,o,i),mz(t,o,i),mz(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new uz(pz(this.h),fz(this.s),fz(this.l),az(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=az(this.opacity)
|
|
12411
|
+
return`${1===t?"hsl(":"hsla("}${pz(this.h)}, ${100*fz(this.s)}%, ${100*fz(this.l)}%${1===t?")":`, ${t})`}`}}))
|
|
12412
|
+
var gz=t=>()=>t
|
|
12413
|
+
function vz(t){return 1==(t=+t)?bz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):gz(isNaN(e)?n:e)}}function bz(t,e){var n=e-t
|
|
12414
|
+
return n?function(t,e){return function(n){return t+n*e}}(t,n):gz(isNaN(t)?e:t)}var yz=function t(e){var n=vz(e)
|
|
12415
|
+
function i(t,e){var i=n((t=iz(t)).r,(e=iz(e)).r),o=n(t.g,e.g),r=n(t.b,e.b),s=bz(t.opacity,e.opacity)
|
|
12401
12416
|
return function(e){return t.r=i(e),t.g=o(e),t.b=r(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1)
|
|
12402
|
-
function
|
|
12417
|
+
function wz(t,e){e||(e=[])
|
|
12403
12418
|
var n,i=t?Math.min(e.length,t.length):0,o=e.slice()
|
|
12404
12419
|
return function(r){for(n=0;n<i;++n)o[n]=t[n]*(1-r)+e[n]*r
|
|
12405
|
-
return o}}function
|
|
12406
|
-
for(n=0;n<o;++n)r[n]=
|
|
12420
|
+
return o}}function xz(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,r=new Array(o),s=new Array(i)
|
|
12421
|
+
for(n=0;n<o;++n)r[n]=Ez(t[n],e[n])
|
|
12407
12422
|
for(;n<i;++n)s[n]=e[n]
|
|
12408
12423
|
return function(t){for(n=0;n<o;++n)s[n]=r[n](t)
|
|
12409
|
-
return s}}function
|
|
12410
|
-
return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function
|
|
12411
|
-
for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=
|
|
12424
|
+
return s}}function Cz(t,e){var n=new Date
|
|
12425
|
+
return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function kz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Sz(t,e){var n,i={},o={}
|
|
12426
|
+
for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Ez(t[n],e[n]):o[n]=e[n]
|
|
12412
12427
|
return function(t){for(n in i)o[n]=i[n](t)
|
|
12413
|
-
return o}}var
|
|
12414
|
-
function
|
|
12415
|
-
for(t+="",e+="";(n
|
|
12428
|
+
return o}}var $z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mz=new RegExp($z.source,"g")
|
|
12429
|
+
function _z(t,e){var n,i,o,r=$z.lastIndex=Mz.lastIndex=0,s=-1,a=[],l=[]
|
|
12430
|
+
for(t+="",e+="";(n=$z.exec(t))&&(i=Mz.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:kz(n,i)})),r=Mz.lastIndex
|
|
12416
12431
|
return r<e.length&&(o=e.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t)
|
|
12417
|
-
return a.join("")})}function
|
|
12418
|
-
return null==e||"boolean"===o?
|
|
12419
|
-
function
|
|
12420
|
-
return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(e,t)*
|
|
12432
|
+
return a.join("")})}function Ez(t,e){var n,i,o=typeof e
|
|
12433
|
+
return null==e||"boolean"===o?gz(e):("number"===o?kz:"string"===o?(n=tz(e))?(e=n,yz):_z:e instanceof tz?yz:e instanceof Date?Cz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?xz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Sz:kz:wz))(t,e)}function Iz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Dz,Az=180/Math.PI,Tz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
12434
|
+
function Oz(t,e,n,i,o,r){var s,a,l
|
|
12435
|
+
return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(e,t)*Az,skewX:Math.atan(l)*Az,scaleX:s,scaleY:a}}function Rz(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(r,s){var a=[],l=[]
|
|
12421
12436
|
return r=t(r),s=t(s),function(t,i,o,r,s,a){if(t!==o||i!==r){var l=s.push("translate(",null,e,null,n)
|
|
12422
|
-
a.push({i:l-4,x:
|
|
12423
|
-
s.push({i:a-4,x:
|
|
12424
|
-
return a.join("")}}}var Rz
|
|
12425
|
-
return e.isIdentity?
|
|
12426
|
-
function
|
|
12437
|
+
a.push({i:l-4,x:kz(t,o)},{i:l-2,x:kz(i,r)})}else(o||r)&&s.push("translate("+o+e+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:kz(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(r.rotate,s.rotate,a,l),function(t,e,n,r){t!==e?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:kz(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(r.skewX,s.skewX,a,l),function(t,e,n,i,r,s){if(t!==n||e!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
|
|
12438
|
+
s.push({i:a-4,x:kz(t,n)},{i:a-2,x:kz(e,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
|
|
12439
|
+
return a.join("")}}}var Fz=Rz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
|
|
12440
|
+
return e.isIdentity?Tz:Oz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Nz=Rz((function(t){return null==t?Tz:(Dz||(Dz=document.createElementNS("http://www.w3.org/2000/svg","g")),Dz.setAttribute("transform",t),(t=Dz.transform.baseVal.consolidate())?Oz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Tz)}),", ",")",")")
|
|
12441
|
+
function Pz(t){return((t=Math.exp(t))+1/t)/2}var Lz,zz,Vz=function t(e,n,i){function o(t,o){var r,s,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
|
|
12427
12442
|
if(m<1e-12)s=Math.log(u/c)/e,r=function(t){return[a+t*p,l+t*f,c*Math.exp(e*t*s)]}
|
|
12428
12443
|
else{var g=Math.sqrt(m),v=(u*u-c*c+i*m)/(2*c*n*g),b=(u*u-c*c-i*m)/(2*u*n*g),y=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(b*b+1)-b)
|
|
12429
|
-
s=(w-y)/e,r=function(t){var i,o=t*s,r=
|
|
12430
|
-
return[a+d*p,l+d*f,c*r/
|
|
12431
|
-
return t(n,i,i*i)},o}(Math.SQRT2,2,4),
|
|
12432
|
-
function
|
|
12433
|
-
return i.restart(t,e,n),i}function
|
|
12434
|
-
try{!function(){
|
|
12435
|
-
for(var t,e=
|
|
12436
|
-
for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:
|
|
12437
|
-
|
|
12438
|
-
e>
|
|
12439
|
-
return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}
|
|
12440
|
-
n=(null==n?
|
|
12441
|
-
var
|
|
12442
|
-
function
|
|
12444
|
+
s=(w-y)/e,r=function(t){var i,o=t*s,r=Pz(y),d=c/(n*g)*(r*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
|
|
12445
|
+
return[a+d*p,l+d*f,c*r/Pz(e*o+y)]}}return r.duration=1e3*s*e/Math.SQRT2,r}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
|
|
12446
|
+
return t(n,i,i*i)},o}(Math.SQRT2,2,4),Hz=0,Bz=0,qz=0,Uz=1e3,jz=0,Wz=0,Zz=0,Gz="object"==typeof performance&&performance.now?performance:Date,Kz="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
|
|
12447
|
+
function Jz(){return Wz||(Kz(Xz),Wz=Gz.now()+Zz)}function Xz(){Wz=0}function Yz(){this._call=this._time=this._next=null}function Qz(t,e,n){var i=new Yz
|
|
12448
|
+
return i.restart(t,e,n),i}function tV(){Wz=(jz=Gz.now())+Zz,Hz=Bz=0
|
|
12449
|
+
try{!function(){Jz(),++Hz
|
|
12450
|
+
for(var t,e=Lz;e;)(t=Wz-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Hz}()}finally{Hz=0,function(){var t,e,n=Lz,i=1/0
|
|
12451
|
+
for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Lz=e)
|
|
12452
|
+
zz=t,nV(i)}(),Wz=0}}function eV(){var t=Gz.now(),e=t-jz
|
|
12453
|
+
e>Uz&&(Zz-=e,jz=t)}function nV(t){Hz||(Bz&&(Bz=clearTimeout(Bz)),t-Wz>24?(t<1/0&&(Bz=setTimeout(tV,t-Gz.now()-Zz)),qz&&(qz=clearInterval(qz))):(qz||(jz=Gz.now(),qz=setInterval(eV,Uz)),Hz=1,Kz(tV)))}function iV(t,e,n){var i=new Yz
|
|
12454
|
+
return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}Yz.prototype=Qz.prototype={constructor:Yz,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
|
|
12455
|
+
n=(null==n?Jz():+n)+(null==e?0:+e),this._next||zz===this||(zz?zz._next=this:Lz=this,zz=this),this._call=t,this._time=n,nV()},stop:function(){this._call&&(this._call=null,this._time=1/0,nV())}}
|
|
12456
|
+
var oV=gP("start","end","cancel","interrupt"),rV=[],sV=0,aV=1,lV=2,cV=3,dV=4,hV=5,uV=6
|
|
12457
|
+
function pV(t,e,n,i,o,r){var s=t.__transition
|
|
12443
12458
|
if(s){if(n in s)return}else t.__transition={}
|
|
12444
12459
|
!function(t,e,n){var i,o=t.__transition
|
|
12445
|
-
function r(t){n.state=
|
|
12446
|
-
if(n.state!==
|
|
12447
|
-
for(c in o)if((u=o[c]).name===n.name){if(u.state===
|
|
12448
|
-
u.state===
|
|
12449
|
-
i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=
|
|
12450
|
-
n.state===
|
|
12451
|
-
delete t.__transition}o[e]=n,n.timer=
|
|
12452
|
-
if(n.state>
|
|
12453
|
-
return n}function
|
|
12454
|
-
if(n.state>
|
|
12455
|
-
return n}function
|
|
12460
|
+
function r(t){n.state=aV,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(r){var c,d,h,u
|
|
12461
|
+
if(n.state!==aV)return l()
|
|
12462
|
+
for(c in o)if((u=o[c]).name===n.name){if(u.state===cV)return iV(s)
|
|
12463
|
+
u.state===dV?(u.state=uV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=uV,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(iV((function(){n.state===cV&&(n.state=dV,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=lV,n.on.call("start",t,t.__data__,n.index,n.group),n.state===lV){for(n.state=cV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=u)
|
|
12464
|
+
i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=hV,1),r=-1,s=i.length;++r<s;)i[r].call(t,o)
|
|
12465
|
+
n.state===hV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=uV,n.timer.stop(),delete o[e],o)return
|
|
12466
|
+
delete t.__transition}o[e]=n,n.timer=Qz(r,0,n.time)}(t,n,{name:e,index:i,group:o,on:oV,tween:rV,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:sV})}function fV(t,e){var n=gV(t,e)
|
|
12467
|
+
if(n.state>sV)throw new Error("too late; already scheduled")
|
|
12468
|
+
return n}function mV(t,e){var n=gV(t,e)
|
|
12469
|
+
if(n.state>cV)throw new Error("too late; already running")
|
|
12470
|
+
return n}function gV(t,e){var n=t.__transition
|
|
12456
12471
|
if(!n||!(n=n[e]))throw new Error("transition not found")
|
|
12457
|
-
return n}function
|
|
12458
|
-
if(r){for(o in e=null==e?null:e+"",r)(n=r[o]).name===e?(i=n.state>
|
|
12459
|
-
s&&delete t.__transition}}function
|
|
12460
|
-
return function(){var o=
|
|
12472
|
+
return n}function vV(t,e){var n,i,o,r=t.__transition,s=!0
|
|
12473
|
+
if(r){for(o in e=null==e?null:e+"",r)(n=r[o]).name===e?(i=n.state>lV&&n.state<hV,n.state=uV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[o]):s=!1
|
|
12474
|
+
s&&delete t.__transition}}function bV(t,e){var n,i
|
|
12475
|
+
return function(){var o=mV(this,t),r=o.tween
|
|
12461
12476
|
if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1)
|
|
12462
|
-
break}o.tween=i}}function
|
|
12477
|
+
break}o.tween=i}}function yV(t,e,n){var i,o
|
|
12463
12478
|
if("function"!=typeof n)throw new Error
|
|
12464
|
-
return function(){var r=
|
|
12479
|
+
return function(){var r=mV(this,t),s=r.tween
|
|
12465
12480
|
if(s!==i){o=(i=s).slice()
|
|
12466
12481
|
for(var a={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=a
|
|
12467
|
-
break}l===c&&o.push(a)}r.tween=o}}function
|
|
12468
|
-
return t.each((function(){var t=
|
|
12469
|
-
return("number"==typeof e?
|
|
12482
|
+
break}l===c&&o.push(a)}r.tween=o}}function wV(t,e,n){var i=t._id
|
|
12483
|
+
return t.each((function(){var t=mV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return gV(t,i).value[e]}}function xV(t,e){var n
|
|
12484
|
+
return("number"==typeof e?kz:e instanceof tz?yz:(n=tz(e))?(e=n,yz):_z)(t,e)}function CV(t){return function(){this.removeAttribute(t)}}function kV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function SV(t,e,n){var i,o,r=n+""
|
|
12470
12485
|
return function(){var s=this.getAttribute(t)
|
|
12471
|
-
return s===r?null:s===i?o:o=e(i=s,n)}}function
|
|
12486
|
+
return s===r?null:s===i?o:o=e(i=s,n)}}function $V(t,e,n){var i,o,r=n+""
|
|
12472
12487
|
return function(){var s=this.getAttributeNS(t.space,t.local)
|
|
12473
|
-
return s===r?null:s===i?o:o=e(i=s,n)}}function
|
|
12488
|
+
return s===r?null:s===i?o:o=e(i=s,n)}}function MV(t,e,n){var i,o,r
|
|
12474
12489
|
return function(){var s,a,l=n(this)
|
|
12475
12490
|
if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=e(i=s,l))
|
|
12476
|
-
this.removeAttribute(t)}}function
|
|
12491
|
+
this.removeAttribute(t)}}function _V(t,e,n){var i,o,r
|
|
12477
12492
|
return function(){var s,a,l=n(this)
|
|
12478
12493
|
if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=e(i=s,l))
|
|
12479
|
-
this.removeAttributeNS(t.space,t.local)}}function
|
|
12494
|
+
this.removeAttributeNS(t.space,t.local)}}function EV(t,e){var n,i
|
|
12480
12495
|
function o(){var o=e.apply(this,arguments)
|
|
12481
|
-
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function
|
|
12496
|
+
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function IV(t,e){var n,i
|
|
12482
12497
|
function o(){var o=e.apply(this,arguments)
|
|
12483
|
-
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function
|
|
12484
|
-
function
|
|
12485
|
-
function
|
|
12486
|
-
|
|
12487
|
-
"function"!=typeof t&&(t=
|
|
12488
|
-
for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,
|
|
12489
|
-
return new
|
|
12490
|
-
"function"!=typeof t&&(t=
|
|
12491
|
-
for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=
|
|
12492
|
-
r.push(p),s.push(l)}return new
|
|
12498
|
+
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function DV(t,e){return function(){fV(this,t).delay=+e.apply(this,arguments)}}function AV(t,e){return e=+e,function(){fV(this,t).delay=e}}function TV(t,e){return function(){mV(this,t).duration=+e.apply(this,arguments)}}function OV(t,e){return e=+e,function(){mV(this,t).duration=e}}var RV=AL.prototype.constructor
|
|
12499
|
+
function FV(t){return function(){this.style.removeProperty(t)}}var NV=0
|
|
12500
|
+
function PV(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function LV(){return++NV}var zV=AL.prototype
|
|
12501
|
+
PV.prototype={constructor:PV,select:function(t){var e=this._name,n=this._id
|
|
12502
|
+
"function"!=typeof t&&(t=_P(t))
|
|
12503
|
+
for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,pV(h[u],e,n,u,h,gV(a,n)))
|
|
12504
|
+
return new PV(r,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
|
|
12505
|
+
"function"!=typeof t&&(t=IP(t))
|
|
12506
|
+
for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=gV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&pV(u,e,n,m,p,f)
|
|
12507
|
+
r.push(p),s.push(l)}return new PV(r,s,e,n)},selectChild:zV.selectChild,selectChildren:zV.selectChildren,filter:function(t){"function"!=typeof t&&(t=AP(t))
|
|
12493
12508
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s=e[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&t.call(r,r.__data__,c,s)&&l.push(r)
|
|
12494
|
-
return new
|
|
12509
|
+
return new PV(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
|
|
12495
12510
|
for(var e=this._groups,n=t._groups,i=e.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=e[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
|
|
12496
12511
|
for(;a<i;++a)s[a]=e[a]
|
|
12497
|
-
return new
|
|
12498
|
-
|
|
12499
|
-
return arguments.length<2?
|
|
12500
|
-
return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?
|
|
12512
|
+
return new PV(s,this._parents,this._name,this._id)},selection:function(){return new RV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=LV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=gV(s,e)
|
|
12513
|
+
pV(s,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new PV(i,this._parents,t,n)},call:zV.call,nodes:zV.nodes,node:zV.node,size:zV.size,empty:zV.empty,each:zV.each,on:function(t,e){var n=this._id
|
|
12514
|
+
return arguments.length<2?gV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,r=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
|
|
12515
|
+
return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fV:mV
|
|
12501
12516
|
return function(){var s=r(this,t),a=s.on
|
|
12502
|
-
a!==i&&(o=(i=a).copy()).on(e,n),s.on=o}}(n,t,e))},attr:function(t,e){var n=
|
|
12503
|
-
return this.attrTween(t,"function"==typeof e?(n.local?MV
|
|
12517
|
+
a!==i&&(o=(i=a).copy()).on(e,n),s.on=o}}(n,t,e))},attr:function(t,e){var n=CP(t),i="transform"===n?Nz:xV
|
|
12518
|
+
return this.attrTween(t,"function"==typeof e?(n.local?_V:MV)(n,i,wV(this,"attr."+t,e)):null==e?(n.local?kV:CV)(n):(n.local?$V:SV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
|
|
12504
12519
|
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
12505
12520
|
if(null==e)return this.tween(n,null)
|
|
12506
12521
|
if("function"!=typeof e)throw new Error
|
|
12507
|
-
var i=
|
|
12508
|
-
return this.tween(n,(i.local?
|
|
12522
|
+
var i=CP(t)
|
|
12523
|
+
return this.tween(n,(i.local?EV:IV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Fz:xV
|
|
12509
12524
|
return null==e?this.styleTween(t,function(t,e){var n,i,o
|
|
12510
|
-
return function(){var r=
|
|
12511
|
-
return r===s?null:r===n&&s===i?o:o=e(n=r,i=s)}}(t,i)).on("end.style."+t,
|
|
12512
|
-
return function(){var s=
|
|
12513
|
-
return null==a&&(this.style.removeProperty(t),l=a=
|
|
12514
|
-
return function(){var l=
|
|
12525
|
+
return function(){var r=tL(this,t),s=(this.style.removeProperty(t),tL(this,t))
|
|
12526
|
+
return r===s?null:r===n&&s===i?o:o=e(n=r,i=s)}}(t,i)).on("end.style."+t,FV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,r
|
|
12527
|
+
return function(){var s=tL(this,t),a=n(this),l=a+""
|
|
12528
|
+
return null==a&&(this.style.removeProperty(t),l=a=tL(this,t)),s===l?null:s===i&&l===o?r:(o=l,r=e(i=s,a))}}(t,i,wV(this,"style."+t,e))).each(function(t,e){var n,i,o,r,s="style."+e,a="end."+s
|
|
12529
|
+
return function(){var l=mV(this,t),c=l.on,d=null==l.value[s]?r||(r=FV(e)):void 0
|
|
12515
12530
|
c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,o,r=n+""
|
|
12516
|
-
return function(){var s=
|
|
12531
|
+
return function(){var s=tL(this,t)
|
|
12517
12532
|
return s===r?null:s===i?o:o=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="")
|
|
12518
12533
|
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
12519
12534
|
if(null==e)return this.tween(i,null)
|
|
@@ -12521,7 +12536,7 @@ if("function"!=typeof e)throw new Error
|
|
|
12521
12536
|
return this.tween(i,function(t,e,n){var i,o
|
|
12522
12537
|
function r(){var r=e.apply(this,arguments)
|
|
12523
12538
|
return r!==o&&(i=(o=r)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,r,n)),i}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this)
|
|
12524
|
-
this.textContent=null==e?"":e}}(
|
|
12539
|
+
this.textContent=null==e?"":e}}(wV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
|
|
12525
12540
|
if(arguments.length<1)return(e=this.tween(e))&&e._value
|
|
12526
12541
|
if(null==t)return this.tween(e,null)
|
|
12527
12542
|
if("function"!=typeof t)throw new Error
|
|
@@ -12530,59 +12545,59 @@ function i(){var i=t.apply(this,arguments)
|
|
|
12530
12545
|
return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode
|
|
12531
12546
|
for(var n in this.__transition)if(+n!==t)return
|
|
12532
12547
|
e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id
|
|
12533
|
-
if(t+="",arguments.length<2){for(var i,o=
|
|
12534
|
-
return null}return this.each((null==e?
|
|
12535
|
-
return arguments.length?this.each(("function"==typeof t?
|
|
12536
|
-
return arguments.length?this.each(("function"==typeof t?
|
|
12548
|
+
if(t+="",arguments.length<2){for(var i,o=gV(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===t)return i.value
|
|
12549
|
+
return null}return this.each((null==e?bV:yV)(n,t,e))},delay:function(t){var e=this._id
|
|
12550
|
+
return arguments.length?this.each(("function"==typeof t?DV:AV)(e,t)):gV(this.node(),e).delay},duration:function(t){var e=this._id
|
|
12551
|
+
return arguments.length?this.each(("function"==typeof t?TV:OV)(e,t)):gV(this.node(),e).duration},ease:function(t){var e=this._id
|
|
12537
12552
|
return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error
|
|
12538
|
-
return function(){
|
|
12553
|
+
return function(){mV(this,t).ease=e}}(e,t)):gV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
|
|
12539
12554
|
return this.each(function(t,e){return function(){var n=e.apply(this,arguments)
|
|
12540
12555
|
if("function"!=typeof n)throw new Error
|
|
12541
|
-
|
|
12556
|
+
mV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
|
|
12542
12557
|
return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
|
|
12543
|
-
n.each((function(){var n=
|
|
12544
|
-
o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&r()}))},[Symbol.iterator]:
|
|
12545
|
-
var
|
|
12546
|
-
function
|
|
12547
|
-
return n}
|
|
12548
|
-
t instanceof
|
|
12549
|
-
for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&
|
|
12550
|
-
return new
|
|
12551
|
-
var
|
|
12552
|
-
function
|
|
12553
|
-
var
|
|
12554
|
-
function
|
|
12555
|
-
return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function
|
|
12556
|
-
return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function
|
|
12557
|
-
function v(t){t.property("__zoom",
|
|
12558
|
-
return i===t.x&&o===t.y?t:new
|
|
12558
|
+
n.each((function(){var n=mV(this,i),o=n.on
|
|
12559
|
+
o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&r()}))},[Symbol.iterator]:zV[Symbol.iterator]}
|
|
12560
|
+
var VV={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
|
|
12561
|
+
function HV(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
|
|
12562
|
+
return n}AL.prototype.interrupt=function(t){return this.each((function(){vV(this,t)}))},AL.prototype.transition=function(t){var e,n
|
|
12563
|
+
t instanceof PV?(e=t._id,t=t._name):(e=LV(),(n=VV).time=Jz(),t=null==t?null:t+"")
|
|
12564
|
+
for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&pV(s,t,e,c,a,n||HV(s,e))
|
|
12565
|
+
return new PV(i,this._parents,t,e)}
|
|
12566
|
+
var BV=t=>()=>t
|
|
12567
|
+
function qV(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function UV(t,e,n){this.k=t,this.x=e,this.y=n}UV.prototype={constructor:UV,scale:function(t){return 1===t?this:new UV(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new UV(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
|
|
12568
|
+
var jV=new UV(1,0,0)
|
|
12569
|
+
function WV(t){t.stopImmediatePropagation()}function ZV(t){t.preventDefault(),t.stopImmediatePropagation()}function GV(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function KV(){var t=this
|
|
12570
|
+
return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function JV(){return this.__zoom||jV}function XV(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function YV(){return navigator.maxTouchPoints||"ontouchstart"in this}function QV(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],r=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1]
|
|
12571
|
+
return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function tH(){var t,e,n,i=GV,o=KV,r=QV,s=XV,a=YV,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Vz,u=gP("start","zoom","end"),p=500,f=150,m=0,g=10
|
|
12572
|
+
function v(t){t.property("__zoom",JV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new UV(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
|
|
12573
|
+
return i===t.x&&o===t.y?t:new UV(t.k,i,o)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,r=arguments,s=C(t,r).event(i),a=o.apply(t,r),l=null==n?w(a):"function"==typeof n?n.apply(t,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,r):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
12559
12574
|
return function(t){if(1===t)t=u
|
|
12560
12575
|
else{var e=p(t),n=c/e[2]
|
|
12561
|
-
t=new
|
|
12576
|
+
t=new UV(n,l[0]-e[0]*n,l[1]-e[1]*n)}s.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=OL(t)
|
|
12562
12577
|
if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
|
|
12563
12578
|
else{if(o.k===a)return
|
|
12564
|
-
n.mouse=[d,o.invert(d)],
|
|
12565
|
-
s.moved=e*e+n*n>m}s.event(t).zoom("mouse",r(y(s.that.__zoom,s.mouse[0]=
|
|
12566
|
-
e&&(i.on("click.drag",RL
|
|
12567
|
-
!function(t){var e=t.document.documentElement,n=
|
|
12568
|
-
"onselectstart"in e?n.on("selectstart.drag",RL
|
|
12569
|
-
|
|
12570
|
-
for(
|
|
12571
|
-
t&&(t=clearTimeout(t)),r&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),
|
|
12572
|
-
for(
|
|
12579
|
+
n.mouse=[d,o.invert(d)],vV(this),n.start()}ZV(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,s=C(this,e,!0).event(t),a=TL(t.view).on("mousemove.zoom",(function(t){if(ZV(t),!s.moved){var e=t.clientX-d,n=t.clientY-h
|
|
12580
|
+
s.moved=e*e+n*n>m}s.event(t).zoom("mouse",r(y(s.that.__zoom,s.mouse[0]=OL(t,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=TL(t).on("dragstart.drag",null)
|
|
12581
|
+
e&&(i.on("click.drag",FL,RL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,s.moved),ZV(t),s.event(t).end()}),!0),l=OL(t,o),d=t.clientX,h=t.clientY
|
|
12582
|
+
!function(t){var e=t.document.documentElement,n=TL(t).on("dragstart.drag",FL,RL)
|
|
12583
|
+
"onselectstart"in e?n.on("selectstart.drag",FL,RL):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),WV(t),s.mouse=[l,this.__zoom.invert(l)],vV(this),s.start()}}function M(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,s=OL(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(s),l=n.k*(t.shiftKey?.5:2),h=r(y(b(n,l),s,a),o.apply(this,e),c)
|
|
12584
|
+
ZV(t),d>0?TL(this).transition().duration(d).call(x,h,s,t):TL(this).call(v.transform,h,s,t)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
|
|
12585
|
+
for(WV(n),s=0;s<d;++s)l=[l=OL(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!t)
|
|
12586
|
+
t&&(t=clearTimeout(t)),r&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),vV(this),h.start())}}function E(t,...e){if(this.__zooming){var n,i,o,s,a=C(this,e).event(t),l=t.changedTouches,d=l.length
|
|
12587
|
+
for(ZV(t),n=0;n<d;++n)o=OL(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
|
|
12573
12588
|
if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,g=(g=f[0]-u[0])*g+(g=f[1]-u[1])*g
|
|
12574
12589
|
i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
|
|
12575
12590
|
o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(y(i,o,s),a.extent,c))}}function I(t,...i){if(this.__zooming){var o,r,s=C(this,i).event(t),a=t.changedTouches,l=a.length
|
|
12576
|
-
for(
|
|
12591
|
+
for(WV(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
|
|
12577
12592
|
if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
|
|
12578
|
-
else if(s.end(),2===s.taps&&(r=
|
|
12593
|
+
else if(s.end(),2===s.taps&&(r=OL(r,this),Math.hypot(e[0]-r[0],e[1]-r[1])<g)){var c=TL(this).on("dblclick.zoom")
|
|
12579
12594
|
c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,i){var o=t.selection?t.selection():t
|
|
12580
|
-
o.property("__zoom",
|
|
12595
|
+
o.property("__zoom",JV),t!==o?x(t,e,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,s=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof e?e.apply(this,arguments):e
|
|
12581
12596
|
return r(y(b(i,l),s,a),t,c)}),n,i)},v.translateBy=function(t,e,n,i){v.transform(t,(function(){return r(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(t,e,n,i,s){v.transform(t,(function(){var t=o.apply(this,arguments),s=this.__zoom,a=null==i?w(t):"function"==typeof i?i.apply(this,arguments):i
|
|
12582
|
-
return r(
|
|
12583
|
-
u.call(t,this.that,new
|
|
12584
|
-
return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}
|
|
12585
|
-
const
|
|
12597
|
+
return r(jV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,s)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=TL(this.that).datum()
|
|
12598
|
+
u.call(t,this.that,new qV(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:BV(+t),v):s},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:BV(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:BV(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:BV([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(r=t,v):r},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
|
|
12599
|
+
return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}UV.prototype
|
|
12600
|
+
const eH=Z`
|
|
12586
12601
|
<div class="wafer-map-container">
|
|
12587
12602
|
<svg class="svg-root">
|
|
12588
12603
|
<g ${Ft("zoomContainer")} transform=${t=>t.transform.toString()}>
|
|
@@ -12612,7 +12627,7 @@ const tH=Z`
|
|
|
12612
12627
|
/>
|
|
12613
12628
|
</svg>
|
|
12614
12629
|
</div>
|
|
12615
|
-
`,
|
|
12630
|
+
`,nH=yt`
|
|
12616
12631
|
:host {
|
|
12617
12632
|
display: inline-block;
|
|
12618
12633
|
width: 500px;
|
|
@@ -12696,67 +12711,67 @@ const tH=Z`
|
|
|
12696
12711
|
outline-width: 0px;
|
|
12697
12712
|
}
|
|
12698
12713
|
`
|
|
12699
|
-
function
|
|
12714
|
+
function iH(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oH(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rH(t){let e,n,i
|
|
12700
12715
|
function o(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r
|
|
12701
12716
|
do{const e=o+r>>>1
|
|
12702
|
-
n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=
|
|
12717
|
+
n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=iH,n=(e,n)=>iH(t(e),n),i=(e,n)=>t(e)-n):(e=t===iH||t===oH?t:sH,n=t,i=t),{left:o,center:function(t,e,n=0,r=t.length){const s=o(t,e,n,r-1)
|
|
12703
12718
|
return s>n&&i(t[s-1],e)>-i(t[s],e)?s-1:s},right:function(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r
|
|
12704
12719
|
do{const e=o+r>>>1
|
|
12705
|
-
n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function
|
|
12706
|
-
|
|
12707
|
-
class
|
|
12720
|
+
n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function sH(){return 0}function aH(t){return null===t?NaN:+t}const lH=rH(iH).right
|
|
12721
|
+
rH(aH).center
|
|
12722
|
+
class cH extends Map{constructor(t,e=hH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(dH(this,t))}has(t){return super.has(dH(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
|
|
12708
12723
|
return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n)
|
|
12709
12724
|
t.has(i)&&(n=t.get(i),t.delete(i))
|
|
12710
|
-
return n}(this,t))}}function
|
|
12711
|
-
return t.has(i)?t.get(i):n}function
|
|
12712
|
-
function
|
|
12725
|
+
return n}(this,t))}}function dH({_intern:t,_key:e},n){const i=e(n)
|
|
12726
|
+
return t.has(i)?t.get(i):n}function hH(t){return null!==t&&"object"==typeof t?t.valueOf():t}const uH=Math.sqrt(50),pH=Math.sqrt(10),fH=Math.sqrt(2)
|
|
12727
|
+
function mH(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=uH?10:r>=pH?5:r>=fH?2:1
|
|
12713
12728
|
let a,l,c
|
|
12714
|
-
return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?
|
|
12729
|
+
return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?mH(t,e,2*n):[a,l,c]}function gH(t,e,n){return mH(t=+t,e=+e,n=+n)[2]}function vH(t,e,n=aH){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
|
|
12715
12730
|
if(e>=1)return+n(t[i-1],i-1,t)
|
|
12716
12731
|
var i,o=(i-1)*e,r=Math.floor(o),s=+n(t[r],r,t)
|
|
12717
|
-
return s+(+n(t[r+1],r+1,t)-s)*(o-r)}}function
|
|
12732
|
+
return s+(+n(t[r+1],r+1,t)-s)*(o-r)}}function bH(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
|
|
12718
12733
|
for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),r=new Array(o);++i<o;)r[i]=t+i*n
|
|
12719
|
-
return r}function
|
|
12734
|
+
return r}function yH(t,e){switch(arguments.length){case 0:break
|
|
12720
12735
|
case 1:this.range(t)
|
|
12721
12736
|
break
|
|
12722
|
-
default:this.range(e).domain(t)}return this}const
|
|
12723
|
-
function
|
|
12737
|
+
default:this.range(e).domain(t)}return this}const wH=Symbol("implicit")
|
|
12738
|
+
function xH(){var t=new cH,e=[],n=[],i=wH
|
|
12724
12739
|
function o(o){let r=t.get(o)
|
|
12725
|
-
if(void 0===r){if(i!==
|
|
12740
|
+
if(void 0===r){if(i!==wH)return i
|
|
12726
12741
|
t.set(o,r=e.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice()
|
|
12727
|
-
e=[],t=new
|
|
12742
|
+
e=[],t=new cH
|
|
12728
12743
|
for(const i of n)t.has(i)||t.set(i,e.push(i)-1)
|
|
12729
|
-
return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return
|
|
12744
|
+
return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return xH(e,n).unknown(i)},yH.apply(o,arguments),o}function CH(){var t,e,n=xH().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
|
|
12730
12745
|
function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
|
|
12731
12746
|
t=(p-u)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),u+=(p-u-t*(n-l))*d,e=t*(1-l),a&&(u=Math.round(u),e=Math.round(e))
|
|
12732
|
-
var f=
|
|
12733
|
-
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return
|
|
12734
|
-
function
|
|
12735
|
-
var n}function
|
|
12736
|
-
return o<i?(i
|
|
12737
|
-
for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]
|
|
12738
|
-
return function(e){var n=
|
|
12739
|
-
return r[n](o[n](e))}}function
|
|
12747
|
+
var f=bH(n).map((function(e){return u+t*e}))
|
|
12748
|
+
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return CH(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},yH.apply(h(),arguments)}function kH(t){return+t}var SH=[0,1]
|
|
12749
|
+
function $H(t){return t}function MH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
|
|
12750
|
+
var n}function _H(t,e,n){var i=t[0],o=t[1],r=e[0],s=e[1]
|
|
12751
|
+
return o<i?(i=MH(o,i),r=n(s,r)):(i=MH(i,o),r=n(r,s)),function(t){return r(i(t))}}function EH(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),r=new Array(i),s=-1
|
|
12752
|
+
for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=MH(t[s],t[s+1]),r[s]=n(e[s],e[s+1])
|
|
12753
|
+
return function(e){var n=lH(t,e,1,i)-1
|
|
12754
|
+
return r[n](o[n](e))}}function IH(){var t,e,n,i,o,r,s=SH,a=SH,l=Ez,c=$H
|
|
12740
12755
|
function d(){var t,e,n,l=Math.min(s.length,a.length)
|
|
12741
|
-
return c
|
|
12756
|
+
return c!==$H&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?EH:_H,o=r=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((r||(r=i(a,s.map(t),kz)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,kH),d()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Iz,d()},h.clamp=function(t){return arguments.length?(c=!!t||$H,d()):c!==$H},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function DH(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
|
|
12742
12757
|
var n,i=t.slice(0,n)
|
|
12743
|
-
return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function
|
|
12744
|
-
function
|
|
12758
|
+
return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function AH(t){return(t=DH(Math.abs(t)))?t[1]:NaN}var TH,OH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
12759
|
+
function RH(t){if(!(e=OH.exec(t)))throw new Error("invalid format: "+t)
|
|
12745
12760
|
var e
|
|
12746
|
-
return new
|
|
12761
|
+
return new FH({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function FH(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function NH(t,e){var n=DH(t,e)
|
|
12747
12762
|
if(!n)return t+""
|
|
12748
12763
|
var i=n[0],o=n[1]
|
|
12749
|
-
return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}
|
|
12750
|
-
var
|
|
12764
|
+
return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}RH.prototype=FH.prototype,FH.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
|
|
12765
|
+
var PH={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>NH(100*t,e),r:NH,s:function(t,e){var n=DH(t,e)
|
|
12751
12766
|
if(!n)return t+""
|
|
12752
|
-
var i=n[0],o=n[1],r=o-(
|
|
12753
|
-
return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+
|
|
12754
|
-
function
|
|
12755
|
-
function
|
|
12756
|
-
return r.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?
|
|
12757
|
-
function h(t){var e=(t=
|
|
12758
|
-
"n"===b?(m=!0,b="g"):
|
|
12759
|
-
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?r:/[%p]/.test(b)?l:"",x=
|
|
12767
|
+
var i=n[0],o=n[1],r=o-(TH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
|
|
12768
|
+
return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+DH(t,Math.max(0,e+r-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
|
|
12769
|
+
function LH(t){return t}var zH,VH,HH,BH=Array.prototype.map,qH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
12770
|
+
function UH(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?LH:(e=BH.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,r=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[s=(s+1)%e.length]
|
|
12771
|
+
return r.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?LH:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(BH.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
|
|
12772
|
+
function h(t){var e=(t=RH(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
|
|
12773
|
+
"n"===b?(m=!0,b="g"):PH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
|
|
12774
|
+
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?r:/[%p]/.test(b)?l:"",x=PH[b],C=/[defgprs%]/.test(b)
|
|
12760
12775
|
function k(t){var o,r,l,u=y,k=w
|
|
12761
12776
|
if("c"===b)k=x(t)+k,t=""
|
|
12762
12777
|
else{var S=(t=+t)<0||1/t<0
|
|
@@ -12765,7 +12780,7 @@ break
|
|
|
12765
12780
|
case"0":0===o&&(o=i),e=i
|
|
12766
12781
|
break
|
|
12767
12782
|
default:if(!+t[i])break t
|
|
12768
|
-
o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?
|
|
12783
|
+
o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?qH[8+TH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,r=t.length;++o<r;)if(48>(l=t.charCodeAt(o))||l>57){k=(46===l?s+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o)
|
|
12769
12784
|
break}}m&&!p&&(t=i(t,1/0))
|
|
12770
12785
|
var $=u.length+t.length+k.length,M=$<f?new Array(f-$+1).join(e):""
|
|
12771
12786
|
switch(m&&p&&(t=i(M+t,M.length?f-k.length:1/0),M=""),n){case"<":t=u+t+k+M
|
|
@@ -12774,19 +12789,19 @@ case"=":t=u+M+t+k
|
|
|
12774
12789
|
break
|
|
12775
12790
|
case"^":t=M.slice(0,$=M.length>>1)+u+t+k+M.slice($)
|
|
12776
12791
|
break
|
|
12777
|
-
default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=
|
|
12778
|
-
return function(t){return n(o*t)+r}}}}function
|
|
12779
|
-
const i=(e=+e)<(t=+t),o=i?
|
|
12792
|
+
default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=RH(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(AH(e)/3))),o=Math.pow(10,-i),r=qH[8+i/3]
|
|
12793
|
+
return function(t){return n(o*t)+r}}}}function jH(t,e,n,i){var o,r=function(t,e,n){n=+n
|
|
12794
|
+
const i=(e=+e)<(t=+t),o=i?gH(e,t,n):gH(t,e,n)
|
|
12780
12795
|
return(i?-1:1)*(o<0?1/-o:o)}(t,e,n)
|
|
12781
|
-
switch((i=
|
|
12782
|
-
return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
12783
|
-
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,
|
|
12796
|
+
switch((i=RH(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e))
|
|
12797
|
+
return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(AH(e)/3)))-AH(Math.abs(t)))}(r,s))||(i.precision=o),HH(i,s)
|
|
12798
|
+
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,AH(e)-AH(t))+1}(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
|
|
12784
12799
|
break
|
|
12785
|
-
case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-
|
|
12800
|
+
case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-AH(Math.abs(t)))}(r))||(i.precision=o-2*("%"===i.type))}return VH(i)}function WH(t){var e=t.domain
|
|
12786
12801
|
return t.ticks=function(t){var n=e()
|
|
12787
12802
|
return function(t,e,n){if(!((n=+n)>0))return[]
|
|
12788
12803
|
if((t=+t)==(e=+e))return[t]
|
|
12789
|
-
const i=e<t,[o,r,s]=i?
|
|
12804
|
+
const i=e<t,[o,r,s]=i?mH(e,t,n):mH(t,e,n)
|
|
12790
12805
|
if(!(r>=o))return[]
|
|
12791
12806
|
const a=r-o+1,l=new Array(a)
|
|
12792
12807
|
if(i)if(s<0)for(let t=0;t<a;++t)l[t]=(r-t)/-s
|
|
@@ -12794,23 +12809,23 @@ else for(let t=0;t<a;++t)l[t]=(r-t)*s
|
|
|
12794
12809
|
else if(s<0)for(let t=0;t<a;++t)l[t]=(o+t)/-s
|
|
12795
12810
|
else for(let t=0;t<a;++t)l[t]=(o+t)*s
|
|
12796
12811
|
return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
|
|
12797
|
-
return
|
|
12812
|
+
return jH(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
|
|
12798
12813
|
var i,o,r=e(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
|
|
12799
|
-
for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=
|
|
12814
|
+
for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=gH(l,c,n))===i)return r[s]=l,r[a]=c,e(r)
|
|
12800
12815
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
12801
12816
|
else{if(!(o<0))break
|
|
12802
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}function
|
|
12803
|
-
return t.copy=function(){return e=t,
|
|
12804
|
-
var e},
|
|
12817
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}function ZH(){var t=IH()($H,$H)
|
|
12818
|
+
return t.copy=function(){return e=t,ZH().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
|
|
12819
|
+
var e},yH.apply(t,arguments),WH(t)}function GH(){var t,e=[],n=[],i=[]
|
|
12805
12820
|
function o(){var t=0,o=Math.max(1,n.length)
|
|
12806
|
-
for(i=new Array(o-1);++t<o;)i[t-1]=
|
|
12807
|
-
return r}function r(e){return null==e||isNaN(e=+e)?t:n[
|
|
12821
|
+
for(i=new Array(o-1);++t<o;)i[t-1]=vH(e,t/o)
|
|
12822
|
+
return r}function r(e){return null==e||isNaN(e=+e)?t:n[lH(i,e)]}return r.invertExtent=function(t){var o=n.indexOf(t)
|
|
12808
12823
|
return o<0?[NaN,NaN]:[o>0?i[o-1]:e[0],o<i.length?i[o]:e[e.length-1]]},r.domain=function(t){if(!arguments.length)return e.slice()
|
|
12809
12824
|
e=[]
|
|
12810
12825
|
for(let n of t)null==n||isNaN(n=+n)||e.push(n)
|
|
12811
|
-
return e.sort(
|
|
12812
|
-
const
|
|
12813
|
-
let
|
|
12826
|
+
return e.sort(iH),o()},r.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.quantiles=function(){return i.slice()},r.copy=function(){return GH().domain(e).range(n).unknown(t)},yH.apply(r,arguments)}zH=UH({thousands:",",grouping:[3],currency:["$",""]}),VH=zH.format,HH=zH.formatPrefix
|
|
12827
|
+
const KH="bottom-left",JH="bottom-right",XH="top-left",YH="top",QH="show",tB="hide",eB="linear",nB="ordinal"
|
|
12828
|
+
let iB=class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12814
12829
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
|
|
12815
12830
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
12816
12831
|
this._radius=o/2,this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
|
|
@@ -12818,30 +12833,30 @@ this._horizontalScale=this.createHorizontalScale(n,e,t),this._invertedHorizontal
|
|
|
12818
12833
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(t){if(0===t.length||void 0===t[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
12819
12834
|
const e={x:t[0].x,y:t[0].y},n={x:t[0].x,y:t[0].y}
|
|
12820
12835
|
for(const i of t)i.x<e.x&&(e.x=i.x),i.y<e.y&&(e.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
|
|
12821
|
-
return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=
|
|
12822
|
-
return t===
|
|
12823
|
-
return t===
|
|
12824
|
-
return t===
|
|
12825
|
-
return t===
|
|
12826
|
-
class
|
|
12836
|
+
return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=CH().domain(bH(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
|
|
12837
|
+
return t===KH||t===XH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=GH().domain([0,n])
|
|
12838
|
+
return t===KH||t===XH?i.range(bH(e.origin.x,e.origin.x+e.cols)):i.range(bH(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=CH().domain(bH(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
12839
|
+
return t===KH||t===JH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=GH().domain([0,n])
|
|
12840
|
+
return t===KH||t===JH?i.range(bH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(bH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}
|
|
12841
|
+
class oB{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
|
|
12827
12842
|
this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter((t=>null!==t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
|
|
12828
|
-
return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?
|
|
12843
|
+
return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?ZH().domain(t.values.map((t=>+t))).range(t.colors):xH().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
|
|
12829
12844
|
const o=`${t}${i}`
|
|
12830
12845
|
return o.length>=e?`${o.substring(0,e)}…`:o}calculateOpacity(t,e){if(!e||0===e.length)return 1
|
|
12831
12846
|
const n=new Set(e)
|
|
12832
|
-
return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===
|
|
12847
|
+
return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===eB}isColorScaleOrdinal(t){return t===nB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
|
|
12833
12848
|
if(this.dieHasData(t)&&(isNaN(+t)?o=this.nanDieColor:this.isColorScaleLinear(e)?o=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(o=this.d3ColorScale(t))),void 0===o)return this.emptyDieColor
|
|
12834
12849
|
let r=Zo(o)
|
|
12835
|
-
return null===r?this.emptyDieColor:(r=new zo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}let
|
|
12836
|
-
class
|
|
12850
|
+
return null===r?this.emptyDieColor:(r=new zo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}let rB=class{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new iB(t),this.prerendering=new oB(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}
|
|
12851
|
+
class sB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12837
12852
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin),this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(),n=this.wafermap.originLocation
|
|
12838
12853
|
this._horizontalScale=this.createHorizontalScale(n,e,t),this._verticalScale=this.createVerticalScale(n,e,t),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))}}gridDimensionsValidAndDefined(){return!this.wafermap.validity.invalidGridDimensions&&"number"==typeof this.wafermap.gridMinX&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX}calculateGridDimensionsFromBoundingBox(){const t={origin:{x:0,y:0},rows:0,cols:0}
|
|
12839
12854
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return{origin:{x:0,y:0},rows:0,cols:0}
|
|
12840
12855
|
const t=this.wafermap.diesTable.getChild("colIndex").toArray(),e=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:t[0],y:e[0]},i={x:t[0],y:e[0]}
|
|
12841
12856
|
for(let o=0;o<t.length;o++)t[o]<n.x&&(n.x=t[o]),t[o]>i.x&&(i.x=t[o]),e[o]<n.y&&(n.y=e[o]),e[o]>i.y&&(i.y=e[o])
|
|
12842
|
-
return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=
|
|
12843
|
-
return t===
|
|
12844
|
-
return t===
|
|
12857
|
+
return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=ZH()
|
|
12858
|
+
return t===KH||t===XH?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=ZH()
|
|
12859
|
+
return t===KH||t===JH?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class aB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new sB(t),this.prerendering=new oB(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}class lB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?tB:QH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12845
12860
|
if(void 0===t)return""
|
|
12846
12861
|
const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12847
12862
|
if(void 0===e)return""
|
|
@@ -12854,70 +12869,70 @@ if(t*e*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
12854
12869
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
12855
12870
|
const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
|
|
12856
12871
|
r[0]-=t,r[1]-=e
|
|
12857
|
-
for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const
|
|
12858
|
-
class
|
|
12859
|
-
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(
|
|
12860
|
-
class
|
|
12861
|
-
class
|
|
12862
|
-
class
|
|
12872
|
+
for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const cB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
12873
|
+
class dB extends oI{constructor(t){super(cB),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var hB,uB,pB,fB,mB,gB,vB,bB,yB
|
|
12874
|
+
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(hB||(hB={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(uB||(uB={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(pB||(pB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(fB||(fB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(mB||(mB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(gB||(gB={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(vB||(vB={}))
|
|
12875
|
+
class wB{static isNull(t){return(null==t?void 0:t.typeId)===gB.Null}static isInt(t){return(null==t?void 0:t.typeId)===gB.Int}static isFloat(t){return(null==t?void 0:t.typeId)===gB.Float}static isBinary(t){return(null==t?void 0:t.typeId)===gB.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===gB.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===gB.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===gB.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===gB.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===gB.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===gB.Date}static isTime(t){return(null==t?void 0:t.typeId)===gB.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===gB.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===gB.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===gB.Duration}static isList(t){return(null==t?void 0:t.typeId)===gB.List}static isStruct(t){return(null==t?void 0:t.typeId)===gB.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===gB.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===gB.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===gB.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===gB.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===gB.Dictionary}static isDenseUnion(t){return wB.isUnion(t)&&t.mode===hB.Dense}static isSparseUnion(t){return wB.isUnion(t)&&t.mode===hB.Sparse}constructor(t){this.typeId=t}}bB=Symbol.toStringTag,wB[bB]=((yB=wB.prototype).children=null,yB.ArrayType=Array,yB.OffsetArrayType=Int32Array,yB[Symbol.toStringTag]="DataType")
|
|
12876
|
+
class xB extends wB{constructor(){super(gB.Null)}toString(){return"Null"}}xB[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(xB.prototype)
|
|
12877
|
+
class CB extends wB{constructor(t,e){super(gB.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
|
|
12863
12878
|
case 16:return this.isSigned?Int16Array:Uint16Array
|
|
12864
12879
|
case 32:return this.isSigned?Int32Array:Uint32Array
|
|
12865
|
-
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}
|
|
12866
|
-
class
|
|
12867
|
-
case
|
|
12868
|
-
case
|
|
12869
|
-
class
|
|
12870
|
-
class
|
|
12871
|
-
class
|
|
12872
|
-
class
|
|
12873
|
-
class
|
|
12874
|
-
class
|
|
12875
|
-
class
|
|
12876
|
-
class
|
|
12877
|
-
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}
|
|
12878
|
-
class
|
|
12879
|
-
class
|
|
12880
|
-
class
|
|
12881
|
-
class
|
|
12882
|
-
class
|
|
12883
|
-
class
|
|
12884
|
-
class
|
|
12885
|
-
class
|
|
12886
|
-
class
|
|
12887
|
-
if(super(
|
|
12880
|
+
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}CB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(CB.prototype)
|
|
12881
|
+
class kB extends wB{constructor(t){super(gB.Float),this.precision=t}get ArrayType(){switch(this.precision){case uB.HALF:return Uint16Array
|
|
12882
|
+
case uB.SINGLE:return Float32Array
|
|
12883
|
+
case uB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}kB[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(kB.prototype)
|
|
12884
|
+
class SB extends wB{constructor(){super(gB.Binary)}toString(){return"Binary"}}SB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(SB.prototype)
|
|
12885
|
+
class $B extends wB{constructor(){super(gB.LargeBinary)}toString(){return"LargeBinary"}}$B[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))($B.prototype)
|
|
12886
|
+
class MB extends wB{constructor(){super(gB.Utf8)}toString(){return"Utf8"}}MB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(MB.prototype)
|
|
12887
|
+
class _B extends wB{constructor(){super(gB.LargeUtf8)}toString(){return"LargeUtf8"}}_B[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(_B.prototype)
|
|
12888
|
+
class EB extends wB{constructor(){super(gB.Bool)}toString(){return"Bool"}}EB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(EB.prototype)
|
|
12889
|
+
class IB extends wB{constructor(t,e,n=128){super(gB.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}IB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(IB.prototype)
|
|
12890
|
+
class DB extends wB{constructor(t){super(gB.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${pB[this.unit]}>`}}DB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(DB.prototype)
|
|
12891
|
+
class AB extends wB{constructor(t,e){super(gB.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${fB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
|
|
12892
|
+
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}AB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(AB.prototype)
|
|
12893
|
+
class TB extends wB{constructor(t,e){super(gB.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${fB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}TB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(TB.prototype)
|
|
12894
|
+
class OB extends wB{constructor(t){super(gB.Interval),this.unit=t}toString(){return`Interval<${mB[this.unit]}>`}}OB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(OB.prototype)
|
|
12895
|
+
class RB extends wB{constructor(t){super(gB.Duration),this.unit=t}toString(){return`Duration<${fB[this.unit]}>`}}RB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(RB.prototype)
|
|
12896
|
+
class FB extends wB{constructor(t){super(gB.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}FB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(FB.prototype)
|
|
12897
|
+
class NB extends wB{constructor(t){super(gB.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}NB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(NB.prototype)
|
|
12898
|
+
class PB extends wB{constructor(t,e,n){super(gB.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}PB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(PB.prototype)
|
|
12899
|
+
class LB extends wB{constructor(t){super(gB.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}LB[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(LB.prototype)
|
|
12900
|
+
class zB extends wB{constructor(t,e){super(gB.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}zB[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(zB.prototype)
|
|
12901
|
+
class VB extends wB{constructor(t,e=!1){var n,i,o
|
|
12902
|
+
if(super(gB.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
|
|
12888
12903
|
e&&(e.name="key")
|
|
12889
12904
|
const n=null===(o=null==t?void 0:t.type)||void 0===o?void 0:o.children[1]
|
|
12890
|
-
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}
|
|
12891
|
-
const
|
|
12892
|
-
var
|
|
12893
|
-
class
|
|
12894
|
-
return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}
|
|
12895
|
-
class
|
|
12905
|
+
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}VB[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(VB.prototype)
|
|
12906
|
+
const HB=(BB=-1,()=>++BB)
|
|
12907
|
+
var BB
|
|
12908
|
+
class qB extends wB{constructor(t,e,n,i){super(gB.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?HB():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
|
|
12909
|
+
return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}qB[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(qB.prototype)
|
|
12910
|
+
class UB{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
|
|
12896
12911
|
else{const t=this.wafermap.diesTable.schema.fields,e=t.find((t=>"colIndex"===t.name)),n=t.find((t=>"rowIndex"===t.name)),i=t.find((t=>"value"===t.name))
|
|
12897
|
-
e&&n&&i&&
|
|
12912
|
+
e&&n&&i&&wB.isInt(e.type)&&32===e.type.bitWidth&&wB.isInt(n.type)&&32===n.type.bitWidth&&wB.isFloat(i.type)&&i.type.precision===uB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class jB{constructor(t){this.wafermap=t}updateSortedDiesAndDrawWafer(){this.drawWafer()}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?tB:QH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12898
12913
|
if(void 0===t)return""
|
|
12899
12914
|
const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12900
12915
|
if(void 0===e)return""
|
|
12901
12916
|
const n=this.wafermap.transform.apply([t+this.wafermap.dataManager.margin.left,e+this.wafermap.dataManager.margin.top])
|
|
12902
|
-
return`translate(${n[0]}, ${n[1]})`}return""}}let
|
|
12917
|
+
return`translate(${n[0]}, ${n[1]})`}return""}}let WB=class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalRenderer())return
|
|
12903
12918
|
const e={x:t.offsetX,y:t.offsetY}
|
|
12904
12919
|
if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
|
|
12905
12920
|
const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
|
|
12906
|
-
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalRenderer()&&this.wafermap.dataManager instanceof
|
|
12921
|
+
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalRenderer()&&this.wafermap.dataManager instanceof rB){const e=this.wafermap.originLocation,n=e===KH||e===XH?Math.floor:Math.ceil,i=e===KH||e===JH?Math.floor:Math.ceil
|
|
12907
12922
|
return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
|
|
12908
12923
|
let n=0
|
|
12909
12924
|
for(const t of e)n+=t
|
|
12910
12925
|
return n>0}}
|
|
12911
|
-
class
|
|
12926
|
+
class ZB{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalRenderer())return
|
|
12912
12927
|
const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
|
|
12913
12928
|
if(void 0===n)return void(this.wafermap.hoverDie=void 0)
|
|
12914
12929
|
const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
|
|
12915
12930
|
for(let t=0;t<i.length;t++)if(i[t]===n.x&&o[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
|
|
12916
|
-
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalRenderer()&&this.wafermap.dataManager instanceof
|
|
12917
|
-
return{x:n(this.wafermap.dataManager.horizontalScale.invert(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.verticalScale.invert(t.y-this.wafermap.dataManager.margin.top))}}}}class
|
|
12931
|
+
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalRenderer()&&this.wafermap.dataManager instanceof aB){const e=this.wafermap.originLocation,n=e===KH||e===XH?Math.floor:Math.ceil,i=e===KH||e===JH?Math.ceil:Math.floor
|
|
12932
|
+
return{x:n(this.wafermap.dataManager.horizontalScale.invert(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.verticalScale.invert(t.y-this.wafermap.dataManager.margin.top))}}}}class GB{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){tH().on("zoom",null)(TL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}createZoomBehavior(){tH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(TL(this.wafermap))}}class KB extends Le{constructor(){super(...arguments),this.waferMapUpdateTracker=new dB(this.asRequiredFieldsWaferMap),this.originLocation=KH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=YH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=eB,this.stableDataManager=new rB(this.asRequiredFieldsWaferMap),this.experimentalDataManager=new aB(this.asRequiredFieldsWaferMap),this.dataManager=this.stableDataManager,this.mainRenderer=new lB(this.asRequiredFieldsWaferMap),this.workerRenderer=new jB(this.asRequiredFieldsWaferMap),this.renderer=this.mainRenderer,this.renderQueued=!1,this.transform=jV,this.hoverTransform="",this.hoverOpacity=tB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new WB(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new ZB(this.asRequiredFieldsWaferMap),this.zoomHandler=new GB(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new UB(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}update(){this.validate(),this.validity.invalidDiesTableSchema||(this.renderer=this.isExperimentalRenderer()?this.workerRenderer:this.mainRenderer,this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.dataManager=this.isExperimentalRenderer()?this.experimentalDataManager:this.stableDataManager,this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover())}isExperimentalRenderer(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
|
|
12918
12933
|
if(void 0===e)return
|
|
12919
12934
|
const{height:n,width:i}=e.contentRect
|
|
12920
|
-
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([st({attribute:"origin-location"})],
|
|
12921
|
-
const KB
|
|
12922
|
-
bi.getOrCreate().withPrefix("nimble").register(
|
|
12935
|
+
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([st({attribute:"origin-location"})],KB.prototype,"originLocation",void 0),t([st({attribute:"grid-min-x",converter:ot})],KB.prototype,"gridMinX",void 0),t([st({attribute:"grid-max-x",converter:ot})],KB.prototype,"gridMaxX",void 0),t([st({attribute:"grid-min-y",converter:ot})],KB.prototype,"gridMinY",void 0),t([st({attribute:"grid-max-y",converter:ot})],KB.prototype,"gridMaxY",void 0),t([st],KB.prototype,"orientation",void 0),t([st({attribute:"max-characters",converter:ot})],KB.prototype,"maxCharacters",void 0),t([st({attribute:"die-labels-hidden",mode:"boolean"})],KB.prototype,"dieLabelsHidden",void 0),t([st({attribute:"die-labels-suffix"})],KB.prototype,"dieLabelsSuffix",void 0),t([st({attribute:"color-scale-mode"})],KB.prototype,"colorScaleMode",void 0),t([g],KB.prototype,"renderer",void 0),t([g],KB.prototype,"canvasWidth",void 0),t([g],KB.prototype,"canvasHeight",void 0),t([g],KB.prototype,"transform",void 0),t([g],KB.prototype,"hoverTransform",void 0),t([g],KB.prototype,"hoverOpacity",void 0),t([g],KB.prototype,"hoverWidth",void 0),t([g],KB.prototype,"hoverHeight",void 0),t([g],KB.prototype,"hoverDie",void 0),t([g],KB.prototype,"highlightedTags",void 0),t([g],KB.prototype,"dies",void 0),t([g],KB.prototype,"diesTable",void 0),t([g],KB.prototype,"colorScale",void 0)
|
|
12936
|
+
const JB=KB.compose({baseName:"wafer-map",template:eH,styles:nH})
|
|
12937
|
+
bi.getOrCreate().withPrefix("nimble").register(JB())}()
|
|
12923
12938
|
//# sourceMappingURL=all-components-bundle.min.js.map
|