@orangelogic/design-system 2.91.0 → 2.93.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/library/chunks/asset.Duzr3O3z.js +370 -0
- package/library/chunks/{endpoints.BpAhLyZw.js → asset.types.6DCzTOQm.js} +517 -515
- package/library/chunks/{button.BrIJPc2a.js → button.BZjbVq8t.js} +3 -3
- package/library/chunks/button.styles.Cz4EELcL.js +5 -0
- package/library/chunks/{color-swatch-group.CpuPC0u3.js → color-swatch-group.DRKpTlyp.js} +5 -5
- package/library/chunks/{color-swatch.hsIcIXE-.js → color-swatch.CbL_TpRZ.js} +1 -1
- package/library/chunks/{confirm-popover.Bk0_yxOs.js → confirm-popover.bBo9aPlX.js} +3 -3
- package/library/chunks/{cropper.DTokTzP9.js → cropper.BRKVzJDb.js} +2 -2
- package/library/chunks/{dialog.CPAszptn.js → dialog.DRW8iwh-.js} +20 -13
- package/library/chunks/{dom.Dd4Wh-Mt.js → dom.DURaLV1d.js} +1 -1
- package/library/chunks/{dot-pagination.CWKKpM7m.js → dot-pagination.CvUr6R4S.js} +1 -1
- package/library/chunks/{file-on-demand.CTJQ6P_F.js → file-on-demand.Z7nx9v2R.js} +10 -10
- package/library/chunks/{folder-select.D6NkbExX.js → folder-select.DxBOSyvo.js} +48 -49
- package/library/chunks/{form.Bi8x0jbW.js → form.nRqYei4e.js} +1 -1
- package/library/chunks/header.ClxEkQPZ.js +700 -0
- package/library/chunks/{i18n.CgwQHLcP.js → i18n.W6czbRms.js} +87 -7
- package/library/chunks/icon-button.MqA-pNw8.js +149 -0
- package/library/chunks/{iframe.DnAs6e8f.js → iframe.PcSPtm_O.js} +1 -1
- package/library/chunks/{image.DbfpMKMc.js → image.C3LupRuN.js} +118 -115
- package/library/chunks/image.ocYnNdYK.js +150 -0
- package/library/chunks/{index.zCSI4caC.js → index.B7slZiaV.js} +173 -148
- package/library/chunks/{list-editor.T0Lrm0Yo.js → list-editor.BnIOuHUQ.js} +12 -13
- package/library/chunks/number.DE78rV_g.js +104 -0
- package/library/chunks/{option.T4KSh5qy.js → option.Cx54zrJq.js} +1 -1
- package/library/chunks/{pagination.DC9JIt4s.js → pagination.CG5odPWi.js} +4 -4
- package/library/chunks/{responsive.DL-wBD4P.js → responsive.D9TUCX5p.js} +1 -1
- package/library/chunks/{string.B_mXTq0K.js → string.DfV21HEI.js} +12 -8
- package/library/chunks/{tab-group.B6olTWpV.js → tab-group.BLZ-qEpp.js} +4 -4
- package/library/chunks/{table.Da1P5WrI.js → table.1GgUDoqR.js} +1068 -951
- package/library/chunks/template.ClovJacp.js +31 -0
- package/library/chunks/{time.D_uFZqqe.js → time.wo2iH5iw.js} +1 -1
- package/library/chunks/toast.Bc4wpYJ1.js +150 -0
- package/library/chunks/{tree.D5Fv7i1r.js → tree.CKi63r95.js} +89 -89
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +8 -8
- package/library/components/atoms.js +12 -12
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +4 -4
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +6 -6
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- package/library/components/markdown.js +2 -2
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +56 -53
- package/library/components/menu.js +10 -7
- package/library/components/molecules.js +5 -5
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +30 -43
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/table.js +57 -55
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +28464 -28907
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/button/button.d.ts +5 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +1 -0
- package/library/packages/atoms/src/components/markdown/parser.d.ts +1 -1
- package/library/packages/atoms/src/components/menu/menu.d.ts +6 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +6 -0
- package/library/packages/atoms/src/components/table/styles/table-clickable-cell.styles.d.ts +10 -0
- package/library/packages/atoms/src/components/table/table.d.ts +1 -0
- package/library/packages/base/src/resizable-element.d.ts +1 -0
- package/library/packages/events/src/cx-code-block-language-change.d.ts +8 -0
- package/library/packages/events/src/cx-find-and-replace.d.ts +32 -0
- package/library/packages/events/src/cx-link-request.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-anchor-apply-request.d.ts +9 -0
- package/library/packages/events/src/cx-rich-text-blur.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-change.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-click.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-focus.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-image-drop.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-image-save.d.ts +23 -0
- package/library/packages/events/src/cx-rich-text-link-save.d.ts +19 -0
- package/library/packages/events/src/cx-rich-text-native-spellcheck-change.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-review-layout-refresh.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-review-node-created.d.ts +13 -0
- package/library/packages/events/src/cx-rich-text-review-selection-changed.d.ts +11 -0
- package/library/packages/events/src/cx-rich-text-suggestion-hover.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-table-cell-save.d.ts +15 -0
- package/library/packages/events/src/cx-rich-text-table-save.d.ts +16 -0
- package/library/packages/events/src/cx-rich-text-video-save.d.ts +28 -0
- package/library/packages/events/src/cx-special-characters-insert.d.ts +13 -0
- package/library/packages/events/src/cx-tiptap-code-block-doc-request.d.ts +19 -0
- package/library/packages/events/src/cx-tiptap-image-doc-request.d.ts +24 -0
- package/library/packages/events/src/cx-tiptap-image-host-feedback.d.ts +13 -0
- package/library/packages/events/src/cx-tiptap-video-doc-request.d.ts +24 -0
- package/library/packages/events/src/cx-tiptap-video-host-feedback.d.ts +13 -0
- package/library/packages/events/src/events.d.ts +25 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/core/modules/optional.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ClickableCell/ClickableCell.d.ts +44 -0
- package/library/packages/{atoms/src/components/table/modules → hybrid/table-core/src/tabulator-tables/modules/HoverMenu}/HoverMenu.d.ts +7 -5
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/mentions/mentions.d.ts +53 -0
- package/library/packages/organisms/src/comment/comment.d.ts +3 -3
- package/library/packages/organisms/src/comment/extensions/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +5 -10
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/constant.d.ts +12 -13
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +1 -1
- package/library/packages/organisms/src/find-and-replace/find-and-replace.d.ts +84 -0
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.d.ts → special-characters-dialog/special-characters-dialog.d.ts} +11 -12
- package/library/packages/services/src/api/asset/asset.d.ts +17 -15
- package/library/packages/services/src/api/asset/asset.types.d.ts +97 -32
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +2 -4
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +7 -0
- package/library/packages/tools/src/tiptap/constants/constants.d.ts +41 -0
- package/library/packages/tools/src/tiptap/constants/index.d.ts +1 -0
- package/library/packages/tools/src/tiptap/extensions/blockquote/index.d.ts +2 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/bubble-menu.d.ts → tools/src/tiptap/extensions/bubble-menu/index.d.ts} +11 -27
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/bullet-list/index.d.ts +3 -0
- package/library/packages/tools/src/tiptap/extensions/code-block/code-block-doc-bridge.d.ts +13 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlock.d.ts → tools/src/tiptap/extensions/code-block/code-block.d.ts} +2 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlockPrism.d.ts → tools/src/tiptap/extensions/code-block/index.d.ts} +2 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/PrismPlugin.d.ts → tools/src/tiptap/extensions/code-block/prism-plugin.d.ts} +1 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/document/commands.d.ts +2 -2
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/link/helpers/autolink.d.ts +1 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/clickHandler.d.ts → tools/src/tiptap/extensions/link/helpers/click-handler.d.ts} +1 -1
- package/library/packages/tools/src/tiptap/extensions/link/helpers/is-valid-url.d.ts +1 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/pasteHandler.d.ts → tools/src/tiptap/extensions/link/helpers/paste-handler.d.ts} +1 -1
- package/library/packages/tools/src/tiptap/extensions/link/index.d.ts +6 -0
- package/library/packages/tools/src/tiptap/extensions/list-item/index.d.ts +2 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/ordered-list/index.d.ts +2 -0
- package/library/packages/tools/src/tiptap/extensions/text-style/index.d.ts +7 -0
- package/library/packages/tools/src/tiptap/utils/anchor-links.d.ts +2 -0
- package/library/packages/tools/src/tiptap/utils/extend-class-style.d.ts +4 -0
- package/library/packages/tools/src/tiptap/utils/is-only-code-block-selection.d.ts +4 -0
- package/library/packages/tools/src/tiptap/utils/parse-tracks.d.ts +1 -0
- package/library/packages/tools/src/tiptap/utils/rich-text-inline-viewer-doc-bridge.d.ts +38 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/utils/getStyles.d.ts → tools/src/tiptap/utils/styles.d.ts} +4 -4
- package/library/packages/tools/src/tiptap/utils/text-block-type-input-rule-no-delete.d.ts +3 -0
- package/library/packages/types/src/menu-item.d.ts +2 -0
- package/library/packages/types/src/special-characters-dialog.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +13 -0
- package/library/packages/types/src/tiptap.d.ts +52 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +80 -0
- package/library/packages/utils/src/image/image.d.ts +14 -1
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/keyboard/index.d.ts +1 -0
- package/library/packages/utils/src/keyboard/keyboard.d.ts +9 -0
- package/library/packages/utils/src/number/number.d.ts +4 -0
- package/library/packages/utils/src/object/object.d.ts +2 -0
- package/library/packages/utils/src/string/string.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +1 -0
- package/library/react-web-component.d.ts +154 -13
- package/library/utils.js +187 -177
- package/package.json +1 -1
- package/library/chunks/asset.CVuNAhz3.js +0 -287
- package/library/chunks/button.styles.CKqn956w.js +0 -5
- package/library/chunks/content-builder.B4Tqoc6M.js +0 -127
- package/library/chunks/header.DPVuEZN-.js +0 -177
- package/library/chunks/icon-button.BpwPU4Vg.js +0 -149
- package/library/chunks/image.mbpyiQpQ.js +0 -82
- package/library/chunks/number.CjNxU7Xs.js +0 -93
- package/library/chunks/template.CsJd8Pb_.js +0 -20
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/packages/organisms/src/comment/components/comment-mention/comment-mention.d.ts +0 -44
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.d.ts +0 -28
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.d.ts +0 -68
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.styles.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/blockquote/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/convertSrcToBlob.d.ts +0 -6
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/index.d.ts +0 -4
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/isValidUrl.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/list-item/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/text-style/index.d.ts +0 -17
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/extendClassStyle.d.ts +0 -6
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/getImageNaturalWidthHeight.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isAbsolute.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isValidImageUrl.d.ts +0 -3
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/parseBooleanString.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/processAnchorLink.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/textblockTypeInputRuleNoDelete.d.ts +0 -3
- /package/library/packages/{organisms/src/comment/components/comment-mention/comment-mention.styles.d.ts → molecules/src/mentions/mentions.styles.d.ts} +0 -0
- /package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.styles.d.ts → find-and-replace/find-and-replace.styles.d.ts} +0 -0
- /package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.styles.d.ts → special-characters-dialog/special-characters-dialog.styles.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/anchor/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/aside-block → tools/src/tiptap/extensions/aside}/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/div/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/document/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/font-size/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/heading/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/highlight/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/inline-class/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/line-height/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/list-item/commands.d.ts +0 -0
- /package/library/packages/{organisms/src/comment/extensions/mention.d.ts → tools/src/tiptap/extensions/mention/index.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/other-elements → tools/src/tiptap/extensions/other-element}/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/other-styles/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/paragraph/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/placeholder/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/cellselection.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/columnResizing.d.ts → tools/src/tiptap/extensions/table/column-resizing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/commands.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/copyPaste.d.ts → tools/src/tiptap/extensions/table/copy-paste.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createCell.d.ts → tools/src/tiptap/extensions/table/create-cell.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createTable.d.ts → tools/src/tiptap/extensions/table/create-table.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/fixTables.d.ts → tools/src/tiptap/extensions/table/fix-tables.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/getTableNodeTypes.d.ts → tools/src/tiptap/extensions/table/get-table-node-types.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/input.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/rowResizing.d.ts → tools/src/tiptap/extensions/table/row-resizing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/tableEditing.d.ts → tools/src/tiptap/extensions/table/table-editing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/utils.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/text-align/index.d.ts +0 -0
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { C as Ve } from "./button.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { C as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { C as Ve } from "./button.BZjbVq8t.js";
|
|
2
|
+
import Ys from "../components/checkbox.js";
|
|
3
|
+
import Qs from "../components/divider.js";
|
|
4
|
+
import Zs from "../components/format-number.js";
|
|
5
|
+
import { C as Ls } from "./icon-button.MqA-pNw8.js";
|
|
6
|
+
import eo from "../components/select.js";
|
|
7
|
+
import Ri from "../components/space.js";
|
|
8
|
+
import to from "../components/spinner.js";
|
|
9
9
|
import { n as g, C as Ie } from "./lib-cortex-element.CVMmyPMC.js";
|
|
10
10
|
import { c as Qe } from "./component.styles.CRO4Odto.js";
|
|
11
|
-
import { o as
|
|
11
|
+
import { o as io, O as Zi } from "./overlayscrollbars.BMav4RQ4.js";
|
|
12
|
+
import { g as k, a as es } from "./dom.DURaLV1d.js";
|
|
13
|
+
import { x as E, i as O, E as so } from "./lit-element.jLBm65_O.js";
|
|
12
14
|
import "./browser.BHOCIF_A.js";
|
|
13
|
-
import
|
|
14
|
-
import "./
|
|
15
|
-
import { L as ut } from "./i18n.CgwQHLcP.js";
|
|
15
|
+
import "./form.nRqYei4e.js";
|
|
16
|
+
import { L as ut } from "./i18n.W6czbRms.js";
|
|
16
17
|
import "./purify.es.BIuh5IAZ.js";
|
|
17
|
-
import { t as
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import { s as S, b as pt, c as Ri } from "./string.B_mXTq0K.js";
|
|
18
|
+
import { t as oo, g as ro } from "./toast.Bc4wpYJ1.js";
|
|
19
|
+
import "./unsafe-html.Dff7-rCx.js";
|
|
20
|
+
import { s as T, b as pt, c as Si } from "./string.DfV21HEI.js";
|
|
21
21
|
import { o as re } from "./if-defined.BRoBj_Rp.js";
|
|
22
22
|
import { o as De } from "./style-map.llVFPd__.js";
|
|
23
|
-
import { T as
|
|
24
|
-
import { C as
|
|
23
|
+
import { T as no, C as ao } from "./typography.DJC_UXgs.js";
|
|
24
|
+
import { C as lo, P as ho } from "./pagination.CG5odPWi.js";
|
|
25
25
|
import { c as Be } from "./custom-element.L4WJXn1j.js";
|
|
26
26
|
import { w as A } from "./watch.BCJD77bD.js";
|
|
27
27
|
import { r as ae } from "./state.CSDxrqLd.js";
|
|
28
28
|
import { e as We } from "./query.BBf1UFkC.js";
|
|
29
|
-
import { e as
|
|
29
|
+
import { e as co } from "./class-map.BiVq-cVR.js";
|
|
30
30
|
import { n as X } from "./when.Dr1es41R.js";
|
|
31
31
|
import ft from "../components/icon.js";
|
|
32
|
-
import
|
|
33
|
-
import { r as
|
|
32
|
+
import Ti from "../components/tooltip.js";
|
|
33
|
+
import { r as uo } from "./choose.BTbF6BAn.js";
|
|
34
34
|
import { c as Ne } from "./repeat.DbF2p5ae.js";
|
|
35
35
|
import gt from "../components/dropdown.js";
|
|
36
36
|
import mt from "../components/menu.js";
|
|
37
37
|
import bt from "../components/menu-item.js";
|
|
38
|
-
import
|
|
39
|
-
import
|
|
38
|
+
import po from "../components/menu-section.js";
|
|
39
|
+
import fo from "../components/input.js";
|
|
40
40
|
class W {
|
|
41
41
|
constructor(e) {
|
|
42
42
|
this.table = e;
|
|
@@ -181,8 +181,8 @@ class D {
|
|
|
181
181
|
return t;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
const
|
|
185
|
-
let
|
|
184
|
+
const ts = process.env.NODE_ENV === "development";
|
|
185
|
+
let go = class zs extends W {
|
|
186
186
|
constructor(e, t, i = null) {
|
|
187
187
|
super(e), this.reversedX = !1, this.childPopup = null, this.blurable = !1, this.blurCallback = null, this.blurEventsBound = !1, this.renderedCallback = null, this.visible = !1, this.hideable = !0, this.destroyed = !1, this.element = t, this.container = this._lookupContainer(), this.parent = i, this.element.classList.add("tabulator-popup-container"), this.blurEvent = this.hide.bind(this, !1), this.escEvent = this._escapeCheck.bind(this), this.destroyBinding = this.tableDestroyed.bind(this);
|
|
188
188
|
}
|
|
@@ -191,11 +191,11 @@ let po = class Ds extends W {
|
|
|
191
191
|
}
|
|
192
192
|
_lookupContainer() {
|
|
193
193
|
let e = this.table.options.popupContainer;
|
|
194
|
-
return typeof e == "string" ? (e = document.querySelector(e),
|
|
194
|
+
return typeof e == "string" ? (e = document.querySelector(e), ts && !e && console.warn(
|
|
195
195
|
"Menu Error - no container element found matching selector:",
|
|
196
196
|
this.table.options.popupContainer,
|
|
197
197
|
"(defaulting to document body)"
|
|
198
|
-
)) : e === !0 && (e = this.table.element), e && !(e instanceof HTMLElement) && (e = null), e && !this._checkContainerIsParent(e) && (e = null,
|
|
198
|
+
)) : e === !0 && (e = this.table.element), e && !(e instanceof HTMLElement) && (e = null), e && !this._checkContainerIsParent(e) && (e = null, ts && console.warn(
|
|
199
199
|
"Menu Error - container element does not contain this table:",
|
|
200
200
|
this.table.options.popupContainer,
|
|
201
201
|
"(defaulting to document body)"
|
|
@@ -305,11 +305,11 @@ let po = class Ds extends W {
|
|
|
305
305
|
), this.unsubscribe("cell-editing", this.blurEvent), this.blurEventsBound = !1), this.childPopup && this.childPopup.hide(), this.parent && (this.parent.childPopup = null), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.visible = !1, this.blurCallback && !e && this.blurCallback(), this.unsubscribe("table-destroy", this.destroyBinding)), this;
|
|
306
306
|
}
|
|
307
307
|
child(e) {
|
|
308
|
-
return this.childPopup && this.childPopup.hide(), this.childPopup = new
|
|
308
|
+
return this.childPopup && this.childPopup.hide(), this.childPopup = new zs(this.table, e, this), this.childPopup;
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
|
-
const
|
|
312
|
-
class
|
|
311
|
+
const mo = process.env.NODE_ENV === "development";
|
|
312
|
+
class S extends W {
|
|
313
313
|
constructor(e) {
|
|
314
314
|
super(e);
|
|
315
315
|
}
|
|
@@ -329,7 +329,7 @@ class T extends W {
|
|
|
329
329
|
*/
|
|
330
330
|
registerTableFunction(e, t) {
|
|
331
331
|
const i = this.table;
|
|
332
|
-
i[e] === void 0 || i[e] === null ? i[e] = (...s) => (this.table.initGuard?.(e), t.apply(this, s)) :
|
|
332
|
+
i[e] === void 0 || i[e] === null ? i[e] = (...s) => (this.table.initGuard?.(e), t.apply(this, s)) : mo && console.warn("Unable to bind table function, name already in use:", e);
|
|
333
333
|
}
|
|
334
334
|
registerComponentFunction(e, t, i) {
|
|
335
335
|
return this.table.componentFunctionBinder.bind(e, t, i);
|
|
@@ -374,7 +374,7 @@ class T extends W {
|
|
|
374
374
|
* Popups Management
|
|
375
375
|
*/
|
|
376
376
|
popup(e, t) {
|
|
377
|
-
return new
|
|
377
|
+
return new go(this.table, e, t);
|
|
378
378
|
}
|
|
379
379
|
/**
|
|
380
380
|
* Alert Management
|
|
@@ -386,19 +386,222 @@ class T extends W {
|
|
|
386
386
|
this.table.alertManager?.clear();
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
const
|
|
389
|
+
const Oi = class Oi extends S {
|
|
390
390
|
constructor(e) {
|
|
391
391
|
super(e), this.registerTableOption("tabulatorRole", "grid"), this.registerTableOption("columnGroupRole", "columngroup"), this.registerTableOption("columnHeaderRole", "columnheader"), this.registerTableOption("rowRole", "row"), this.registerTableOption("rowGroupRole", "rowgroup"), this.registerTableOption("cellRole", "gridcell");
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
|
-
|
|
395
|
-
let kt =
|
|
396
|
-
const
|
|
394
|
+
Oi.moduleName = "accessibility";
|
|
395
|
+
let kt = Oi;
|
|
396
|
+
const bo = "tabulator-clickable-cell", wo = 'button, [role="button"], cx-button, cx-menu-item, cx-dropdown', vo = "hoverMenu", is = "cx-table-row-action-click", Pi = class Pi extends S {
|
|
397
|
+
constructor(e) {
|
|
398
|
+
super(e), this.cellKeyHandlers = /* @__PURE__ */ new WeakMap(), this.registerColumnOption("clickable"), this.registerColumnOption("clickableActionName");
|
|
399
|
+
}
|
|
400
|
+
initialize() {
|
|
401
|
+
this.subscribe(
|
|
402
|
+
"cell-layout",
|
|
403
|
+
this.layoutCell.bind(this)
|
|
404
|
+
), this.subscribe(
|
|
405
|
+
"cell-click",
|
|
406
|
+
this.handleCellClick.bind(this)
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
layoutCell(e) {
|
|
410
|
+
if (!e.element)
|
|
411
|
+
return;
|
|
412
|
+
const t = e.element, i = !!e.column.definition.clickable, s = this.cellKeyHandlers.get(t);
|
|
413
|
+
if (s && (t.removeEventListener("keydown", s), this.cellKeyHandlers.delete(t)), t.classList.toggle(bo, i), !i) {
|
|
414
|
+
t.removeAttribute("tabindex"), t.removeAttribute("role");
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
if (!!!this.resolveAction(
|
|
418
|
+
e,
|
|
419
|
+
e.column.definition.clickableActionName
|
|
420
|
+
)) {
|
|
421
|
+
t.removeAttribute("tabindex"), t.removeAttribute("role");
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
t.querySelector("a[href]") ? (t.removeAttribute("tabindex"), t.removeAttribute("role")) : (t.tabIndex = 0, t.setAttribute("role", "button"));
|
|
425
|
+
const a = (l) => {
|
|
426
|
+
if (l.key !== "Enter" && l.key !== " ")
|
|
427
|
+
return;
|
|
428
|
+
if (l.preventDefault(), l.ctrlKey || l.metaKey) {
|
|
429
|
+
const c = e.element?.querySelector("a[href]");
|
|
430
|
+
c && (l.stopPropagation(), window.open(c.href, "_blank", "noopener,noreferrer"));
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
const h = this.resolveAction(
|
|
434
|
+
e,
|
|
435
|
+
e.column.definition.clickableActionName
|
|
436
|
+
);
|
|
437
|
+
h && (l.stopPropagation(), this.emitCellAction(e, h));
|
|
438
|
+
};
|
|
439
|
+
t.addEventListener("keydown", a), this.cellKeyHandlers.set(t, a);
|
|
440
|
+
}
|
|
441
|
+
handleCellClick(e, t) {
|
|
442
|
+
const i = t.column.definition;
|
|
443
|
+
if (!i.clickable)
|
|
444
|
+
return;
|
|
445
|
+
let s = null;
|
|
446
|
+
for (const r of e.composedPath()) {
|
|
447
|
+
if (r === t.element)
|
|
448
|
+
break;
|
|
449
|
+
if (r instanceof HTMLAnchorElement && r.hasAttribute("href")) {
|
|
450
|
+
s = r;
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
if (r instanceof Element && r.matches(wo))
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
if (e.ctrlKey || e.metaKey) {
|
|
457
|
+
if (s)
|
|
458
|
+
return;
|
|
459
|
+
const r = t.element?.querySelector("a[href]");
|
|
460
|
+
r && (e.preventDefault(), e.stopPropagation(), window.open(r.href, "_blank", "noopener,noreferrer"));
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
const o = this.resolveAction(t, i.clickableActionName);
|
|
464
|
+
o && (e.preventDefault(), e.stopPropagation(), this.emitCellAction(t, o));
|
|
465
|
+
}
|
|
466
|
+
emitCellAction(e, t) {
|
|
467
|
+
const i = {
|
|
468
|
+
cell: e.getComponent(),
|
|
469
|
+
name: t.name,
|
|
470
|
+
row: e.row.getComponent()
|
|
471
|
+
}, s = this.getCxTableHost();
|
|
472
|
+
if (s) {
|
|
473
|
+
s.emit(is, { detail: i });
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
this.table.element.dispatchEvent(
|
|
477
|
+
new CustomEvent(is, {
|
|
478
|
+
bubbles: !0,
|
|
479
|
+
composed: !0,
|
|
480
|
+
detail: i
|
|
481
|
+
})
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
getCxTableHost() {
|
|
485
|
+
const e = this.table.element.getRootNode();
|
|
486
|
+
if (!(e instanceof ShadowRoot))
|
|
487
|
+
return null;
|
|
488
|
+
const t = e.host;
|
|
489
|
+
return typeof t.emit == "function" ? t : null;
|
|
490
|
+
}
|
|
491
|
+
resolveAction(e, t) {
|
|
492
|
+
const i = this.table.options.hoverMenuField ?? vo, s = e.column.definition.hoverMenu;
|
|
493
|
+
if (s)
|
|
494
|
+
return this.pickAction(s, t);
|
|
495
|
+
const o = e.row.getData(), r = Object.hasOwn(
|
|
496
|
+
o,
|
|
497
|
+
i
|
|
498
|
+
) ? o[i] : this.table.options.hoverMenu;
|
|
499
|
+
return r ? this.pickAction(r, t) : null;
|
|
500
|
+
}
|
|
501
|
+
pickAction(e, t) {
|
|
502
|
+
const i = e.data;
|
|
503
|
+
return !i || i.length === 0 ? null : t ? i.find((s) => s.name === t) ?? null : i[0] ?? null;
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
Pi.moduleName = "clickableCell";
|
|
507
|
+
let Dt = Pi;
|
|
508
|
+
var he = /* @__PURE__ */ ((n) => (n.Bottom = "bottom", n.Center = "center", n.Nearest = "nearest", n.Top = "top", n))(he || {}), Z = /* @__PURE__ */ ((n) => (n.All = "all", n.Cell = "cell", n.Column = "column", n.Row = "row", n))(Z || {}), Ue = /* @__PURE__ */ ((n) => (n.Both = "both", n.Copy = "copy", n.Paste = "paste", n))(Ue || {}), Re = /* @__PURE__ */ ((n) => (n.Left = "left", n.Right = "right", n))(Re || {}), de = /* @__PURE__ */ ((n) => (n.Local = "local", n.Remote = "remote", n))(de || {}), $ = /* @__PURE__ */ ((n) => (n.Asc = "asc", n.Desc = "desc", n.None = "none", n))($ || {}), ke = /* @__PURE__ */ ((n) => (n.Ends = "ends", n.Equal = "=", n.GreaterOrEqual = ">=", n.GreaterThan = ">", n.In = "in", n.Keywords = "keywords", n.LessOrEqual = "<=", n.LessThan = "<", n.Like = "like", n.NotEqual = "!=", n.Regex = "regex", n.Starts = "starts", n))(ke || {});
|
|
509
|
+
const Fs = 36, yo = E`<cx-table-row-actions></cx-table-row-actions>`, Pe = class Pe extends S {
|
|
510
|
+
constructor(e) {
|
|
511
|
+
super(e), this.registerTableOption("hoverMenu", !1), this.registerTableOption("hoverMenuField", "hoverMenu"), this.registerColumnOption("hoverMenu");
|
|
512
|
+
}
|
|
513
|
+
initialize() {
|
|
514
|
+
this.hoverMenuField = this.table.options.hoverMenuField || "hoverMenu", this.subscribe(
|
|
515
|
+
"row-layout",
|
|
516
|
+
this.layoutRow.bind(this)
|
|
517
|
+
), this.subscribe(
|
|
518
|
+
"row-data-changed",
|
|
519
|
+
(e, t, i) => {
|
|
520
|
+
Object.hasOwn(i, this.hoverMenuField) && this.layoutRow(e);
|
|
521
|
+
}
|
|
522
|
+
), this.subscribe(
|
|
523
|
+
"row-mouseenter",
|
|
524
|
+
this.handleRowMouseEnter.bind(this)
|
|
525
|
+
), this.subscribe(
|
|
526
|
+
"row-mouseleave",
|
|
527
|
+
this.handleRowMouseLeave.bind(this)
|
|
528
|
+
), this.subscribe(
|
|
529
|
+
"cell-layout",
|
|
530
|
+
this.layoutCell.bind(this)
|
|
531
|
+
), this.subscribe(
|
|
532
|
+
"cell-mouseenter",
|
|
533
|
+
this.handleCellMouseEnter.bind(this)
|
|
534
|
+
), this.subscribe(
|
|
535
|
+
"cell-mouseleave",
|
|
536
|
+
this.handleCellMouseLeave.bind(this)
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
handleRowMouseEnter(e, t) {
|
|
540
|
+
const i = t.hoverMenuElement;
|
|
541
|
+
if (i) {
|
|
542
|
+
const s = this.getMenuPlacement(i);
|
|
543
|
+
this.applyMenuPosition(t, i, s), i.classList.add("tabulator-hover-menu--active");
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
handleRowMouseLeave(e, t) {
|
|
547
|
+
const i = t.hoverMenuElement;
|
|
548
|
+
i && i.classList.remove("tabulator-hover-menu--active");
|
|
549
|
+
}
|
|
550
|
+
handleCellMouseEnter(e, t) {
|
|
551
|
+
const i = t.hoverMenuElement;
|
|
552
|
+
i && i.classList.add("tabulator-hover-menu--active");
|
|
553
|
+
}
|
|
554
|
+
handleCellMouseLeave(e, t) {
|
|
555
|
+
const i = t.hoverMenuElement;
|
|
556
|
+
i && i.classList.remove("tabulator-hover-menu--active");
|
|
557
|
+
}
|
|
558
|
+
createCxTableRowActions() {
|
|
559
|
+
const e = k(yo);
|
|
560
|
+
return e.classList.add("tabulator-hover-menu"), e;
|
|
561
|
+
}
|
|
562
|
+
layoutRow(e) {
|
|
563
|
+
const t = Object.hasOwn(e.getData(), this.hoverMenuField) ? e.getData()[this.hoverMenuField] : this.table.options.hoverMenu;
|
|
564
|
+
if (e.hoverMenuElement && (e.hoverMenuElement.remove(), e.hoverMenuElement = null), t) {
|
|
565
|
+
const i = this.createCxTableRowActions();
|
|
566
|
+
i.actions = t.data, i.row = e.getComponent(), e.getElement().appendChild(i), e.hoverMenuElement = i;
|
|
567
|
+
const s = t.options?.placement ?? "left";
|
|
568
|
+
i.dataset[Pe.placementDataAttribute] = s, this.applyMenuPosition(e, i, s), t.options?.style && Object.assign(i.style, t.options.style);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
getMenuPlacement(e) {
|
|
572
|
+
return e.dataset[Pe.placementDataAttribute] === Re.Right ? Re.Right : Re.Left;
|
|
573
|
+
}
|
|
574
|
+
applyMenuPosition(e, t, i) {
|
|
575
|
+
const s = e.getElement(), o = this.table.rowManager?.element, r = this.table.element;
|
|
576
|
+
if (!o || !r) {
|
|
577
|
+
i === Re.Left ? (t.style.right = "", t.style.left = "0px") : (t.style.left = "", t.style.right = "0px");
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
const a = s.getBoundingClientRect(), l = o.getBoundingClientRect(), h = r.getBoundingClientRect(), c = Math.max(l.left, h.left), d = Math.min(l.right, h.right);
|
|
581
|
+
if (i === Re.Left) {
|
|
582
|
+
t.style.right = "", t.style.left = `${Math.max(0, c - a.left)}px`;
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
t.style.left = "";
|
|
586
|
+
const p = a.right - d;
|
|
587
|
+
t.style.right = `${Math.max(0, p)}px`;
|
|
588
|
+
}
|
|
589
|
+
layoutCell(e) {
|
|
590
|
+
const i = e.column.definition?.hoverMenu;
|
|
591
|
+
if (e.hoverMenuElement && (e.hoverMenuElement.remove(), e.hoverMenuElement = null), i && e.element) {
|
|
592
|
+
const s = this.createCxTableRowActions();
|
|
593
|
+
s.actions = i.data, s.row = e.row.getComponent(), s.cell = e.getComponent(), e.element.appendChild(s), e.hoverMenuElement = s, (i.options?.placement ?? "left") === Re.Left ? (s.style.right = "", s.style.left = "0px") : (s.style.left = "", s.style.right = "0px"), i.options?.style && Object.assign(s.style, i.options.style);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
Pe.moduleName = "hoverMenu", Pe.placementDataAttribute = "hoverMenuPlacement";
|
|
598
|
+
let Lt = Pe;
|
|
599
|
+
const Co = {
|
|
397
600
|
rownum: function(n, e, t, i, s, o) {
|
|
398
601
|
const r = o?.getPosition();
|
|
399
602
|
return typeof r == "number" ? r : 0;
|
|
400
603
|
}
|
|
401
|
-
},
|
|
604
|
+
}, Eo = process.env.NODE_ENV === "development", He = class He extends S {
|
|
402
605
|
// list of accessor types
|
|
403
606
|
constructor(e) {
|
|
404
607
|
super(e), this.allowedTypes = [
|
|
@@ -436,7 +639,7 @@ const go = {
|
|
|
436
639
|
let t = !1;
|
|
437
640
|
switch (typeof e) {
|
|
438
641
|
case "string":
|
|
439
|
-
|
|
642
|
+
He.accessors[e] ? t = He.accessors[e] : Eo && console.warn(
|
|
440
643
|
"Accessor Error - No such accessor found, ignoring: ",
|
|
441
644
|
e
|
|
442
645
|
);
|
|
@@ -473,32 +676,31 @@ const go = {
|
|
|
473
676
|
}), o;
|
|
474
677
|
}
|
|
475
678
|
};
|
|
476
|
-
|
|
477
|
-
let
|
|
478
|
-
|
|
479
|
-
const Ls = 36, bo = {
|
|
679
|
+
He.moduleName = "accessor", He.accessors = Co;
|
|
680
|
+
let zt = He;
|
|
681
|
+
const xo = {
|
|
480
682
|
method: "GET"
|
|
481
683
|
};
|
|
482
|
-
function
|
|
684
|
+
function Os(n) {
|
|
483
685
|
return n instanceof File || n instanceof Blob;
|
|
484
686
|
}
|
|
485
|
-
function
|
|
687
|
+
function Ft(n, e = "") {
|
|
486
688
|
const t = [];
|
|
487
689
|
if (Array.isArray(n))
|
|
488
690
|
n.forEach((i, s) => {
|
|
489
691
|
t.push(
|
|
490
|
-
...
|
|
692
|
+
...Ft(
|
|
491
693
|
i,
|
|
492
694
|
e ? e + "[" + s + "]" : String(s)
|
|
493
695
|
)
|
|
494
696
|
);
|
|
495
697
|
});
|
|
496
|
-
else if (
|
|
698
|
+
else if (Os(n))
|
|
497
699
|
t.push({ key: e, value: n });
|
|
498
700
|
else if (typeof n == "object" && n !== null)
|
|
499
701
|
for (const i in n)
|
|
500
702
|
Object.prototype.hasOwnProperty.call(n, i) && t.push(
|
|
501
|
-
...
|
|
703
|
+
...Ft(
|
|
502
704
|
n[i],
|
|
503
705
|
e ? e + "[" + i + "]" : i
|
|
504
706
|
)
|
|
@@ -507,14 +709,14 @@ function Lt(n, e = "") {
|
|
|
507
709
|
t.push({ key: e, value: n });
|
|
508
710
|
return t;
|
|
509
711
|
}
|
|
510
|
-
const
|
|
712
|
+
const Ro = {
|
|
511
713
|
form: {
|
|
512
714
|
body: function(n, e, t) {
|
|
513
|
-
const i =
|
|
715
|
+
const i = Ft(t), s = new FormData();
|
|
514
716
|
return i.forEach((o) => {
|
|
515
717
|
s.append(
|
|
516
718
|
o.key,
|
|
517
|
-
|
|
719
|
+
Os(o.value) ? o.value : String(o.value)
|
|
518
720
|
);
|
|
519
721
|
}), s;
|
|
520
722
|
},
|
|
@@ -529,12 +731,12 @@ const wo = {
|
|
|
529
731
|
}
|
|
530
732
|
}
|
|
531
733
|
};
|
|
532
|
-
function
|
|
734
|
+
function Ot(n, e = "") {
|
|
533
735
|
const t = [];
|
|
534
736
|
if (Array.isArray(n))
|
|
535
737
|
n.forEach((i, s) => {
|
|
536
738
|
t.push(
|
|
537
|
-
...
|
|
739
|
+
...Ot(
|
|
538
740
|
i,
|
|
539
741
|
e ? e + "[" + s + "]" : String(s)
|
|
540
742
|
)
|
|
@@ -543,7 +745,7 @@ function zt(n, e = "") {
|
|
|
543
745
|
else if (typeof n == "object" && n !== null)
|
|
544
746
|
for (const i in n)
|
|
545
747
|
Object.prototype.hasOwnProperty.call(n, i) && t.push(
|
|
546
|
-
...
|
|
748
|
+
...Ot(
|
|
547
749
|
n[i],
|
|
548
750
|
e ? e + "[" + i + "]" : i
|
|
549
751
|
)
|
|
@@ -552,22 +754,22 @@ function zt(n, e = "") {
|
|
|
552
754
|
t.push({ key: e, value: n });
|
|
553
755
|
return t;
|
|
554
756
|
}
|
|
555
|
-
function
|
|
556
|
-
const e =
|
|
757
|
+
function So(n) {
|
|
758
|
+
const e = Ot(n), t = [];
|
|
557
759
|
return e.forEach((i) => {
|
|
558
760
|
t.push(
|
|
559
761
|
encodeURIComponent(i.key) + "=" + encodeURIComponent(String(i.value))
|
|
560
762
|
);
|
|
561
763
|
}), t.join("&");
|
|
562
764
|
}
|
|
563
|
-
const
|
|
765
|
+
const Ps = function(n, e, t) {
|
|
564
766
|
if (n && t && Object.keys(t).length && (!e.method || e.method.toLowerCase() === "get")) {
|
|
565
767
|
e.method = "get";
|
|
566
|
-
const [i, s] = n.split("#", 2), o =
|
|
768
|
+
const [i, s] = n.split("#", 2), o = So(t);
|
|
567
769
|
n = i + (i.includes("?") ? "&" : "?") + o + (s ? "#" + s : "");
|
|
568
770
|
}
|
|
569
771
|
return n;
|
|
570
|
-
}, Ge = process.env.NODE_ENV === "development", te = class te extends
|
|
772
|
+
}, Ge = process.env.NODE_ENV === "development", te = class te extends S {
|
|
571
773
|
constructor(e) {
|
|
572
774
|
super(e), this.fetchApi = typeof globalThis.fetch == "function" ? globalThis.fetch.bind(globalThis) : void 0, this.config = {}, this.url = "", this.urlGenerator = !1, this.params = !1, this.loaderPromise = !1, this.registerTableOption("ajaxURL", !1), this.registerTableOption("ajaxURLGenerator", !1), this.registerTableOption("ajaxParams", {}), this.registerTableOption("ajaxConfig", "get"), this.registerTableOption("ajaxContentType", "form"), this.registerTableOption("ajaxRequestFunc", !1), this.registerTableOption("ajaxRequesting", () => {
|
|
573
775
|
}), this.registerTableOption("ajaxResponse", !1), this.contentTypeFormatters = te.contentTypeFormatters;
|
|
@@ -624,7 +826,7 @@ const Fs = function(n, e, t) {
|
|
|
624
826
|
)), s)) : Promise.reject();
|
|
625
827
|
}
|
|
626
828
|
};
|
|
627
|
-
te.moduleName = "ajax", te.defaultConfig =
|
|
829
|
+
te.moduleName = "ajax", te.defaultConfig = xo, te.defaultURLGenerator = Ps, te.contentTypeFormatters = Ro, te.defaultLoaderPromise = function(e, t, i) {
|
|
628
830
|
let s;
|
|
629
831
|
return new Promise((o, r) => {
|
|
630
832
|
if (!this.urlGenerator) {
|
|
@@ -665,8 +867,8 @@ te.moduleName = "ajax", te.defaultConfig = bo, te.defaultURLGenerator = Fs, te.c
|
|
|
665
867
|
Ge && console.warn("Ajax Load Error - No URL Set"), o([]);
|
|
666
868
|
});
|
|
667
869
|
};
|
|
668
|
-
let
|
|
669
|
-
function
|
|
870
|
+
let Pt = te;
|
|
871
|
+
function Mi(n) {
|
|
670
872
|
const e = [];
|
|
671
873
|
let t = n;
|
|
672
874
|
for (; t; )
|
|
@@ -676,21 +878,21 @@ function Ti(n) {
|
|
|
676
878
|
}), t = t.parent;
|
|
677
879
|
return e;
|
|
678
880
|
}
|
|
679
|
-
function
|
|
881
|
+
function Hs(n) {
|
|
680
882
|
return JSON.stringify(n);
|
|
681
883
|
}
|
|
682
|
-
function
|
|
884
|
+
function To(n, e) {
|
|
683
885
|
return n?.[e];
|
|
684
886
|
}
|
|
685
|
-
function
|
|
686
|
-
const e =
|
|
887
|
+
function Mo(n) {
|
|
888
|
+
const e = Mi(n);
|
|
687
889
|
return {
|
|
688
890
|
path: e,
|
|
689
|
-
pathKey:
|
|
891
|
+
pathKey: Hs(e),
|
|
690
892
|
rowCount: n.getRowCount()
|
|
691
893
|
};
|
|
692
894
|
}
|
|
693
|
-
class
|
|
895
|
+
class As {
|
|
694
896
|
constructor(e) {
|
|
695
897
|
return this._group = e, this.type = "GroupComponent", new Proxy(this, {
|
|
696
898
|
get: function(t, i) {
|
|
@@ -724,7 +926,7 @@ class Ps {
|
|
|
724
926
|
return this._group.parent ? this._group.parent.getComponent() : !1;
|
|
725
927
|
}
|
|
726
928
|
getPath() {
|
|
727
|
-
return
|
|
929
|
+
return Mi(this._group);
|
|
728
930
|
}
|
|
729
931
|
getPathKey() {
|
|
730
932
|
return this._group.getPathKey();
|
|
@@ -756,8 +958,8 @@ class Ps {
|
|
|
756
958
|
return this._group.groupManager.table;
|
|
757
959
|
}
|
|
758
960
|
}
|
|
759
|
-
const
|
|
760
|
-
class
|
|
961
|
+
const ko = process.env.NODE_ENV === "development";
|
|
962
|
+
class Ht {
|
|
761
963
|
constructor(e) {
|
|
762
964
|
return this._column = e, this.type = "ColumnComponent", new Proxy(this, {
|
|
763
965
|
get(t, i) {
|
|
@@ -836,7 +1038,7 @@ class Ot {
|
|
|
836
1038
|
this._column,
|
|
837
1039
|
i,
|
|
838
1040
|
t
|
|
839
|
-
) :
|
|
1041
|
+
) : ko && console.warn(`Move Error - No matching column found: ${e}`);
|
|
840
1042
|
}
|
|
841
1043
|
getNextColumn() {
|
|
842
1044
|
const e = this._column.nextColumn();
|
|
@@ -857,7 +1059,7 @@ class Ot {
|
|
|
857
1059
|
return e === !0 ? t = await this._column.reinitializeWidth(!0) : t = this._column.setWidth(e), this._column.table.columnManager?.rerenderColumns(!0), t;
|
|
858
1060
|
}
|
|
859
1061
|
}
|
|
860
|
-
const
|
|
1062
|
+
const Do = process.env.NODE_ENV === "development";
|
|
861
1063
|
class wt extends W {
|
|
862
1064
|
// used by row manager to determine how to size the render area ("fit" - fits container to the contents, "fill" - fills the container without resizing it)
|
|
863
1065
|
constructor(e) {
|
|
@@ -959,11 +1161,11 @@ class wt extends W {
|
|
|
959
1161
|
}
|
|
960
1162
|
s();
|
|
961
1163
|
} else
|
|
962
|
-
|
|
1164
|
+
Do && console.warn("Scroll Error - Row not visible"), o("Scroll Error - Row not visible");
|
|
963
1165
|
});
|
|
964
1166
|
}
|
|
965
1167
|
}
|
|
966
|
-
const
|
|
1168
|
+
const Lo = {
|
|
967
1169
|
insert: function(n) {
|
|
968
1170
|
return this.table.addData(n);
|
|
969
1171
|
},
|
|
@@ -973,7 +1175,7 @@ const Ro = {
|
|
|
973
1175
|
update: function(n) {
|
|
974
1176
|
return this.table.updateOrAddData(n);
|
|
975
1177
|
}
|
|
976
|
-
},
|
|
1178
|
+
}, zo = {
|
|
977
1179
|
table: function(n) {
|
|
978
1180
|
const e = [];
|
|
979
1181
|
let t = !0;
|
|
@@ -995,23 +1197,23 @@ const Ro = {
|
|
|
995
1197
|
}), o.push(l);
|
|
996
1198
|
}), o) : !1;
|
|
997
1199
|
}
|
|
998
|
-
},
|
|
1200
|
+
}, Fo = {
|
|
999
1201
|
copyToClipboard: function(n) {
|
|
1000
1202
|
this.table.modules.edit?.currentCell || this.table.modExists("clipboard", !0) && (n.preventDefault(), this.table.modules.clipboard?.copy(void 0, !0));
|
|
1001
1203
|
}
|
|
1002
|
-
},
|
|
1204
|
+
}, Oo = {
|
|
1003
1205
|
copyToClipboard: ["ctrl + 67", "meta + 67"]
|
|
1004
|
-
},
|
|
1206
|
+
}, Po = {
|
|
1005
1207
|
keybindings: {
|
|
1006
|
-
actions:
|
|
1007
|
-
bindings:
|
|
1208
|
+
actions: Fo,
|
|
1209
|
+
bindings: Oo
|
|
1008
1210
|
}
|
|
1009
|
-
},
|
|
1010
|
-
function
|
|
1211
|
+
}, ss = process.env.NODE_ENV === "development";
|
|
1212
|
+
function os(n) {
|
|
1011
1213
|
const e = globalThis.clipboardData, t = n;
|
|
1012
1214
|
return e ?? n.clipboardData ?? t.originalEvent?.clipboardData ?? void 0;
|
|
1013
1215
|
}
|
|
1014
|
-
const fe = class fe extends
|
|
1216
|
+
const fe = class fe extends S {
|
|
1015
1217
|
// block copy actions not originating from this command
|
|
1016
1218
|
handleCopyEvent(e) {
|
|
1017
1219
|
let t, i, s;
|
|
@@ -1022,8 +1224,8 @@ const fe = class fe extends T {
|
|
|
1022
1224
|
this.rowRange,
|
|
1023
1225
|
"clipboard"
|
|
1024
1226
|
), i = this.table.modules.export?.generateHTMLTable(s), t = i ? this.generatePlainContent(s) : "", this.table.options.clipboardCopyFormatter && typeof this.table.options.clipboardCopyFormatter == "function" && (t = this.table.options.clipboardCopyFormatter("plain", t), i = this.table.options.clipboardCopyFormatter("html", i ?? "")));
|
|
1025
|
-
const o =
|
|
1026
|
-
o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i),
|
|
1227
|
+
const o = os(e);
|
|
1228
|
+
o?.setData && (o.setData("text/plain", t), i && o.setData("text/html", i), oo("Copied to clipboard", {
|
|
1027
1229
|
notificationType: "success"
|
|
1028
1230
|
})), this.dispatchExternal("clipboardCopied", t, i), this.reset();
|
|
1029
1231
|
}
|
|
@@ -1054,7 +1256,7 @@ const fe = class fe extends T {
|
|
|
1054
1256
|
const s = [];
|
|
1055
1257
|
i.columns.forEach((o) => {
|
|
1056
1258
|
let r = "";
|
|
1057
|
-
o && (i.type === "group" && (o.value = o.component instanceof
|
|
1259
|
+
o && (i.type === "group" && (o.value = o.component instanceof As ? o.component.getKey() : ""), typeof o.value == "object" ? r = JSON.stringify(o.value) : o.value != null && (r = String(o.value))), s.push(r);
|
|
1058
1260
|
}), t.push(s.join(" "));
|
|
1059
1261
|
}), t.join(`
|
|
1060
1262
|
`);
|
|
@@ -1074,7 +1276,7 @@ const fe = class fe extends T {
|
|
|
1074
1276
|
switch (typeof e) {
|
|
1075
1277
|
case "string": {
|
|
1076
1278
|
const t = fe.pasteActions[e];
|
|
1077
|
-
t ? this.pasteAction = t :
|
|
1279
|
+
t ? this.pasteAction = t : ss && console.warn("Clipboard Error - No such paste action found:", e);
|
|
1078
1280
|
break;
|
|
1079
1281
|
}
|
|
1080
1282
|
case "function":
|
|
@@ -1086,7 +1288,7 @@ const fe = class fe extends T {
|
|
|
1086
1288
|
switch (typeof e) {
|
|
1087
1289
|
case "string": {
|
|
1088
1290
|
const t = fe.pasteParsers[e];
|
|
1089
|
-
t ? this.pasteParser = t :
|
|
1291
|
+
t ? this.pasteParser = t : ss && console.warn("Clipboard Error - No such paste parser found:", e);
|
|
1090
1292
|
break;
|
|
1091
1293
|
}
|
|
1092
1294
|
case "function":
|
|
@@ -1118,13 +1320,13 @@ const fe = class fe extends T {
|
|
|
1118
1320
|
}
|
|
1119
1321
|
getPasteData(e) {
|
|
1120
1322
|
let t;
|
|
1121
|
-
const i =
|
|
1323
|
+
const i = os(e);
|
|
1122
1324
|
return i?.getData && (t = i.getData("text/plain")), t;
|
|
1123
1325
|
}
|
|
1124
1326
|
};
|
|
1125
|
-
fe.moduleName = "clipboard", fe.moduleExtensions =
|
|
1126
|
-
let
|
|
1127
|
-
class
|
|
1327
|
+
fe.moduleName = "clipboard", fe.moduleExtensions = Po, fe.pasteActions = Lo, fe.pasteParsers = zo;
|
|
1328
|
+
let At = fe;
|
|
1329
|
+
class ki {
|
|
1128
1330
|
constructor(e) {
|
|
1129
1331
|
return this._cell = e, new Proxy(this, {
|
|
1130
1332
|
get: function(t, i) {
|
|
@@ -1188,7 +1390,7 @@ class Mi {
|
|
|
1188
1390
|
return this._cell;
|
|
1189
1391
|
}
|
|
1190
1392
|
}
|
|
1191
|
-
const
|
|
1393
|
+
const Ho = E`<div class="tabulator-cell"></div>`, Ao = process.env.NODE_ENV === "development";
|
|
1192
1394
|
class Ze extends W {
|
|
1193
1395
|
constructor(e, t) {
|
|
1194
1396
|
super(e.table), this.table = e.table, this.column = e, this.row = t, this.element = null, this.contentElement = null, this.value = null, this.oldValue = null, this.modules = {}, this.height = null, this.width = null, this.minWidth = null, this.component = null, this.loaded = !1, this.hoverMenuElement = null, this.build();
|
|
@@ -1201,7 +1403,7 @@ class Ze extends W {
|
|
|
1201
1403
|
this.generateElement(), this.setWidth(), this._configureCell(), this.setValueActual(this.column.getFieldValue(this.row.data)), this.initialValue = this.value;
|
|
1202
1404
|
}
|
|
1203
1405
|
generateElement() {
|
|
1204
|
-
if (this.element = k(
|
|
1406
|
+
if (this.element = k(Ho), this.element.setAttribute(
|
|
1205
1407
|
"role",
|
|
1206
1408
|
this.table.options.cellRole ?? "gridcell"
|
|
1207
1409
|
), this.column.modules.format?.cellClass) {
|
|
@@ -1246,7 +1448,7 @@ class Ze extends W {
|
|
|
1246
1448
|
if (!this.element)
|
|
1247
1449
|
return;
|
|
1248
1450
|
this.contentElement?.parentNode !== this.element && (this.contentElement = document.createElement("div"), this.contentElement.className = "tabulator-cell-content", this.element.appendChild(this.contentElement));
|
|
1249
|
-
const e = this.chain("cell-format", [this], null, () =>
|
|
1451
|
+
const e = this.chain("cell-format", [this], null, () => T(String(this.value ?? "")));
|
|
1250
1452
|
switch (typeof e) {
|
|
1251
1453
|
case "object":
|
|
1252
1454
|
if (e instanceof Node) {
|
|
@@ -1254,7 +1456,7 @@ class Ze extends W {
|
|
|
1254
1456
|
this.contentElement.firstChild.remove();
|
|
1255
1457
|
this.contentElement.appendChild(e);
|
|
1256
1458
|
} else
|
|
1257
|
-
this.contentElement.innerHTML = "", e != null &&
|
|
1459
|
+
this.contentElement.innerHTML = "", e != null && Ao && console.warn(
|
|
1258
1460
|
"Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",
|
|
1259
1461
|
e
|
|
1260
1462
|
);
|
|
@@ -1266,7 +1468,7 @@ class Ze extends W {
|
|
|
1266
1468
|
for (; this.contentElement.firstChild; )
|
|
1267
1469
|
this.contentElement.firstChild.remove();
|
|
1268
1470
|
const t = document.createElement("cx-line-clamp");
|
|
1269
|
-
t.lines = 1, Object.assign(t.style, this.getTextFormat()), t.innerHTML =
|
|
1471
|
+
t.lines = 1, Object.assign(t.style, this.getTextFormat()), t.innerHTML = T(String(e)), this.contentElement.appendChild(t);
|
|
1270
1472
|
}
|
|
1271
1473
|
}
|
|
1272
1474
|
}
|
|
@@ -1344,10 +1546,10 @@ class Ze extends W {
|
|
|
1344
1546
|
* Object Generation
|
|
1345
1547
|
*/
|
|
1346
1548
|
getComponent() {
|
|
1347
|
-
return this.component ??= new
|
|
1549
|
+
return this.component ??= new ki(this), this.component;
|
|
1348
1550
|
}
|
|
1349
1551
|
}
|
|
1350
|
-
const
|
|
1552
|
+
const _s = {
|
|
1351
1553
|
columns: void 0,
|
|
1352
1554
|
cssClass: void 0,
|
|
1353
1555
|
editableTitle: void 0,
|
|
@@ -1508,7 +1710,7 @@ const Hs = {
|
|
|
1508
1710
|
e.innerHTML = "";
|
|
1509
1711
|
break;
|
|
1510
1712
|
default: {
|
|
1511
|
-
const s = `<cx-line-clamp lines="1">${
|
|
1713
|
+
const s = `<cx-line-clamp lines="1">${T(String(i))}</cx-line-clamp>`;
|
|
1512
1714
|
e.innerHTML = s;
|
|
1513
1715
|
}
|
|
1514
1716
|
}
|
|
@@ -1836,7 +2038,7 @@ const Hs = {
|
|
|
1836
2038
|
* Object Generation
|
|
1837
2039
|
*/
|
|
1838
2040
|
getComponent() {
|
|
1839
|
-
return this.component ??= new
|
|
2041
|
+
return this.component ??= new Ht(this), this.component;
|
|
1840
2042
|
}
|
|
1841
2043
|
getPosition() {
|
|
1842
2044
|
return (this.table.columnManager?.getVisibleColumnsByIndex().indexOf(this) ?? -1) + 1;
|
|
@@ -1845,9 +2047,9 @@ const Hs = {
|
|
|
1845
2047
|
return this.parent instanceof I ? this.parent.getComponent() : !1;
|
|
1846
2048
|
}
|
|
1847
2049
|
};
|
|
1848
|
-
I.defaultOptionList =
|
|
2050
|
+
I.defaultOptionList = _s;
|
|
1849
2051
|
let q = I;
|
|
1850
|
-
class
|
|
2052
|
+
class Di {
|
|
1851
2053
|
constructor(e) {
|
|
1852
2054
|
return this._row = e, new Proxy(this, {
|
|
1853
2055
|
get(t, i, s) {
|
|
@@ -1921,7 +2123,7 @@ class ki {
|
|
|
1921
2123
|
return e && e.getComponent();
|
|
1922
2124
|
}
|
|
1923
2125
|
}
|
|
1924
|
-
const
|
|
2126
|
+
const rs = process.env.NODE_ENV === "development";
|
|
1925
2127
|
class B extends W {
|
|
1926
2128
|
constructor(e, t, i = "row") {
|
|
1927
2129
|
super(t.table), this.parent = t, this.data = {}, this.type = i, this.element = !1, this.modules = {}, this.cells = [], this.height = 0, this.heightStyled = "", this.manualHeight = !1, this.outerHeight = 0, this.initialized = !1, this.heightInitialized = !1, this.position = 0, this.positionWatchers = [], this.component = null, this.created = !1, this.setData(e);
|
|
@@ -2039,7 +2241,7 @@ class B extends W {
|
|
|
2039
2241
|
try {
|
|
2040
2242
|
e = JSON.parse(e);
|
|
2041
2243
|
} catch (r) {
|
|
2042
|
-
|
|
2244
|
+
rs && console.warn(
|
|
2043
2245
|
"Row updateData - invalid JSON string, skipping update",
|
|
2044
2246
|
r
|
|
2045
2247
|
), o();
|
|
@@ -2097,7 +2299,7 @@ class B extends W {
|
|
|
2097
2299
|
}
|
|
2098
2300
|
moveToRow(e, t) {
|
|
2099
2301
|
const i = this.table.rowManager?.findRow(e);
|
|
2100
|
-
i ? (this.table.rowManager?.moveRowActual(this, i, !t), this.table.rowManager?.refreshActiveData("display", !1, !0)) :
|
|
2302
|
+
i ? (this.table.rowManager?.moveRowActual(this, i, !t), this.table.rowManager?.refreshActiveData("display", !1, !0)) : rs && console.warn(`Move Error - No matching row found: ${e}`);
|
|
2101
2303
|
}
|
|
2102
2304
|
// /////////////////// Actions /////////////////////
|
|
2103
2305
|
delete() {
|
|
@@ -2143,10 +2345,10 @@ class B extends W {
|
|
|
2143
2345
|
* Object Generation
|
|
2144
2346
|
*/
|
|
2145
2347
|
getComponent() {
|
|
2146
|
-
return this.component || (this.component = new
|
|
2348
|
+
return this.component || (this.component = new Di(this)), this.component;
|
|
2147
2349
|
}
|
|
2148
2350
|
}
|
|
2149
|
-
class
|
|
2351
|
+
class _o {
|
|
2150
2352
|
constructor(e) {
|
|
2151
2353
|
return this._row = e, new Proxy(this, {
|
|
2152
2354
|
get: (t, i) => typeof i != "string" || typeof t[i] < "u" ? t[i] : t._row.table.componentFunctionBinder.handle(
|
|
@@ -2179,7 +2381,7 @@ class zo {
|
|
|
2179
2381
|
return this._row;
|
|
2180
2382
|
}
|
|
2181
2383
|
}
|
|
2182
|
-
const
|
|
2384
|
+
const No = {
|
|
2183
2385
|
avg: function(n, e, t) {
|
|
2184
2386
|
let i = 0;
|
|
2185
2387
|
const s = typeof t == "object" && "precision" in t ? t.precision : 2;
|
|
@@ -2231,7 +2433,7 @@ const Fo = {
|
|
|
2231
2433
|
unique: function(n, e, t) {
|
|
2232
2434
|
return n.filter((s, o) => !(s == null || typeof s == "string" && s.trim() === "") && n.indexOf(s) === o).length;
|
|
2233
2435
|
}
|
|
2234
|
-
},
|
|
2436
|
+
}, ns = process.env.NODE_ENV === "development", ge = class ge extends S {
|
|
2235
2437
|
constructor(e) {
|
|
2236
2438
|
super(e), this.topCalcs = [], this.botCalcs = [], this.genColumn = !1, this.topElement = this.createElement(), this.botElement = this.createElement(), this.topRow = !1, this.botRow = !1, this.topInitialized = !1, this.botInitialized = !1, this.blocked = !1, this.recalcAfterBlock = !1, this.registerTableOption("columnCalcs", !0), this.registerColumnOption("topCalc"), this.registerColumnOption("topCalcParams"), this.registerColumnOption("topCalcFormatter"), this.registerColumnOption("topCalcFormatterParams"), this.registerColumnOption("bottomCalc"), this.registerColumnOption("bottomCalcParams"), this.registerColumnOption("bottomCalcFormatter"), this.registerColumnOption("bottomCalcFormatterParams");
|
|
2237
2439
|
}
|
|
@@ -2293,7 +2495,7 @@ const Fo = {
|
|
|
2293
2495
|
if (t.topCalc) {
|
|
2294
2496
|
switch (typeof t.topCalc) {
|
|
2295
2497
|
case "string":
|
|
2296
|
-
ge.calculations[t.topCalc] ? i.topCalc = ge.calculations[t.topCalc] :
|
|
2498
|
+
ge.calculations[t.topCalc] ? i.topCalc = ge.calculations[t.topCalc] : ns && console.warn(
|
|
2297
2499
|
"Column Calc Error - No such calculation found, ignoring: ",
|
|
2298
2500
|
t.topCalc
|
|
2299
2501
|
);
|
|
@@ -2307,7 +2509,7 @@ const Fo = {
|
|
|
2307
2509
|
if (t.bottomCalc) {
|
|
2308
2510
|
switch (typeof t.bottomCalc) {
|
|
2309
2511
|
case "string":
|
|
2310
|
-
ge.calculations[t.bottomCalc] ? i.botCalc = ge.calculations[t.bottomCalc] :
|
|
2512
|
+
ge.calculations[t.bottomCalc] ? i.botCalc = ge.calculations[t.bottomCalc] : ns && console.warn(
|
|
2311
2513
|
"Column Calc Error - No such calculation found, ignoring: ",
|
|
2312
2514
|
t.bottomCalc
|
|
2313
2515
|
);
|
|
@@ -2399,7 +2601,7 @@ const Fo = {
|
|
|
2399
2601
|
const i = this.generateRowData(e, t);
|
|
2400
2602
|
this.table.modExists("mutator") && this.table.modules.mutator?.disable();
|
|
2401
2603
|
const s = new B(i, this, "calc");
|
|
2402
|
-
return this.table.modExists("mutator") && this.table.modules.mutator?.enable(), s.getElement().classList.add("tabulator-calcs", "tabulator-calcs-" + e), s.component = null, s.getComponent = () => (s.component || (s.component = new
|
|
2604
|
+
return this.table.modExists("mutator") && this.table.modules.mutator?.enable(), s.getElement().classList.add("tabulator-calcs", "tabulator-calcs-" + e), s.component = null, s.getComponent = () => (s.component || (s.component = new _o(s)), s.component), s.generateCells = () => {
|
|
2403
2605
|
const o = [];
|
|
2404
2606
|
this.table.columnManager?.columnsByIndex.forEach((r) => {
|
|
2405
2607
|
if (this.genColumn) {
|
|
@@ -2471,9 +2673,9 @@ const Fo = {
|
|
|
2471
2673
|
this.botRow && (this.table.rtl ? this.botElement.style.paddingLeft = e + "px" : this.botElement.style.paddingRight = e + "px");
|
|
2472
2674
|
}
|
|
2473
2675
|
};
|
|
2474
|
-
ge.moduleName = "columnCalcs", ge.calculations =
|
|
2475
|
-
let
|
|
2476
|
-
class
|
|
2676
|
+
ge.moduleName = "columnCalcs", ge.calculations = No;
|
|
2677
|
+
let _t = ge;
|
|
2678
|
+
class Nt extends B {
|
|
2477
2679
|
constructor(e = {}, t) {
|
|
2478
2680
|
super(e, t), this.type = "placeholder", this.height = 0, this.outerHeight = 0, this.initialized = !1, this.modules = {}, this.cells = [];
|
|
2479
2681
|
}
|
|
@@ -2520,9 +2722,9 @@ class At extends B {
|
|
|
2520
2722
|
this.element?.parentNode && this.element.parentNode.removeChild(this.element);
|
|
2521
2723
|
}
|
|
2522
2724
|
}
|
|
2523
|
-
const
|
|
2725
|
+
const Vo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-button name="keyboard_arrow_down"></cx-icon-button></span>`, Io = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-button name="keyboard_arrow_right"></cx-icon-button></span>`, Bo = E`<span class="tabulator-data-tree-control tabulator-data-tree-control-placeholder" aria-hidden="true"></span>`, Wo = E`<div class="tabulator-data-tree-branch"></div>`, Go = E`<div class="tabulator-data-tree-branch-empty"></div>`, jo = E`<cx-button size="small"><cx-icon slot="prefix" name="add" variant="outlined"></cx-icon>
|
|
2524
2726
|
Load More
|
|
2525
|
-
</cx-button>`,
|
|
2727
|
+
</cx-button>`, $o = E`<div class="tabulator-data-tree-loading">Loading...</div>`, Uo = process.env.NODE_ENV === "development", Hi = class Hi extends S {
|
|
2526
2728
|
constructor(e) {
|
|
2527
2729
|
super(e), this.indent = 10, this.field = "", this.collapseEl = null, this.expandEl = null, this.branchEl = null, this.elementField = !1, this.startOpen = function() {
|
|
2528
2730
|
return !1;
|
|
@@ -2560,9 +2762,9 @@ const Oo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2560
2762
|
if (this.table.options.dataTree) {
|
|
2561
2763
|
let e = null;
|
|
2562
2764
|
const t = this.table.options;
|
|
2563
|
-
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") &&
|
|
2765
|
+
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") && Uo && console.warn(
|
|
2564
2766
|
"The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"
|
|
2565
|
-
), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl = k(
|
|
2767
|
+
), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl = k(Wo) : typeof t.dataTreeBranchElement == "string" ? (e = document.createElement("div"), e.innerHTML = T(t.dataTreeBranchElement), this.branchEl = e.firstChild) : this.branchEl = t.dataTreeBranchElement : this.branchEl = k(Go), t.dataTreeCollapseElement ? typeof t.dataTreeCollapseElement == "string" ? (e = document.createElement("div"), e.innerHTML = T(t.dataTreeCollapseElement), this.collapseEl = e.firstChild) : this.collapseEl = t.dataTreeCollapseElement : this.collapseEl = k(Vo), t.dataTreeExpandElement ? typeof t.dataTreeExpandElement == "string" ? (e = document.createElement("div"), e.innerHTML = T(t.dataTreeExpandElement), this.expandEl = e.firstChild) : this.expandEl = t.dataTreeExpandElement : this.expandEl = k(Io), typeof t.dataTreeStartExpanded) {
|
|
2566
2768
|
case "boolean":
|
|
2567
2769
|
this.startOpen = function() {
|
|
2568
2770
|
return t.dataTreeStartExpanded;
|
|
@@ -2662,7 +2864,7 @@ const Oo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2662
2864
|
r.stopPropagation();
|
|
2663
2865
|
});
|
|
2664
2866
|
} else
|
|
2665
|
-
o = k(
|
|
2867
|
+
o = k(Bo);
|
|
2666
2868
|
o.style.setProperty("margin-inline-end", `${this.indent}px`), o.style.setProperty("margin-inline-start", "0px"), e.modules.dataTree.controlEl = o, s && s.parentNode === t ? s.parentNode.replaceChild(o, s) : t.insertBefore(o, t.firstChild);
|
|
2667
2869
|
}
|
|
2668
2870
|
}
|
|
@@ -2717,14 +2919,14 @@ const Oo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2717
2919
|
childLevel: e,
|
|
2718
2920
|
parentRow: t
|
|
2719
2921
|
}) {
|
|
2720
|
-
const i = new
|
|
2922
|
+
const i = new Nt(
|
|
2721
2923
|
{
|
|
2722
2924
|
id: "load-more"
|
|
2723
2925
|
},
|
|
2724
2926
|
this.table.rowManager
|
|
2725
2927
|
);
|
|
2726
2928
|
i.create(), i.modules.dataTree.index = e, i.modules.dataTree.parent = t, i.modules.dataTree.children = !1, i.modules.dataTree.open = !0;
|
|
2727
|
-
const s = k(
|
|
2929
|
+
const s = k(jo);
|
|
2728
2930
|
return i.getElement()?.classList.add("tabulator-tree-level-" + e), i.element.appendChild(s), s.style.setProperty(
|
|
2729
2931
|
"--tabulator-tree-level",
|
|
2730
2932
|
String(e + 1)
|
|
@@ -2746,14 +2948,14 @@ const Oo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2746
2948
|
childLevel: e,
|
|
2747
2949
|
parentRow: t
|
|
2748
2950
|
}) {
|
|
2749
|
-
const i = new
|
|
2951
|
+
const i = new Nt(
|
|
2750
2952
|
{
|
|
2751
2953
|
id: "loading"
|
|
2752
2954
|
},
|
|
2753
2955
|
this.table.rowManager
|
|
2754
2956
|
);
|
|
2755
2957
|
i.create(), i.modules.dataTree.index = e, i.modules.dataTree.parent = t, i.modules.dataTree.children = !1, i.modules.dataTree.open = !0;
|
|
2756
|
-
const s = k(
|
|
2958
|
+
const s = k($o);
|
|
2757
2959
|
return i.element.appendChild(s), i.getElement()?.classList.add("tabulator-tree-level-" + e), s.style.setProperty(
|
|
2758
2960
|
"--tabulator-tree-level",
|
|
2759
2961
|
String(e + 1)
|
|
@@ -2906,20 +3108,20 @@ const Oo = E`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
2906
3108
|
return (this.field ? e[this.field] !== void 0 && e[this.field] !== null : !1) || (this.elementField ? e[this.elementField] !== void 0 && e[this.elementField] !== null : !1) || (this.loadingField ? e[this.loadingField] !== void 0 && e[this.loadingField] !== null : !1) || (this.hasMoreField ? e[this.hasMoreField] !== void 0 && e[this.hasMoreField] !== null : !1);
|
|
2907
3109
|
}
|
|
2908
3110
|
};
|
|
2909
|
-
|
|
2910
|
-
let
|
|
2911
|
-
const
|
|
3111
|
+
Hi.moduleName = "dataTree";
|
|
3112
|
+
let Vt = Hi;
|
|
3113
|
+
const as = process.env.NODE_ENV === "development", Ko = function(n, e = {}, t) {
|
|
2912
3114
|
const i = e.delimiter ? e.delimiter : ",", s = [], o = [];
|
|
2913
3115
|
n.forEach((a) => {
|
|
2914
3116
|
const l = [];
|
|
2915
3117
|
switch (a.type) {
|
|
2916
3118
|
case "group":
|
|
2917
|
-
|
|
3119
|
+
as && console.warn(
|
|
2918
3120
|
"Download Warning - CSV downloader cannot process row groups"
|
|
2919
3121
|
);
|
|
2920
3122
|
break;
|
|
2921
3123
|
case "calc":
|
|
2922
|
-
|
|
3124
|
+
as && console.warn(
|
|
2923
3125
|
"Download Warning - CSV downloader cannot process column calculations"
|
|
2924
3126
|
);
|
|
2925
3127
|
break;
|
|
@@ -2949,11 +3151,11 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
2949
3151
|
let r = s.join(`
|
|
2950
3152
|
`);
|
|
2951
3153
|
e.bom && (r = "\uFEFF" + r), t(r, "text/csv");
|
|
2952
|
-
},
|
|
3154
|
+
}, Xo = function(n, e, t) {
|
|
2953
3155
|
const i = this;
|
|
2954
3156
|
let s = "";
|
|
2955
3157
|
i.modExists("export", !0) && (s = i.modules.export?.generateHTMLTable(n) || ""), t(s, "text/html");
|
|
2956
|
-
},
|
|
3158
|
+
}, ls = process.env.NODE_ENV === "development", Jo = function(n, e, t) {
|
|
2957
3159
|
const i = [];
|
|
2958
3160
|
n.forEach((o) => {
|
|
2959
3161
|
const r = {};
|
|
@@ -2961,12 +3163,12 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
2961
3163
|
case "header":
|
|
2962
3164
|
break;
|
|
2963
3165
|
case "group":
|
|
2964
|
-
|
|
3166
|
+
ls && console.warn(
|
|
2965
3167
|
"Download Warning - JSON downloader cannot process row groups"
|
|
2966
3168
|
);
|
|
2967
3169
|
break;
|
|
2968
3170
|
case "calc":
|
|
2969
|
-
|
|
3171
|
+
ls && console.warn(
|
|
2970
3172
|
"Download Warning - JSON downloader cannot process column calculations"
|
|
2971
3173
|
);
|
|
2972
3174
|
break;
|
|
@@ -2979,7 +3181,7 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
2979
3181
|
});
|
|
2980
3182
|
const s = JSON.stringify(i, null, " ");
|
|
2981
3183
|
t(s, "application/json");
|
|
2982
|
-
},
|
|
3184
|
+
}, hs = process.env.NODE_ENV === "development", qo = function(n, e, t) {
|
|
2983
3185
|
const i = [];
|
|
2984
3186
|
n.forEach((s) => {
|
|
2985
3187
|
const o = {};
|
|
@@ -2987,12 +3189,12 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
2987
3189
|
case "header":
|
|
2988
3190
|
break;
|
|
2989
3191
|
case "group":
|
|
2990
|
-
|
|
3192
|
+
hs && console.warn(
|
|
2991
3193
|
"Download Warning - JSON downloader cannot process row groups"
|
|
2992
3194
|
);
|
|
2993
3195
|
break;
|
|
2994
3196
|
case "calc":
|
|
2995
|
-
|
|
3197
|
+
hs && console.warn(
|
|
2996
3198
|
"Download Warning - JSON downloader cannot process column calculations"
|
|
2997
3199
|
);
|
|
2998
3200
|
break;
|
|
@@ -3004,7 +3206,7 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
3004
3206
|
}
|
|
3005
3207
|
}), t(i.join(`
|
|
3006
3208
|
`), "application/x-ndjson");
|
|
3007
|
-
},
|
|
3209
|
+
}, Yo = process.env.NODE_ENV === "development", Qo = function(n, e = {}, t) {
|
|
3008
3210
|
const i = this, s = [], o = [];
|
|
3009
3211
|
let r = {};
|
|
3010
3212
|
const a = e.rowGroupStyles || {
|
|
@@ -3059,7 +3261,7 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
3059
3261
|
});
|
|
3060
3262
|
const p = i.dependencyRegistry.lookup("jspdf", "jsPDF");
|
|
3061
3263
|
if (!p) {
|
|
3062
|
-
|
|
3264
|
+
Yo && console.error(
|
|
3063
3265
|
"Download Error - 'pdf' downloader requires jspdf library to be registered"
|
|
3064
3266
|
);
|
|
3065
3267
|
return;
|
|
@@ -3068,10 +3270,10 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
3068
3270
|
e.autoTable && (typeof e.autoTable == "function" ? r = e.autoTable(u) || {} : r = e.autoTable), c && (r.didDrawPage = function(f) {
|
|
3069
3271
|
u.text(c, 40, 30);
|
|
3070
3272
|
}), r.head = s, r.body = o, u.autoTable(r), e.documentProcessing && e.documentProcessing(u), t(u.output("arraybuffer"), "application/pdf");
|
|
3071
|
-
},
|
|
3273
|
+
}, Zo = process.env.NODE_ENV === "development", er = function(n, e, t) {
|
|
3072
3274
|
const i = this, s = e.sheetName || "Sheet1", o = i.dependencyRegistry.lookup("XLSX");
|
|
3073
3275
|
if (!o?.utils?.book_new) {
|
|
3074
|
-
|
|
3276
|
+
Zo && console.error(
|
|
3075
3277
|
"Download Error - 'xlsx' downloader requires XLSX library to be registered"
|
|
3076
3278
|
);
|
|
3077
3279
|
return;
|
|
@@ -3132,14 +3334,14 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
3132
3334
|
}
|
|
3133
3335
|
const u = o.write(r, h);
|
|
3134
3336
|
t(p(u), "application/octet-stream");
|
|
3135
|
-
},
|
|
3136
|
-
csv:
|
|
3137
|
-
html:
|
|
3138
|
-
json:
|
|
3139
|
-
jsonLines:
|
|
3140
|
-
pdf:
|
|
3141
|
-
xlsx:
|
|
3142
|
-
},
|
|
3337
|
+
}, tr = {
|
|
3338
|
+
csv: Ko,
|
|
3339
|
+
html: Xo,
|
|
3340
|
+
json: Jo,
|
|
3341
|
+
jsonLines: qo,
|
|
3342
|
+
pdf: Qo,
|
|
3343
|
+
xlsx: er
|
|
3344
|
+
}, ir = process.env.NODE_ENV === "development", Ae = class Ae extends S {
|
|
3143
3345
|
constructor(e) {
|
|
3144
3346
|
super(e), this.registerTableOption(
|
|
3145
3347
|
"downloadEncoder",
|
|
@@ -3166,7 +3368,7 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
3166
3368
|
const a = (l, h) => {
|
|
3167
3369
|
o ? o === !0 ? this.triggerDownload(l, h, e, t, !0) : o(l) : this.triggerDownload(l, h, e, t);
|
|
3168
3370
|
};
|
|
3169
|
-
if (typeof e == "function" ? r = e :
|
|
3371
|
+
if (typeof e == "function" ? r = e : Ae.downloaders[e] ? r = Ae.downloaders[e] : ir && console.warn("Download Error - No such download type found: ", e), r) {
|
|
3170
3372
|
const l = this.generateExportList(s);
|
|
3171
3373
|
r.call(this.table, l, i || {}, a.bind(this));
|
|
3172
3374
|
}
|
|
@@ -3216,9 +3418,9 @@ const os = process.env.NODE_ENV === "development", Bo = function(n, e = {}, t) {
|
|
|
3216
3418
|
}
|
|
3217
3419
|
}
|
|
3218
3420
|
};
|
|
3219
|
-
|
|
3220
|
-
let
|
|
3221
|
-
const
|
|
3421
|
+
Ae.moduleName = "download", Ae.downloaders = tr;
|
|
3422
|
+
let It = Ae;
|
|
3423
|
+
const sr = function(n, e, t, i, s = {}) {
|
|
3222
3424
|
const o = this, r = n._getSelf().column;
|
|
3223
3425
|
let a;
|
|
3224
3426
|
function l(d) {
|
|
@@ -3252,7 +3454,7 @@ const Yo = function(n, e, t, i, s = {}) {
|
|
|
3252
3454
|
i,
|
|
3253
3455
|
a || {}
|
|
3254
3456
|
) : !1;
|
|
3255
|
-
},
|
|
3457
|
+
}, or = process.env.NODE_ENV === "development", rr = function(n, e, t, i, s) {
|
|
3256
3458
|
const o = s.format, r = s.verticalNavigation || "editor", a = typeof globalThis.window > "u" ? globalThis : window, l = o ? a.DateTime || a.luxon?.DateTime : null;
|
|
3257
3459
|
let h = n.getValue();
|
|
3258
3460
|
const c = document.createElement("input");
|
|
@@ -3285,7 +3487,7 @@ const Yo = function(n, e, t, i, s = {}) {
|
|
|
3285
3487
|
);
|
|
3286
3488
|
} else
|
|
3287
3489
|
c.setAttribute(f, s.elementAttributes[f]);
|
|
3288
|
-
h = h ?? "", o && (l ? h = p(h) :
|
|
3490
|
+
h = h ?? "", o && (l ? h = p(h) : or && console.error(
|
|
3289
3491
|
"Editor Error - 'date' editor 'format' param is dependent on luxon.js"
|
|
3290
3492
|
)), c.value = String(h), e(() => {
|
|
3291
3493
|
n.getType() === "cell" && (c.focus({ preventScroll: !0 }), c.style.height = "100%", s.selectContents && c.select());
|
|
@@ -3332,7 +3534,7 @@ const Yo = function(n, e, t, i, s = {}) {
|
|
|
3332
3534
|
break;
|
|
3333
3535
|
}
|
|
3334
3536
|
}), c;
|
|
3335
|
-
},
|
|
3537
|
+
}, nr = process.env.NODE_ENV === "development", ar = function(n, e, t, i, s) {
|
|
3336
3538
|
const o = this, r = s.format, a = s.verticalNavigation || "editor", l = r ? o.table.dependencyRegistry.lookup(["luxon", "DateTime"], "DateTime") : null;
|
|
3337
3539
|
let h, c = n.getValue();
|
|
3338
3540
|
const d = document.createElement("input");
|
|
@@ -3346,7 +3548,7 @@ const Yo = function(n, e, t, i, s = {}) {
|
|
|
3346
3548
|
);
|
|
3347
3549
|
} else
|
|
3348
3550
|
d.setAttribute(u, s.elementAttributes[u]);
|
|
3349
|
-
c = c ?? "", r && l ? (l.isDateTime?.(c) ? h = c : r === "iso" ? h = l.fromISO(String(c)) : h = l.fromFormat(String(c), r), c = h.toFormat("yyyy-MM-dd") + "T" + h.toFormat("HH:mm")) : r && !l &&
|
|
3551
|
+
c = c ?? "", r && l ? (l.isDateTime?.(c) ? h = c : r === "iso" ? h = l.fromISO(String(c)) : h = l.fromFormat(String(c), r), c = h.toFormat("yyyy-MM-dd") + "T" + h.toFormat("HH:mm")) : r && !l && nr && console.error(
|
|
3350
3552
|
"Editor Error - 'datetime' editor 'format' param is dependent on luxon.js"
|
|
3351
3553
|
), d.value = String(c), e(() => {
|
|
3352
3554
|
n.getType() === "cell" && (d.focus({ preventScroll: !0 }), d.style.height = "100%", s.selectContents && d.select());
|
|
@@ -3392,7 +3594,7 @@ const Yo = function(n, e, t, i, s = {}) {
|
|
|
3392
3594
|
}
|
|
3393
3595
|
}), d;
|
|
3394
3596
|
};
|
|
3395
|
-
function
|
|
3597
|
+
function Li(n, e) {
|
|
3396
3598
|
const t = e.mask, i = typeof e.maskLetterChar < "u" ? e.maskLetterChar : "A", s = typeof e.maskNumberChar < "u" ? e.maskNumberChar : "9", o = typeof e.maskWildcardChar < "u" ? e.maskWildcardChar : "*";
|
|
3397
3599
|
function r(a) {
|
|
3398
3600
|
const l = t[a];
|
|
@@ -3430,7 +3632,7 @@ function Di(n, e) {
|
|
|
3430
3632
|
(a.keyCode || 0) > 46 && e.maskAutoFill && r(n.value.length);
|
|
3431
3633
|
}), n.placeholder || (n.placeholder = t), e.maskAutoFill && r(n.value.length);
|
|
3432
3634
|
}
|
|
3433
|
-
const
|
|
3635
|
+
const lr = function(n, e, t, i, s) {
|
|
3434
3636
|
let o = n.getValue();
|
|
3435
3637
|
const r = document.createElement("input");
|
|
3436
3638
|
if (r.setAttribute(
|
|
@@ -3466,19 +3668,19 @@ const ir = function(n, e, t, i, s) {
|
|
|
3466
3668
|
l.stopPropagation();
|
|
3467
3669
|
break;
|
|
3468
3670
|
}
|
|
3469
|
-
}), s.mask &&
|
|
3470
|
-
},
|
|
3471
|
-
let
|
|
3472
|
-
function
|
|
3473
|
-
|
|
3671
|
+
}), s.mask && Li(r, s), r;
|
|
3672
|
+
}, hr = process.env.NODE_ENV === "development";
|
|
3673
|
+
let Ns = null;
|
|
3674
|
+
function cr(n) {
|
|
3675
|
+
Ns = n;
|
|
3474
3676
|
}
|
|
3475
|
-
const
|
|
3677
|
+
const dr = {
|
|
3476
3678
|
/**
|
|
3477
3679
|
* @param explicitRegistry - When provided, that map is used. When omitted, uses the registry set
|
|
3478
3680
|
* by {@link setDefaultFormattersRegistry}
|
|
3479
3681
|
*/
|
|
3480
3682
|
lookupFormatter(n, e) {
|
|
3481
|
-
const t = e ??
|
|
3683
|
+
const t = e ?? Ns;
|
|
3482
3684
|
if (!t)
|
|
3483
3685
|
throw new Error(
|
|
3484
3686
|
"defaultFormatterRegistry is not initialized; ensure ./defaults/formatters has finished loading."
|
|
@@ -3486,7 +3688,7 @@ const rr = {
|
|
|
3486
3688
|
let i;
|
|
3487
3689
|
switch (typeof n) {
|
|
3488
3690
|
case "string":
|
|
3489
|
-
t[n] ? i = t[n] : (
|
|
3691
|
+
t[n] ? i = t[n] : (hr && console.warn("Formatter Error - No such formatter found: ", n), i = t.plaintext);
|
|
3490
3692
|
break;
|
|
3491
3693
|
case "function":
|
|
3492
3694
|
i = n;
|
|
@@ -3499,9 +3701,9 @@ const rr = {
|
|
|
3499
3701
|
}
|
|
3500
3702
|
};
|
|
3501
3703
|
function vt(n, e) {
|
|
3502
|
-
return
|
|
3704
|
+
return dr.lookupFormatter(n, e);
|
|
3503
3705
|
}
|
|
3504
|
-
function
|
|
3706
|
+
function ur(n, e = {}, t) {
|
|
3505
3707
|
let i;
|
|
3506
3708
|
function s(a) {
|
|
3507
3709
|
const l = a.getValue();
|
|
@@ -3520,7 +3722,7 @@ function nr(n, e = {}, t) {
|
|
|
3520
3722
|
const o = e.formatterLookup ? e.formatterLookup(n) : s(n);
|
|
3521
3723
|
return e.paramsLookup && (i = typeof e.paramsLookup == "function" ? e.paramsLookup(o, n) : e.paramsLookup[o]), vt(o).call(this, n, i || {}, t);
|
|
3522
3724
|
}
|
|
3523
|
-
function
|
|
3725
|
+
function pr(n, e, t) {
|
|
3524
3726
|
const i = e.delimiter ?? ",";
|
|
3525
3727
|
let s = n.getValue();
|
|
3526
3728
|
const o = this.table;
|
|
@@ -3533,28 +3735,28 @@ function ar(n, e, t) {
|
|
|
3533
3735
|
));
|
|
3534
3736
|
} : r = e.valueMap), Array.isArray(s) ? (r && (s = r(s)), s.join(i)) : s;
|
|
3535
3737
|
}
|
|
3536
|
-
function
|
|
3738
|
+
function fr(n, e, t) {
|
|
3537
3739
|
return '<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';
|
|
3538
3740
|
}
|
|
3539
|
-
function
|
|
3741
|
+
function gr(n, e, t) {
|
|
3540
3742
|
return '<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>';
|
|
3541
3743
|
}
|
|
3542
|
-
function
|
|
3744
|
+
function mr(n, e, t) {
|
|
3543
3745
|
const i = n.getContentElement?.() ?? n.getElement(), s = n.getValue();
|
|
3544
|
-
return i && (
|
|
3746
|
+
return i && (br(s) ? i.style.backgroundColor = s : i.style.backgroundColor = ""), "";
|
|
3545
3747
|
}
|
|
3546
|
-
function
|
|
3748
|
+
function br(n) {
|
|
3547
3749
|
return !n || typeof n != "string" ? !1 : /^(#[0-9A-Fa-f]{3,8}|rgb\(|rgba\(|hsl\(|hsla\(|[a-z]+)$/i.test(n.trim());
|
|
3548
3750
|
}
|
|
3549
|
-
const
|
|
3550
|
-
function
|
|
3751
|
+
const wr = E`<span style="display: inline-flex; align-items: center;"></span>`;
|
|
3752
|
+
function vr({
|
|
3551
3753
|
spacing: n,
|
|
3552
3754
|
style: e
|
|
3553
3755
|
}) {
|
|
3554
|
-
const t = k(
|
|
3756
|
+
const t = k(wr);
|
|
3555
3757
|
return n && (t.style.margin = n), e && Object.assign(t.style, e), t;
|
|
3556
3758
|
}
|
|
3557
|
-
function
|
|
3759
|
+
function yr(n, e, t) {
|
|
3558
3760
|
const i = vt("plaintext"), s = {
|
|
3559
3761
|
style: {
|
|
3560
3762
|
color: "var(--cx-color-neutral-500)",
|
|
@@ -3578,17 +3780,17 @@ function fr(n, e, t) {
|
|
|
3578
3780
|
r
|
|
3579
3781
|
);
|
|
3580
3782
|
}
|
|
3581
|
-
function
|
|
3783
|
+
function cs({
|
|
3582
3784
|
elementConfig: n,
|
|
3583
3785
|
elementValue: e,
|
|
3584
3786
|
rowData: t
|
|
3585
3787
|
}) {
|
|
3586
3788
|
return !!(n.shouldHide?.(e, t) || n.hideValues !== void 0 && (Array.isArray(n.hideValues) ? n.hideValues : [n.hideValues]).includes(e) || n.shouldShow && !n.shouldShow(e, t) || n.showValues !== void 0 && !(Array.isArray(n.showValues) ? n.showValues : [n.showValues]).includes(e));
|
|
3587
3789
|
}
|
|
3588
|
-
function
|
|
3790
|
+
function ds(n) {
|
|
3589
3791
|
return n == null || n === "";
|
|
3590
3792
|
}
|
|
3591
|
-
function
|
|
3793
|
+
function us({
|
|
3592
3794
|
cell: n,
|
|
3593
3795
|
elementConfig: e,
|
|
3594
3796
|
rowData: t,
|
|
@@ -3596,23 +3798,23 @@ function hs({
|
|
|
3596
3798
|
}) {
|
|
3597
3799
|
return e.value !== void 0 ? e.value : e.getValue ? e.getValue(n, t) : e.field ? D.retrieveNestedData(i, e.field, t) : n.getValue();
|
|
3598
3800
|
}
|
|
3599
|
-
function
|
|
3801
|
+
function Cr(n, e, t) {
|
|
3600
3802
|
if (!e?.elements || !Array.isArray(e.elements) || e.elements.length === 0)
|
|
3601
3803
|
return;
|
|
3602
3804
|
const i = n.getData(), s = this.table, o = typeof s.options.nestedFieldSeparator == "string" ? s.options.nestedFieldSeparator : void 0, r = n.getValue(), a = e.elements.some((R) => {
|
|
3603
|
-
const G =
|
|
3805
|
+
const G = us({
|
|
3604
3806
|
cell: n,
|
|
3605
3807
|
elementConfig: R,
|
|
3606
3808
|
rowData: i,
|
|
3607
3809
|
separator: o
|
|
3608
3810
|
});
|
|
3609
|
-
if (
|
|
3811
|
+
if (cs({ elementConfig: R, elementValue: G, rowData: i }))
|
|
3610
3812
|
return !1;
|
|
3611
|
-
let
|
|
3612
|
-
return R.valueMap && (
|
|
3813
|
+
let P = G;
|
|
3814
|
+
return R.valueMap && (P = R.valueMap[String(P)] ?? P), !ds(P);
|
|
3613
3815
|
});
|
|
3614
|
-
if (
|
|
3615
|
-
return
|
|
3816
|
+
if (ds(r) && !a && e.placeholder !== void 0)
|
|
3817
|
+
return yr.call(this, n, e, t);
|
|
3616
3818
|
const h = n.getRow(), {
|
|
3617
3819
|
align: c,
|
|
3618
3820
|
block: d,
|
|
@@ -3623,16 +3825,16 @@ function gr(n, e, t) {
|
|
|
3623
3825
|
wrap: y
|
|
3624
3826
|
} = e, b = E`<cx-space style=${De(p ?? {})} align-items=${c ?? "center"} ?block=${d} direction=${re(u)} justify-content=${re(m)} spacing=${f ?? "3x-small"} wrap=${re(y)}></cx-space>`, C = k(b), x = [];
|
|
3625
3827
|
return e.elements.forEach((R) => {
|
|
3626
|
-
const G =
|
|
3828
|
+
const G = us({
|
|
3627
3829
|
cell: n,
|
|
3628
3830
|
elementConfig: R,
|
|
3629
3831
|
rowData: i,
|
|
3630
3832
|
separator: o
|
|
3631
3833
|
});
|
|
3632
|
-
if (
|
|
3834
|
+
if (cs({ elementConfig: R, elementValue: G, rowData: i }))
|
|
3633
3835
|
return;
|
|
3634
|
-
let
|
|
3635
|
-
R.valueMap && (
|
|
3836
|
+
let P = G;
|
|
3837
|
+
R.valueMap && (P = R.valueMap[String(P)] ?? P);
|
|
3636
3838
|
const N = R.formatter || "plaintext", V = vt(N), Q = {
|
|
3637
3839
|
getColumn: () => n.getColumn(),
|
|
3638
3840
|
getData: () => i,
|
|
@@ -3640,10 +3842,10 @@ function gr(n, e, t) {
|
|
|
3640
3842
|
getRow: () => h,
|
|
3641
3843
|
getTable: () => s,
|
|
3642
3844
|
getType: () => "cell",
|
|
3643
|
-
getValue: () =>
|
|
3644
|
-
value:
|
|
3645
|
-
}, ze = typeof R.formatterParams == "function" ? R.formatterParams(Q) : R.formatterParams ?? {}, j = (
|
|
3646
|
-
t && t(
|
|
3845
|
+
getValue: () => P,
|
|
3846
|
+
value: P
|
|
3847
|
+
}, ze = typeof R.formatterParams == "function" ? R.formatterParams(Q) : R.formatterParams ?? {}, j = (qs) => {
|
|
3848
|
+
t && t(qs);
|
|
3647
3849
|
};
|
|
3648
3850
|
let M;
|
|
3649
3851
|
try {
|
|
@@ -3654,11 +3856,11 @@ function gr(n, e, t) {
|
|
|
3654
3856
|
j
|
|
3655
3857
|
);
|
|
3656
3858
|
} catch {
|
|
3657
|
-
M = String(
|
|
3859
|
+
M = String(P ?? "");
|
|
3658
3860
|
}
|
|
3659
3861
|
if (M == null)
|
|
3660
3862
|
return;
|
|
3661
|
-
const Fe =
|
|
3863
|
+
const Fe = vr({
|
|
3662
3864
|
spacing: R.spacing,
|
|
3663
3865
|
style: R.style
|
|
3664
3866
|
});
|
|
@@ -3667,21 +3869,21 @@ function gr(n, e, t) {
|
|
|
3667
3869
|
wrapper: Fe
|
|
3668
3870
|
});
|
|
3669
3871
|
}), x.length === 0 ? void 0 : (x.flatMap((R, G) => {
|
|
3670
|
-
const { separator:
|
|
3671
|
-
if (!
|
|
3872
|
+
const { separator: P, wrapper: N } = R, V = G === x.length - 1;
|
|
3873
|
+
if (!P || V)
|
|
3672
3874
|
return [N];
|
|
3673
3875
|
const Q = document.createElement("span");
|
|
3674
|
-
return typeof
|
|
3876
|
+
return typeof P == "string" ? Q.textContent = P : Q.appendChild(P.cloneNode(!0)), [N, Q];
|
|
3675
3877
|
}).forEach((R) => C.appendChild(R)), C);
|
|
3676
3878
|
}
|
|
3677
|
-
const
|
|
3678
|
-
function
|
|
3879
|
+
const Er = process.env.NODE_ENV === "development";
|
|
3880
|
+
function xr(n, e, t) {
|
|
3679
3881
|
const i = this.table.dependencyRegistry.lookup(
|
|
3680
3882
|
["luxon", "DateTime"],
|
|
3681
3883
|
"DateTime"
|
|
3682
3884
|
), s = e.inputFormat || "yyyy-MM-dd HH:mm:ss", o = e.outputFormat || "dd/MM/yyyy HH:mm:ss", r = e.invalidPlaceholder ?? "", a = n.getValue();
|
|
3683
3885
|
if (i == null)
|
|
3684
|
-
return
|
|
3886
|
+
return Er && console.error(
|
|
3685
3887
|
"Format Error - 'datetime' formatter is dependent on luxon.js"
|
|
3686
3888
|
), a;
|
|
3687
3889
|
{
|
|
@@ -3689,14 +3891,14 @@ function br(n, e, t) {
|
|
|
3689
3891
|
return i.isDateTime(a) ? l = a : s === "iso" ? l = i.fromISO(String(a)) : l = i.fromFormat(String(a), s), l.isValid ? (e.timezone && (l = l.setZone(e.timezone)), l.toFormat(o)) : r === !0 || !a ? a : typeof r == "function" ? r(a) : r;
|
|
3690
3892
|
}
|
|
3691
3893
|
}
|
|
3692
|
-
const
|
|
3693
|
-
function
|
|
3894
|
+
const Rr = process.env.NODE_ENV === "development";
|
|
3895
|
+
function Sr(n, e, t) {
|
|
3694
3896
|
const i = this.table.dependencyRegistry.lookup(
|
|
3695
3897
|
["luxon", "DateTime"],
|
|
3696
3898
|
"DateTime"
|
|
3697
3899
|
), s = e.inputFormat || "yyyy-MM-dd HH:mm:ss", o = e.invalidPlaceholder ?? "", r = e.suffix === void 0 || e.suffix === null ? !1 : e.suffix, a = e.unit === void 0 || e.unit === null ? "days" : e.unit, l = e.humanize === void 0 || e.humanize === null ? !1 : e.humanize, h = n.getValue();
|
|
3698
3900
|
if (i == null)
|
|
3699
|
-
return
|
|
3901
|
+
return Rr && console.error(
|
|
3700
3902
|
"Format Error - 'datetimediff' formatter is dependent on luxon.js"
|
|
3701
3903
|
), o;
|
|
3702
3904
|
{
|
|
@@ -3705,20 +3907,20 @@ function vr(n, e, t) {
|
|
|
3705
3907
|
return i.isDateTime(h) ? d = h : s === "iso" ? d = i.fromISO(String(h)) : d = i.fromFormat(String(h), s), d.isValid ? l ? d.diff(c, a).toHuman() + (r ? " " + r : "") : Number.parseInt(String(d.diff(c, a)[a]), 10) + (r ? " " + r : "") : o === !0 ? h : typeof o == "function" ? o(h) : o;
|
|
3706
3908
|
}
|
|
3707
3909
|
}
|
|
3708
|
-
function
|
|
3910
|
+
function Tr(n, e, t) {
|
|
3709
3911
|
const i = n.getElement();
|
|
3710
3912
|
return i && i.classList.add("tabulator-row-handle"), "<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>";
|
|
3711
3913
|
}
|
|
3712
|
-
function
|
|
3914
|
+
function Mr(n, e, t) {
|
|
3713
3915
|
return n.getValue();
|
|
3714
3916
|
}
|
|
3715
|
-
const
|
|
3716
|
-
function
|
|
3917
|
+
const kr = E`<cx-icon></cx-icon>`;
|
|
3918
|
+
function Dr(n, e) {
|
|
3717
3919
|
const t = n.getValue(), i = e ?? {};
|
|
3718
3920
|
let s;
|
|
3719
3921
|
if (i.getIcon ? s = i.getIcon(t) : typeof i.icon == "function" ? s = i.icon(t) : i.iconMap ? s = i.iconMap[t] : i.icon ? s = i.icon : s = t ? String(t) : void 0, !s)
|
|
3720
3922
|
return;
|
|
3721
|
-
const o = k(
|
|
3923
|
+
const o = k(kr);
|
|
3722
3924
|
if (o.name = s, i.size !== void 0)
|
|
3723
3925
|
switch (typeof i.size) {
|
|
3724
3926
|
case "number":
|
|
@@ -3730,12 +3932,12 @@ function xr(n, e) {
|
|
|
3730
3932
|
}
|
|
3731
3933
|
return i.class && (o.className = i.class), i.style && Object.assign(o.style, i.style), o;
|
|
3732
3934
|
}
|
|
3733
|
-
const
|
|
3734
|
-
function
|
|
3935
|
+
const Lr = E`<div style="display: flex; align-items: center; justify-content: center;"><img style="max-width: 100%; max-height: 100%; object-fit: cover;"></div>`;
|
|
3936
|
+
function zr(n, e) {
|
|
3735
3937
|
let t = n.getValue();
|
|
3736
3938
|
if (!t)
|
|
3737
3939
|
return null;
|
|
3738
|
-
const i = k(
|
|
3940
|
+
const i = k(Lr), s = i.querySelector("img"), o = e ?? {};
|
|
3739
3941
|
switch (o.urlPrefix && (t = o.urlPrefix + n.getValue()), o.urlSuffix && (t = t + o.urlSuffix), s.setAttribute("src", String(t)), typeof o.height) {
|
|
3740
3942
|
case "number":
|
|
3741
3943
|
i.style.height = o.height + "px";
|
|
@@ -3756,8 +3958,8 @@ function Sr(n, e) {
|
|
|
3756
3958
|
n.getRow()?.normalizeHeight();
|
|
3757
3959
|
}), i;
|
|
3758
3960
|
}
|
|
3759
|
-
const
|
|
3760
|
-
function
|
|
3961
|
+
const Fr = process.env.NODE_ENV === "development";
|
|
3962
|
+
function Or(n, e, t) {
|
|
3761
3963
|
const {
|
|
3762
3964
|
indent: i = " ",
|
|
3763
3965
|
multiline: s = !0,
|
|
@@ -3770,11 +3972,11 @@ function Mr(n, e, t) {
|
|
|
3770
3972
|
try {
|
|
3771
3973
|
return JSON.stringify(r, o, i);
|
|
3772
3974
|
} catch (a) {
|
|
3773
|
-
return
|
|
3975
|
+
return Fr && console.warn("JSON Format Error - Failed to format value", a), String(r);
|
|
3774
3976
|
}
|
|
3775
3977
|
}
|
|
3776
|
-
const
|
|
3777
|
-
function
|
|
3978
|
+
const Pr = process.env.NODE_ENV === "development";
|
|
3979
|
+
function Hr(n, e, t) {
|
|
3778
3980
|
let i = n.getValue();
|
|
3779
3981
|
const s = e.urlPrefix || "";
|
|
3780
3982
|
let o = e.download, r = i;
|
|
@@ -3814,20 +4016,20 @@ function Dr(n, e, t) {
|
|
|
3814
4016
|
break;
|
|
3815
4017
|
}
|
|
3816
4018
|
const c = String(s + i), d = document.createElement("a");
|
|
3817
|
-
return d.href = c, ["http:", "https:", "mailto:", "tel:", ""].includes(d.protocol) || c.startsWith("#") ? a.setAttribute("href", c) : (
|
|
4019
|
+
return d.href = c, ["http:", "https:", "mailto:", "tel:", ""].includes(d.protocol) || c.startsWith("#") ? a.setAttribute("href", c) : (Pr && console.warn("Link formatter blocked potentially unsafe URL:", c), a.setAttribute("href", "#")), e.target && a.setAttribute("target", e.target), e.rel && a.setAttribute("rel", e.rel), e.download && (typeof o == "function" ? o = o(n) : o = o === !0 ? "" : o, a.setAttribute("download", String(o))), a.innerHTML = pt(T(r)), a;
|
|
3818
4020
|
} else
|
|
3819
4021
|
return " ";
|
|
3820
4022
|
}
|
|
3821
|
-
const
|
|
3822
|
-
function
|
|
4023
|
+
const Ar = process.env.NODE_ENV === "development";
|
|
4024
|
+
function _r(n, e, t) {
|
|
3823
4025
|
const i = n.getValue();
|
|
3824
|
-
return !e || typeof e != "object" && typeof e != "function" || e[i] === void 0 || e[i] === null ? (
|
|
4026
|
+
return !e || typeof e != "object" && typeof e != "function" || e[i] === void 0 || e[i] === null ? (Ar && console.warn("Missing display value for " + i), i) : e[i];
|
|
3825
4027
|
}
|
|
3826
|
-
function
|
|
4028
|
+
function Nr(n, e, t) {
|
|
3827
4029
|
let i = parseFloat(n.getValue()), s = "", o, r, a, l;
|
|
3828
4030
|
const h = e.decimal || ".", c = e.thousand || ",", d = e.negativeSign || "-", p = e.symbol || "", u = !!e.symbolAfter, f = typeof e.precision < "u" ? e.precision : 2;
|
|
3829
4031
|
if (isNaN(i))
|
|
3830
|
-
return pt(
|
|
4032
|
+
return pt(T(Si(n.getValue())));
|
|
3831
4033
|
i < 0 && (i = Math.abs(i), s = d), o = f !== !1 ? i.toFixed(f) : String(i), o = String(o).split("."), r = o[0];
|
|
3832
4034
|
const m = o.length > 1 ? h + o[1] : "";
|
|
3833
4035
|
if (e.thousand !== !1)
|
|
@@ -3835,15 +4037,15 @@ function Fr(n, e, t) {
|
|
|
3835
4037
|
r = r.replace(a, "$1" + c + "$2");
|
|
3836
4038
|
return l = r + m, e.negativeSign === !0 ? (l = "(" + l + ")", u ? l + p : p + l) : u ? s + l + p : s + p + l;
|
|
3837
4039
|
}
|
|
3838
|
-
const
|
|
3839
|
-
function
|
|
4040
|
+
const Vr = E`<cx-format-number></cx-format-number>`;
|
|
4041
|
+
function Ir(n, e) {
|
|
3840
4042
|
const t = n.getValue();
|
|
3841
4043
|
if (t == null || t === "")
|
|
3842
4044
|
return;
|
|
3843
4045
|
const i = Number(t);
|
|
3844
4046
|
if (Number.isNaN(i))
|
|
3845
4047
|
return;
|
|
3846
|
-
const s = e ?? {}, o = k(
|
|
4048
|
+
const s = e ?? {}, o = k(Vr);
|
|
3847
4049
|
o.value = i;
|
|
3848
4050
|
for (const r of Object.keys(s)) {
|
|
3849
4051
|
const a = s[r];
|
|
@@ -3851,15 +4053,15 @@ function Pr(n, e) {
|
|
|
3851
4053
|
}
|
|
3852
4054
|
return o;
|
|
3853
4055
|
}
|
|
3854
|
-
function
|
|
3855
|
-
let t = pt(
|
|
4056
|
+
function Br(n, e) {
|
|
4057
|
+
let t = pt(T(Si(n.getValue())));
|
|
3856
4058
|
const i = e ?? {};
|
|
3857
4059
|
i.prefix && (t = i.prefix + t), i.suffix && (t = t + i.suffix);
|
|
3858
4060
|
const s = E`<cx-line-clamp lines="1"><span style=${De(i.style ?? {})}>${t}</span></cx-line-clamp>`;
|
|
3859
4061
|
return k(s);
|
|
3860
4062
|
}
|
|
3861
|
-
function
|
|
3862
|
-
const i =
|
|
4063
|
+
function Wr(n, e = {}, t) {
|
|
4064
|
+
const i = T(n.getValue()) || 0, s = n.getElement(), o = e.max ? e.max : 100, r = e.min ? e.min : 0, a = e.legendAlign ? e.legendAlign : "center";
|
|
3863
4065
|
let l, h, c = !1, d;
|
|
3864
4066
|
l = parseFloat(String(i)) <= o ? parseFloat(String(i)) : o, l = parseFloat(String(l)) >= r ? parseFloat(String(l)) : r;
|
|
3865
4067
|
const p = o - r;
|
|
@@ -3924,11 +4126,11 @@ function Ar(n, e = {}, t) {
|
|
|
3924
4126
|
const f = document.createElement("div");
|
|
3925
4127
|
f.style.position = "relative", f.style.width = "100%", f.style.height = "100%";
|
|
3926
4128
|
let m;
|
|
3927
|
-
return c && (m = document.createElement("div"), m.style.position = "absolute", m.style.top = "0", m.style.left = "0", m.style.textAlign = a, m.style.width = "100%", m.style.color = d, m.innerHTML =
|
|
4129
|
+
return c && (m = document.createElement("div"), m.style.position = "absolute", m.style.top = "0", m.style.left = "0", m.style.textAlign = a, m.style.width = "100%", m.style.color = d, m.innerHTML = T(String(c))), t(() => {
|
|
3928
4130
|
if (!s)
|
|
3929
4131
|
return;
|
|
3930
4132
|
let y;
|
|
3931
|
-
if (n instanceof
|
|
4133
|
+
if (n instanceof ki)
|
|
3932
4134
|
y = n.getContentElement();
|
|
3933
4135
|
else {
|
|
3934
4136
|
const b = document.createElement("div");
|
|
@@ -3937,13 +4139,13 @@ function Ar(n, e = {}, t) {
|
|
|
3937
4139
|
y && (y.appendChild(f), f.appendChild(u), c && m && f.appendChild(m));
|
|
3938
4140
|
}), "";
|
|
3939
4141
|
}
|
|
3940
|
-
function
|
|
4142
|
+
function Gr(n, e = {}, t) {
|
|
3941
4143
|
const i = document.createElement("span"), s = n.getRow(), o = n.getTable();
|
|
3942
4144
|
return s.watchPosition((r) => {
|
|
3943
4145
|
e.relativeToPage && o.modules.page && (r += o.modules.page.getPageSize() * (o.modules.page.getPage() - 1)), i.innerText = String(r);
|
|
3944
4146
|
}), i;
|
|
3945
4147
|
}
|
|
3946
|
-
function
|
|
4148
|
+
function jr(n, e, t) {
|
|
3947
4149
|
let i = n.getValue();
|
|
3948
4150
|
const s = n.getElement(), o = n.getContentElement?.() ?? s, r = e && e.stars ? e.stars : 5, a = document.createElement("span"), l = document.createElementNS("http://www.w3.org/2000/svg", "svg"), h = '<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>', c = '<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>';
|
|
3949
4151
|
a.style.verticalAlign = "middle", l.setAttribute("width", "14"), l.setAttribute("height", "14"), l.setAttribute("viewBox", "0 0 512 512"), l.setAttribute("xml:space", "preserve"), l.style.padding = "0 1px";
|
|
@@ -3955,8 +4157,8 @@ function Nr(n, e, t) {
|
|
|
3955
4157
|
}
|
|
3956
4158
|
return o && (o.style.whiteSpace = "nowrap", o.style.overflow = "hidden", o.style.textOverflow = "ellipsis"), s && s.setAttribute("aria-label", String(i)), a;
|
|
3957
4159
|
}
|
|
3958
|
-
const
|
|
3959
|
-
function
|
|
4160
|
+
const $r = E`<cx-tag></cx-tag>`;
|
|
4161
|
+
function Ur(n, e) {
|
|
3960
4162
|
const t = n.getValue();
|
|
3961
4163
|
if (t == null || t === "")
|
|
3962
4164
|
return;
|
|
@@ -3965,26 +4167,26 @@ function Ir(n, e) {
|
|
|
3965
4167
|
removable: !1,
|
|
3966
4168
|
size: "medium",
|
|
3967
4169
|
variant: "neutral"
|
|
3968
|
-
}, s = k(
|
|
4170
|
+
}, s = k($r);
|
|
3969
4171
|
return Object.assign(s, i), s.textContent = e?.getTagContent?.(t) ?? e?.tagContentMap?.[t] ?? String(t), s;
|
|
3970
4172
|
}
|
|
3971
|
-
function
|
|
3972
|
-
return pt(
|
|
4173
|
+
function Kr(n) {
|
|
4174
|
+
return pt(T(Si(n.getValue())));
|
|
3973
4175
|
}
|
|
3974
|
-
function
|
|
4176
|
+
function Xr(n, e, t) {
|
|
3975
4177
|
const i = n.getValue(), s = n.getElement(), o = e.allowEmpty, r = e.allowTruthy, a = Object.prototype.hasOwnProperty.call(
|
|
3976
4178
|
e,
|
|
3977
4179
|
"trueValue"
|
|
3978
|
-
), l = (typeof e.tickElement == "string" ?
|
|
4180
|
+
), l = (typeof e.tickElement == "string" ? T(e.tickElement) : e.tickElement) ?? '<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>', h = (typeof e.crossElement == "string" ? T(e.crossElement) : e.crossElement) ?? '<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';
|
|
3979
4181
|
return a && i === e.trueValue || !a && (r && i || i === !0 || i === "true" || i === "True" || i === 1 || i === "1") ? (s && s.setAttribute("aria-checked", "true"), l || "") : o && (i === "null" || i === "" || i === null || typeof i > "u") ? (s && s.setAttribute("aria-checked", "mixed"), "") : (s && s.setAttribute("aria-checked", "false"), h || "");
|
|
3980
4182
|
}
|
|
3981
|
-
function
|
|
4183
|
+
function Jr(n) {
|
|
3982
4184
|
if (n == null || n === "")
|
|
3983
4185
|
return null;
|
|
3984
4186
|
const e = Number(n);
|
|
3985
4187
|
return Number.isFinite(e) ? e : null;
|
|
3986
4188
|
}
|
|
3987
|
-
function
|
|
4189
|
+
function qr(n, e) {
|
|
3988
4190
|
const t = e.getValue(), i = e.getRow().getData(), {
|
|
3989
4191
|
getParams: s,
|
|
3990
4192
|
paramsMap: o,
|
|
@@ -3997,17 +4199,17 @@ function jr(n, e) {
|
|
|
3997
4199
|
...c
|
|
3998
4200
|
};
|
|
3999
4201
|
}
|
|
4000
|
-
function
|
|
4202
|
+
function Yr(n) {
|
|
4001
4203
|
const e = {
|
|
4002
4204
|
...n.style ?? {}
|
|
4003
4205
|
};
|
|
4004
4206
|
return n.color && (e["--cx-format-time-color"] = n.color), n.fontSize && (e["--cx-format-time-font-size"] = n.fontSize), n.fontWeight && (e["--cx-format-time-font-weight"] = n.fontWeight), e;
|
|
4005
4207
|
}
|
|
4006
|
-
function
|
|
4007
|
-
const t =
|
|
4208
|
+
function Qr(n, e) {
|
|
4209
|
+
const t = qr(e ?? {}, n), i = Jr(n.getValue()), s = Yr(t);
|
|
4008
4210
|
return k(E`<cx-format-time .duration=${i} display-style=${re(t.displayStyle)} input-unit=${re(t.inputUnit)} locale=${re(t.locale)} placeholder=${re(t.placeholder)} units-format=${re(t.unitsFormat)} style=${De(s)}></cx-format-time>`);
|
|
4009
4211
|
}
|
|
4010
|
-
function
|
|
4212
|
+
function Zr(n, e, t) {
|
|
4011
4213
|
const i = e.size || 15, s = i + "px", o = Object.prototype.hasOwnProperty.call(
|
|
4012
4214
|
e,
|
|
4013
4215
|
"onValue"
|
|
@@ -4025,12 +4227,12 @@ function Kr(n, e, t) {
|
|
|
4025
4227
|
const c = document.createElement("div");
|
|
4026
4228
|
return c.classList.add("tabulator-toggle-switch"), c.style.height = s, c.style.width = s, c.style.borderRadius = s, h.appendChild(c), h;
|
|
4027
4229
|
}
|
|
4028
|
-
const
|
|
4029
|
-
function
|
|
4230
|
+
const en = E`<span class="tabulator-traffic-light-container"><span class="tabulator-traffic-light"></span><span class="tabulator-traffic-light-text"></span></span>`;
|
|
4231
|
+
function tn(n, e, t, i) {
|
|
4030
4232
|
const s = n.getValue();
|
|
4031
4233
|
if (s == null || s === "")
|
|
4032
4234
|
return;
|
|
4033
|
-
const o = k(
|
|
4235
|
+
const o = k(en), r = e?.getColor?.(s) ?? e?.colorMap?.[s];
|
|
4034
4236
|
if (r) {
|
|
4035
4237
|
const l = o.querySelector(
|
|
4036
4238
|
".tabulator-traffic-light"
|
|
@@ -4042,13 +4244,13 @@ function Jr(n, e, t, i) {
|
|
|
4042
4244
|
);
|
|
4043
4245
|
return a && (a.textContent = String(s)), i?.getColor ? a.style.color = i.getColor(n) : i?.colorMap ? a.style.color = i.colorMap[n.getValue()] : i?.color && (a.style.color = i.color), o;
|
|
4044
4246
|
}
|
|
4045
|
-
function
|
|
4247
|
+
function sn(n, e) {
|
|
4046
4248
|
const t = n.getValue();
|
|
4047
4249
|
if (t == null || t === "")
|
|
4048
4250
|
return;
|
|
4049
4251
|
const i = e ?? {};
|
|
4050
4252
|
let s;
|
|
4051
|
-
i.getVariant && (s = i.getVariant(t)), !s && i.variantMap && (s = i.variantMap[t]), !s && i.variant && (s = i.variant), s ??=
|
|
4253
|
+
i.getVariant && (s = i.getVariant(t)), !s && i.variantMap && (s = i.variantMap[t]), !s && i.variant && (s = i.variant), s ??= no.Body1;
|
|
4052
4254
|
const o = E`<cx-line-clamp lines="1"><cx-typography style=${De(i.style ?? {})}></cx-typography></cx-line-clamp>`, r = k(o), a = r.querySelector(
|
|
4053
4255
|
"cx-typography"
|
|
4054
4256
|
);
|
|
@@ -4056,38 +4258,38 @@ function qr(n, e) {
|
|
|
4056
4258
|
let l = String(t);
|
|
4057
4259
|
return i.prefix && (l = i.prefix + l), i.suffix && (l = l + i.suffix), a.textContent = l, r;
|
|
4058
4260
|
}
|
|
4059
|
-
const
|
|
4060
|
-
adaptable:
|
|
4061
|
-
array:
|
|
4062
|
-
buttonCross:
|
|
4063
|
-
buttonTick:
|
|
4064
|
-
color:
|
|
4065
|
-
composite:
|
|
4066
|
-
datetime:
|
|
4067
|
-
datetimediff:
|
|
4068
|
-
handle:
|
|
4069
|
-
html:
|
|
4070
|
-
icon:
|
|
4071
|
-
image:
|
|
4072
|
-
json:
|
|
4073
|
-
link:
|
|
4074
|
-
lookup:
|
|
4075
|
-
money:
|
|
4076
|
-
number:
|
|
4077
|
-
plaintext:
|
|
4078
|
-
progress:
|
|
4079
|
-
rownum:
|
|
4080
|
-
star:
|
|
4081
|
-
tag:
|
|
4082
|
-
textarea:
|
|
4083
|
-
tickCross:
|
|
4084
|
-
time:
|
|
4085
|
-
toggle:
|
|
4086
|
-
traffic:
|
|
4087
|
-
typography:
|
|
4261
|
+
const Vs = {
|
|
4262
|
+
adaptable: ur,
|
|
4263
|
+
array: pr,
|
|
4264
|
+
buttonCross: fr,
|
|
4265
|
+
buttonTick: gr,
|
|
4266
|
+
color: mr,
|
|
4267
|
+
composite: Cr,
|
|
4268
|
+
datetime: xr,
|
|
4269
|
+
datetimediff: Sr,
|
|
4270
|
+
handle: Tr,
|
|
4271
|
+
html: Mr,
|
|
4272
|
+
icon: Dr,
|
|
4273
|
+
image: zr,
|
|
4274
|
+
json: Or,
|
|
4275
|
+
link: Hr,
|
|
4276
|
+
lookup: _r,
|
|
4277
|
+
money: Nr,
|
|
4278
|
+
number: Ir,
|
|
4279
|
+
plaintext: Br,
|
|
4280
|
+
progress: Wr,
|
|
4281
|
+
rownum: Gr,
|
|
4282
|
+
star: jr,
|
|
4283
|
+
tag: Ur,
|
|
4284
|
+
textarea: Kr,
|
|
4285
|
+
tickCross: Xr,
|
|
4286
|
+
time: Qr,
|
|
4287
|
+
toggle: Zr,
|
|
4288
|
+
traffic: tn,
|
|
4289
|
+
typography: sn
|
|
4088
4290
|
};
|
|
4089
|
-
|
|
4090
|
-
const me = class me extends
|
|
4291
|
+
cr(Vs);
|
|
4292
|
+
const me = class me extends S {
|
|
4091
4293
|
constructor(e) {
|
|
4092
4294
|
super(e), this.registerColumnOption("formatter"), this.registerColumnOption("formatterParams"), this.registerColumnOption("formatterPrint"), this.registerColumnOption("formatterPrintParams"), this.registerColumnOption("formatterClipboard"), this.registerColumnOption("formatterClipboardParams"), this.registerColumnOption("formatterHtmlOutput"), this.registerColumnOption("formatterHtmlOutputParams"), this.registerColumnOption("titleFormatter"), this.registerColumnOption("titleFormatterParams"), this.registerColumnOption("textFormatParams"), this.registerColumnOption("cellClass"), this.registerColumnOption("cellStyle");
|
|
4093
4295
|
}
|
|
@@ -4189,10 +4391,10 @@ const me = class me extends T {
|
|
|
4189
4391
|
return this.formatValue(e);
|
|
4190
4392
|
}
|
|
4191
4393
|
};
|
|
4192
|
-
me.moduleName = "format", me.formatters =
|
|
4394
|
+
me.moduleName = "format", me.formatters = Vs;
|
|
4193
4395
|
let at = me;
|
|
4194
|
-
const ie = process.env.NODE_ENV === "development",
|
|
4195
|
-
class
|
|
4396
|
+
const ie = process.env.NODE_ENV === "development", on = E`<cx-option></cx-option>`, rn = E`<cx-divider></cx-divider>`;
|
|
4397
|
+
class nn {
|
|
4196
4398
|
constructor(e, t, i, s, o, r) {
|
|
4197
4399
|
this._itemsMap = /* @__PURE__ */ new Map(), this.table = e.table, this.cell = t, this.params = this._initializeParams(r), this.fetchApi = typeof globalThis.fetch == "function" ? globalThis.fetch.bind(globalThis) : void 0, this.data = [], this.displayItems = [], this.focusedItem = null, this.input = this._createSelectElement(), this.initialValue = void 0, this.initialValues = [], this.isHeaderFilter = t.row?.type === "header", this.typing = !1, this.listIteration = 0, this.lastAction = "", this.actions = {
|
|
4198
4400
|
cancel: o,
|
|
@@ -4257,7 +4459,7 @@ class Zr {
|
|
|
4257
4459
|
if (!e)
|
|
4258
4460
|
return null;
|
|
4259
4461
|
let t;
|
|
4260
|
-
return typeof e == "string" ? t =
|
|
4462
|
+
return typeof e == "string" ? t = es(e) : t = e, t && (t.slot = "prefix"), t;
|
|
4261
4463
|
}
|
|
4262
4464
|
_createSelectElement() {
|
|
4263
4465
|
const {
|
|
@@ -4353,7 +4555,7 @@ class Zr {
|
|
|
4353
4555
|
}
|
|
4354
4556
|
async _ajaxRequest(e, t) {
|
|
4355
4557
|
const { ajaxResponse: i, filterRemote: s } = this.params, o = s ? { term: t } : {};
|
|
4356
|
-
e =
|
|
4558
|
+
e = Ps(e, {}, o);
|
|
4357
4559
|
let r = [];
|
|
4358
4560
|
try {
|
|
4359
4561
|
if (!this.fetchApi)
|
|
@@ -4561,7 +4763,7 @@ class Zr {
|
|
|
4561
4763
|
}
|
|
4562
4764
|
}
|
|
4563
4765
|
_appendDivider() {
|
|
4564
|
-
const e = k(
|
|
4766
|
+
const e = k(rn);
|
|
4565
4767
|
this.input.appendChild(e);
|
|
4566
4768
|
}
|
|
4567
4769
|
_appendSectionLabel(e) {
|
|
@@ -4571,13 +4773,13 @@ class Zr {
|
|
|
4571
4773
|
_appendLeafOption(e) {
|
|
4572
4774
|
let t = e.element;
|
|
4573
4775
|
if (!t) {
|
|
4574
|
-
t = k(
|
|
4776
|
+
t = k(on), t.getTextLabel = () => e.label, t.value = this.sanitizeValue(e.value);
|
|
4575
4777
|
const i = this.formatItemLabel(e, t);
|
|
4576
|
-
i && typeof i == "object" && "nodeType" in i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML =
|
|
4778
|
+
i && typeof i == "object" && "nodeType" in i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = T(String(i || ""));
|
|
4577
4779
|
const s = this.params.fallbackOption?.prefix;
|
|
4578
4780
|
if (e.isFallbackOption && s) {
|
|
4579
|
-
const o =
|
|
4580
|
-
`<div style="display: inline-flex" slot="prefix">${
|
|
4781
|
+
const o = es(
|
|
4782
|
+
`<div style="display: inline-flex" slot="prefix">${T(s)}</div>`
|
|
4581
4783
|
);
|
|
4582
4784
|
o && t.prepend(o);
|
|
4583
4785
|
}
|
|
@@ -4707,17 +4909,17 @@ class Zr {
|
|
|
4707
4909
|
}
|
|
4708
4910
|
}
|
|
4709
4911
|
}
|
|
4710
|
-
const
|
|
4711
|
-
return new
|
|
4912
|
+
const an = function(n, e, t, i, s) {
|
|
4913
|
+
return new nn(
|
|
4712
4914
|
// eslint-disable-next-line no-invalid-this
|
|
4713
4915
|
this,
|
|
4714
|
-
n instanceof
|
|
4916
|
+
n instanceof ki ? n._getSelf() : n,
|
|
4715
4917
|
e,
|
|
4716
4918
|
t,
|
|
4717
4919
|
i,
|
|
4718
4920
|
s
|
|
4719
4921
|
).input;
|
|
4720
|
-
},
|
|
4922
|
+
}, ln = function(n, e, t, i, s) {
|
|
4721
4923
|
let o = n.getValue();
|
|
4722
4924
|
const r = s.verticalNavigation || "editor", a = document.createElement("input");
|
|
4723
4925
|
if (a.setAttribute("type", "number"), typeof s.max < "u" && a.setAttribute("max", String(s.max)), typeof s.min < "u" && a.setAttribute("min", String(s.min)), typeof s.step < "u" && a.setAttribute("step", String(s.step)), a.style.padding = "4px", a.style.width = "100%", a.style.boxSizing = "border-box", s.elementAttributes && typeof s.elementAttributes == "object")
|
|
@@ -4765,8 +4967,8 @@ const en = function(n, e, t, i, s) {
|
|
|
4765
4967
|
p.stopPropagation();
|
|
4766
4968
|
break;
|
|
4767
4969
|
}
|
|
4768
|
-
}), s.mask &&
|
|
4769
|
-
},
|
|
4970
|
+
}), s.mask && Li(a, s), a;
|
|
4971
|
+
}, hn = function(n, e, t, i, s) {
|
|
4770
4972
|
const o = n.getElement();
|
|
4771
4973
|
if (!o)
|
|
4772
4974
|
return !1;
|
|
@@ -4820,7 +5022,7 @@ const en = function(n, e, t, i, s) {
|
|
|
4820
5022
|
}), o.addEventListener("blur", () => {
|
|
4821
5023
|
i();
|
|
4822
5024
|
}), p;
|
|
4823
|
-
},
|
|
5025
|
+
}, cn = function(n, e, t, i, s) {
|
|
4824
5026
|
let o = n.getValue();
|
|
4825
5027
|
const r = document.createElement("input");
|
|
4826
5028
|
if (r.setAttribute("type", "range"), typeof s.max < "u" && r.setAttribute("max", String(s.max)), typeof s.min < "u" && r.setAttribute("min", String(s.min)), typeof s.step < "u" && r.setAttribute("step", String(s.step)), r.style.padding = "4px", r.style.width = "100%", r.style.boxSizing = "border-box", s.elementAttributes && typeof s.elementAttributes == "object")
|
|
@@ -4852,7 +5054,7 @@ const en = function(n, e, t, i, s) {
|
|
|
4852
5054
|
break;
|
|
4853
5055
|
}
|
|
4854
5056
|
}), r;
|
|
4855
|
-
},
|
|
5057
|
+
}, dn = function(n, e, t, i, s) {
|
|
4856
5058
|
const o = this, r = n.getElement();
|
|
4857
5059
|
if (!r)
|
|
4858
5060
|
return !1;
|
|
@@ -4923,7 +5125,7 @@ const en = function(n, e, t, i, s) {
|
|
|
4923
5125
|
break;
|
|
4924
5126
|
}
|
|
4925
5127
|
}), d;
|
|
4926
|
-
},
|
|
5128
|
+
}, un = function(n, e, t, i, s) {
|
|
4927
5129
|
let o = n.getValue();
|
|
4928
5130
|
const r = s.verticalNavigation || "hybrid", a = String(o ?? ""), l = document.createElement("textarea");
|
|
4929
5131
|
let h = 0;
|
|
@@ -4968,8 +5170,8 @@ const en = function(n, e, t, i, s) {
|
|
|
4968
5170
|
d.stopPropagation();
|
|
4969
5171
|
break;
|
|
4970
5172
|
}
|
|
4971
|
-
}), s.mask &&
|
|
4972
|
-
},
|
|
5173
|
+
}), s.mask && Li(l, s), l;
|
|
5174
|
+
}, pn = function(n, e, t, i, s) {
|
|
4973
5175
|
const o = n.getValue(), r = document.createElement("input"), a = s.tristate, l = typeof s.indeterminateValue > "u" ? null : s.indeterminateValue;
|
|
4974
5176
|
let h = !1;
|
|
4975
5177
|
const c = Object.keys(s).includes("trueValue"), d = Object.keys(s).includes("falseValue");
|
|
@@ -4999,7 +5201,7 @@ const en = function(n, e, t, i, s) {
|
|
|
4999
5201
|
}), r.addEventListener("keydown", (f) => {
|
|
5000
5202
|
f.keyCode === 13 && t(u(!1)), f.keyCode === 27 && i();
|
|
5001
5203
|
}), r;
|
|
5002
|
-
},
|
|
5204
|
+
}, fn = process.env.NODE_ENV === "development", gn = function(n, e, t, i, s) {
|
|
5003
5205
|
const o = s.format, r = s.verticalNavigation || "editor", a = o ? typeof window < "u" && window.DateTime || typeof globalThis < "u" && globalThis.luxon?.DateTime : null;
|
|
5004
5206
|
let l, h = n.getValue();
|
|
5005
5207
|
const c = document.createElement("input");
|
|
@@ -5014,7 +5216,7 @@ const en = function(n, e, t, i, s) {
|
|
|
5014
5216
|
} else
|
|
5015
5217
|
c.setAttribute(f, s.elementAttributes[f]);
|
|
5016
5218
|
const d = String(h ?? "");
|
|
5017
|
-
o && a && d !== "" ? (a.isDateTime?.(h) ? l = h : o === "iso" ? l = a.fromISO(d) : l = a.fromFormat(d, o), h = l.toFormat("HH:mm")) : o && !a &&
|
|
5219
|
+
o && a && d !== "" ? (a.isDateTime?.(h) ? l = h : o === "iso" ? l = a.fromISO(d) : l = a.fromFormat(d, o), h = l.toFormat("HH:mm")) : o && !a && fn && console.error(
|
|
5018
5220
|
"Editor Error - 'time' editor 'format' param is dependent on luxon.js"
|
|
5019
5221
|
);
|
|
5020
5222
|
const p = String(h ?? "");
|
|
@@ -5064,20 +5266,20 @@ const en = function(n, e, t, i, s) {
|
|
|
5064
5266
|
break;
|
|
5065
5267
|
}
|
|
5066
5268
|
}), c;
|
|
5067
|
-
},
|
|
5068
|
-
adaptable:
|
|
5069
|
-
date:
|
|
5070
|
-
datetime:
|
|
5071
|
-
input:
|
|
5072
|
-
list:
|
|
5073
|
-
number:
|
|
5074
|
-
progress:
|
|
5075
|
-
range:
|
|
5076
|
-
star:
|
|
5077
|
-
textarea:
|
|
5078
|
-
tickCross:
|
|
5079
|
-
time:
|
|
5080
|
-
}, tt = process.env.NODE_ENV === "development",
|
|
5269
|
+
}, mn = {
|
|
5270
|
+
adaptable: sr,
|
|
5271
|
+
date: rr,
|
|
5272
|
+
datetime: ar,
|
|
5273
|
+
input: lr,
|
|
5274
|
+
list: an,
|
|
5275
|
+
number: ln,
|
|
5276
|
+
progress: hn,
|
|
5277
|
+
range: cn,
|
|
5278
|
+
star: dn,
|
|
5279
|
+
textarea: un,
|
|
5280
|
+
tickCross: pn,
|
|
5281
|
+
time: gn
|
|
5282
|
+
}, tt = process.env.NODE_ENV === "development", Is = "tabulator-edit-list-trigger", bn = "tabulator-edit-list-trigger-caret", wn = E`<button aria-label="Open list editor" class=${Is} tabindex="-1" type="button"><cx-icon aria-hidden="true" class=${bn} name="arrow_drop_down"></cx-icon></button>`, Ke = class Ke extends S {
|
|
5081
5283
|
constructor(e) {
|
|
5082
5284
|
super(e), this.currentCell = !1, this.mouseClick = !1, this.recursionBlock = !1, this.invalidEdit = !1, this.editedCells = [], this.convertEmptyValues = !1, this.editors = Ke.editors, this.registerTableOption("editTriggerEvent", "focus"), this.registerTableOption("editorEmptyValue"), this.registerTableOption(
|
|
5083
5285
|
"editorEmptyValueFunc",
|
|
@@ -5334,10 +5536,10 @@ const en = function(n, e, t, i, s) {
|
|
|
5334
5536
|
if (e.column.definition.editor !== "list")
|
|
5335
5537
|
return;
|
|
5336
5538
|
const t = e.getElement(!0);
|
|
5337
|
-
if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${
|
|
5539
|
+
if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${Is}`))
|
|
5338
5540
|
return;
|
|
5339
5541
|
const i = k(
|
|
5340
|
-
|
|
5542
|
+
wn
|
|
5341
5543
|
);
|
|
5342
5544
|
i.addEventListener("mousedown", (s) => {
|
|
5343
5545
|
s.preventDefault(), s.stopPropagation();
|
|
@@ -5478,9 +5680,9 @@ const en = function(n, e, t, i, s) {
|
|
|
5478
5680
|
t > -1 && this.editedCells.splice(t, 1);
|
|
5479
5681
|
}
|
|
5480
5682
|
};
|
|
5481
|
-
Ke.moduleName = "edit", Ke.editors =
|
|
5482
|
-
let
|
|
5483
|
-
const
|
|
5683
|
+
Ke.moduleName = "edit", Ke.editors = mn;
|
|
5684
|
+
let Bt = Ke;
|
|
5685
|
+
const vn = {}, yn = {
|
|
5484
5686
|
active: function() {
|
|
5485
5687
|
return this.options.pagination ? this.rowManager?.getDisplayRows(
|
|
5486
5688
|
this.rowManager.displayRows.length - 2
|
|
@@ -5501,12 +5703,12 @@ class Et {
|
|
|
5501
5703
|
this.value = e, this.component = t, this.width = i ?? 1, this.height = s ?? 1, this.depth = o ?? 1;
|
|
5502
5704
|
}
|
|
5503
5705
|
}
|
|
5504
|
-
class
|
|
5706
|
+
class ps {
|
|
5505
5707
|
constructor(e, t, i, s) {
|
|
5506
5708
|
this.type = e, this.columns = t, this.component = i ?? !1, this.indent = s ?? 0;
|
|
5507
5709
|
}
|
|
5508
5710
|
}
|
|
5509
|
-
const
|
|
5711
|
+
const Cn = process.env.NODE_ENV === "development", be = class be extends S {
|
|
5510
5712
|
constructor(e) {
|
|
5511
5713
|
super(e), this.config = {}, this.cloneTableStyle = !0, this.colVisProp = "", this.colVisPropAttach = "", this.registerTableOption("htmlOutputConfig", !1), this.registerColumnOption("htmlOutput"), this.registerColumnOption("titleHtmlOutput");
|
|
5512
5714
|
}
|
|
@@ -5607,7 +5809,7 @@ const gn = process.env.NODE_ENV === "development", be = class be extends T {
|
|
|
5607
5809
|
);
|
|
5608
5810
|
} else
|
|
5609
5811
|
a.push(null);
|
|
5610
|
-
}), s.push(new
|
|
5812
|
+
}), s.push(new ps("header", a));
|
|
5611
5813
|
}), s;
|
|
5612
5814
|
}
|
|
5613
5815
|
bodyToExportRows(e, t = []) {
|
|
@@ -5652,7 +5854,7 @@ const gn = process.env.NODE_ENV === "development", be = class be extends T {
|
|
|
5652
5854
|
break;
|
|
5653
5855
|
}
|
|
5654
5856
|
i.push(
|
|
5655
|
-
new
|
|
5857
|
+
new ps(
|
|
5656
5858
|
r.type,
|
|
5657
5859
|
l,
|
|
5658
5860
|
r.getComponent(),
|
|
@@ -5675,7 +5877,7 @@ const gn = process.env.NODE_ENV === "development", be = class be extends T {
|
|
|
5675
5877
|
"font-weight",
|
|
5676
5878
|
"font-family",
|
|
5677
5879
|
"font-size"
|
|
5678
|
-
]), e.length > 1e3 &&
|
|
5880
|
+
]), e.length > 1e3 && Cn && console.warn(
|
|
5679
5881
|
"It may take a long time to render an HTML table with more than 1000 rows"
|
|
5680
5882
|
), e.forEach((h, c) => {
|
|
5681
5883
|
let d;
|
|
@@ -5737,7 +5939,7 @@ const gn = process.env.NODE_ENV === "development", be = class be extends T {
|
|
|
5737
5939
|
return e.columns.forEach((o) => {
|
|
5738
5940
|
if (o?.component) {
|
|
5739
5941
|
const r = document.createElement("th"), a = o.component._column.definition.cssClass ? o.component._column.definition.cssClass.split(" ") : [];
|
|
5740
|
-
r.colSpan = o.width, r.rowSpan = o.height, r.innerHTML =
|
|
5942
|
+
r.colSpan = o.width, r.rowSpan = o.height, r.innerHTML = T(String(o.value)), this.cloneTableStyle && (r.style.boxSizing = "border-box"), a.forEach((d) => {
|
|
5741
5943
|
r.classList.add(d);
|
|
5742
5944
|
});
|
|
5743
5945
|
const l = o.component.getElement();
|
|
@@ -5791,7 +5993,7 @@ const gn = process.env.NODE_ENV === "development", be = class be extends T {
|
|
|
5791
5993
|
e.component._group.getRowCount(),
|
|
5792
5994
|
e.component._group.getData(),
|
|
5793
5995
|
e.component
|
|
5794
|
-
)), o.colSpan = r.width, o.innerHTML =
|
|
5996
|
+
)), o.colSpan = r.width, o.innerHTML = T(String(r.value)), s.classList.add(
|
|
5795
5997
|
"tabulator-print-table-group",
|
|
5796
5998
|
"tabulator-group-level-" + e.indent
|
|
5797
5999
|
), r.component && r.component.isVisible() && s.classList.add("tabulator-group-visible"), this.mapElementStyles(i.firstGroup, s, [
|
|
@@ -5882,7 +6084,7 @@ const gn = process.env.NODE_ENV === "development", be = class be extends T {
|
|
|
5882
6084
|
d = "";
|
|
5883
6085
|
break;
|
|
5884
6086
|
}
|
|
5885
|
-
d instanceof Node ? a.appendChild(d) : a.innerHTML =
|
|
6087
|
+
d instanceof Node ? a.appendChild(d) : a.innerHTML = T(String(d));
|
|
5886
6088
|
const m = [
|
|
5887
6089
|
"padding-top",
|
|
5888
6090
|
"padding-left",
|
|
@@ -5962,9 +6164,9 @@ const gn = process.env.NODE_ENV === "development", be = class be extends T {
|
|
|
5962
6164
|
}
|
|
5963
6165
|
}
|
|
5964
6166
|
};
|
|
5965
|
-
be.moduleName = "export", be.columnLookups =
|
|
5966
|
-
let
|
|
5967
|
-
const
|
|
6167
|
+
be.moduleName = "export", be.columnLookups = vn, be.rowLookups = yn;
|
|
6168
|
+
let Wt = be;
|
|
6169
|
+
const fs = process.env.NODE_ENV === "development", En = {
|
|
5968
6170
|
// not equal to
|
|
5969
6171
|
"!=": function(n, e, t, i) {
|
|
5970
6172
|
return e != n;
|
|
@@ -5995,7 +6197,7 @@ const ds = process.env.NODE_ENV === "development", mn = {
|
|
|
5995
6197
|
},
|
|
5996
6198
|
// in array
|
|
5997
6199
|
in: function(n, e, t, i) {
|
|
5998
|
-
return Array.isArray(n) ? n.length ? n.includes(e) : !0 : (
|
|
6200
|
+
return Array.isArray(n) ? n.length ? n.includes(e) : !0 : (fs && console.warn("Filter Error - filter value is not an array:", n), !1);
|
|
5999
6201
|
},
|
|
6000
6202
|
// contains the keywords
|
|
6001
6203
|
keywords: function(n, e, t, i) {
|
|
@@ -6019,22 +6221,22 @@ const ds = process.env.NODE_ENV === "development", mn = {
|
|
|
6019
6221
|
try {
|
|
6020
6222
|
return typeof n == "string" ? s = new RegExp(n) : s = n, s.test(String(e));
|
|
6021
6223
|
} catch {
|
|
6022
|
-
return
|
|
6224
|
+
return fs && console.warn("Filter Error - invalid regular expression:", n), !1;
|
|
6023
6225
|
}
|
|
6024
6226
|
},
|
|
6025
6227
|
// starts with the string
|
|
6026
6228
|
starts: function(n, e, t, i) {
|
|
6027
6229
|
return n == null ? e === n : e != null ? String(e).toLowerCase().startsWith(n.toLowerCase()) : !1;
|
|
6028
6230
|
}
|
|
6029
|
-
},
|
|
6231
|
+
}, xn = /<[^>]*>/g;
|
|
6030
6232
|
function yt(n) {
|
|
6031
6233
|
return !!n && typeof n == "object" && !Array.isArray(n) && typeof n != "function";
|
|
6032
6234
|
}
|
|
6033
6235
|
function lt(n, e, t) {
|
|
6034
6236
|
e != null && (t !== void 0 && e === t || n.push(e));
|
|
6035
6237
|
}
|
|
6036
|
-
function
|
|
6037
|
-
return n == null ? "" : String(n).replace(
|
|
6238
|
+
function Rn(n) {
|
|
6239
|
+
return n == null ? "" : String(n).replace(xn, "");
|
|
6038
6240
|
}
|
|
6039
6241
|
function U(n) {
|
|
6040
6242
|
try {
|
|
@@ -6043,34 +6245,34 @@ function U(n) {
|
|
|
6043
6245
|
return;
|
|
6044
6246
|
}
|
|
6045
6247
|
}
|
|
6046
|
-
const
|
|
6047
|
-
function
|
|
6248
|
+
const Bs = Symbol("skip-composite-element");
|
|
6249
|
+
function Sn(n, e, t, i, s) {
|
|
6048
6250
|
if (typeof n?.getValue == "function")
|
|
6049
|
-
return
|
|
6251
|
+
return Bs;
|
|
6050
6252
|
if (n?.value !== void 0)
|
|
6051
6253
|
return n.value;
|
|
6052
6254
|
const o = n?.field;
|
|
6053
6255
|
return typeof o == "string" && o.length > 0 ? o === e ? t : s ? D.retrieveNestedData(s, o, i) : i[o] : t;
|
|
6054
6256
|
}
|
|
6055
|
-
function
|
|
6257
|
+
function Tn(n, e, t) {
|
|
6056
6258
|
return !!(typeof n?.shouldHide == "function" && U(() => n.shouldHide(e, t)) || n?.hideValues !== void 0 && (Array.isArray(n.hideValues) ? n.hideValues : [n.hideValues]).includes(e) || typeof n?.shouldShow == "function" && !U(
|
|
6057
6259
|
() => n.shouldShow(e, t)
|
|
6058
6260
|
) || n?.showValues !== void 0 && !(Array.isArray(n.showValues) ? n.showValues : [n.showValues]).includes(e));
|
|
6059
6261
|
}
|
|
6060
|
-
function
|
|
6262
|
+
function Mn(n, e) {
|
|
6061
6263
|
const { formatterParams: t, rawValue: i, rowData: s, separator: o, table: r } = n, a = t?.elements;
|
|
6062
6264
|
if (!Array.isArray(a))
|
|
6063
6265
|
return [];
|
|
6064
6266
|
const l = [];
|
|
6065
6267
|
for (const h of a) {
|
|
6066
|
-
const c =
|
|
6268
|
+
const c = Sn(
|
|
6067
6269
|
h,
|
|
6068
6270
|
e,
|
|
6069
6271
|
i,
|
|
6070
6272
|
s,
|
|
6071
6273
|
o
|
|
6072
6274
|
);
|
|
6073
|
-
if (c ===
|
|
6275
|
+
if (c === Bs)
|
|
6074
6276
|
continue;
|
|
6075
6277
|
let d = c;
|
|
6076
6278
|
const p = h?.valueMap;
|
|
@@ -6078,8 +6280,8 @@ function Cn(n, e) {
|
|
|
6078
6280
|
const u = p[String(c)];
|
|
6079
6281
|
u !== void 0 && (d = u);
|
|
6080
6282
|
}
|
|
6081
|
-
if (!
|
|
6082
|
-
const u =
|
|
6283
|
+
if (!Tn(h, d, s) && (d !== c && lt(l, d, c), h?.formatter !== void 0)) {
|
|
6284
|
+
const u = zi({
|
|
6083
6285
|
columnField: e,
|
|
6084
6286
|
formatter: h.formatter,
|
|
6085
6287
|
formatterParams: h.formatterParams,
|
|
@@ -6094,14 +6296,14 @@ function Cn(n, e) {
|
|
|
6094
6296
|
}
|
|
6095
6297
|
return l;
|
|
6096
6298
|
}
|
|
6097
|
-
function
|
|
6299
|
+
function kn(n) {
|
|
6098
6300
|
const { formatterParams: e, rawValue: t } = n;
|
|
6099
6301
|
if (!yt(e))
|
|
6100
6302
|
return [];
|
|
6101
6303
|
const i = e[String(t)];
|
|
6102
6304
|
return i == null || i === t ? [] : [i];
|
|
6103
6305
|
}
|
|
6104
|
-
function
|
|
6306
|
+
function Dn(n) {
|
|
6105
6307
|
const { formatterParams: e, rawValue: t, separator: i, table: s } = n;
|
|
6106
6308
|
if (!Array.isArray(t))
|
|
6107
6309
|
return [];
|
|
@@ -6118,7 +6320,7 @@ function xn(n) {
|
|
|
6118
6320
|
}
|
|
6119
6321
|
return [a.join(o)];
|
|
6120
6322
|
}
|
|
6121
|
-
function
|
|
6323
|
+
function Ln(n) {
|
|
6122
6324
|
const { formatterParams: e, rawValue: t } = n;
|
|
6123
6325
|
if (t == null || t === "")
|
|
6124
6326
|
return [];
|
|
@@ -6135,7 +6337,7 @@ function Rn(n) {
|
|
|
6135
6337
|
}
|
|
6136
6338
|
return i;
|
|
6137
6339
|
}
|
|
6138
|
-
function
|
|
6340
|
+
function zn(n) {
|
|
6139
6341
|
const { formatterParams: e, rawValue: t, rowData: i, separator: s, table: o } = n;
|
|
6140
6342
|
if (!e)
|
|
6141
6343
|
return [];
|
|
@@ -6146,7 +6348,7 @@ function Sn(n) {
|
|
|
6146
6348
|
}
|
|
6147
6349
|
return typeof e.label == "string" && (r = e.label, a = !0), a ? r != null && r !== t ? [r] : [] : [];
|
|
6148
6350
|
}
|
|
6149
|
-
function
|
|
6351
|
+
function Fn(n) {
|
|
6150
6352
|
const { formatterParams: e, rawValue: t } = n, i = e ?? {}, s = parseFloat(String(t));
|
|
6151
6353
|
if (Number.isNaN(s))
|
|
6152
6354
|
return [];
|
|
@@ -6165,7 +6367,7 @@ function Tn(n) {
|
|
|
6165
6367
|
return i.negativeSign === !0 ? (b = "(" + b + ")", [h ? b + l : l + b]) : [h ? p + b + l : p + l + b];
|
|
6166
6368
|
}
|
|
6167
6369
|
const xt = /* @__PURE__ */ new WeakMap();
|
|
6168
|
-
function
|
|
6370
|
+
function gs(n) {
|
|
6169
6371
|
const e = {
|
|
6170
6372
|
style: n.type ?? "decimal",
|
|
6171
6373
|
useGrouping: !n.noGrouping
|
|
@@ -6182,90 +6384,90 @@ function us(n) {
|
|
|
6182
6384
|
n[i] !== void 0 && (e[i] = n[i]);
|
|
6183
6385
|
return e.style === "currency" && e.currency === void 0 && (e.currency = "USD"), e;
|
|
6184
6386
|
}
|
|
6185
|
-
function
|
|
6387
|
+
function On(n) {
|
|
6186
6388
|
if (!n || typeof n != "object")
|
|
6187
|
-
return U(() => new Intl.NumberFormat(void 0,
|
|
6389
|
+
return U(() => new Intl.NumberFormat(void 0, gs({}))) ?? null;
|
|
6188
6390
|
if (xt.has(n))
|
|
6189
6391
|
return xt.get(n) ?? null;
|
|
6190
|
-
const e = U(() => new Intl.NumberFormat(void 0,
|
|
6392
|
+
const e = U(() => new Intl.NumberFormat(void 0, gs(n))) ?? null;
|
|
6191
6393
|
return xt.set(n, e), e;
|
|
6192
6394
|
}
|
|
6193
|
-
function
|
|
6395
|
+
function Pn(n) {
|
|
6194
6396
|
const { formatterParams: e, rawValue: t } = n;
|
|
6195
6397
|
if (t == null || t === "")
|
|
6196
6398
|
return [];
|
|
6197
6399
|
const i = Number(t);
|
|
6198
6400
|
if (Number.isNaN(i))
|
|
6199
6401
|
return [];
|
|
6200
|
-
const s =
|
|
6402
|
+
const s = On(e);
|
|
6201
6403
|
if (!s)
|
|
6202
6404
|
return [];
|
|
6203
6405
|
const o = U(() => s.format(i));
|
|
6204
6406
|
return o ? [o] : [];
|
|
6205
6407
|
}
|
|
6206
|
-
function
|
|
6408
|
+
function Ws(n) {
|
|
6207
6409
|
return n?.dependencyRegistry?.lookup?.(
|
|
6208
6410
|
["luxon", "DateTime"],
|
|
6209
6411
|
"DateTime"
|
|
6210
6412
|
);
|
|
6211
6413
|
}
|
|
6212
|
-
function
|
|
6414
|
+
function Gs(n, e, t) {
|
|
6213
6415
|
return n.isDateTime(e) ? e : t === "iso" ? n.fromISO(String(e)) : n.fromFormat(String(e), t);
|
|
6214
6416
|
}
|
|
6215
6417
|
function nt(n, e) {
|
|
6216
6418
|
return typeof n == "string" && n.length > 0 && n !== e ? [n] : [];
|
|
6217
6419
|
}
|
|
6218
|
-
function
|
|
6219
|
-
const { formatterParams: e, rawValue: t, table: i } = n, s =
|
|
6420
|
+
function Hn(n) {
|
|
6421
|
+
const { formatterParams: e, rawValue: t, table: i } = n, s = Ws(i), o = e ?? {}, r = o.invalidPlaceholder ?? "";
|
|
6220
6422
|
if (!s)
|
|
6221
6423
|
return [];
|
|
6222
|
-
const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.outputFormat ?? "dd/MM/yyyy HH:mm:ss", h = U(() =>
|
|
6424
|
+
const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.outputFormat ?? "dd/MM/yyyy HH:mm:ss", h = U(() => Gs(s, t, a));
|
|
6223
6425
|
if (!h?.isValid)
|
|
6224
6426
|
return nt(r, t);
|
|
6225
6427
|
const c = o.timezone ? U(() => h.setZone(o.timezone)) ?? h : h, d = U(() => c.toFormat(l));
|
|
6226
6428
|
return d ? [d] : [];
|
|
6227
6429
|
}
|
|
6228
|
-
function
|
|
6229
|
-
const { formatterParams: e, rawValue: t, table: i } = n, s =
|
|
6430
|
+
function An(n) {
|
|
6431
|
+
const { formatterParams: e, rawValue: t, table: i } = n, s = Ws(i), o = e ?? {}, r = o.invalidPlaceholder ?? "";
|
|
6230
6432
|
if (!s)
|
|
6231
6433
|
return nt(r, t);
|
|
6232
6434
|
const a = o.inputFormat ?? "yyyy-MM-dd HH:mm:ss", l = o.suffix === void 0 || o.suffix === null ? !1 : o.suffix, h = o.unit === void 0 || o.unit === null ? "days" : o.unit, c = o.humanize === void 0 || o.humanize === null ? !1 : o.humanize, d = o.date === void 0 || o.date === null ? U(() => s.now()) : o.date;
|
|
6233
6435
|
if (!d)
|
|
6234
6436
|
return nt(r, t);
|
|
6235
|
-
const p = U(() =>
|
|
6437
|
+
const p = U(() => Gs(s, t, a));
|
|
6236
6438
|
if (!p?.isValid)
|
|
6237
6439
|
return nt(r, t);
|
|
6238
6440
|
const u = U(() => c ? p.diff(d, h).toHuman() + (l ? " " + l : "") : Number.parseInt(String(p.diff(d, h)[h]), 10) + (l ? " " + l : ""));
|
|
6239
6441
|
return u != null ? [u] : [];
|
|
6240
6442
|
}
|
|
6241
|
-
function
|
|
6443
|
+
function _n(n, e) {
|
|
6242
6444
|
if (n == null)
|
|
6243
6445
|
return;
|
|
6244
6446
|
let t = String(n);
|
|
6245
6447
|
const i = e?.prefix, s = e?.suffix;
|
|
6246
6448
|
return typeof i == "string" && i.length > 0 && (t = i + t), typeof s == "string" && s.length > 0 && (t = t + s), t;
|
|
6247
6449
|
}
|
|
6248
|
-
function
|
|
6249
|
-
const { formatterParams: e, rawValue: t } = n, i =
|
|
6450
|
+
function js(n) {
|
|
6451
|
+
const { formatterParams: e, rawValue: t } = n, i = _n(t, e);
|
|
6250
6452
|
return i === void 0 || i === String(t) ? [] : [i];
|
|
6251
6453
|
}
|
|
6252
|
-
function
|
|
6253
|
-
return
|
|
6454
|
+
function Nn(n) {
|
|
6455
|
+
return js(n);
|
|
6254
6456
|
}
|
|
6255
|
-
function
|
|
6457
|
+
function $s(n) {
|
|
6256
6458
|
if (typeof n.rawValue != "string" || !n.rawValue.includes("<"))
|
|
6257
6459
|
return [];
|
|
6258
|
-
const e =
|
|
6460
|
+
const e = Rn(n.rawValue);
|
|
6259
6461
|
return !e || e === n.rawValue ? [] : [e];
|
|
6260
6462
|
}
|
|
6261
|
-
function
|
|
6262
|
-
return
|
|
6463
|
+
function Vn(n) {
|
|
6464
|
+
return $s(n);
|
|
6263
6465
|
}
|
|
6264
|
-
function
|
|
6466
|
+
function In(n) {
|
|
6265
6467
|
const { formatterParams: e, rawValue: t } = n, i = e ?? {}, s = i.indent ?? " ", o = i.replacer ?? null, r = U(() => JSON.stringify(t, o, s));
|
|
6266
6468
|
return r === void 0 || r === t ? [] : [r];
|
|
6267
6469
|
}
|
|
6268
|
-
function
|
|
6470
|
+
function Bn(n, e) {
|
|
6269
6471
|
const { formatterParams: t, rawValue: i, rowData: s, separator: o, table: r } = n, a = t ?? {};
|
|
6270
6472
|
let l;
|
|
6271
6473
|
if (typeof a.formatterLookup == "function") {
|
|
@@ -6292,7 +6494,7 @@ function Hn(n, e) {
|
|
|
6292
6494
|
return a.paramsLookup && (typeof a.paramsLookup == "function" ? h = U(() => a.paramsLookup(l, {
|
|
6293
6495
|
getData: () => s,
|
|
6294
6496
|
getValue: () => i
|
|
6295
|
-
})) : yt(a.paramsLookup) && (h = a.paramsLookup[l])),
|
|
6497
|
+
})) : yt(a.paramsLookup) && (h = a.paramsLookup[l])), zi({
|
|
6296
6498
|
columnField: e,
|
|
6297
6499
|
formatter: l,
|
|
6298
6500
|
formatterParams: h,
|
|
@@ -6302,22 +6504,22 @@ function Hn(n, e) {
|
|
|
6302
6504
|
table: r
|
|
6303
6505
|
});
|
|
6304
6506
|
}
|
|
6305
|
-
const
|
|
6306
|
-
array:
|
|
6307
|
-
datetime:
|
|
6308
|
-
datetimediff:
|
|
6309
|
-
html:
|
|
6310
|
-
json:
|
|
6311
|
-
link:
|
|
6312
|
-
lookup:
|
|
6313
|
-
money:
|
|
6314
|
-
number:
|
|
6315
|
-
plaintext:
|
|
6316
|
-
tag:
|
|
6317
|
-
textarea:
|
|
6318
|
-
typography:
|
|
6507
|
+
const Wn = {
|
|
6508
|
+
array: Dn,
|
|
6509
|
+
datetime: Hn,
|
|
6510
|
+
datetimediff: An,
|
|
6511
|
+
html: $s,
|
|
6512
|
+
json: In,
|
|
6513
|
+
link: zn,
|
|
6514
|
+
lookup: kn,
|
|
6515
|
+
money: Fn,
|
|
6516
|
+
number: Pn,
|
|
6517
|
+
plaintext: js,
|
|
6518
|
+
tag: Ln,
|
|
6519
|
+
textarea: Vn,
|
|
6520
|
+
typography: Nn
|
|
6319
6521
|
};
|
|
6320
|
-
function
|
|
6522
|
+
function zi(n) {
|
|
6321
6523
|
const e = n.formatter;
|
|
6322
6524
|
if (typeof e != "string")
|
|
6323
6525
|
return [];
|
|
@@ -6329,20 +6531,20 @@ function Li(n) {
|
|
|
6329
6531
|
table: n.table
|
|
6330
6532
|
};
|
|
6331
6533
|
if (e === "composite")
|
|
6332
|
-
return
|
|
6534
|
+
return Mn(t, n.columnField);
|
|
6333
6535
|
if (e === "adaptable")
|
|
6334
|
-
return
|
|
6335
|
-
const i =
|
|
6536
|
+
return Bn(t, n.columnField);
|
|
6537
|
+
const i = Wn[e];
|
|
6336
6538
|
return i ? i(t) : [];
|
|
6337
6539
|
}
|
|
6338
|
-
function
|
|
6540
|
+
function Gn(n, e, t, i, s) {
|
|
6339
6541
|
let o;
|
|
6340
6542
|
s?.has(e) ? o = s.get(e) : (o = n?.columnManager?.getColumnByField?.(e) ?? null, s?.set(e, o ?? null));
|
|
6341
6543
|
const r = o?.definition;
|
|
6342
6544
|
if (!r)
|
|
6343
6545
|
return [];
|
|
6344
6546
|
const a = n?.options?.nestedFieldSeparator, l = typeof a == "string" ? a : void 0;
|
|
6345
|
-
return
|
|
6547
|
+
return zi({
|
|
6346
6548
|
columnField: e,
|
|
6347
6549
|
formatter: r.formatter,
|
|
6348
6550
|
formatterParams: r.formatterParams,
|
|
@@ -6352,7 +6554,7 @@ function _n(n, e, t, i, s) {
|
|
|
6352
6554
|
table: n
|
|
6353
6555
|
});
|
|
6354
6556
|
}
|
|
6355
|
-
const K = process.env.NODE_ENV === "development", se = class se extends
|
|
6557
|
+
const K = process.env.NODE_ENV === "development", se = class se extends S {
|
|
6356
6558
|
constructor(e) {
|
|
6357
6559
|
super(e), this.filterList = [], this.headerFilters = {}, this.headerFilterColumns = [], this.prevHeaderFilterChangeCheck = "", this.prevHeaderFilterChangeCheck = "{}", this.changed = !1, this.tableInitialized = !1, this.registerTableOption("filterMode", "local"), this.registerTableOption("initialFilter", !1), this.registerTableOption("initialHeaderFilter", !1), this.registerTableOption("headerFilterLiveFilterDelay", 300), this.registerTableOption("placeholderHeaderFilter", !1), this.registerColumnOption("headerFilter"), this.registerColumnOption("headerFilterPlaceholder"), this.registerColumnOption("headerFilterParams"), this.registerColumnOption("headerFilterEmptyCheck"), this.registerColumnOption("headerFilterFunc"), this.registerColumnOption("headerFilterFuncParams"), this.registerColumnOption("headerFilterLiveFilter"), this.registerTableFunction("searchRows", this.searchRows.bind(this)), this.registerTableFunction("searchData", this.searchData.bind(this)), this.registerTableFunction("setFilter", this.userSetFilter.bind(this)), this.registerTableFunction("createFilterFieldFunction", this.createFilterFieldFunction.bind(this)), this.registerTableFunction(
|
|
6358
6560
|
"refreshFilter",
|
|
@@ -6775,7 +6977,7 @@ const K = process.env.NODE_ENV === "development", se = class se extends T {
|
|
|
6775
6977
|
}
|
|
6776
6978
|
if (h(l.value, f, a, c))
|
|
6777
6979
|
return !0;
|
|
6778
|
-
const m =
|
|
6980
|
+
const m = Gn(
|
|
6779
6981
|
t,
|
|
6780
6982
|
u,
|
|
6781
6983
|
f,
|
|
@@ -6981,9 +7183,9 @@ const K = process.env.NODE_ENV === "development", se = class se extends T {
|
|
|
6981
7183
|
}) : i = e.func(t), i;
|
|
6982
7184
|
}
|
|
6983
7185
|
};
|
|
6984
|
-
se.moduleName = "filter", se.filters =
|
|
6985
|
-
let
|
|
6986
|
-
const
|
|
7186
|
+
se.moduleName = "filter", se.filters = En;
|
|
7187
|
+
let Gt = se;
|
|
7188
|
+
const jn = process.env.NODE_ENV === "development", Ai = class Ai extends S {
|
|
6987
7189
|
constructor(e) {
|
|
6988
7190
|
super(e), this.leftColumns = [], this.rightColumns = [], this.initializationMode = "left", this.active = !1, this.blocked = !0, this.registerColumnOption("frozen");
|
|
6989
7191
|
}
|
|
@@ -7014,7 +7216,7 @@ const Nn = process.env.NODE_ENV === "development", Pi = class Pi extends T {
|
|
|
7014
7216
|
e.isGroup || (this.frozenCheck(e) ? (t.position = this.initializationMode, this.initializationMode === "left" ? this.leftColumns.push(e) : this.rightColumns.unshift(e), this.active = !0, e.modules.frozen = t) : this.initializationMode = "right");
|
|
7015
7217
|
}
|
|
7016
7218
|
frozenCheck(e) {
|
|
7017
|
-
return e.parent instanceof q && e.parent.isGroup && e.definition.frozen &&
|
|
7219
|
+
return e.parent instanceof q && e.parent.isGroup && e.definition.frozen && jn && console.warn(
|
|
7018
7220
|
"Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"
|
|
7019
7221
|
), e.parent instanceof q && e.parent.isGroup ? this.frozenCheck(e.parent) : !!e.definition.frozen;
|
|
7020
7222
|
}
|
|
@@ -7107,9 +7309,9 @@ const Nn = process.env.NODE_ENV === "development", Pi = class Pi extends T {
|
|
|
7107
7309
|
return i;
|
|
7108
7310
|
}
|
|
7109
7311
|
};
|
|
7110
|
-
|
|
7111
|
-
let
|
|
7112
|
-
const
|
|
7312
|
+
Ai.moduleName = "frozenColumns";
|
|
7313
|
+
let jt = Ai;
|
|
7314
|
+
const ms = process.env.NODE_ENV === "development", _i = class _i extends S {
|
|
7113
7315
|
constructor(e) {
|
|
7114
7316
|
super(e), this.topElement = document.createElement("div"), this.rows = [], this.registerComponentFunction("row", "freeze", this.freezeRow.bind(this)), this.registerComponentFunction(
|
|
7115
7317
|
"row",
|
|
@@ -7174,11 +7376,11 @@ const ps = process.env.NODE_ENV === "development", Hi = class Hi extends T {
|
|
|
7174
7376
|
}
|
|
7175
7377
|
freezeRow(e) {
|
|
7176
7378
|
const t = e._getSelf ? e._getSelf() : e._row;
|
|
7177
|
-
t && (t.modules.frozen ?
|
|
7379
|
+
t && (t.modules.frozen ? ms && console.warn("Freeze Error - Row is already frozen") : (t.modules.frozen = !0, this.topElement.appendChild(t.getElement()), t.initialize(), t.normalizeHeight(), this.rows.push(t), this.refreshData(!1, "display"), this.table.rowManager?.adjustTableSize(), this.styleRows()));
|
|
7178
7380
|
}
|
|
7179
7381
|
unfreezeRow(e) {
|
|
7180
7382
|
const t = e._getSelf ? e._getSelf() : e._row;
|
|
7181
|
-
t && (t.modules.frozen ? (t.modules.frozen = !1, this.detachRow(t), this.table.rowManager?.adjustTableSize(), this.refreshData(!1, "display"), this.rows.length && this.styleRows()) :
|
|
7383
|
+
t && (t.modules.frozen ? (t.modules.frozen = !1, this.detachRow(t), this.table.rowManager?.adjustTableSize(), this.refreshData(!1, "display"), this.rows.length && this.styleRows()) : ms && console.warn("Freeze Error - Row is already unfrozen"));
|
|
7182
7384
|
}
|
|
7183
7385
|
detachRow(e) {
|
|
7184
7386
|
const t = this.rows.indexOf(e);
|
|
@@ -7194,11 +7396,11 @@ const ps = process.env.NODE_ENV === "development", Hi = class Hi extends T {
|
|
|
7194
7396
|
});
|
|
7195
7397
|
}
|
|
7196
7398
|
};
|
|
7197
|
-
|
|
7198
|
-
let
|
|
7199
|
-
const
|
|
7399
|
+
_i.moduleName = "frozenRows";
|
|
7400
|
+
let $t = _i;
|
|
7401
|
+
const $n = process.env.NODE_ENV === "development", Un = E`<cx-icon-button class="tabulator-group-toggle" name="keyboard_arrow_down"></cx-icon-button>`, Kn = E`<div class="tabulator-group-level-indent"></div>`, Xn = E`<cx-button size="small"><cx-icon slot="prefix" name="add" variant="outlined"></cx-icon>
|
|
7200
7402
|
Load More
|
|
7201
|
-
</cx-button>`,
|
|
7403
|
+
</cx-button>`, Jn = E`<div class="tabulator-data-tree-loading">Loading...</div>`;
|
|
7202
7404
|
class Oe {
|
|
7203
7405
|
constructor(e, t, i, s, o, r, a) {
|
|
7204
7406
|
this._loadMoreRow = !1, this._loadMoreStateKey = "", this.groupManager = e, this.parent = t, this.key = s, this.level = i, this.field = o, this.hasSubGroups = e.groupIDLookups !== !1 && i < e.groupIDLookups.length - 1, this.addRow = this.hasSubGroups ? this._addRowToGroup : this._addRow, this.type = "group", this.old = a, this.rows = [], this.groups = {}, this.groupList = [], this.generator = r, this.element = !1, this.elementContents = !1, this.height = 0, this.outerHeight = 0, this.initialized = !1, this.heightInitialized = !1, this.calcs = {}, this.modules = {}, this.arrowElement = !1, this.visible = a ? a.visible : e.startOpen[i] === void 0 || e.startOpen[i] === null ? e.startOpen[0] : e.startOpen[i], this.component = null, this.createElements(), this.addBindings(), this.createValueGroups();
|
|
@@ -7217,7 +7419,7 @@ class Oe {
|
|
|
7217
7419
|
this.element = document.createElement("div"), this.element.classList.add("tabulator-row"), this.element.classList.add("tabulator-group"), this.element.classList.add("tabulator-group-level-" + this.level), this.element.setAttribute(
|
|
7218
7420
|
"role",
|
|
7219
7421
|
this.groupManager.table.options.rowGroupRole ?? "rowgroup"
|
|
7220
|
-
), this.arrowElement = k(
|
|
7422
|
+
), this.arrowElement = k(Un), this.groupManager.table.options.movableRows !== !1 && this.groupManager.table.modExists("moveRow") && this.groupManager.table.modules.moveRow.initializeGroupHeader(
|
|
7221
7423
|
this
|
|
7222
7424
|
);
|
|
7223
7425
|
}
|
|
@@ -7281,7 +7483,7 @@ class Oe {
|
|
|
7281
7483
|
let s = i.querySelector(
|
|
7282
7484
|
".tabulator-group-level-indent"
|
|
7283
7485
|
);
|
|
7284
|
-
s || (s = k(
|
|
7486
|
+
s || (s = k(Kn), i.insertBefore(s, i.firstChild)), s.style.marginLeft = `${(this.level + 1) * (this.groupManager.table.options.groupIndent ?? 36)}px`, s.dataset.groupLevel = this.level.toString();
|
|
7285
7487
|
}
|
|
7286
7488
|
}
|
|
7287
7489
|
insertRow(e, t, i) {
|
|
@@ -7302,7 +7504,7 @@ class Oe {
|
|
|
7302
7504
|
}
|
|
7303
7505
|
// update row data to match grouping constraints
|
|
7304
7506
|
conformRowData(e) {
|
|
7305
|
-
return this.field ? e[this.field] = this.key :
|
|
7507
|
+
return this.field ? e[this.field] = this.key : $n && console.warn(
|
|
7306
7508
|
"Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"
|
|
7307
7509
|
), this.parent && (e = this.parent.conformRowData(e)), e;
|
|
7308
7510
|
}
|
|
@@ -7318,16 +7520,16 @@ class Oe {
|
|
|
7318
7520
|
this.groups[t] && (delete this.groups[t], i = this.groupList.indexOf(e), i > -1 && this.groupList.splice(i, 1), this.groupList.length || (this.parent ? this.parent.removeGroup(this) : this.groupManager.removeGroup(this)));
|
|
7319
7521
|
}
|
|
7320
7522
|
getPathKey() {
|
|
7321
|
-
return
|
|
7523
|
+
return Hs(Mi(this));
|
|
7322
7524
|
}
|
|
7323
7525
|
getLoadMoreState() {
|
|
7324
|
-
return
|
|
7526
|
+
return To(
|
|
7325
7527
|
this.groupManager.table.options.groupLoadMoreMeta,
|
|
7326
7528
|
this.getPathKey()
|
|
7327
7529
|
);
|
|
7328
7530
|
}
|
|
7329
7531
|
getGroupLoadMoreEventPayload() {
|
|
7330
|
-
return
|
|
7532
|
+
return Mo(this);
|
|
7331
7533
|
}
|
|
7332
7534
|
generateLoadMoreRow() {
|
|
7333
7535
|
const e = this.getLoadMoreState(), t = `hasMore:${!!e?.hasMore}|loading:${!!e?.loading}`;
|
|
@@ -7337,15 +7539,15 @@ class Oe {
|
|
|
7337
7539
|
const i = this.groupManager.table.rowManager;
|
|
7338
7540
|
if (!e?.hasMore || !i)
|
|
7339
7541
|
return this._loadMoreRow = !1, !1;
|
|
7340
|
-
const s = new
|
|
7542
|
+
const s = new Nt(
|
|
7341
7543
|
{ id: `group-load-more:${this.getPathKey()}` },
|
|
7342
7544
|
i
|
|
7343
|
-
), o = (this.level + 1) * (this.groupManager.table.options.groupIndent ??
|
|
7545
|
+
), o = (this.level + 1) * (this.groupManager.table.options.groupIndent ?? Fs);
|
|
7344
7546
|
if (s.create(), e.loading) {
|
|
7345
|
-
const l = k(
|
|
7547
|
+
const l = k(Jn);
|
|
7346
7548
|
return s.element.appendChild(l), this.applyGroupIndent(l, o), this._loadMoreRow = s, s;
|
|
7347
7549
|
}
|
|
7348
|
-
const r = k(
|
|
7550
|
+
const r = k(Xn), a = this.getGroupLoadMoreEventPayload();
|
|
7349
7551
|
return s.element.appendChild(r), this.applyGroupIndent(r, o), r.addEventListener("click", (l) => {
|
|
7350
7552
|
l.preventDefault(), l.stopPropagation(), l.stopImmediatePropagation(), this.groupManager.table.externalEvents?.dispatch("groupLoadMore", a);
|
|
7351
7553
|
}), this._loadMoreRow = s, s;
|
|
@@ -7503,7 +7705,7 @@ class Oe {
|
|
|
7503
7705
|
), this.element) {
|
|
7504
7706
|
for (; this.element.firstChild; )
|
|
7505
7707
|
this.element.removeChild(this.element.firstChild);
|
|
7506
|
-
typeof this.elementContents == "string" ? this.element.innerHTML =
|
|
7708
|
+
typeof this.elementContents == "string" ? this.element.innerHTML = T(this.elementContents) : this.element.appendChild(this.elementContents), this.arrowElement && this.element.insertBefore(this.arrowElement, this.element.firstChild);
|
|
7507
7709
|
}
|
|
7508
7710
|
}
|
|
7509
7711
|
getPath(e = []) {
|
|
@@ -7564,10 +7766,10 @@ class Oe {
|
|
|
7564
7766
|
}
|
|
7565
7767
|
// ////////////// Object Generation /////////////////
|
|
7566
7768
|
getComponent() {
|
|
7567
|
-
return this.component ??= new
|
|
7769
|
+
return this.component ??= new As(this), this.component;
|
|
7568
7770
|
}
|
|
7569
7771
|
}
|
|
7570
|
-
const Rt = process.env.NODE_ENV === "development",
|
|
7772
|
+
const Rt = process.env.NODE_ENV === "development", Ni = class Ni extends S {
|
|
7571
7773
|
constructor(e) {
|
|
7572
7774
|
super(e), this.groupIDLookups = !1, this.startOpen = [
|
|
7573
7775
|
function() {
|
|
@@ -7577,7 +7779,7 @@ const Rt = process.env.NODE_ENV === "development", Ai = class Ai extends T {
|
|
|
7577
7779
|
function() {
|
|
7578
7780
|
return "";
|
|
7579
7781
|
}
|
|
7580
|
-
], this.groupList = [], this.allowedValues = !1, this.groups = {}, this.displayHandler = this.getRows.bind(this), this.blockRedraw = !1, this.initialized = !1, this.registerTableOption("groupBy", !1), this.registerTableOption("groupStartOpen", !0), this.registerTableOption("groupValues", !1), this.registerTableOption("groupUpdateOnCellEdit", !1), this.registerTableOption("groupHeader", !1), this.registerTableOption("groupHeaderPrint", null), this.registerTableOption("groupHeaderClipboard", null), this.registerTableOption("groupHeaderHtmlOutput", null), this.registerTableOption("groupHeaderDownload", null), this.registerTableOption("groupToggleElement", "arrow"), this.registerTableOption("groupClosedShowCalcs", !1), this.registerTableOption("groupHeaderCount", !1), this.registerTableOption("groupIndent",
|
|
7782
|
+
], this.groupList = [], this.allowedValues = !1, this.groups = {}, this.displayHandler = this.getRows.bind(this), this.blockRedraw = !1, this.initialized = !1, this.registerTableOption("groupBy", !1), this.registerTableOption("groupStartOpen", !0), this.registerTableOption("groupValues", !1), this.registerTableOption("groupUpdateOnCellEdit", !1), this.registerTableOption("groupHeader", !1), this.registerTableOption("groupHeaderPrint", null), this.registerTableOption("groupHeaderClipboard", null), this.registerTableOption("groupHeaderHtmlOutput", null), this.registerTableOption("groupHeaderDownload", null), this.registerTableOption("groupToggleElement", "arrow"), this.registerTableOption("groupClosedShowCalcs", !1), this.registerTableOption("groupHeaderCount", !1), this.registerTableOption("groupIndent", Fs), this.registerTableOption("groupLoadMoreMeta", {}), this.registerTableFunction("setGroupBy", this.setGroupBy.bind(this)), this.registerTableFunction(
|
|
7581
7783
|
"setGroupValues",
|
|
7582
7784
|
this.setGroupValues.bind(this)
|
|
7583
7785
|
), this.registerTableFunction(
|
|
@@ -7635,9 +7837,9 @@ const Rt = process.env.NODE_ENV === "development", Ai = class Ai extends T {
|
|
|
7635
7837
|
], this.langBind("groups|item", (s, o) => {
|
|
7636
7838
|
this.headerGenerator[0] = (r, a, l) => {
|
|
7637
7839
|
const h = r ?? "";
|
|
7638
|
-
return this.table.options.groupHeaderCount ?
|
|
7840
|
+
return this.table.options.groupHeaderCount ? T(
|
|
7639
7841
|
h + "<span>(" + a + " " + (a === 1 ? s : o.groups.items) + ")</span>"
|
|
7640
|
-
) :
|
|
7842
|
+
) : T(h);
|
|
7641
7843
|
};
|
|
7642
7844
|
}), this.groupIDLookups = [], e ? this.table.modExists("columnCalcs") && this.table.options.columnCalcs !== "table" && this.table.options.columnCalcs !== "both" && this.table.modules.columnCalcs.removeCalcs() : this.table.modExists("columnCalcs") && this.table.options.columnCalcs !== "group" && (this.table.columnManager?.getRealColumns() || []).forEach((o) => {
|
|
7643
7845
|
o.definition.topCalc && this.table.modules.columnCalcs.initializeTopRow(), o.definition.bottomCalc && this.table.modules.columnCalcs.initializeBottomRow();
|
|
@@ -7935,9 +8137,9 @@ const Rt = process.env.NODE_ENV === "development", Ai = class Ai extends T {
|
|
|
7935
8137
|
}), e && (t ? e.style.minWidth = (this.table.columnManager?.getWidth() || 0) + "px" : e.style.minWidth = "");
|
|
7936
8138
|
}
|
|
7937
8139
|
};
|
|
7938
|
-
|
|
7939
|
-
let
|
|
7940
|
-
const
|
|
8140
|
+
Ni.moduleName = "groupRows";
|
|
8141
|
+
let Ut = Ni;
|
|
8142
|
+
const qn = {
|
|
7941
8143
|
cellEdit: function(n) {
|
|
7942
8144
|
"setValueProcessData" in n.component && (n.component.setValueProcessData(n.data.newValue), n.component.cellRendered());
|
|
7943
8145
|
},
|
|
@@ -7964,7 +8166,7 @@ const jn = {
|
|
|
7964
8166
|
), this.table.rowManager.regenerateRowPositions(), this.table.rowManager.reRenderInPosition());
|
|
7965
8167
|
}
|
|
7966
8168
|
}
|
|
7967
|
-
},
|
|
8169
|
+
}, Yn = {
|
|
7968
8170
|
cellEdit: function(n) {
|
|
7969
8171
|
"setValueProcessData" in n.component && (n.component.setValueProcessData(n.data.oldValue), n.component.cellRendered());
|
|
7970
8172
|
},
|
|
@@ -7991,7 +8193,7 @@ const jn = {
|
|
|
7991
8193
|
), this.table.rowManager.regenerateRowPositions(), this.table.rowManager.reRenderInPosition());
|
|
7992
8194
|
}
|
|
7993
8195
|
}
|
|
7994
|
-
},
|
|
8196
|
+
}, Qn = {
|
|
7995
8197
|
redo: function(n) {
|
|
7996
8198
|
let e;
|
|
7997
8199
|
this.table.options.history && this.table.modExists("history") && this.table.modExists("edit") && (e = this.table.modules.edit?.currentCell, e || (n.preventDefault(), this.table.modules.history?.redo()));
|
|
@@ -8000,15 +8202,15 @@ const jn = {
|
|
|
8000
8202
|
let e;
|
|
8001
8203
|
this.table.options.history && this.table.modExists("history") && this.table.modExists("edit") && (e = this.table.modules.edit?.currentCell, e || (n.preventDefault(), this.table.modules.history?.undo()));
|
|
8002
8204
|
}
|
|
8003
|
-
},
|
|
8205
|
+
}, Zn = {
|
|
8004
8206
|
redo: ["ctrl + 89", "meta + 89"],
|
|
8005
8207
|
undo: ["ctrl + 90", "meta + 90"]
|
|
8006
|
-
},
|
|
8208
|
+
}, ea = {
|
|
8007
8209
|
keybindings: {
|
|
8008
|
-
actions:
|
|
8009
|
-
bindings:
|
|
8210
|
+
actions: Qn,
|
|
8211
|
+
bindings: Zn
|
|
8010
8212
|
}
|
|
8011
|
-
},
|
|
8213
|
+
}, bs = process.env.NODE_ENV === "development", oe = class oe extends S {
|
|
8012
8214
|
constructor(e) {
|
|
8013
8215
|
super(e), this.history = [], this.index = -1, this.registerTableOption("history", !1);
|
|
8014
8216
|
}
|
|
@@ -8090,7 +8292,7 @@ const jn = {
|
|
|
8090
8292
|
e.component.getComponent(),
|
|
8091
8293
|
e.data
|
|
8092
8294
|
), !0;
|
|
8093
|
-
} else
|
|
8295
|
+
} else bs && console.warn(
|
|
8094
8296
|
this.options("history") ? "History Undo Error - No more history to undo" : "History module not enabled"
|
|
8095
8297
|
);
|
|
8096
8298
|
return !1;
|
|
@@ -8106,7 +8308,7 @@ const jn = {
|
|
|
8106
8308
|
e.component.getComponent(),
|
|
8107
8309
|
e.data
|
|
8108
8310
|
), !0;
|
|
8109
|
-
} else
|
|
8311
|
+
} else bs && console.warn(
|
|
8110
8312
|
this.options("history") ? "History Redo Error - No more history to redo" : "History module not enabled"
|
|
8111
8313
|
);
|
|
8112
8314
|
return !1;
|
|
@@ -8126,9 +8328,9 @@ const jn = {
|
|
|
8126
8328
|
});
|
|
8127
8329
|
}
|
|
8128
8330
|
};
|
|
8129
|
-
oe.moduleName = "history", oe.moduleExtensions =
|
|
8130
|
-
let
|
|
8131
|
-
const
|
|
8331
|
+
oe.moduleName = "history", oe.moduleExtensions = ea, oe.undoers = Yn, oe.redoers = qn;
|
|
8332
|
+
let Kt = oe;
|
|
8333
|
+
const ta = process.env.NODE_ENV === "development", Vi = class Vi extends S {
|
|
8132
8334
|
constructor(e) {
|
|
8133
8335
|
super(e), this.fieldIndex = [], this.hasIndex = !1;
|
|
8134
8336
|
}
|
|
@@ -8136,7 +8338,7 @@ const Jn = process.env.NODE_ENV === "development", _i = class _i extends T {
|
|
|
8136
8338
|
this.tableElementCheck();
|
|
8137
8339
|
}
|
|
8138
8340
|
tableElementCheck() {
|
|
8139
|
-
this.table.originalElement?.tagName === "TABLE" && (this.table.originalElement.childNodes.length ? this.parseTable() :
|
|
8341
|
+
this.table.originalElement?.tagName === "TABLE" && (this.table.originalElement.childNodes.length ? this.parseTable() : ta && console.warn(
|
|
8140
8342
|
"Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."
|
|
8141
8343
|
));
|
|
8142
8344
|
}
|
|
@@ -8153,7 +8355,7 @@ const Jn = process.env.NODE_ENV === "development", _i = class _i extends T {
|
|
|
8153
8355
|
!this.hasIndex && t.index && (c[t.index] = a);
|
|
8154
8356
|
for (let d = 0; d < h.length; d++) {
|
|
8155
8357
|
const p = h[d], u = this.fieldIndex[d];
|
|
8156
|
-
u != null && (c[u] =
|
|
8358
|
+
u != null && (c[u] = T(p.innerHTML));
|
|
8157
8359
|
}
|
|
8158
8360
|
o.push(c);
|
|
8159
8361
|
}
|
|
@@ -8207,12 +8409,12 @@ const Jn = process.env.NODE_ENV === "development", _i = class _i extends T {
|
|
|
8207
8409
|
}
|
|
8208
8410
|
}
|
|
8209
8411
|
};
|
|
8210
|
-
|
|
8211
|
-
let
|
|
8212
|
-
function
|
|
8412
|
+
Vi.moduleName = "htmlTableImport";
|
|
8413
|
+
let Xt = Vi;
|
|
8414
|
+
function ia(n) {
|
|
8213
8415
|
return n;
|
|
8214
8416
|
}
|
|
8215
|
-
function
|
|
8417
|
+
function sa(n) {
|
|
8216
8418
|
const e = [];
|
|
8217
8419
|
let t = 0, i = 0, s = !1;
|
|
8218
8420
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -8243,29 +8445,29 @@ function Yn(n) {
|
|
|
8243
8445
|
}
|
|
8244
8446
|
return e;
|
|
8245
8447
|
}
|
|
8246
|
-
const
|
|
8247
|
-
async function
|
|
8448
|
+
const oa = process.env.NODE_ENV === "development";
|
|
8449
|
+
async function ra(n) {
|
|
8248
8450
|
try {
|
|
8249
8451
|
return JSON.parse(n);
|
|
8250
8452
|
} catch (e) {
|
|
8251
|
-
throw
|
|
8453
|
+
throw oa && console.warn("JSON Import Error - File contents is invalid JSON", e), new Error("Invalid JSON format");
|
|
8252
8454
|
}
|
|
8253
8455
|
}
|
|
8254
|
-
const
|
|
8456
|
+
const ws = process.env.NODE_ENV === "development", na = function(n) {
|
|
8255
8457
|
const t = this.dependencyRegistry.lookup("XLSX");
|
|
8256
8458
|
if (!t)
|
|
8257
|
-
return
|
|
8459
|
+
return ws && console.warn("XLSX library not found in dependency registry"), [];
|
|
8258
8460
|
const i = t.read(n);
|
|
8259
8461
|
if (!i.SheetNames || i.SheetNames.length === 0)
|
|
8260
|
-
return
|
|
8462
|
+
return ws && console.warn("XLSX workbook contains no sheets"), [];
|
|
8261
8463
|
const s = i.Sheets[i.SheetNames[0]];
|
|
8262
8464
|
return t.utils.sheet_to_json(s, { header: 1 });
|
|
8263
|
-
},
|
|
8264
|
-
array:
|
|
8265
|
-
csv:
|
|
8266
|
-
json:
|
|
8267
|
-
xlsx:
|
|
8268
|
-
}, je = process.env.NODE_ENV === "development", Xe = class Xe extends
|
|
8465
|
+
}, aa = {
|
|
8466
|
+
array: ia,
|
|
8467
|
+
csv: sa,
|
|
8468
|
+
json: ra,
|
|
8469
|
+
xlsx: na
|
|
8470
|
+
}, je = process.env.NODE_ENV === "development", Xe = class Xe extends S {
|
|
8269
8471
|
constructor(e) {
|
|
8270
8472
|
super(e), this.registerTableOption("importFormat"), this.registerTableOption("importReader", "text"), this.registerTableOption("importHeaderTransform"), this.registerTableOption("importValueTransform"), this.registerTableOption("importDataValidator"), this.registerTableOption("importFileValidator");
|
|
8271
8473
|
}
|
|
@@ -8421,9 +8623,9 @@ const gs = process.env.NODE_ENV === "development", ea = function(n) {
|
|
|
8421
8623
|
return this.dispatch("import-imported", e), this.dispatchExternal("importImported", e), this.table.dataLoader?.clearAlert(), this.table.setData(e);
|
|
8422
8624
|
}
|
|
8423
8625
|
};
|
|
8424
|
-
Xe.moduleName = "import", Xe.importers =
|
|
8425
|
-
let
|
|
8426
|
-
const
|
|
8626
|
+
Xe.moduleName = "import", Xe.importers = aa;
|
|
8627
|
+
let Jt = Xe;
|
|
8628
|
+
const Ii = class Ii extends S {
|
|
8427
8629
|
constructor(e) {
|
|
8428
8630
|
super(e), this.eventMap = {
|
|
8429
8631
|
// cell events
|
|
@@ -8605,9 +8807,9 @@ const Ni = class Ni extends T {
|
|
|
8605
8807
|
this.columnSubscribers[e] && (i instanceof Ze ? o = i.column.definition[e] : i instanceof q && (o = i.definition[e]), o && o(t, s)), this.dispatchExternal(e, t, s);
|
|
8606
8808
|
}
|
|
8607
8809
|
};
|
|
8608
|
-
|
|
8609
|
-
let
|
|
8610
|
-
const
|
|
8810
|
+
Ii.moduleName = "interaction";
|
|
8811
|
+
let qt = Ii;
|
|
8812
|
+
const la = {
|
|
8611
8813
|
keyBlock: function(n) {
|
|
8612
8814
|
n.stopPropagation(), n.preventDefault();
|
|
8613
8815
|
},
|
|
@@ -8655,7 +8857,7 @@ const ia = {
|
|
|
8655
8857
|
const e = this.table.rowManager;
|
|
8656
8858
|
e && (n.preventDefault(), e.displayRowsCount && e.scrollToRow(e.getDisplayRows()[0]), this.table.element.focus());
|
|
8657
8859
|
}
|
|
8658
|
-
},
|
|
8860
|
+
}, ha = {
|
|
8659
8861
|
navDown: 40,
|
|
8660
8862
|
navLeft: 37,
|
|
8661
8863
|
navNext: 9,
|
|
@@ -8666,7 +8868,7 @@ const ia = {
|
|
|
8666
8868
|
scrollPageUp: 33,
|
|
8667
8869
|
scrollToEnd: 35,
|
|
8668
8870
|
scrollToStart: 36
|
|
8669
|
-
},
|
|
8871
|
+
}, ca = process.env.NODE_ENV === "development", we = class we extends S {
|
|
8670
8872
|
constructor(e) {
|
|
8671
8873
|
super(e), this.watchKeys = null, this.pressedKeys = null, this.keyupBinding = !1, this.keydownBinding = !1, this.registerTableOption("keybindings", {}), this.registerTableOption("tabEndNewRow", !1);
|
|
8672
8874
|
}
|
|
@@ -8680,7 +8882,7 @@ const ia = {
|
|
|
8680
8882
|
(Array.isArray(i) ? i : [i]).forEach((o) => {
|
|
8681
8883
|
this.mapBinding(t, o);
|
|
8682
8884
|
});
|
|
8683
|
-
})) :
|
|
8885
|
+
})) : ca && console.warn("Key Binding Error - no such action:", t);
|
|
8684
8886
|
}
|
|
8685
8887
|
mapBinding(e, t) {
|
|
8686
8888
|
const i = {
|
|
@@ -8733,9 +8935,9 @@ const ia = {
|
|
|
8733
8935
|
}), i && t.action.call(this, e), !0) : !1;
|
|
8734
8936
|
}
|
|
8735
8937
|
};
|
|
8736
|
-
we.moduleName = "keybindings", we.bindings =
|
|
8737
|
-
let
|
|
8738
|
-
const
|
|
8938
|
+
we.moduleName = "keybindings", we.bindings = ha, we.actions = la;
|
|
8939
|
+
let Yt = we;
|
|
8940
|
+
const Bi = class Bi extends S {
|
|
8739
8941
|
constructor(e) {
|
|
8740
8942
|
super(e), this.menuContainer = null, this.nestedMenuBlock = !1, this.currentComponent = null, this.rootPopup = null, this.columnSubscribers = {}, this.registerTableOption("rowContextMenu", !1), this.registerTableOption("rowClickMenu", !1), this.registerTableOption("rowDblClickMenu", !1), this.registerTableOption("groupContextMenu", !1), this.registerTableOption("groupClickMenu", !1), this.registerTableOption("groupDblClickMenu", !1), this.registerColumnOption("headerContextMenu"), this.registerColumnOption("headerClickMenu"), this.registerColumnOption("headerDblClickMenu"), this.registerColumnOption("headerMenu"), this.registerColumnOption("headerMenuIcon"), this.registerColumnOption("contextMenu"), this.registerColumnOption("clickMenu"), this.registerColumnOption("dblClickMenu");
|
|
8741
8943
|
}
|
|
@@ -8802,7 +9004,7 @@ const Vi = class Vi extends T {
|
|
|
8802
9004
|
initializeColumnHeaderMenu(e) {
|
|
8803
9005
|
let t = e.definition.headerMenuIcon;
|
|
8804
9006
|
const i = document.createElement("span");
|
|
8805
|
-
i.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? i.appendChild(t) : i.innerHTML =
|
|
9007
|
+
i.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? i.appendChild(t) : i.innerHTML = T(String(t))) : i.innerHTML = T("⋮"), i.addEventListener("click", (s) => {
|
|
8806
9008
|
s.stopPropagation(), s.preventDefault(), this.loadMenuEvent(e.definition.headerMenu, s, e);
|
|
8807
9009
|
}), e.titleElement && e.titleElement.insertBefore(
|
|
8808
9010
|
i,
|
|
@@ -8840,7 +9042,7 @@ const Vi = class Vi extends T {
|
|
|
8840
9042
|
i.forEach((h) => {
|
|
8841
9043
|
const c = document.createElement("div");
|
|
8842
9044
|
let d = h.label, p = h.disabled;
|
|
8843
|
-
h.separator ? c.classList.add("tabulator-menu-separator") : (c.classList.add("tabulator-menu-item"), typeof d == "function" && (d = d.call(this.table, t.getComponent())), d instanceof Node ? c.appendChild(d) : c.innerHTML =
|
|
9045
|
+
h.separator ? c.classList.add("tabulator-menu-separator") : (c.classList.add("tabulator-menu-item"), typeof d == "function" && (d = d.call(this.table, t.getComponent())), d instanceof Node ? c.appendChild(d) : c.innerHTML = T(String(d || "")), typeof p == "function" && (p = p.call(this.table, t.getComponent())), p ? (c.classList.add("tabulator-menu-item-disabled"), c.addEventListener("click", (u) => {
|
|
8844
9046
|
u.stopPropagation();
|
|
8845
9047
|
})) : h.menu && h.menu.length ? c.addEventListener("click", (u) => {
|
|
8846
9048
|
u.stopPropagation(), this.loadMenu(u, t, h.menu, c, l);
|
|
@@ -8858,9 +9060,9 @@ const Vi = class Vi extends T {
|
|
|
8858
9060
|
}
|
|
8859
9061
|
}
|
|
8860
9062
|
};
|
|
8861
|
-
|
|
8862
|
-
let
|
|
8863
|
-
const
|
|
9063
|
+
Bi.moduleName = "menu";
|
|
9064
|
+
let Qt = Bi;
|
|
9065
|
+
const Wi = class Wi extends S {
|
|
8864
9066
|
constructor(e) {
|
|
8865
9067
|
super(e), this.placeholderElement = this.createPlaceholderElement(), this.hoverElement = !1, this.checkTimeout = !1, this.checkPeriod = 250, this.moving = !1, this.toCol = !1, this.toColAfter = !1, this.startX = 0, this.autoScrollMargin = 40, this.autoScrollStep = 5, this.autoScrollTimeout = !1, this.touchMove = !1, this.moveHover = this.moveHover.bind(this), this.endMove = this.endMove.bind(this), this.registerTableOption("movableColumns", !1);
|
|
8866
9068
|
}
|
|
@@ -9016,9 +9218,9 @@ const Ii = class Ii extends T {
|
|
|
9016
9218
|
}, 1)));
|
|
9017
9219
|
}
|
|
9018
9220
|
};
|
|
9019
|
-
|
|
9020
|
-
let
|
|
9021
|
-
const
|
|
9221
|
+
Wi.moduleName = "moveColumn";
|
|
9222
|
+
let Zt = Wi;
|
|
9223
|
+
const da = {
|
|
9022
9224
|
add: function(n, e, t) {
|
|
9023
9225
|
return n && this.table.addRow(n.getData("")), !0;
|
|
9024
9226
|
},
|
|
@@ -9031,11 +9233,11 @@ const ra = {
|
|
|
9031
9233
|
update: function(n, e, t) {
|
|
9032
9234
|
return e && n ? (e.update(n.getData("")), !0) : !1;
|
|
9033
9235
|
}
|
|
9034
|
-
},
|
|
9236
|
+
}, ua = {
|
|
9035
9237
|
delete: function(n, e, t) {
|
|
9036
9238
|
n && n.delete();
|
|
9037
9239
|
}
|
|
9038
|
-
}, it = process.env.NODE_ENV === "development", Se = class Se extends
|
|
9240
|
+
}, it = process.env.NODE_ENV === "development", Se = class Se extends S {
|
|
9039
9241
|
constructor(e) {
|
|
9040
9242
|
super(e), this.placeholderElement = this.createPlaceholderElement(), this.hoverElement = !1, this.checkTimeout = !1, this.checkPeriod = 150, this.moving = !1, this.toRow = !1, this.toRowAfter = !1, this.hasHandle = !1, this.startY = 0, this.startX = 0, this.moveHover = this.moveHover.bind(this), this.endMove = this.endMove.bind(this), this.tableRowDropEvent = !1, this.touchMove = !1, this.connection = !1, this.connectionSelectorsTables = !1, this.connectionSelectorsElements = !1, this.connectionElements = [], this.connections = [], this.connectedTable = !1, this.connectedRow = !1, this.registerTableOption("movableRows", !1), this.registerTableOption("movableRowsConnectedTables", !1), this.registerTableOption("movableRowsConnectedElements", !1), this.registerTableOption("movableRowsSender", !1), this.registerTableOption("movableRowsReceiver", "insert"), this.registerColumnOption("rowHandle");
|
|
9041
9243
|
}
|
|
@@ -9377,9 +9579,9 @@ const ra = {
|
|
|
9377
9579
|
}
|
|
9378
9580
|
}
|
|
9379
9581
|
};
|
|
9380
|
-
Se.moduleName = "moveRow", Se.senders =
|
|
9381
|
-
let
|
|
9382
|
-
const
|
|
9582
|
+
Se.moduleName = "moveRow", Se.senders = ua, Se.receivers = da;
|
|
9583
|
+
let ei = Se;
|
|
9584
|
+
const pa = {}, fa = process.env.NODE_ENV === "development", _e = class _e extends S {
|
|
9383
9585
|
constructor(e) {
|
|
9384
9586
|
super(e), this.allowedTypes = ["", "data", "edit", "clipboard", "import"], this.enabled = !0, this.registerColumnOption("mutator"), this.registerColumnOption("mutatorParams"), this.registerColumnOption("mutatorData"), this.registerColumnOption("mutatorDataParams"), this.registerColumnOption("mutatorEdit"), this.registerColumnOption("mutatorEditParams"), this.registerColumnOption("mutatorClipboard"), this.registerColumnOption("mutatorClipboardParams"), this.registerColumnOption("mutatorImport"), this.registerColumnOption("mutatorImportParams"), this.registerColumnOption("mutateLink");
|
|
9385
9587
|
}
|
|
@@ -9405,7 +9607,7 @@ const aa = {}, la = process.env.NODE_ENV === "development", Ae = class Ae extend
|
|
|
9405
9607
|
let t = !1;
|
|
9406
9608
|
switch (typeof e) {
|
|
9407
9609
|
case "string":
|
|
9408
|
-
|
|
9610
|
+
_e.mutators[e] ? t = _e.mutators[e] : fa && console.warn(
|
|
9409
9611
|
"Mutator Error - No such mutator found, ignoring: ",
|
|
9410
9612
|
e
|
|
9411
9613
|
);
|
|
@@ -9468,9 +9670,9 @@ const aa = {}, la = process.env.NODE_ENV === "development", Ae = class Ae extend
|
|
|
9468
9670
|
this.enabled = !1;
|
|
9469
9671
|
}
|
|
9470
9672
|
};
|
|
9471
|
-
|
|
9472
|
-
let
|
|
9473
|
-
const
|
|
9673
|
+
_e.moduleName = "mutator", _e.mutators = pa;
|
|
9674
|
+
let ti = _e;
|
|
9675
|
+
const Gi = class Gi extends S {
|
|
9474
9676
|
constructor(e) {
|
|
9475
9677
|
super(e), this.element = null, this.size = 0, this.page = 1, this.count = 5, this.max = 1, this.remoteRowCountEstimate = null, this.initialLoad = !0, this.progressiveLoad = !1, this.dataChanging = !1, this.pageSizes = [], this.mode = "local", this.setPage = (t) => {
|
|
9476
9678
|
if (typeof t == "string") {
|
|
@@ -9540,7 +9742,7 @@ const Bi = class Bi extends T {
|
|
|
9540
9742
|
}
|
|
9541
9743
|
calculatePageSizes() {
|
|
9542
9744
|
let e, t;
|
|
9543
|
-
this.table.options.paginationSize ? this.size = this.table.options.paginationSize : (e = document.createElement("div"), e.classList.add("tabulator-row"), e.style.visibility = "hidden", t = document.createElement("div"), t.classList.add("tabulator-cell"), t.innerHTML =
|
|
9745
|
+
this.table.options.paginationSize ? this.size = this.table.options.paginationSize : (e = document.createElement("div"), e.classList.add("tabulator-row"), e.style.visibility = "hidden", t = document.createElement("div"), t.classList.add("tabulator-cell"), t.innerHTML = T("Page Row Test"), e.appendChild(t), this.table.rowManager?.getTableElement().appendChild(e), this.size = Math.floor(
|
|
9544
9746
|
(this.table.rowManager?.getElement()?.clientHeight ?? 0) / e.offsetHeight
|
|
9545
9747
|
), e.remove()), this.dispatchExternal("pageSizeChanged", this.size), this.generatePageSizeSelectList();
|
|
9546
9748
|
}
|
|
@@ -9747,9 +9949,9 @@ const Bi = class Bi extends T {
|
|
|
9747
9949
|
return e.data;
|
|
9748
9950
|
}
|
|
9749
9951
|
};
|
|
9750
|
-
|
|
9751
|
-
let
|
|
9752
|
-
const
|
|
9952
|
+
Gi.moduleName = "page";
|
|
9953
|
+
let ii = Gi;
|
|
9954
|
+
const vs = process.env.NODE_ENV === "development", ga = {
|
|
9753
9955
|
cookie: function(n, e) {
|
|
9754
9956
|
let t = document.cookie;
|
|
9755
9957
|
const i = n + "-" + e, s = t.indexOf(i + "=");
|
|
@@ -9764,7 +9966,7 @@ const ms = process.env.NODE_ENV === "development", ha = {
|
|
|
9764
9966
|
try {
|
|
9765
9967
|
return JSON.parse(r);
|
|
9766
9968
|
} catch (a) {
|
|
9767
|
-
return
|
|
9969
|
+
return vs && console.error("Failed to parse cookie data:", a), !1;
|
|
9768
9970
|
}
|
|
9769
9971
|
},
|
|
9770
9972
|
local: function(n, e) {
|
|
@@ -9774,10 +9976,10 @@ const ms = process.env.NODE_ENV === "development", ha = {
|
|
|
9774
9976
|
try {
|
|
9775
9977
|
return JSON.parse(t);
|
|
9776
9978
|
} catch (i) {
|
|
9777
|
-
return
|
|
9979
|
+
return vs && console.error("Failed to parse localStorage data:", i), !1;
|
|
9778
9980
|
}
|
|
9779
9981
|
}
|
|
9780
|
-
},
|
|
9982
|
+
}, ma = {
|
|
9781
9983
|
cookie: function(n, e, t) {
|
|
9782
9984
|
const i = /* @__PURE__ */ new Date();
|
|
9783
9985
|
i.setDate(i.getDate() + 1e4), document.cookie = n + "-" + e + "=" + encodeURIComponent(JSON.stringify(t)) + "; expires=" + i.toUTCString();
|
|
@@ -9785,7 +9987,7 @@ const ms = process.env.NODE_ENV === "development", ha = {
|
|
|
9785
9987
|
local: function(n, e, t) {
|
|
9786
9988
|
localStorage.setItem(n + "-" + e, JSON.stringify(t));
|
|
9787
9989
|
}
|
|
9788
|
-
}, st = process.env.NODE_ENV === "development", J = class J extends
|
|
9990
|
+
}, st = process.env.NODE_ENV === "development", J = class J extends S {
|
|
9789
9991
|
constructor(e) {
|
|
9790
9992
|
super(e), this.mode = "", this.id = "", this.defWatcherBlock = !1, this.config = {}, this.readFunc = !1, this.writeFunc = !1, this.registerTableOption("persistence", !1), this.registerTableOption("persistenceID", ""), this.registerTableOption("persistenceMode", !0), this.registerTableOption("persistenceReaderFunc", !1), this.registerTableOption("persistenceWriterFunc", !1);
|
|
9791
9993
|
}
|
|
@@ -9992,9 +10194,9 @@ const ms = process.env.NODE_ENV === "development", ha = {
|
|
|
9992
10194
|
}), t;
|
|
9993
10195
|
}
|
|
9994
10196
|
};
|
|
9995
|
-
J.moduleName = "persistence", J.moduleInitOrder = -10, J.readers =
|
|
9996
|
-
let
|
|
9997
|
-
const
|
|
10197
|
+
J.moduleName = "persistence", J.moduleInitOrder = -10, J.readers = ga, J.writers = ma;
|
|
10198
|
+
let si = J;
|
|
10199
|
+
const ji = class ji extends S {
|
|
9998
10200
|
constructor(e) {
|
|
9999
10201
|
super(e), this.columnSubscribers = {}, this.registerTableOption("rowContextPopup", !1), this.registerTableOption("rowClickPopup", !1), this.registerTableOption("rowDblClickPopup", !1), this.registerTableOption("groupContextPopup", !1), this.registerTableOption("groupClickPopup", !1), this.registerTableOption("groupDblClickPopup", !1), this.registerColumnOption("headerContextPopup"), this.registerColumnOption("headerClickPopup"), this.registerColumnOption("headerDblClickPopup"), this.registerColumnOption("headerPopup"), this.registerColumnOption("headerPopupIcon"), this.registerColumnOption("contextPopup"), this.registerColumnOption("clickPopup"), this.registerColumnOption("dblClickPopup"), this.registerComponentFunction(
|
|
10000
10202
|
"cell",
|
|
@@ -10078,7 +10280,7 @@ const Wi = class Wi extends T {
|
|
|
10078
10280
|
initializeColumnHeaderPopup(e) {
|
|
10079
10281
|
let t = e.definition.headerPopupIcon;
|
|
10080
10282
|
const i = document.createElement("span");
|
|
10081
|
-
i.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? i.appendChild(t) : i.innerHTML =
|
|
10283
|
+
i.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? i.appendChild(t) : i.innerHTML = T(t)) : i.innerHTML = T("⋮"), i.addEventListener("click", (s) => {
|
|
10082
10284
|
s.stopPropagation(), s.preventDefault(), this.loadPopupEvent(
|
|
10083
10285
|
e.definition.headerPopup,
|
|
10084
10286
|
s,
|
|
@@ -10105,7 +10307,7 @@ const Wi = class Wi extends T {
|
|
|
10105
10307
|
loadPopup(e, t, i, s, o) {
|
|
10106
10308
|
const r = !(e instanceof MouseEvent);
|
|
10107
10309
|
let a;
|
|
10108
|
-
i instanceof HTMLElement ? a = i : (a = document.createElement("div"), a.innerHTML =
|
|
10310
|
+
i instanceof HTMLElement ? a = i : (a = document.createElement("div"), a.innerHTML = T(i)), a.classList.add("tabulator-popup"), a.addEventListener("click", (h) => {
|
|
10109
10311
|
h.stopPropagation();
|
|
10110
10312
|
}), !r && e && e.preventDefault();
|
|
10111
10313
|
const l = this.popup(a);
|
|
@@ -10114,9 +10316,9 @@ const Wi = class Wi extends T {
|
|
|
10114
10316
|
}), this.dispatchExternal("popupOpened", t.getComponent());
|
|
10115
10317
|
}
|
|
10116
10318
|
};
|
|
10117
|
-
|
|
10118
|
-
let
|
|
10119
|
-
const
|
|
10319
|
+
ji.moduleName = "popup";
|
|
10320
|
+
let oi = ji;
|
|
10321
|
+
const ys = process.env.NODE_ENV === "development", $i = class $i extends S {
|
|
10120
10322
|
constructor(e) {
|
|
10121
10323
|
super(e), this.element = !1, this.manualBlock = !1, this.beforeprintEventHandler = null, this.afterprintEventHandler = null, this.registerTableOption("printAsHtml", !1), this.registerTableOption("printFormatter", !1), this.registerTableOption("printHeader", !1), this.registerTableOption("printFooter", !1), this.registerTableOption("printStyled", !0), this.registerTableOption("printRowRange", "visible"), this.registerTableOption("printConfig", {}), this.registerColumnOption("print"), this.registerColumnOption("titlePrint");
|
|
10122
10324
|
}
|
|
@@ -10148,7 +10350,7 @@ const bs = process.env.NODE_ENV === "development", Gi = class Gi extends T {
|
|
|
10148
10350
|
if (!this.manualBlock) {
|
|
10149
10351
|
const e = this.table.modules.export;
|
|
10150
10352
|
if (!e || typeof e.generateTable != "function") {
|
|
10151
|
-
|
|
10353
|
+
ys && console.error(
|
|
10152
10354
|
"Print Error - Export module not available, cannot generate print table."
|
|
10153
10355
|
);
|
|
10154
10356
|
return;
|
|
@@ -10172,7 +10374,7 @@ const bs = process.env.NODE_ENV === "development", Gi = class Gi extends T {
|
|
|
10172
10374
|
printFullscreen(e, t, i) {
|
|
10173
10375
|
const s = window.scrollX, o = window.scrollY, r = document.createElement("div"), a = document.createElement("div"), l = this.table.modules.export;
|
|
10174
10376
|
if (!l || typeof l.generateTable != "function") {
|
|
10175
|
-
|
|
10377
|
+
ys && console.error(
|
|
10176
10378
|
"Print Error - Export module not available, cannot generate print table."
|
|
10177
10379
|
);
|
|
10178
10380
|
return;
|
|
@@ -10184,7 +10386,7 @@ const bs = process.env.NODE_ENV === "development", Gi = class Gi extends T {
|
|
|
10184
10386
|
"print"
|
|
10185
10387
|
);
|
|
10186
10388
|
let c, d;
|
|
10187
|
-
this.manualBlock = !0, this.element = document.createElement("div"), this.element.classList.add("tabulator-print-fullscreen"), this.table.options.printHeader && (r.classList.add("tabulator-print-header"), c = typeof this.table.options.printHeader == "function" ? this.table.options.printHeader.call(this.table) : this.table.options.printHeader, typeof c == "string" ? r.innerHTML =
|
|
10389
|
+
this.manualBlock = !0, this.element = document.createElement("div"), this.element.classList.add("tabulator-print-fullscreen"), this.table.options.printHeader && (r.classList.add("tabulator-print-header"), c = typeof this.table.options.printHeader == "function" ? this.table.options.printHeader.call(this.table) : this.table.options.printHeader, typeof c == "string" ? r.innerHTML = T(c) : r.appendChild(c), this.element.appendChild(r)), this.element.appendChild(h), this.table.options.printFooter && (a.classList.add("tabulator-print-footer"), d = typeof this.table.options.printFooter == "function" ? this.table.options.printFooter.call(this.table) : this.table.options.printFooter, typeof d == "string" ? a.innerHTML = T(d) : a.appendChild(d), this.element.appendChild(a)), document.body.classList.add("tabulator-print-fullscreen-hide"), document.body.appendChild(this.element);
|
|
10188
10390
|
try {
|
|
10189
10391
|
this.table.options.printFormatter && this.table.options.printFormatter(this.element, h), globalThis.print();
|
|
10190
10392
|
} finally {
|
|
@@ -10192,9 +10394,9 @@ const bs = process.env.NODE_ENV === "development", Gi = class Gi extends T {
|
|
|
10192
10394
|
}
|
|
10193
10395
|
}
|
|
10194
10396
|
};
|
|
10195
|
-
|
|
10196
|
-
let
|
|
10197
|
-
const
|
|
10397
|
+
$i.moduleName = "print";
|
|
10398
|
+
let ri = $i;
|
|
10399
|
+
const Ui = class Ui extends S {
|
|
10198
10400
|
constructor(e) {
|
|
10199
10401
|
super(e), this.data = !1, this.blocked = !1, this.origFuncs = {}, this.currentVersion = 0, this.registerTableOption("reactiveData", !1);
|
|
10200
10402
|
}
|
|
@@ -10393,9 +10595,9 @@ const ji = class ji extends T {
|
|
|
10393
10595
|
this.blocked === e && (this.blocked = !1);
|
|
10394
10596
|
}
|
|
10395
10597
|
};
|
|
10396
|
-
|
|
10397
|
-
let
|
|
10398
|
-
const
|
|
10598
|
+
Ui.moduleName = "reactiveData";
|
|
10599
|
+
let ni = Ui;
|
|
10600
|
+
const Ki = class Ki extends S {
|
|
10399
10601
|
constructor(e) {
|
|
10400
10602
|
super(e), this.startColumn = !1, this.startX = !1, this.startWidth = !1, this.latestX = !1, this.handle = null, this.initialNextColumn = null, this.nextColumn = null, this.initialized = !1, this.registerColumnOption("resizable", !0), this.registerTableOption("resizableColumnFit", !1), this.registerTableOption("resizableColumnGuide", !1);
|
|
10401
10603
|
}
|
|
@@ -10524,9 +10726,9 @@ const $i = class $i extends T {
|
|
|
10524
10726
|
a !== null && (this.startX = a, this.latestX = this.startX, this.startWidth = t.getWidth(), document.body.addEventListener("mousemove", o), document.body.addEventListener("mouseup", r), i.addEventListener("touchmove", o, { passive: !0 }), i.addEventListener("touchend", r));
|
|
10525
10727
|
}
|
|
10526
10728
|
};
|
|
10527
|
-
|
|
10528
|
-
let
|
|
10529
|
-
const
|
|
10729
|
+
Ki.moduleName = "resizeColumns";
|
|
10730
|
+
let ai = Ki;
|
|
10731
|
+
const Xi = class Xi extends S {
|
|
10530
10732
|
constructor(e) {
|
|
10531
10733
|
super(e), this.startRow = !1, this.startY = !1, this.startHeight = !1, this.handle = null, this.prevHandle = null, this.registerTableOption("resizableRows", !1), this.registerTableOption("resizableRowGuide", !1);
|
|
10532
10734
|
}
|
|
@@ -10602,9 +10804,9 @@ const Ui = class Ui extends T {
|
|
|
10602
10804
|
}), i.addEventListener("touchend", r));
|
|
10603
10805
|
}
|
|
10604
10806
|
};
|
|
10605
|
-
|
|
10606
|
-
let
|
|
10607
|
-
const
|
|
10807
|
+
Xi.moduleName = "resizeRows";
|
|
10808
|
+
let li = Xi;
|
|
10809
|
+
const Ji = class Ji extends S {
|
|
10608
10810
|
constructor(e) {
|
|
10609
10811
|
super(e), this.pendingRedraw = !1, this.pendingForceRedraw = !1, this.boundHandleTableInitialized = this.handleTableInitialized.bind(this), this.binding = !1, this.visibilityObserver = !1, this.resizeObserver = !1, this.containerObserver = !1, this.tableHeight = 0, this.tableWidth = 0, this.containerHeight = 0, this.containerWidth = 0, this.autoResize = !1, this.visible = !1, this.initialized = !1, this.initialRedraw = !1, this.registerTableOption("autoResize", !0);
|
|
10610
10812
|
}
|
|
@@ -10682,9 +10884,9 @@ const Ki = class Ki extends T {
|
|
|
10682
10884
|
this.flushPendingRedraw();
|
|
10683
10885
|
}
|
|
10684
10886
|
};
|
|
10685
|
-
|
|
10686
|
-
let
|
|
10687
|
-
function
|
|
10887
|
+
Ji.moduleName = "resizeTable";
|
|
10888
|
+
let hi = Ji;
|
|
10889
|
+
function ba(n) {
|
|
10688
10890
|
const e = document.createElement("div"), t = n.getRow()._row.modules.responsiveLayout;
|
|
10689
10891
|
e.classList.add("tabulator-responsive-collapse-toggle"), e.innerHTML = `<svg class='tabulator-responsive-collapse-toggle-open' viewBox="0 0 24 24">
|
|
10690
10892
|
<line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
|
|
@@ -10702,13 +10904,13 @@ function da(n) {
|
|
|
10702
10904
|
s.stopImmediatePropagation(), i(!t.open), n.getTable()?.rowManager?.adjustTableSize();
|
|
10703
10905
|
}), i(t.open), e;
|
|
10704
10906
|
}
|
|
10705
|
-
const
|
|
10907
|
+
const wa = {
|
|
10706
10908
|
format: {
|
|
10707
10909
|
formatters: {
|
|
10708
|
-
responsiveCollapse:
|
|
10910
|
+
responsiveCollapse: ba
|
|
10709
10911
|
}
|
|
10710
10912
|
}
|
|
10711
|
-
}, ht = class ht extends
|
|
10913
|
+
}, ht = class ht extends S {
|
|
10712
10914
|
constructor(e) {
|
|
10713
10915
|
super(e), this.columns = [], this.hiddenColumns = [], this.mode = "", this.index = 0, this.collapseFormatter = !1, this.collapseStartOpen = !0, this.collapseHandleColumn = !1, this.registerTableOption("responsiveLayout", !1), this.registerTableOption("responsiveLayoutCollapseStartOpen", !0), this.registerTableOption("responsiveLayoutCollapseUseFormatters", !0), this.registerTableOption("responsiveLayoutCollapseFormatter", !1), this.registerColumnOption("responsive");
|
|
10714
10916
|
}
|
|
@@ -10796,7 +10998,7 @@ const ua = {
|
|
|
10796
10998
|
if (t = e.modules.responsiveLayout.element, t) {
|
|
10797
10999
|
for (; t.firstChild; )
|
|
10798
11000
|
t.removeChild(t.firstChild);
|
|
10799
|
-
i = this.collapseFormatter(this.generateCollapsedRowData(e)), i && (typeof i == "string" ? t.innerHTML =
|
|
11001
|
+
i = this.collapseFormatter(this.generateCollapsedRowData(e)), i && (typeof i == "string" ? t.innerHTML = T(i) : t.appendChild(i));
|
|
10800
11002
|
}
|
|
10801
11003
|
e.calcHeight(!0);
|
|
10802
11004
|
}
|
|
@@ -10861,17 +11063,17 @@ const ua = {
|
|
|
10861
11063
|
o.appendChild(l), this.table.modules.localize?.langBind(
|
|
10862
11064
|
"columns|" + i.field,
|
|
10863
11065
|
(h) => {
|
|
10864
|
-
l.innerHTML =
|
|
11066
|
+
l.innerHTML = T(h || i.title);
|
|
10865
11067
|
}
|
|
10866
|
-
), i.value instanceof Node ? (a = document.createElement("div"), a.appendChild(i.value), r.appendChild(a)) : r.innerHTML =
|
|
11068
|
+
), i.value instanceof Node ? (a = document.createElement("div"), a.appendChild(i.value), r.appendChild(a)) : r.innerHTML = T(String(i.value)), s.appendChild(o), s.appendChild(r), t.appendChild(s);
|
|
10867
11069
|
}), Object.keys(e).length ? t : "";
|
|
10868
11070
|
}
|
|
10869
11071
|
};
|
|
10870
|
-
ht.moduleName = "responsiveLayout", ht.moduleExtensions =
|
|
10871
|
-
let
|
|
10872
|
-
const
|
|
10873
|
-
function
|
|
10874
|
-
const t = k(
|
|
11072
|
+
ht.moduleName = "responsiveLayout", ht.moduleExtensions = wa;
|
|
11073
|
+
let ci = ht;
|
|
11074
|
+
const va = E`<cx-checkbox></cx-checkbox>`;
|
|
11075
|
+
function ya(n, e) {
|
|
11076
|
+
const t = k(va);
|
|
10875
11077
|
let i = t, s = !1;
|
|
10876
11078
|
t.setAttribute("aria-label", "Select Row"), t.size = "small";
|
|
10877
11079
|
const o = this.table;
|
|
@@ -10880,7 +11082,7 @@ function fa(n, e) {
|
|
|
10880
11082
|
r.stopPropagation();
|
|
10881
11083
|
}), typeof n.getRow == "function") {
|
|
10882
11084
|
const r = n.getRow();
|
|
10883
|
-
r instanceof
|
|
11085
|
+
r instanceof Di ? (t.addEventListener("cx-change", () => {
|
|
10884
11086
|
o.options.selectableRowsRangeMode === "click" ? s ? (s = !1, t.checked = r?.isSelected?.() ?? !1) : r?.toggleSelect?.() : r.toggleSelect?.();
|
|
10885
11087
|
}), o.options.selectableRowsRangeMode === "click" && t.addEventListener("click", (a) => {
|
|
10886
11088
|
s = !0, o.modules.selectRow?.handleComplexRowClick(r._row, a);
|
|
@@ -10891,13 +11093,13 @@ function fa(n, e) {
|
|
|
10891
11093
|
}), o.modules.selectRow?.registerHeaderSelectCheckbox(t);
|
|
10892
11094
|
return i;
|
|
10893
11095
|
}
|
|
10894
|
-
const
|
|
11096
|
+
const Ca = {
|
|
10895
11097
|
format: {
|
|
10896
11098
|
formatters: {
|
|
10897
|
-
rowSelection:
|
|
11099
|
+
rowSelection: ya
|
|
10898
11100
|
}
|
|
10899
11101
|
}
|
|
10900
|
-
},
|
|
11102
|
+
}, Cs = process.env.NODE_ENV === "development", ct = class ct extends S {
|
|
10901
11103
|
// hold header select element (cx-checkbox)
|
|
10902
11104
|
constructor(e) {
|
|
10903
11105
|
super(e), this.selecting = !1, this.lastClickedRow = !1, this.selectPrev = [], this.selectedRows = [], this.headerCheckboxElement = null, this.registerTableOption("selectableRows", "highlight"), this.registerTableOption("selectableRowsRangeMode", "drag"), this.registerTableOption("selectableRowsRollingSelection", !0), this.registerTableOption("selectableRowsPersistence", !0), this.registerTableOption(
|
|
@@ -11034,7 +11236,7 @@ const ga = {
|
|
|
11034
11236
|
if (o) {
|
|
11035
11237
|
if (this.selectedRows.indexOf(o) === -1)
|
|
11036
11238
|
return o.getElement().classList.add("tabulator-selected"), o.modules.select || (o.modules.select = {}), o.modules.select.selected = !0, o.modules.select.checkboxEl && (o.modules.select.checkboxEl.checked = !0), this.selectedRows.push(o), this.table.options.dataTreeSelectPropagate && this.childRowSelection(o, !0), this.dispatchExternal("rowSelected", o.getComponent()), this._rowSelectionChanged(t, [o], []), o;
|
|
11037
|
-
} else !t &&
|
|
11239
|
+
} else !t && Cs && console.warn(
|
|
11038
11240
|
"Selection Error - No such row found, ignoring selection:" + e
|
|
11039
11241
|
);
|
|
11040
11242
|
return !1;
|
|
@@ -11071,7 +11273,7 @@ const ga = {
|
|
|
11071
11273
|
if (i) {
|
|
11072
11274
|
if (s = this.selectedRows.findIndex((r) => r === i), s > -1)
|
|
11073
11275
|
return o = i.getElement(), o && o.classList.remove("tabulator-selected"), i.modules.select || (i.modules.select = {}), i.modules.select.selected = !1, i.modules.select.checkboxEl && (i.modules.select.checkboxEl.checked = !1), this.selectedRows.splice(s, 1), this.table.options.dataTreeSelectPropagate && this.childRowSelection(i, !1), this.dispatchExternal("rowDeselected", i.getComponent()), this._rowSelectionChanged(t, [], [i]), i;
|
|
11074
|
-
} else !t &&
|
|
11276
|
+
} else !t && Cs && console.warn(
|
|
11075
11277
|
"Deselection Error - No such row found, ignoring selection:" + e
|
|
11076
11278
|
);
|
|
11077
11279
|
return !1;
|
|
@@ -11120,9 +11322,9 @@ const ga = {
|
|
|
11120
11322
|
this._deselectRow(s, !0);
|
|
11121
11323
|
}
|
|
11122
11324
|
};
|
|
11123
|
-
ct.moduleName = "selectRow", ct.moduleExtensions =
|
|
11124
|
-
let
|
|
11125
|
-
const
|
|
11325
|
+
ct.moduleName = "selectRow", ct.moduleExtensions = Ca;
|
|
11326
|
+
let di = ct;
|
|
11327
|
+
const Ea = {
|
|
11126
11328
|
range: function(n) {
|
|
11127
11329
|
if (!n || n.length === 0)
|
|
11128
11330
|
return [];
|
|
@@ -11142,7 +11344,7 @@ const ma = {
|
|
|
11142
11344
|
}
|
|
11143
11345
|
return e;
|
|
11144
11346
|
}
|
|
11145
|
-
},
|
|
11347
|
+
}, xa = {
|
|
11146
11348
|
range: function(n) {
|
|
11147
11349
|
const e = [], t = [], i = this.table.modules.selectRange.activeRange;
|
|
11148
11350
|
let s = !1, o, r, a, l, h;
|
|
@@ -11164,16 +11366,16 @@ const ma = {
|
|
|
11164
11366
|
}
|
|
11165
11367
|
return !1;
|
|
11166
11368
|
}
|
|
11167
|
-
},
|
|
11369
|
+
}, Ra = {
|
|
11168
11370
|
range: function() {
|
|
11169
11371
|
const n = this.modules.selectRange.selectedColumns();
|
|
11170
11372
|
return this.columnManager?.rowHeader && n.unshift(this.columnManager.rowHeader), n;
|
|
11171
11373
|
}
|
|
11172
|
-
},
|
|
11374
|
+
}, Sa = process.env.NODE_ENV === "development", Ta = {
|
|
11173
11375
|
range: function() {
|
|
11174
|
-
return this.modules?.selectRange ? this.modules.selectRange.selectedRows() : (
|
|
11376
|
+
return this.modules?.selectRange ? this.modules.selectRange.selectedRows() : (Sa && console.warn("SelectRange module not loaded"), []);
|
|
11175
11377
|
}
|
|
11176
|
-
},
|
|
11378
|
+
}, Ma = {
|
|
11177
11379
|
rangeExpandDown: function(n) {
|
|
11178
11380
|
this.dispatch("keybinding-nav-range", n, "down", !1, !0);
|
|
11179
11381
|
},
|
|
@@ -11210,7 +11412,7 @@ const ma = {
|
|
|
11210
11412
|
rangeJumpUp: function(n) {
|
|
11211
11413
|
this.dispatch("keybinding-nav-range", n, "up", !0, !1);
|
|
11212
11414
|
}
|
|
11213
|
-
},
|
|
11415
|
+
}, ka = {
|
|
11214
11416
|
rangeExpandDown: "shift + 40",
|
|
11215
11417
|
rangeExpandJumpDown: ["ctrl + shift + 40", "meta + shift + 40"],
|
|
11216
11418
|
rangeExpandJumpLeft: ["ctrl + shift + 37", "meta + shift + 37"],
|
|
@@ -11223,21 +11425,21 @@ const ma = {
|
|
|
11223
11425
|
rangeJumpLeft: ["ctrl + 37", "meta + 37"],
|
|
11224
11426
|
rangeJumpRight: ["ctrl + 39", "meta + 39"],
|
|
11225
11427
|
rangeJumpUp: ["ctrl + 38", "meta + 38"]
|
|
11226
|
-
},
|
|
11428
|
+
}, Da = {
|
|
11227
11429
|
clipboard: {
|
|
11228
|
-
pasteActions:
|
|
11229
|
-
pasteParsers:
|
|
11430
|
+
pasteActions: Ea,
|
|
11431
|
+
pasteParsers: xa
|
|
11230
11432
|
},
|
|
11231
11433
|
export: {
|
|
11232
|
-
columnLookups:
|
|
11233
|
-
rowLookups:
|
|
11434
|
+
columnLookups: Ra,
|
|
11435
|
+
rowLookups: Ta
|
|
11234
11436
|
},
|
|
11235
11437
|
keybindings: {
|
|
11236
|
-
actions:
|
|
11237
|
-
bindings:
|
|
11438
|
+
actions: Ma,
|
|
11439
|
+
bindings: ka
|
|
11238
11440
|
}
|
|
11239
11441
|
};
|
|
11240
|
-
class
|
|
11442
|
+
class La {
|
|
11241
11443
|
constructor(e) {
|
|
11242
11444
|
return this._range = e, new Proxy(this, {
|
|
11243
11445
|
get: function(t, i) {
|
|
@@ -11301,8 +11503,8 @@ class Ra {
|
|
|
11301
11503
|
this._range.destroyedGuard("remove") && this._range.destroy(!0);
|
|
11302
11504
|
}
|
|
11303
11505
|
}
|
|
11304
|
-
const
|
|
11305
|
-
class
|
|
11506
|
+
const Es = process.env.NODE_ENV === "development";
|
|
11507
|
+
class za extends W {
|
|
11306
11508
|
constructor(e, t, i, s) {
|
|
11307
11509
|
super(e), this.rangeManager = t, this.element = null, this.initialized = !1, this.initializing = {
|
|
11308
11510
|
end: !1,
|
|
@@ -11432,21 +11634,21 @@ class Sa extends W {
|
|
|
11432
11634
|
end: null,
|
|
11433
11635
|
start: null
|
|
11434
11636
|
};
|
|
11435
|
-
return t.length ? (i.start = t[0], i.end = t.at(-1)) :
|
|
11637
|
+
return t.length ? (i.start = t[0], i.end = t.at(-1)) : Es && console.warn("No bounds defined on range"), i;
|
|
11436
11638
|
}
|
|
11437
11639
|
getComponent() {
|
|
11438
|
-
return this.component ??= new
|
|
11640
|
+
return this.component ??= new La(this), this.component;
|
|
11439
11641
|
}
|
|
11440
11642
|
destroy(e) {
|
|
11441
11643
|
this.destroyed = !0, this.element && this.element.remove(), e && this.rangeManager.rangeRemoved(this), this.initialized && this.dispatchExternal("rangeRemoved", this.getComponent());
|
|
11442
11644
|
}
|
|
11443
11645
|
destroyedGuard(e) {
|
|
11444
|
-
return this.destroyed &&
|
|
11646
|
+
return this.destroyed && Es && console.warn(
|
|
11445
11647
|
"You cannot call the " + e + " function on a destroyed range"
|
|
11446
11648
|
), !this.destroyed;
|
|
11447
11649
|
}
|
|
11448
11650
|
}
|
|
11449
|
-
const Ee = process.env.NODE_ENV === "development",
|
|
11651
|
+
const Ee = process.env.NODE_ENV === "development", Fa = E`<div class="tabulator-range-cell-hover"></div>`, Je = class Je extends S {
|
|
11450
11652
|
constructor(e) {
|
|
11451
11653
|
super(e), this.selecting = Z.Cell, this.mousedown = !1, this.ranges = [], this.overlay = null, this.rowHeader = null, this.layoutChangeTimeout = null, this.columnSelection = !1, this.rowSelection = !1, this.maxRanges = 0, this.activeRange = !1, this.blockKeydown = !1, this.rangeContainer = null, this.activeRangeCellElement = null, this.hoverRangeCellElement = null, this.hoveredCell = null, this.keyDownEvent = this._handleKeyDown.bind(this), this.mouseUpEvent = this._handleMouseUp.bind(this), this.registerTableOption("selectableRange", !1), this.registerTableOption("selectableRangeColumns", !1), this.registerTableOption("selectableRangeRows", !1), this.registerTableOption("selectableRangeClearCells", !1), this.registerTableOption("selectableRangeClearCellsValue", void 0), this.registerTableOption("selectableRangeAutoFocus", !0), this.registerTableFunction("getRangesData", this.getRangesData.bind(this)), this.registerTableFunction("getRanges", this.getRanges.bind(this)), this.registerTableFunction(
|
|
11452
11654
|
"addRange",
|
|
@@ -11480,7 +11682,7 @@ const Ee = process.env.NODE_ENV === "development", Ta = E`<div class="tabulator-
|
|
|
11480
11682
|
));
|
|
11481
11683
|
}
|
|
11482
11684
|
initializeTable() {
|
|
11483
|
-
this.overlay = document.createElement("div"), this.overlay.classList.add("tabulator-range-overlay"), this.rangeContainer = document.createElement("div"), this.rangeContainer.classList.add("tabulator-range-container"), this.activeRangeCellElement = document.createElement("div"), this.activeRangeCellElement.classList.add("tabulator-range-cell-active"), this.hoverRangeCellElement = k(
|
|
11685
|
+
this.overlay = document.createElement("div"), this.overlay.classList.add("tabulator-range-overlay"), this.rangeContainer = document.createElement("div"), this.rangeContainer.classList.add("tabulator-range-container"), this.activeRangeCellElement = document.createElement("div"), this.activeRangeCellElement.classList.add("tabulator-range-cell-active"), this.hoverRangeCellElement = k(Fa), this.overlay.appendChild(this.rangeContainer), this.overlay.appendChild(this.hoverRangeCellElement), this.overlay.appendChild(this.activeRangeCellElement), this.table.rowManager?.element && this.table.rowManager.element.addEventListener(
|
|
11484
11686
|
"keydown",
|
|
11485
11687
|
this.keyDownEvent
|
|
11486
11688
|
), this.resetRanges(), this.table.rowManager?.element && this.overlay && this.table.rowManager.element.appendChild(this.overlay), this.table.columnManager?.element && this.table.columnManager.element.setAttribute("tabindex", "0"), this.table.element.classList.add("tabulator-ranges");
|
|
@@ -11948,7 +12150,7 @@ const Ee = process.env.NODE_ENV === "development", Ta = E`<div class="tabulator-
|
|
|
11948
12150
|
const s = this.ranges.shift();
|
|
11949
12151
|
s && s.destroy(!1);
|
|
11950
12152
|
}
|
|
11951
|
-
const i = new
|
|
12153
|
+
const i = new za(this.table, this, e, t);
|
|
11952
12154
|
return this.activeRange = i, this.ranges.push(i), this.rangeContainer && i.element && this.rangeContainer.appendChild(i.element), i;
|
|
11953
12155
|
}
|
|
11954
12156
|
resetRanges() {
|
|
@@ -11981,9 +12183,9 @@ const Ee = process.env.NODE_ENV === "development", Ta = E`<div class="tabulator-
|
|
|
11981
12183
|
return e == null || e === "";
|
|
11982
12184
|
}
|
|
11983
12185
|
};
|
|
11984
|
-
Je.moduleName = "selectRange", Je.moduleInitOrder = 1, Je.moduleExtensions =
|
|
11985
|
-
let
|
|
11986
|
-
function
|
|
12186
|
+
Je.moduleName = "selectRange", Je.moduleInitOrder = 1, Je.moduleExtensions = Da;
|
|
12187
|
+
let ui = Je;
|
|
12188
|
+
function Oa(n, e, t, i, s, o, r) {
|
|
11987
12189
|
const a = r.alignEmptyValues;
|
|
11988
12190
|
let l = 0;
|
|
11989
12191
|
if (!n && n !== 0)
|
|
@@ -12021,7 +12223,7 @@ function Ma(n, e, t, i, s, o, r) {
|
|
|
12021
12223
|
}
|
|
12022
12224
|
return (a === "top" && o === "desc" || a === "bottom" && o === "asc") && (l *= -1), l;
|
|
12023
12225
|
}
|
|
12024
|
-
function
|
|
12226
|
+
function Pa(n, e, t, i, s, o, r) {
|
|
12025
12227
|
const a = r.type || "length", l = r.alignEmptyValues;
|
|
12026
12228
|
let h = 0;
|
|
12027
12229
|
const c = this.table;
|
|
@@ -12069,11 +12271,11 @@ function ka(n, e, t, i, s, o, r) {
|
|
|
12069
12271
|
return a === "string" ? String(p(n)).toLowerCase().localeCompare(String(p(e)).toLowerCase()) : p(e) - p(n);
|
|
12070
12272
|
return (l === "top" && o === "desc" || l === "bottom" && o === "asc") && (h *= -1), h;
|
|
12071
12273
|
}
|
|
12072
|
-
function
|
|
12274
|
+
function Ha(n, e, t, i, s, o, r) {
|
|
12073
12275
|
return (n === !0 || n === "true" || n === "True" || n === 1 ? 1 : 0) - (e === !0 || e === "true" || e === "True" || e === 1 ? 1 : 0);
|
|
12074
12276
|
}
|
|
12075
|
-
const
|
|
12076
|
-
function
|
|
12277
|
+
const Aa = process.env.NODE_ENV === "development";
|
|
12278
|
+
function Fi(n, e, t, i, s, o, r) {
|
|
12077
12279
|
const { alignEmptyValues: a, format: l = "dd/MM/yyyy HH:mm:ss" } = r || {}, h = this.table.dependencyRegistry.lookup(
|
|
12078
12280
|
["luxon", "DateTime"],
|
|
12079
12281
|
"DateTime"
|
|
@@ -12090,17 +12292,17 @@ function zi(n, e, t, i, s, o, r) {
|
|
|
12090
12292
|
}
|
|
12091
12293
|
return (a === "top" && o === "desc" || a === "bottom" && o === "asc") && (c *= -1), c;
|
|
12092
12294
|
} else
|
|
12093
|
-
return
|
|
12295
|
+
return Aa && console.error("Sort Error - 'datetime' sorter is dependent on luxon.js"), 0;
|
|
12094
12296
|
}
|
|
12095
|
-
function
|
|
12297
|
+
function _a(n, e, t, i, s, o, r) {
|
|
12096
12298
|
const a = r ?? {};
|
|
12097
|
-
return a.format || (a.format = "dd/MM/yyyy"),
|
|
12299
|
+
return a.format || (a.format = "dd/MM/yyyy"), Fi.call(this, n, e, t, i, s, o, a);
|
|
12098
12300
|
}
|
|
12099
|
-
function
|
|
12301
|
+
function Na(n, e, t, i, s, o, r) {
|
|
12100
12302
|
const a = (c) => c === null || typeof c > "u" || c === "", l = a(n) ? 0 : 1, h = a(e) ? 0 : 1;
|
|
12101
12303
|
return l - h;
|
|
12102
12304
|
}
|
|
12103
|
-
function
|
|
12305
|
+
function Va(n, e, t, i, s, o, r) {
|
|
12104
12306
|
const a = r ?? {}, l = a.alignEmptyValues, h = a.decimalSeparator, c = a.thousandSeparator;
|
|
12105
12307
|
let d = 0, p = String(n), u = String(e);
|
|
12106
12308
|
c && (p = p.split(c).join(""), u = u.split(c).join("")), h && (p = p.split(h).join("."), u = u.split(h).join("."));
|
|
@@ -12113,7 +12315,7 @@ function Oa(n, e, t, i, s, o, r) {
|
|
|
12113
12315
|
return f - m;
|
|
12114
12316
|
return (l === "top" && o === "desc" || l === "bottom" && o === "asc") && (d *= -1), d;
|
|
12115
12317
|
}
|
|
12116
|
-
function
|
|
12318
|
+
function Ia(n, e, t, i, s, o, r = {}) {
|
|
12117
12319
|
const a = r.alignEmptyValues;
|
|
12118
12320
|
let l = 0, h;
|
|
12119
12321
|
const c = (d) => d == null || d === "";
|
|
@@ -12134,25 +12336,25 @@ function Pa(n, e, t, i, s, o, r = {}) {
|
|
|
12134
12336
|
}
|
|
12135
12337
|
return (a === "top" && o === "desc" || a === "bottom" && o === "asc") && (l *= -1), l;
|
|
12136
12338
|
}
|
|
12137
|
-
function
|
|
12339
|
+
function Ba(n, e, t, i, s, o, r) {
|
|
12138
12340
|
const a = r ?? {}, l = a.format ? a : { ...a, format: "HH:mm" };
|
|
12139
|
-
return
|
|
12341
|
+
return Fi.call(this, n, e, t, i, s, o, l);
|
|
12140
12342
|
}
|
|
12141
|
-
const
|
|
12142
|
-
alphanum:
|
|
12143
|
-
array:
|
|
12144
|
-
boolean:
|
|
12145
|
-
date:
|
|
12146
|
-
datetime:
|
|
12147
|
-
exists:
|
|
12148
|
-
number:
|
|
12149
|
-
string:
|
|
12150
|
-
time:
|
|
12151
|
-
},
|
|
12343
|
+
const Wa = {
|
|
12344
|
+
alphanum: Oa,
|
|
12345
|
+
array: Pa,
|
|
12346
|
+
boolean: Ha,
|
|
12347
|
+
date: _a,
|
|
12348
|
+
datetime: Fi,
|
|
12349
|
+
exists: Na,
|
|
12350
|
+
number: Va,
|
|
12351
|
+
string: Ia,
|
|
12352
|
+
time: Ba
|
|
12353
|
+
}, xs = process.env.NODE_ENV === "development", Ga = {
|
|
12152
12354
|
asc: "ascending",
|
|
12153
12355
|
desc: "descending",
|
|
12154
12356
|
none: "none"
|
|
12155
|
-
}, Te = class Te extends
|
|
12357
|
+
}, Te = class Te extends S {
|
|
12156
12358
|
// has the sort changed since last render
|
|
12157
12359
|
constructor(e) {
|
|
12158
12360
|
super(e), this.sortList = [], this.changed = !1, this.registerTableOption("sortMode", "local"), this.registerTableOption("initialSort", !1), this.registerTableOption("columnHeaderSortMulti", !0), this.registerTableOption("sortOrderReverse", !1), this.registerTableOption(
|
|
@@ -12187,7 +12389,7 @@ const Aa = {
|
|
|
12187
12389
|
let t = !1, i, s;
|
|
12188
12390
|
switch (typeof e.definition.sorter) {
|
|
12189
12391
|
case "string":
|
|
12190
|
-
e.definition.sorter && Te.sorters[e.definition.sorter] ? t = Te.sorters[e.definition.sorter] :
|
|
12392
|
+
e.definition.sorter && Te.sorters[e.definition.sorter] ? t = Te.sorters[e.definition.sorter] : xs && console.warn(
|
|
12191
12393
|
"Sort Error - No such sorter found: ",
|
|
12192
12394
|
e.definition.sorter
|
|
12193
12395
|
);
|
|
@@ -12224,7 +12426,7 @@ const Aa = {
|
|
|
12224
12426
|
}
|
|
12225
12427
|
break;
|
|
12226
12428
|
default:
|
|
12227
|
-
s.innerHTML =
|
|
12429
|
+
s.innerHTML = T(
|
|
12228
12430
|
this.table.options.headerSortElement || ""
|
|
12229
12431
|
);
|
|
12230
12432
|
}
|
|
@@ -12291,7 +12493,7 @@ const Aa = {
|
|
|
12291
12493
|
column: o,
|
|
12292
12494
|
dir: a
|
|
12293
12495
|
}), this.changed = !0;
|
|
12294
|
-
} else
|
|
12496
|
+
} else xs && console.warn(
|
|
12295
12497
|
"Sort Warning - Sort field does not exist and is being ignored: ",
|
|
12296
12498
|
s.column
|
|
12297
12499
|
);
|
|
@@ -12344,7 +12546,7 @@ const Aa = {
|
|
|
12344
12546
|
}
|
|
12345
12547
|
// set the column header sort direction
|
|
12346
12548
|
setColumnHeader(e, t) {
|
|
12347
|
-
e.modules.sort.dir = t, e.getElement().setAttribute("aria-sort",
|
|
12549
|
+
e.modules.sort.dir = t, e.getElement().setAttribute("aria-sort", Ga[t]), this.setColumnHeaderSortIcon(e, t);
|
|
12348
12550
|
}
|
|
12349
12551
|
setColumnHeaderSortIcon(e, t) {
|
|
12350
12552
|
const i = e.modules.sort.element;
|
|
@@ -12356,7 +12558,7 @@ const Aa = {
|
|
|
12356
12558
|
e.getComponent(),
|
|
12357
12559
|
t
|
|
12358
12560
|
);
|
|
12359
|
-
s instanceof Node ? i.appendChild(s) : typeof s == "string" && (i.innerHTML =
|
|
12561
|
+
s instanceof Node ? i.appendChild(s) : typeof s == "string" && (i.innerHTML = T(s));
|
|
12360
12562
|
}
|
|
12361
12563
|
}
|
|
12362
12564
|
// sort each item in sort list
|
|
@@ -12400,9 +12602,9 @@ const Aa = {
|
|
|
12400
12602
|
return 0;
|
|
12401
12603
|
}
|
|
12402
12604
|
};
|
|
12403
|
-
Te.moduleName = "sort", Te.sorters =
|
|
12404
|
-
let
|
|
12405
|
-
class
|
|
12605
|
+
Te.moduleName = "sort", Te.sorters = Wa;
|
|
12606
|
+
let pi = Te;
|
|
12607
|
+
class ja {
|
|
12406
12608
|
constructor(e, t) {
|
|
12407
12609
|
this.columnCount = e, this.rowCount = t, this.columnString = [], this.columns = [], this.rows = [];
|
|
12408
12610
|
}
|
|
@@ -12440,7 +12642,7 @@ class Na {
|
|
|
12440
12642
|
this.columnCount = e;
|
|
12441
12643
|
}
|
|
12442
12644
|
}
|
|
12443
|
-
class
|
|
12645
|
+
class Us {
|
|
12444
12646
|
constructor(e) {
|
|
12445
12647
|
return this._sheet = e, new Proxy(this, {
|
|
12446
12648
|
get: function(t, i) {
|
|
@@ -12489,9 +12691,9 @@ class js {
|
|
|
12489
12691
|
return this._sheet.setColumns(e);
|
|
12490
12692
|
}
|
|
12491
12693
|
}
|
|
12492
|
-
class
|
|
12694
|
+
class Rs extends W {
|
|
12493
12695
|
constructor(e, t) {
|
|
12494
|
-
super(e.table), this.spreadsheetManager = e, this.definition = t, this.title = this.definition.title || "", this.key = this.definition.key || this.definition.title || "", this.rowCount = this.definition.rows, this.columnCount = this.definition.columns, this.data = this.definition.data || [], this.element = null, this.isActive = !1, this.grid = new
|
|
12696
|
+
super(e.table), this.spreadsheetManager = e, this.definition = t, this.title = this.definition.title || "", this.key = this.definition.key || this.definition.title || "", this.rowCount = this.definition.rows, this.columnCount = this.definition.columns, this.data = this.definition.data || [], this.element = null, this.isActive = !1, this.grid = new ja(this.columnCount, this.rowCount), this.defaultColumnDefinition = {
|
|
12495
12697
|
headerHozAlign: "center",
|
|
12496
12698
|
headerSort: !1,
|
|
12497
12699
|
title: "",
|
|
@@ -12546,7 +12748,7 @@ class Cs extends W {
|
|
|
12546
12748
|
}
|
|
12547
12749
|
// #region Helper Functions
|
|
12548
12750
|
getComponent() {
|
|
12549
|
-
return new
|
|
12751
|
+
return new Us(this);
|
|
12550
12752
|
}
|
|
12551
12753
|
getDefinition() {
|
|
12552
12754
|
return {
|
|
@@ -12594,7 +12796,7 @@ class Cs extends W {
|
|
|
12594
12796
|
}
|
|
12595
12797
|
// #endregion
|
|
12596
12798
|
}
|
|
12597
|
-
const pe = process.env.NODE_ENV === "development",
|
|
12799
|
+
const pe = process.env.NODE_ENV === "development", qi = class qi extends S {
|
|
12598
12800
|
constructor(e) {
|
|
12599
12801
|
super(e), this.sheets = [], this.element = null, this.registerTableOption("spreadsheet", !1), this.registerTableOption("spreadsheetRows", 50), this.registerTableOption("spreadsheetColumns", 50), this.registerTableOption("spreadsheetColumnDefinition", {}), this.registerTableOption("spreadsheetOutputFull", !1), this.registerTableOption("spreadsheetData", !1), this.registerTableOption("spreadsheetSheets", !1), this.registerTableOption("spreadsheetSheetTabs", !1), this.registerTableOption("spreadsheetSheetTabsElement", !1), this.registerTableFunction("setSheets", this.setSheets.bind(this)), this.registerTableFunction("addSheet", this.addSheet.bind(this)), this.registerTableFunction("getSheets", this.getSheets.bind(this)), this.registerTableFunction(
|
|
12600
12802
|
"getSheetDefinitions",
|
|
@@ -12683,7 +12885,7 @@ Data: `,
|
|
|
12683
12885
|
columns: this.options("spreadsheetColumns") || 50,
|
|
12684
12886
|
rows: this.options("spreadsheetRows") || 50,
|
|
12685
12887
|
...e
|
|
12686
|
-
}, i = new
|
|
12888
|
+
}, i = new Rs(this, t);
|
|
12687
12889
|
return this.sheets.push(i), this.element && i.element && this.element.appendChild(i.element), i;
|
|
12688
12890
|
}
|
|
12689
12891
|
removeSheet(e) {
|
|
@@ -12692,7 +12894,7 @@ Data: `,
|
|
|
12692
12894
|
this.sheets.length > 1 ? t > -1 && (this.sheets.splice(t, 1), e.destroy(), this.activeSheet === e && (i = this.sheets[t - 1] || this.sheets[0], i ? this.loadSheet(i) : this.activeSheet = null)) : pe && console.warn("Unable to remove sheet, at least one sheet must be active");
|
|
12693
12895
|
}
|
|
12694
12896
|
lookupSheet(e) {
|
|
12695
|
-
return e ? e instanceof
|
|
12897
|
+
return e ? e instanceof Rs ? e : e instanceof Us ? e._sheet : this.sheets.find((t) => t.key === e) ?? null : this.activeSheet;
|
|
12696
12898
|
}
|
|
12697
12899
|
/**
|
|
12698
12900
|
* Public Functions
|
|
@@ -12749,9 +12951,9 @@ Data: `,
|
|
|
12749
12951
|
return t && this.loadSheet(t), !1;
|
|
12750
12952
|
}
|
|
12751
12953
|
};
|
|
12752
|
-
|
|
12753
|
-
let
|
|
12754
|
-
const
|
|
12954
|
+
qi.moduleName = "spreadsheet";
|
|
12955
|
+
let fi = qi;
|
|
12956
|
+
const Yi = class Yi extends S {
|
|
12755
12957
|
constructor(e) {
|
|
12756
12958
|
super(e), this.tooltipSubscriber = !1, this.headerSubscriber = !1, this.timeout = null, this.popupInstance = null, this.registerTableOption("tooltipDelay", 300), this.registerColumnOption("tooltip"), this.registerColumnOption("headerTooltip");
|
|
12757
12959
|
}
|
|
@@ -12792,11 +12994,11 @@ const Ji = class Ji extends T {
|
|
|
12792
12994
|
typeof i == "function" && (i = i(e, t.getComponent(), a)), i instanceof HTMLElement ? s = i : (s = document.createElement("div"), i === !0 && (t instanceof Ze ? i = t.value : t.definition.field ? this.langBind(
|
|
12793
12995
|
"columns|" + t.definition.field,
|
|
12794
12996
|
(l) => {
|
|
12795
|
-
s.innerHTML = i =
|
|
12997
|
+
s.innerHTML = i = T(
|
|
12796
12998
|
l || t.definition.title
|
|
12797
12999
|
);
|
|
12798
13000
|
}
|
|
12799
|
-
) : i = t.definition.title), s.innerHTML =
|
|
13001
|
+
) : i = t.definition.title), s.innerHTML = T(i)), (i || i === 0 || i === !1) && (s.classList.add("tabulator-tooltip"), s.addEventListener(
|
|
12800
13002
|
"mousemove",
|
|
12801
13003
|
(l) => l.preventDefault()
|
|
12802
13004
|
), this.popupInstance = this.popup(s), typeof o == "function" && this.popupInstance.renderCallback(o), r = this.popupInstance.containerEventCoords(e), this.popupInstance.show(r.x + 15, r.y + 15).hideOnBlur(() => {
|
|
@@ -12804,9 +13006,9 @@ const Ji = class Ji extends T {
|
|
|
12804
13006
|
}), this.dispatchExternal("tooltipOpened", t.getComponent()));
|
|
12805
13007
|
}
|
|
12806
13008
|
};
|
|
12807
|
-
|
|
12808
|
-
let
|
|
12809
|
-
const
|
|
13009
|
+
Yi.moduleName = "tooltip";
|
|
13010
|
+
let gi = Yi;
|
|
13011
|
+
const $a = {
|
|
12810
13012
|
// must be alphanumeric
|
|
12811
13013
|
alphanumeric: function(n, e, t) {
|
|
12812
13014
|
return e === "" || e === null || typeof e > "u" ? !0 : new RegExp(/^[a-z0-9]+$/i).test(e);
|
|
@@ -12886,7 +13088,7 @@ const Va = {
|
|
|
12886
13088
|
a !== s && e === o.getFieldValue(a) && (i = !1);
|
|
12887
13089
|
}), i;
|
|
12888
13090
|
}
|
|
12889
|
-
},
|
|
13091
|
+
}, Ua = process.env.NODE_ENV === "development", qe = class qe extends S {
|
|
12890
13092
|
constructor(e) {
|
|
12891
13093
|
super(e), this.invalidCells = [], this.registerTableOption("validationMode", "blocking"), this.registerColumnOption("validator"), this.registerTableFunction(
|
|
12892
13094
|
"getInvalidCells",
|
|
@@ -13017,7 +13219,7 @@ const Va = {
|
|
|
13017
13219
|
func: i,
|
|
13018
13220
|
params: t,
|
|
13019
13221
|
type: typeof e == "function" ? "function" : e
|
|
13020
|
-
} : (
|
|
13222
|
+
} : (Ua && console.warn(
|
|
13021
13223
|
"Validator Setup Error - No matching validator found:",
|
|
13022
13224
|
e
|
|
13023
13225
|
), !1);
|
|
@@ -13057,50 +13259,52 @@ const Va = {
|
|
|
13057
13259
|
}
|
|
13058
13260
|
}
|
|
13059
13261
|
};
|
|
13060
|
-
qe.moduleName = "validate", qe.validators =
|
|
13061
|
-
let
|
|
13262
|
+
qe.moduleName = "validate", qe.validators = $a;
|
|
13263
|
+
let mi = qe;
|
|
13062
13264
|
const St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13063
13265
|
__proto__: null,
|
|
13064
13266
|
AccessibilityModule: kt,
|
|
13065
|
-
AccessorModule:
|
|
13066
|
-
AjaxModule:
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13267
|
+
AccessorModule: zt,
|
|
13268
|
+
AjaxModule: Pt,
|
|
13269
|
+
ClickableCellModule: Dt,
|
|
13270
|
+
ClipboardModule: At,
|
|
13271
|
+
ColumnCalcsModule: _t,
|
|
13272
|
+
DataTreeModule: Vt,
|
|
13273
|
+
DownloadModule: It,
|
|
13274
|
+
EditModule: Bt,
|
|
13275
|
+
ExportModule: Wt,
|
|
13276
|
+
FilterModule: Gt,
|
|
13074
13277
|
FormatModule: at,
|
|
13075
|
-
FrozenColumnsModule:
|
|
13076
|
-
FrozenRowsModule:
|
|
13077
|
-
GroupRowsModule:
|
|
13078
|
-
HistoryModule:
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13278
|
+
FrozenColumnsModule: jt,
|
|
13279
|
+
FrozenRowsModule: $t,
|
|
13280
|
+
GroupRowsModule: Ut,
|
|
13281
|
+
HistoryModule: Kt,
|
|
13282
|
+
HoverMenuModule: Lt,
|
|
13283
|
+
HtmlTableImportModule: Xt,
|
|
13284
|
+
ImportModule: Jt,
|
|
13285
|
+
InteractionModule: qt,
|
|
13286
|
+
KeybindingsModule: Yt,
|
|
13287
|
+
MenuModule: Qt,
|
|
13288
|
+
MoveColumnsModule: Zt,
|
|
13289
|
+
MoveRowsModule: ei,
|
|
13290
|
+
MutatorModule: ti,
|
|
13291
|
+
PageModule: ii,
|
|
13292
|
+
PersistenceModule: si,
|
|
13293
|
+
PopupModule: oi,
|
|
13294
|
+
PrintModule: ri,
|
|
13295
|
+
ReactiveDataModule: ni,
|
|
13296
|
+
ResizeColumnsModule: ai,
|
|
13297
|
+
ResizeRowsModule: li,
|
|
13298
|
+
ResizeTableModule: hi,
|
|
13299
|
+
ResponsiveLayoutModule: ci,
|
|
13300
|
+
SelectRangeModule: ui,
|
|
13301
|
+
SelectRowModule: di,
|
|
13302
|
+
SortModule: pi,
|
|
13303
|
+
SpreadsheetModule: fi,
|
|
13304
|
+
TooltipModule: gi,
|
|
13305
|
+
ValidateModule: mi
|
|
13102
13306
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
13103
|
-
class
|
|
13307
|
+
class Ka extends wt {
|
|
13104
13308
|
constructor(e) {
|
|
13105
13309
|
super(e);
|
|
13106
13310
|
}
|
|
@@ -13120,7 +13324,7 @@ class Ba extends wt {
|
|
|
13120
13324
|
}
|
|
13121
13325
|
}
|
|
13122
13326
|
const Tt = process.env.NODE_ENV === "development";
|
|
13123
|
-
class
|
|
13327
|
+
class Xa extends wt {
|
|
13124
13328
|
constructor(e) {
|
|
13125
13329
|
super(e), this.leftCol = 0, this.rightCol = 0, this.scrollLeft = 0, this.vDomScrollPosLeft = 0, this.vDomScrollPosRight = 0, this.vDomPadLeft = 0, this.vDomPadRight = 0, this.fitDataColAvg = 0, this.windowBuffer = 200, this.visibleRowsCache = null, this.initialized = !1, this.isFitData = !1, this.columns = [];
|
|
13126
13330
|
}
|
|
@@ -13419,8 +13623,8 @@ class Wa extends wt {
|
|
|
13419
13623
|
}
|
|
13420
13624
|
}
|
|
13421
13625
|
}
|
|
13422
|
-
const
|
|
13423
|
-
class
|
|
13626
|
+
const Ja = process.env.NODE_ENV === "development";
|
|
13627
|
+
class Ks {
|
|
13424
13628
|
constructor(e, t, i = {}) {
|
|
13425
13629
|
this.registeredDefaults = {}, this.table = e, this.msgType = t, this.registeredDefaults = { ...i };
|
|
13426
13630
|
}
|
|
@@ -13431,19 +13635,19 @@ class $s {
|
|
|
13431
13635
|
const i = { ...this.registeredDefaults }, s = this.table.options.debugInvalidOptions || t.debugInvalidOptions === !0;
|
|
13432
13636
|
Object.assign(i, e);
|
|
13433
13637
|
for (const o in t)
|
|
13434
|
-
Object.hasOwn(t, o) && (Object.hasOwn(i, o) || (
|
|
13638
|
+
Object.hasOwn(t, o) && (Object.hasOwn(i, o) || (Ja && s && console.warn("Invalid " + this.msgType + " option:", o), i[o] = t[o]));
|
|
13435
13639
|
for (const o in i)
|
|
13436
13640
|
Object.hasOwn(i, o) && (o in t ? i[o] = t[o] : Array.isArray(i[o]) ? i[o] = Object.assign([], i[o]) : typeof i[o] == "object" && i[o] !== null ? i[o] = { ...i[o] } : (i[o] === void 0 || i[o] === null) && delete i[o]);
|
|
13437
13641
|
return i;
|
|
13438
13642
|
}
|
|
13439
13643
|
}
|
|
13440
|
-
const
|
|
13441
|
-
class
|
|
13644
|
+
const Ss = process.env.NODE_ENV === "development";
|
|
13645
|
+
class qa extends W {
|
|
13442
13646
|
constructor(e) {
|
|
13443
|
-
super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new
|
|
13647
|
+
super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new Ks(
|
|
13444
13648
|
this.table,
|
|
13445
13649
|
"column definition",
|
|
13446
|
-
|
|
13650
|
+
_s
|
|
13447
13651
|
), this.redrawBlock = !1, this.redrawBlockUpdate = null, this.renderer = null;
|
|
13448
13652
|
}
|
|
13449
13653
|
// //////////// Setup Functions /////////////////
|
|
@@ -13466,10 +13670,10 @@ class ja extends W {
|
|
|
13466
13670
|
initializeRenderer() {
|
|
13467
13671
|
let e;
|
|
13468
13672
|
const t = {
|
|
13469
|
-
basic:
|
|
13470
|
-
virtual:
|
|
13673
|
+
basic: Ka,
|
|
13674
|
+
virtual: Xa
|
|
13471
13675
|
};
|
|
13472
|
-
typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) :
|
|
13676
|
+
typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) : Ss && console.error(
|
|
13473
13677
|
"Unable to find matching renderer:",
|
|
13474
13678
|
this.table.options.renderHorizontal
|
|
13475
13679
|
);
|
|
@@ -13637,7 +13841,7 @@ class ja extends W {
|
|
|
13637
13841
|
if (typeof e == "object") {
|
|
13638
13842
|
if (e instanceof q)
|
|
13639
13843
|
return e;
|
|
13640
|
-
if (e instanceof
|
|
13844
|
+
if (e instanceof Ht)
|
|
13641
13845
|
return e._getSelf() || !1;
|
|
13642
13846
|
if (typeof HTMLElement < "u" && e instanceof HTMLElement)
|
|
13643
13847
|
return t = [], this.columns.forEach((s) => {
|
|
@@ -13673,7 +13877,7 @@ class ja extends W {
|
|
|
13673
13877
|
findColumnIndex(e) {
|
|
13674
13878
|
if (e === !1)
|
|
13675
13879
|
return !1;
|
|
13676
|
-
const t = e instanceof
|
|
13880
|
+
const t = e instanceof Ht ? e._getSelf() : e;
|
|
13677
13881
|
return t ? this.columnsByIndex.findIndex((i) => t === i) : !1;
|
|
13678
13882
|
}
|
|
13679
13883
|
// return all columns that are not groups
|
|
@@ -13746,7 +13950,7 @@ class ja extends W {
|
|
|
13746
13950
|
return;
|
|
13747
13951
|
}
|
|
13748
13952
|
if (e.hidden)
|
|
13749
|
-
|
|
13953
|
+
Ss && console.warn("Scroll Error - Column not visible"), o("Scroll Error - Column not visible");
|
|
13750
13954
|
else {
|
|
13751
13955
|
let r = 0;
|
|
13752
13956
|
const a = e.getLeftOffset();
|
|
@@ -13817,7 +14021,7 @@ class ja extends W {
|
|
|
13817
14021
|
this.element && D.elVisible(this.element) && this.verticalAlignHeaders(), e && (this.table.rowManager?.resetScroll(), this.table.rowManager?.reinitialize()), this.confirm("table-redrawing", e) || this.layoutRefresh(e || !1), this.dispatch("table-redraw", e), this.table.footerManager?.redraw();
|
|
13818
14022
|
}
|
|
13819
14023
|
}
|
|
13820
|
-
const
|
|
14024
|
+
const Ya = {
|
|
13821
14025
|
debugEventsExternal: !1,
|
|
13822
14026
|
// flag to console log events
|
|
13823
14027
|
debugEventsInternal: !1,
|
|
@@ -13877,7 +14081,7 @@ const $a = {
|
|
|
13877
14081
|
dataReceiveParams: {}
|
|
13878
14082
|
// dependencies: {},
|
|
13879
14083
|
};
|
|
13880
|
-
class
|
|
14084
|
+
class Qa extends W {
|
|
13881
14085
|
constructor(e) {
|
|
13882
14086
|
super(e), this.active = !1, this.element = this.createElement(), this.containerElement = this.createContainerElement(), this.external = !1;
|
|
13883
14087
|
}
|
|
@@ -13897,7 +14101,7 @@ class Ua extends W {
|
|
|
13897
14101
|
switch (typeof this.table.options.footerElement) {
|
|
13898
14102
|
case "string":
|
|
13899
14103
|
if (this.table.options.footerElement.startsWith("<"))
|
|
13900
|
-
this.containerElement.innerHTML =
|
|
14104
|
+
this.containerElement.innerHTML = T(
|
|
13901
14105
|
this.table.options.footerElement
|
|
13902
14106
|
);
|
|
13903
14107
|
else {
|
|
@@ -13935,7 +14139,7 @@ class Ua extends W {
|
|
|
13935
14139
|
this.dispatch("footer-redraw");
|
|
13936
14140
|
}
|
|
13937
14141
|
}
|
|
13938
|
-
class
|
|
14142
|
+
class Za extends wt {
|
|
13939
14143
|
constructor(e) {
|
|
13940
14144
|
super(e), this.scrollTop = 0, this.scrollLeft = 0, this.verticalFillMode = "fill";
|
|
13941
14145
|
}
|
|
@@ -13984,7 +14188,7 @@ class Ka extends wt {
|
|
|
13984
14188
|
return this.rows();
|
|
13985
14189
|
}
|
|
13986
14190
|
}
|
|
13987
|
-
class
|
|
14191
|
+
class el extends wt {
|
|
13988
14192
|
// total scroll height of virtual DOM
|
|
13989
14193
|
constructor(e) {
|
|
13990
14194
|
super(e), this.scrollTop = 0, this.scrollLeft = 0, this.vDomRowHeight = 20, this.vDomTop = 0, this.vDomBottom = 0, this.vDomScrollPosTop = 0, this.vDomScrollPosBottom = 0, this.vDomTopPad = 0, this.vDomBottomPad = 0, this.vDomMaxRenderChain = 90, this.vDomWindowBuffer = 0, this.vDomWindowMinTotalRows = 20, this.vDomWindowMinMarginRows = 5, this.vDomTopNewRows = [], this.vDomBottomNewRows = [], this.vDomScrollHeight = 0, this.verticalFillMode = "fill";
|
|
@@ -14089,7 +14293,7 @@ class Xa extends wt {
|
|
|
14089
14293
|
let r = 0, a = 0, l = 0, h = 0, c = 0, d = 0;
|
|
14090
14294
|
const p = this.rows(), u = p.length;
|
|
14091
14295
|
let f = 0, m, y, b = [], C = 0, x = 0;
|
|
14092
|
-
const H = this.table.rowManager?.fixedHeight ?? !1, R = this.table.element ? globalThis.getComputedStyle(this.table.element).getPropertyValue("--table-max-height").trim() : "",
|
|
14296
|
+
const H = this.table.rowManager?.fixedHeight ?? !1, R = this.table.element ? globalThis.getComputedStyle(this.table.element).getPropertyValue("--table-max-height").trim() : "", P = H || R !== "" && R !== "auto";
|
|
14093
14297
|
let N = this.elementVertical?.clientHeight ?? 0, V = this.table.options.rowHeight, Q = !0;
|
|
14094
14298
|
if (e = e || 0, i = i || 0, !e)
|
|
14095
14299
|
this.clear();
|
|
@@ -14108,7 +14312,7 @@ class Xa extends wt {
|
|
|
14108
14312
|
}
|
|
14109
14313
|
const ze = !this.table.initialized || !!t;
|
|
14110
14314
|
if (u && this.elementVertical && (D.elVisible(this.elementVertical) || ze)) {
|
|
14111
|
-
for (this.vDomTop = e, this.vDomBottom = e - 1,
|
|
14315
|
+
for (this.vDomTop = e, this.vDomBottom = e - 1, P ? (V && (x = N / V + this.vDomWindowBuffer / V), x = Math.max(
|
|
14112
14316
|
this.vDomWindowMinTotalRows,
|
|
14113
14317
|
Math.ceil(x)
|
|
14114
14318
|
)) : x = u; (x == u || a <= N + this.vDomWindowBuffer || C < this.vDomWindowMinTotalRows) && this.vDomBottom < u - 1; ) {
|
|
@@ -14125,7 +14329,7 @@ class Xa extends wt {
|
|
|
14125
14329
|
j.heightInitialized || j.setCellHeight();
|
|
14126
14330
|
}), b.forEach((j) => {
|
|
14127
14331
|
l = j.getHeight(), C < r ? c += l : a += l, l > this.vDomWindowBuffer && (this.vDomWindowBuffer = l * 2), C++;
|
|
14128
|
-
}), Q = this.table.rowManager?.adjustTableSize() || !1, N = this.elementVertical.clientHeight, Q &&
|
|
14332
|
+
}), Q = this.table.rowManager?.adjustTableSize() || !1, N = this.elementVertical.clientHeight, Q && P && (V = a / C, x = Math.max(
|
|
14129
14333
|
this.vDomWindowMinTotalRows,
|
|
14130
14334
|
Math.ceil(
|
|
14131
14335
|
N / V + this.vDomWindowBuffer / V
|
|
@@ -14230,8 +14434,8 @@ class Xa extends wt {
|
|
|
14230
14434
|
t.setCellHeight();
|
|
14231
14435
|
}
|
|
14232
14436
|
}
|
|
14233
|
-
const xe = process.env.NODE_ENV === "development",
|
|
14234
|
-
class
|
|
14437
|
+
const xe = process.env.NODE_ENV === "development", tl = E`<div class="tabulator-tableholder-wrapper"></div>`;
|
|
14438
|
+
class il extends W {
|
|
14235
14439
|
/**
|
|
14236
14440
|
* True when table has an explicit height (--table-height is set to a non-auto value (e.g. 100%, 500px));
|
|
14237
14441
|
* false when height is variable (--table-height is "auto" or unset).
|
|
@@ -14245,7 +14449,7 @@ class qa extends W {
|
|
|
14245
14449
|
}
|
|
14246
14450
|
// ////////////// Setup Functions /////////////////
|
|
14247
14451
|
createWrapperElement() {
|
|
14248
|
-
return k(
|
|
14452
|
+
return k(tl);
|
|
14249
14453
|
}
|
|
14250
14454
|
createHolderElement() {
|
|
14251
14455
|
const e = document.createElement("div");
|
|
@@ -14263,7 +14467,7 @@ class qa extends W {
|
|
|
14263
14467
|
const i = document.createElement("div");
|
|
14264
14468
|
if (i.classList.add("tabulator-placeholder"), typeof t == "string") {
|
|
14265
14469
|
const s = document.createElement("div");
|
|
14266
|
-
s.classList.add("tabulator-placeholder-contents"), s.innerHTML =
|
|
14470
|
+
s.classList.add("tabulator-placeholder-contents"), s.innerHTML = T(t), i.appendChild(s), this.placeholderContents = s;
|
|
14267
14471
|
} else typeof HTMLElement < "u" && t instanceof HTMLElement ? (i.appendChild(t), this.placeholderContents = t) : (xe && console.warn(
|
|
14268
14472
|
"Invalid placeholder provided, must be string or HTML Element",
|
|
14269
14473
|
t
|
|
@@ -14294,7 +14498,7 @@ class qa extends W {
|
|
|
14294
14498
|
if (typeof e == "object") {
|
|
14295
14499
|
if (e instanceof B)
|
|
14296
14500
|
return e;
|
|
14297
|
-
if (e instanceof
|
|
14501
|
+
if (e instanceof Di)
|
|
14298
14502
|
return e._getSelf() || !1;
|
|
14299
14503
|
if (typeof HTMLElement < "u" && e instanceof HTMLElement)
|
|
14300
14504
|
return this.findRowByElement(e, this.rows);
|
|
@@ -14676,8 +14880,8 @@ Data: `,
|
|
|
14676
14880
|
initializeRenderer() {
|
|
14677
14881
|
let e;
|
|
14678
14882
|
const t = {
|
|
14679
|
-
basic:
|
|
14680
|
-
virtual:
|
|
14883
|
+
basic: Za,
|
|
14884
|
+
virtual: el
|
|
14681
14885
|
};
|
|
14682
14886
|
typeof this.table.options.renderVertical == "string" ? e = t[this.table.options.renderVertical] : e = this.table.options.renderVertical, e ? (this.renderMode = this.table.options.renderVertical, this.renderer = new e(this.table, this.element, this.tableElement), this.renderer?.initialize()) : xe && console.error(
|
|
14683
14887
|
"Unable to find matching renderer:",
|
|
@@ -14807,7 +15011,7 @@ Data: `,
|
|
|
14807
15011
|
this.element.dispatchEvent(new Event("scroll"));
|
|
14808
15012
|
}
|
|
14809
15013
|
}
|
|
14810
|
-
class
|
|
15014
|
+
class sl extends W {
|
|
14811
15015
|
constructor(e) {
|
|
14812
15016
|
super(e), this.type = null, this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.element.appendChild(this.msgElement);
|
|
14813
15017
|
}
|
|
@@ -14828,20 +15032,20 @@ class Ya extends W {
|
|
|
14828
15032
|
this.msgElement.removeChild(this.msgElement.firstChild);
|
|
14829
15033
|
this.element.classList.add(this._typeClass()), this.msgElement.classList.add(this._typeClass());
|
|
14830
15034
|
let i;
|
|
14831
|
-
typeof e == "function" ? i = e() : i = e, i instanceof HTMLElement ? this.msgElement.appendChild(i) : this.msgElement.innerHTML =
|
|
15035
|
+
typeof e == "function" ? i = e() : i = e, i instanceof HTMLElement ? this.msgElement.appendChild(i) : this.msgElement.innerHTML = T(String(i)), this.table.element.appendChild(this.element);
|
|
14832
15036
|
}
|
|
14833
15037
|
}
|
|
14834
15038
|
clear() {
|
|
14835
15039
|
this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element.classList.remove(this._typeClass()), this.msgElement.classList.remove(this._typeClass()), this.type = null;
|
|
14836
15040
|
}
|
|
14837
15041
|
}
|
|
14838
|
-
const
|
|
14839
|
-
class
|
|
15042
|
+
const Ts = process.env.NODE_ENV === "development";
|
|
15043
|
+
class ol {
|
|
14840
15044
|
constructor(e) {
|
|
14841
15045
|
this.bindings = {}, this.table = e;
|
|
14842
15046
|
}
|
|
14843
15047
|
bind(e, t, i) {
|
|
14844
|
-
this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ?
|
|
15048
|
+
this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ? Ts && console.warn(
|
|
14845
15049
|
"Unable to bind component handler, a matching function name is already bound",
|
|
14846
15050
|
e,
|
|
14847
15051
|
t,
|
|
@@ -14852,7 +15056,7 @@ class Qa {
|
|
|
14852
15056
|
if (typeof i == "string") {
|
|
14853
15057
|
if (this.bindings[e]?.[i] && typeof this.bindings[e][i].bind == "function")
|
|
14854
15058
|
return this.bindings[e][i].bind(null, t);
|
|
14855
|
-
|
|
15059
|
+
Ts && i !== "then" && !i.startsWith("_") && this.table.options.debugInvalidComponentFuncs && console.error(
|
|
14856
15060
|
"The " + e + " component does not have a " + i + " function, have you checked that you have the correct Tabulator module installed?"
|
|
14857
15061
|
);
|
|
14858
15062
|
}
|
|
@@ -14983,9 +15187,9 @@ const ot = process.env.NODE_ENV === "development", dt = class dt extends W {
|
|
|
14983
15187
|
}
|
|
14984
15188
|
};
|
|
14985
15189
|
dt.DEBOUNCE_DELAY = 500;
|
|
14986
|
-
let
|
|
14987
|
-
const
|
|
14988
|
-
class
|
|
15190
|
+
let bi = dt;
|
|
15191
|
+
const rl = process.env.NODE_ENV === "development";
|
|
15192
|
+
class nl extends W {
|
|
14989
15193
|
constructor(e) {
|
|
14990
15194
|
super(e), this.deps = {}, this.props = {};
|
|
14991
15195
|
}
|
|
@@ -15020,20 +15224,20 @@ class el extends W {
|
|
|
15020
15224
|
return this.deps[e] ? i = this.deps[e] : globalThis[e] ? (this.deps[e] = globalThis[e], i = this.deps[e]) : t || this.error(e), i;
|
|
15021
15225
|
}
|
|
15022
15226
|
error(e) {
|
|
15023
|
-
|
|
15227
|
+
rl && console.error(
|
|
15024
15228
|
"Unable to find dependency",
|
|
15025
15229
|
e,
|
|
15026
15230
|
"Please check documentation and ensure you have imported the required library into your project"
|
|
15027
15231
|
);
|
|
15028
15232
|
}
|
|
15029
15233
|
}
|
|
15030
|
-
const
|
|
15031
|
-
class
|
|
15234
|
+
const al = process.env.NODE_ENV === "development";
|
|
15235
|
+
class ll extends W {
|
|
15032
15236
|
constructor(e) {
|
|
15033
15237
|
super(e);
|
|
15034
15238
|
}
|
|
15035
15239
|
_warnUser(...e) {
|
|
15036
|
-
this.options("debugDeprecation") &&
|
|
15240
|
+
this.options("debugDeprecation") && al && console.warn(...e);
|
|
15037
15241
|
}
|
|
15038
15242
|
check(e, t, i) {
|
|
15039
15243
|
if (this.options(e) === void 0 || this.options(e) === null)
|
|
@@ -15066,7 +15270,7 @@ class il extends W {
|
|
|
15066
15270
|
}
|
|
15067
15271
|
}
|
|
15068
15272
|
const Mt = process.env.NODE_ENV === "development";
|
|
15069
|
-
class
|
|
15273
|
+
class hl {
|
|
15070
15274
|
constructor(e, t, i) {
|
|
15071
15275
|
this.events = {}, this.subscriptionNotifiers = {}, this.table = e, this.events = {}, this.optionsList = t || {}, this.subscriptionNotifiers = {}, this.dispatch = i ? this._debugDispatch.bind(this) : this._dispatch.bind(this), this.debug = i;
|
|
15072
15276
|
}
|
|
@@ -15119,8 +15323,8 @@ class sl {
|
|
|
15119
15323
|
return Mt && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, ...t), this._dispatch(e, ...t);
|
|
15120
15324
|
}
|
|
15121
15325
|
}
|
|
15122
|
-
const
|
|
15123
|
-
class
|
|
15326
|
+
const cl = process.env.NODE_ENV === "development";
|
|
15327
|
+
class dl extends W {
|
|
15124
15328
|
constructor(e) {
|
|
15125
15329
|
super(e), this.el = null, this.abortClasses = ["tabulator-headers", "tabulator-table"], this.previousTargets = {}, this.listeners = [
|
|
15126
15330
|
"click",
|
|
@@ -15271,7 +15475,7 @@ class rl extends W {
|
|
|
15271
15475
|
s.components.includes("column") && (h = this.table.columnManager?.findColumn(c));
|
|
15272
15476
|
break;
|
|
15273
15477
|
case "cell":
|
|
15274
|
-
s.components.includes("cell") && (o.row instanceof B ? h = o.row.findCell(c) :
|
|
15478
|
+
s.components.includes("cell") && (o.row instanceof B ? h = o.row.findCell(c) : cl && t.row && console.warn(
|
|
15275
15479
|
"Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"
|
|
15276
15480
|
));
|
|
15277
15481
|
break;
|
|
@@ -15302,7 +15506,7 @@ class rl extends W {
|
|
|
15302
15506
|
}
|
|
15303
15507
|
}
|
|
15304
15508
|
const $e = process.env.NODE_ENV === "development";
|
|
15305
|
-
class
|
|
15509
|
+
class ul {
|
|
15306
15510
|
constructor(e) {
|
|
15307
15511
|
this.events = {}, this.subscriptionNotifiers = {}, this.events = {}, this.subscriptionNotifiers = {}, this.dispatch = e ? this._debugDispatch.bind(this) : this._dispatch.bind(this), this.chain = e ? this._debugChain.bind(this) : this._chain.bind(this), this.confirm = e ? this._debugConfirm.bind(this) : this._confirm.bind(this), this.debug = e;
|
|
15308
15512
|
}
|
|
@@ -15375,7 +15579,7 @@ class nl {
|
|
|
15375
15579
|
return $e && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, t), this._confirm(e, t);
|
|
15376
15580
|
}
|
|
15377
15581
|
}
|
|
15378
|
-
function
|
|
15582
|
+
function pl(n) {
|
|
15379
15583
|
let e = this.table.element?.clientWidth || 0;
|
|
15380
15584
|
const t = this.table.columnManager?.contentsElement;
|
|
15381
15585
|
if (t) {
|
|
@@ -15391,7 +15595,7 @@ function al(n) {
|
|
|
15391
15595
|
}
|
|
15392
15596
|
function f(m, y, b, C) {
|
|
15393
15597
|
const x = [];
|
|
15394
|
-
let H = 0, R = 0, G = 0,
|
|
15598
|
+
let H = 0, R = 0, G = 0, P = r, N = 0, V = 0;
|
|
15395
15599
|
const Q = [];
|
|
15396
15600
|
function ze(M) {
|
|
15397
15601
|
return b * (M.column.definition.widthGrow || 1);
|
|
@@ -15401,7 +15605,7 @@ function al(n) {
|
|
|
15401
15605
|
}
|
|
15402
15606
|
return m.forEach((M) => {
|
|
15403
15607
|
const Fe = C ? j(M) : ze(M);
|
|
15404
|
-
M.column.minWidth && M.column.minWidth >= Fe ? x.push(M) : M.column.maxWidth && M.column.maxWidth < Fe ? (M.width = M.column.maxWidth, y -= M.column.maxWidth,
|
|
15608
|
+
M.column.minWidth && M.column.minWidth >= Fe ? x.push(M) : M.column.maxWidth && M.column.maxWidth < Fe ? (M.width = M.column.maxWidth, y -= M.column.maxWidth, P -= C ? M.column.definition.widthShrink || 1 : M.column.definition.widthGrow || 1, P && (b = Math.floor(y / P))) : (Q.push(M), V += C ? M.column.definition.widthShrink || 1 : M.column.definition.widthGrow || 1);
|
|
15405
15609
|
}), x.length ? (x.forEach((M) => {
|
|
15406
15610
|
H += C ? M.width - (M.column.minWidth ?? 0) : M.column.minWidth ?? 0, M.width = M.column.minWidth ?? 0;
|
|
15407
15611
|
}), R = y - H, G = V ? Math.floor(R / V) : R, N = f(
|
|
@@ -15439,15 +15643,15 @@ function al(n) {
|
|
|
15439
15643
|
m.column.setWidth(m.width);
|
|
15440
15644
|
});
|
|
15441
15645
|
}
|
|
15442
|
-
async function
|
|
15646
|
+
async function fl(n, e) {
|
|
15443
15647
|
e && this.table.columnManager?.renderer && await this.table.columnManager.renderer.reinitializeColumnWidths(n), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
15444
15648
|
}
|
|
15445
|
-
async function
|
|
15649
|
+
async function Ms(n) {
|
|
15446
15650
|
for (const e of n)
|
|
15447
15651
|
await e.reinitializeWidth();
|
|
15448
15652
|
this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
15449
15653
|
}
|
|
15450
|
-
async function
|
|
15654
|
+
async function gl(n) {
|
|
15451
15655
|
let e = 0, t = this.table.element?.clientWidth || 0;
|
|
15452
15656
|
const i = this.table.columnManager?.contentsElement;
|
|
15453
15657
|
if (i) {
|
|
@@ -15460,20 +15664,20 @@ async function hl(n) {
|
|
|
15460
15664
|
a.widthFixed || await a.reinitializeWidth(), (this.table.options.responsiveLayout ? a.modules.responsive.visible : !a.hidden) && (r = a), a.hidden || (e += a.getWidth());
|
|
15461
15665
|
r ? (o = s - e + r.getWidth(), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && (r.setWidth(0), this.table.modules.responsiveLayout?.update()), o > 0 ? r.setWidth(o) : await r.reinitializeWidth()) : this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
15462
15666
|
}
|
|
15463
|
-
const
|
|
15464
|
-
fitColumns:
|
|
15465
|
-
fitData:
|
|
15466
|
-
fitDataFill:
|
|
15467
|
-
fitDataStretch:
|
|
15468
|
-
fitDataTable:
|
|
15469
|
-
},
|
|
15667
|
+
const ml = {
|
|
15668
|
+
fitColumns: pl,
|
|
15669
|
+
fitData: fl,
|
|
15670
|
+
fitDataFill: Ms,
|
|
15671
|
+
fitDataStretch: gl,
|
|
15672
|
+
fitDataTable: Ms
|
|
15673
|
+
}, bl = process.env.NODE_ENV === "development", Me = class Me extends S {
|
|
15470
15674
|
constructor(e) {
|
|
15471
15675
|
super(e), this.mode = null, this.registerTableOption("layout", "fitData"), this.registerTableOption("layoutColumnsOnNewData", !1), this.registerColumnOption("widthGrow"), this.registerColumnOption("widthShrink");
|
|
15472
15676
|
}
|
|
15473
15677
|
// initialize layout system
|
|
15474
15678
|
initialize() {
|
|
15475
15679
|
const e = this.table.options.layout;
|
|
15476
|
-
e && Me.modes[e] ? this.mode = e : (
|
|
15680
|
+
e && Me.modes[e] ? this.mode = e : (bl && console.warn(
|
|
15477
15681
|
"Layout Error - invalid mode set, defaulting to 'fitData' : " + e
|
|
15478
15682
|
), this.mode = "fitData"), this.table.element.setAttribute("tabulator-layout", this.mode), this.subscribe("column-init", this.initializeColumn.bind(this));
|
|
15479
15683
|
}
|
|
@@ -15497,9 +15701,9 @@ const cl = {
|
|
|
15497
15701
|
), t && this.table.rowManager?.normalizeHeight(!0), this.dispatch("layout-refreshed");
|
|
15498
15702
|
}
|
|
15499
15703
|
};
|
|
15500
|
-
Me.moduleName = "layout", Me.modes =
|
|
15501
|
-
let
|
|
15502
|
-
const
|
|
15704
|
+
Me.moduleName = "layout", Me.modes = ml;
|
|
15705
|
+
let wi = Me;
|
|
15706
|
+
const wl = {
|
|
15503
15707
|
default: {
|
|
15504
15708
|
columns: {},
|
|
15505
15709
|
data: {
|
|
@@ -15535,7 +15739,7 @@ const ul = {
|
|
|
15535
15739
|
prev_title: "Prev Page"
|
|
15536
15740
|
}
|
|
15537
15741
|
}
|
|
15538
|
-
},
|
|
15742
|
+
}, ks = process.env.NODE_ENV === "development", Ye = class Ye extends S {
|
|
15539
15743
|
constructor(e) {
|
|
15540
15744
|
super(e), this.locale = "default", this.lang = !1, this.bindings = {}, this.langList = {}, this.registerTableOption("locale", !1), this.registerTableOption("langs", {});
|
|
15541
15745
|
}
|
|
@@ -15569,11 +15773,11 @@ const ul = {
|
|
|
15569
15773
|
};
|
|
15570
15774
|
if (t && !this.langList[t]) {
|
|
15571
15775
|
const s = t.split("-")[0];
|
|
15572
|
-
this.langList[s] ? (
|
|
15776
|
+
this.langList[s] ? (ks && console.warn(
|
|
15573
15777
|
"Localization Error - Exact matching locale not found, using closest match: ",
|
|
15574
15778
|
t,
|
|
15575
15779
|
s
|
|
15576
|
-
), t = s) : (
|
|
15780
|
+
), t = s) : (ks && console.warn(
|
|
15577
15781
|
"Localization Error - Matching locale not found, using default: ",
|
|
15578
15782
|
t
|
|
15579
15783
|
), t = "default");
|
|
@@ -15615,9 +15819,9 @@ const ul = {
|
|
|
15615
15819
|
});
|
|
15616
15820
|
}
|
|
15617
15821
|
};
|
|
15618
|
-
Ye.moduleName = "localize", Ye.langs =
|
|
15619
|
-
let
|
|
15620
|
-
const
|
|
15822
|
+
Ye.moduleName = "localize", Ye.langs = wl;
|
|
15823
|
+
let vi = Ye;
|
|
15824
|
+
const Ds = process.env.NODE_ENV === "development", Qi = class Qi extends S {
|
|
15621
15825
|
constructor(e) {
|
|
15622
15826
|
super(e);
|
|
15623
15827
|
}
|
|
@@ -15634,7 +15838,7 @@ const Ts = process.env.NODE_ENV === "development", qi = class qi extends T {
|
|
|
15634
15838
|
const o = this.getConnections(e);
|
|
15635
15839
|
o.forEach((r) => {
|
|
15636
15840
|
r.tableComms(this.table.element, t, i, s);
|
|
15637
|
-
}), !o.length && e &&
|
|
15841
|
+
}), !o.length && e && Ds && console.warn(
|
|
15638
15842
|
"Table Connection Error - No tables matching selector found",
|
|
15639
15843
|
e
|
|
15640
15844
|
);
|
|
@@ -15642,17 +15846,17 @@ const Ts = process.env.NODE_ENV === "development", qi = class qi extends T {
|
|
|
15642
15846
|
receive(e, t, i, s) {
|
|
15643
15847
|
if (this.table.modExists(t))
|
|
15644
15848
|
return this.table.modules[t]?.commsReceived?.(e, i, s);
|
|
15645
|
-
|
|
15849
|
+
Ds && console.warn("Inter-table Comms Error - no such module:", t);
|
|
15646
15850
|
}
|
|
15647
15851
|
};
|
|
15648
|
-
|
|
15649
|
-
let
|
|
15650
|
-
const
|
|
15852
|
+
Qi.moduleName = "comms";
|
|
15853
|
+
let yi = Qi;
|
|
15854
|
+
const vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15651
15855
|
__proto__: null,
|
|
15652
|
-
CommsModule:
|
|
15653
|
-
LayoutModule:
|
|
15654
|
-
LocalizeModule:
|
|
15655
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
15856
|
+
CommsModule: yi,
|
|
15857
|
+
LayoutModule: wi,
|
|
15858
|
+
LocalizeModule: vi
|
|
15859
|
+
}, Symbol.toStringTag, { value: "Module" })), yl = process.env.NODE_ENV === "development", ee = class ee {
|
|
15656
15860
|
static findTable(e) {
|
|
15657
15861
|
const t = ee.registry.lookupTable(e, !0);
|
|
15658
15862
|
return Array.isArray(t) && !t.length ? !1 : t;
|
|
@@ -15673,7 +15877,7 @@ ee.registry = {
|
|
|
15673
15877
|
} else typeof HTMLElement < "u" && e instanceof HTMLElement || e instanceof ee ? (o = ee.registry.matchElement(e), o && i.push(o)) : Array.isArray(e) ? e.forEach((r) => {
|
|
15674
15878
|
const a = ee.registry.lookupTable(r, !0);
|
|
15675
15879
|
i.push(...a);
|
|
15676
|
-
}) :
|
|
15880
|
+
}) : yl && !t && console.warn("Table Connection Error - Invalid Selector", e);
|
|
15677
15881
|
return i;
|
|
15678
15882
|
},
|
|
15679
15883
|
matchElement(e) {
|
|
@@ -15684,13 +15888,13 @@ ee.registry = {
|
|
|
15684
15888
|
},
|
|
15685
15889
|
tables: []
|
|
15686
15890
|
};
|
|
15687
|
-
let
|
|
15688
|
-
const rt = process.env.NODE_ENV === "development", L = class L extends
|
|
15891
|
+
let Ci = ee;
|
|
15892
|
+
const rt = process.env.NODE_ENV === "development", L = class L extends Ci {
|
|
15689
15893
|
constructor() {
|
|
15690
15894
|
super(), this.modulesCore = [], this.modulesRegular = [];
|
|
15691
15895
|
}
|
|
15692
15896
|
static initializeModuleBinder(e) {
|
|
15693
|
-
L.modulesRegistered || (L.modulesRegistered = !0, L._registerModules(
|
|
15897
|
+
L.modulesRegistered || (L.modulesRegistered = !0, L._registerModules(vl, !0), e && L._registerModules(e));
|
|
15694
15898
|
}
|
|
15695
15899
|
static _extendModule(e, t, i) {
|
|
15696
15900
|
if (L.moduleBindings[e]) {
|
|
@@ -15771,8 +15975,8 @@ const rt = process.env.NODE_ENV === "development", L = class L extends vi {
|
|
|
15771
15975
|
}
|
|
15772
15976
|
};
|
|
15773
15977
|
L.moduleBindings = {}, L.moduleExtensions = {}, L.modulesRegistered = !1, L.defaultModules = !1;
|
|
15774
|
-
let
|
|
15775
|
-
const z = process.env.NODE_ENV === "development", ce = class ce extends
|
|
15978
|
+
let Ei = L;
|
|
15979
|
+
const z = process.env.NODE_ENV === "development", ce = class ce extends Ei {
|
|
15776
15980
|
static extendModule(...e) {
|
|
15777
15981
|
ce.initializeModuleBinder(), ce._extendModule(...e);
|
|
15778
15982
|
}
|
|
@@ -15780,7 +15984,7 @@ const z = process.env.NODE_ENV === "development", ce = class ce extends yi {
|
|
|
15780
15984
|
ce.initializeModuleBinder(), ce._registerModule(...e);
|
|
15781
15985
|
}
|
|
15782
15986
|
constructor(e, t, i) {
|
|
15783
|
-
super(), ce.initializeModuleBinder(i), this.options = {}, this.columnManager = null, this.rowManager = null, this.footerManager = null, this.alertManager = null, this.vdomHoz = null, this.externalEvents = null, this.eventBus = null, this.interactionMonitor = !1, this.browser = "", this.browserSlow = !1, this.browserMobile = !1, this.rtl = !1, this.originalElement = null, this.componentFunctionBinder = new
|
|
15987
|
+
super(), ce.initializeModuleBinder(i), this.options = {}, this.columnManager = null, this.rowManager = null, this.footerManager = null, this.alertManager = null, this.vdomHoz = null, this.externalEvents = null, this.eventBus = null, this.interactionMonitor = !1, this.browser = "", this.browserSlow = !1, this.browserMobile = !1, this.rtl = !1, this.originalElement = null, this.componentFunctionBinder = new ol(this), this.dataLoader = null, this.modules = {}, this.modulesCore = [], this.modulesRegular = [], this.deprecationAdvisor = new ll(this), this.optionsList = new Ks(this, "table constructor"), this.dependencyRegistry = new nl(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(e) && (this.initializeCoreSystems(t), setTimeout(() => {
|
|
15784
15988
|
this._create();
|
|
15785
15989
|
})), this.constructor.registry.register(this);
|
|
15786
15990
|
}
|
|
@@ -15800,11 +16004,11 @@ const z = process.env.NODE_ENV === "development", ce = class ce extends yi {
|
|
|
15800
16004
|
), !1;
|
|
15801
16005
|
}
|
|
15802
16006
|
initializeCoreSystems(e) {
|
|
15803
|
-
this.columnManager = new
|
|
16007
|
+
this.columnManager = new qa(this), this.rowManager = new il(this), this.footerManager = new Qa(this), this.dataLoader = new bi(this), this.alertManager = new sl(this), this.toolbar = e?.toolbarElement, this._bindModules(), this.options = this.optionsList.generate(ce.defaultOptions, e), this._clearObjectPointers(), this._mapDeprecatedFunctionality(), this.externalEvents = new hl(
|
|
15804
16008
|
this,
|
|
15805
16009
|
this.options,
|
|
15806
16010
|
this.options.debugEventsExternal
|
|
15807
|
-
), this.eventBus = new
|
|
16011
|
+
), this.eventBus = new ul(this.options.debugEventsInternal), this.interactionMonitor = new dl(this), this.dataLoader.initialize(), this.footerManager.initialize(), this.dependencyRegistry.initialize();
|
|
15808
16012
|
}
|
|
15809
16013
|
// convert deprecated functionality to new functions
|
|
15810
16014
|
_mapDeprecatedFunctionality() {
|
|
@@ -16170,9 +16374,9 @@ const z = process.env.NODE_ENV === "development", ce = class ce extends yi {
|
|
|
16170
16374
|
return !t && z && console.error("Tabulator module not installed: " + e), t;
|
|
16171
16375
|
}
|
|
16172
16376
|
};
|
|
16173
|
-
ce.defaultOptions =
|
|
16377
|
+
ce.defaultOptions = Ya;
|
|
16174
16378
|
let ve = ce;
|
|
16175
|
-
class
|
|
16379
|
+
class Cl extends ve {
|
|
16176
16380
|
static extendModule(...e) {
|
|
16177
16381
|
ve.initializeModuleBinder(St), ve._extendModule(...e);
|
|
16178
16382
|
}
|
|
@@ -16184,7 +16388,7 @@ class Ms extends ve {
|
|
|
16184
16388
|
}
|
|
16185
16389
|
// #endregion
|
|
16186
16390
|
}
|
|
16187
|
-
class
|
|
16391
|
+
class Zh {
|
|
16188
16392
|
constructor(e) {
|
|
16189
16393
|
this.type = e, this.element = this._createElement();
|
|
16190
16394
|
}
|
|
@@ -16224,7 +16428,7 @@ class Uh {
|
|
|
16224
16428
|
rendered() {
|
|
16225
16429
|
}
|
|
16226
16430
|
}
|
|
16227
|
-
class
|
|
16431
|
+
class El {
|
|
16228
16432
|
#e;
|
|
16229
16433
|
#i;
|
|
16230
16434
|
#s = /* @__PURE__ */ new Set();
|
|
@@ -16290,11 +16494,11 @@ class gl {
|
|
|
16290
16494
|
return t.includes("-") && !customElements.get(t);
|
|
16291
16495
|
}
|
|
16292
16496
|
}
|
|
16293
|
-
const
|
|
16294
|
-
var
|
|
16295
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16497
|
+
const xl = O`.table-row-actions__button::part(label),.table-row-actions__dropdown__trigger::part(label){padding:0 var(--cx-spacing-x-small)}.table-row-actions__menu-item::part(checked-icon){display:none}`;
|
|
16498
|
+
var Rl = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, Le = (n, e, t, i) => {
|
|
16499
|
+
for (var s = i > 1 ? void 0 : i ? Sl(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16296
16500
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16297
|
-
return i && s &&
|
|
16501
|
+
return i && s && Rl(e, t, s), s;
|
|
16298
16502
|
};
|
|
16299
16503
|
let ne = class extends Ie {
|
|
16300
16504
|
constructor() {
|
|
@@ -16304,7 +16508,7 @@ let ne = class extends Ie {
|
|
|
16304
16508
|
return this;
|
|
16305
16509
|
}
|
|
16306
16510
|
handleActionChange() {
|
|
16307
|
-
this.groupedDropdownItems =
|
|
16511
|
+
this.groupedDropdownItems = ro(
|
|
16308
16512
|
this.action?.options?.dropdownItems ?? [],
|
|
16309
16513
|
"section"
|
|
16310
16514
|
), this.sections = Object.keys(this.groupedDropdownItems);
|
|
@@ -16335,7 +16539,7 @@ let ne = class extends Ie {
|
|
|
16335
16539
|
}
|
|
16336
16540
|
render() {
|
|
16337
16541
|
if (!this.action)
|
|
16338
|
-
return
|
|
16542
|
+
return so;
|
|
16339
16543
|
const n = this.action?.icon ?? "more_horiz";
|
|
16340
16544
|
return E`<cx-dropdown hoist><cx-tooltip slot="trigger" hoist content=${this.action?.tooltip} ?disabled=${!this.action?.tooltip?.trim()}><cx-button class="table-row-actions__dropdown__trigger" aria-label=${this.action?.tooltip ?? this.action?.name ?? this.localize.term("more")}><cx-icon name=${n} style=${De(this.action.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip><cx-menu>${Ne(
|
|
16341
16545
|
this.sections,
|
|
@@ -16354,8 +16558,8 @@ ne.dependencies = {
|
|
|
16354
16558
|
"cx-icon": ft,
|
|
16355
16559
|
"cx-menu": mt,
|
|
16356
16560
|
"cx-menu-item": bt,
|
|
16357
|
-
"cx-menu-section":
|
|
16358
|
-
"cx-tooltip":
|
|
16561
|
+
"cx-menu-section": po,
|
|
16562
|
+
"cx-tooltip": Ti
|
|
16359
16563
|
};
|
|
16360
16564
|
Le([
|
|
16361
16565
|
g()
|
|
@@ -16382,10 +16586,10 @@ Le([
|
|
|
16382
16586
|
ne = Le([
|
|
16383
16587
|
Be("cx-table-row-actions-dropdown")
|
|
16384
16588
|
], ne);
|
|
16385
|
-
var
|
|
16386
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16589
|
+
var Tl = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, Ct = (n, e, t, i) => {
|
|
16590
|
+
for (var s = i > 1 ? void 0 : i ? Ml(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16387
16591
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16388
|
-
return i && s &&
|
|
16592
|
+
return i && s && Tl(e, t, s), s;
|
|
16389
16593
|
};
|
|
16390
16594
|
let ye = class extends Ie {
|
|
16391
16595
|
constructor() {
|
|
@@ -16411,7 +16615,7 @@ let ye = class extends Ie {
|
|
|
16411
16615
|
return E`<cx-space spacing="2x-small">${Ne(
|
|
16412
16616
|
this.actions,
|
|
16413
16617
|
(n) => n.name,
|
|
16414
|
-
(n) =>
|
|
16618
|
+
(n) => uo(n.type ?? "button", [
|
|
16415
16619
|
[
|
|
16416
16620
|
"button",
|
|
16417
16621
|
() => this.renderButton(n)
|
|
@@ -16424,13 +16628,13 @@ let ye = class extends Ie {
|
|
|
16424
16628
|
)}</cx-space>`;
|
|
16425
16629
|
}
|
|
16426
16630
|
};
|
|
16427
|
-
ye.styles = [Qe,
|
|
16631
|
+
ye.styles = [Qe, xl];
|
|
16428
16632
|
ye.dependencies = {
|
|
16429
16633
|
"cx-button": Ve,
|
|
16430
16634
|
"cx-icon": ft,
|
|
16431
|
-
"cx-space":
|
|
16635
|
+
"cx-space": Ri,
|
|
16432
16636
|
"cx-table-row-actions-dropdown": ne,
|
|
16433
|
-
"cx-tooltip":
|
|
16637
|
+
"cx-tooltip": Ti
|
|
16434
16638
|
};
|
|
16435
16639
|
Ct([
|
|
16436
16640
|
g()
|
|
@@ -16448,10 +16652,10 @@ Ct([
|
|
|
16448
16652
|
ye = Ct([
|
|
16449
16653
|
Be("cx-table-row-actions")
|
|
16450
16654
|
], ye);
|
|
16451
|
-
var
|
|
16452
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16655
|
+
var kl = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, et = (n, e, t, i) => {
|
|
16656
|
+
for (var s = i > 1 ? void 0 : i ? Dl(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16453
16657
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16454
|
-
return i && s &&
|
|
16658
|
+
return i && s && kl(e, t, s), s;
|
|
16455
16659
|
};
|
|
16456
16660
|
let ue = class extends Ie {
|
|
16457
16661
|
constructor() {
|
|
@@ -16529,10 +16733,10 @@ et([
|
|
|
16529
16733
|
ue = et([
|
|
16530
16734
|
Be("cx-table-dropdown-filter")
|
|
16531
16735
|
], ue);
|
|
16532
|
-
var
|
|
16533
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16736
|
+
var Ll = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, le = (n, e, t, i) => {
|
|
16737
|
+
for (var s = i > 1 ? void 0 : i ? zl(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16534
16738
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16535
|
-
return i && s &&
|
|
16739
|
+
return i && s && Ll(e, t, s), s;
|
|
16536
16740
|
};
|
|
16537
16741
|
let Y = class extends Ie {
|
|
16538
16742
|
constructor() {
|
|
@@ -16639,11 +16843,11 @@ le([
|
|
|
16639
16843
|
Y = le([
|
|
16640
16844
|
Be("cx-table-saved-search-dropdown")
|
|
16641
16845
|
], Y);
|
|
16642
|
-
const
|
|
16643
|
-
var
|
|
16644
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
16846
|
+
const Fl = O`.header-actions{padding-top:var(--cx-spacing-medium)}.search{flex:1;max-width:500px}.header-actions__left{flex:1}.search__input{max-width:500px}.header-actions__dropdown::part(trigger){line-height:1}.table-dropdown-filter__trigger,.header-actions__saved-search{--cx-button-text-transform:none}.header-actions__saved-search{--checked-icon-display:none}.header-actions__saved-search__load-more{width:100%;padding:0 var(--cx-spacing-x-small)}`;
|
|
16847
|
+
var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, _ = (n, e, t, i) => {
|
|
16848
|
+
for (var s = i > 1 ? void 0 : i ? Pl(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
16645
16849
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
16646
|
-
return i && s &&
|
|
16850
|
+
return i && s && Ol(e, t, s), s;
|
|
16647
16851
|
};
|
|
16648
16852
|
let F = class extends Ie {
|
|
16649
16853
|
constructor() {
|
|
@@ -16721,21 +16925,21 @@ let F = class extends Ie {
|
|
|
16721
16925
|
${X(n, () => this.renderExportDropdown())}</cx-space></cx-space></div>`;
|
|
16722
16926
|
}
|
|
16723
16927
|
};
|
|
16724
|
-
F.styles = [Qe,
|
|
16928
|
+
F.styles = [Qe, Fl];
|
|
16725
16929
|
F.dependencies = {
|
|
16726
16930
|
"cx-button": Ve,
|
|
16727
16931
|
"cx-dropdown": gt,
|
|
16728
16932
|
"cx-icon": ft,
|
|
16729
|
-
"cx-icon-button":
|
|
16730
|
-
"cx-input":
|
|
16933
|
+
"cx-icon-button": Ls,
|
|
16934
|
+
"cx-input": fo,
|
|
16731
16935
|
"cx-menu": mt,
|
|
16732
16936
|
"cx-menu-item": bt,
|
|
16733
|
-
"cx-pagination":
|
|
16734
|
-
"cx-space":
|
|
16937
|
+
"cx-pagination": lo,
|
|
16938
|
+
"cx-space": Ri,
|
|
16735
16939
|
"cx-table-dropdown-filter": ue,
|
|
16736
16940
|
"cx-table-saved-search-dropdown": Y,
|
|
16737
|
-
"cx-tooltip":
|
|
16738
|
-
"cx-typography":
|
|
16941
|
+
"cx-tooltip": Ti,
|
|
16942
|
+
"cx-typography": ao
|
|
16739
16943
|
};
|
|
16740
16944
|
_([
|
|
16741
16945
|
We("#search-form")
|
|
@@ -16827,7 +17031,7 @@ _([
|
|
|
16827
17031
|
F = _([
|
|
16828
17032
|
Be("cx-table-toolbar")
|
|
16829
17033
|
], F);
|
|
16830
|
-
class
|
|
17034
|
+
class Hl {
|
|
16831
17035
|
constructor(e) {
|
|
16832
17036
|
this.filters = /* @__PURE__ */ new Map(), this.isConnected = !1, this.host = e, this.host.addController(this);
|
|
16833
17037
|
}
|
|
@@ -16958,119 +17162,30 @@ class kl {
|
|
|
16958
17162
|
e.setFilter(s);
|
|
16959
17163
|
}
|
|
16960
17164
|
}
|
|
16961
|
-
const Dl = E`<cx-table-row-actions></cx-table-row-actions>`, _e = class _e extends T {
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
initialize() {
|
|
16966
|
-
this.hoverMenuField = this.table.options.hoverMenuField || "hoverMenu", this.subscribe(
|
|
16967
|
-
"row-layout",
|
|
16968
|
-
this.layoutRow.bind(this)
|
|
16969
|
-
), this.subscribe(
|
|
16970
|
-
"row-data-changed",
|
|
16971
|
-
(e, t, i) => {
|
|
16972
|
-
Object.hasOwn(i, this.hoverMenuField) && this.layoutRow(e);
|
|
16973
|
-
}
|
|
16974
|
-
), this.subscribe(
|
|
16975
|
-
"row-mouseenter",
|
|
16976
|
-
this.handleRowMouseEnter.bind(this)
|
|
16977
|
-
), this.subscribe(
|
|
16978
|
-
"row-mouseleave",
|
|
16979
|
-
this.handleRowMouseLeave.bind(this)
|
|
16980
|
-
), this.subscribe(
|
|
16981
|
-
"cell-layout",
|
|
16982
|
-
this.layoutCell.bind(this)
|
|
16983
|
-
), this.subscribe(
|
|
16984
|
-
"cell-mouseenter",
|
|
16985
|
-
this.handleCellMouseEnter.bind(this)
|
|
16986
|
-
), this.subscribe(
|
|
16987
|
-
"cell-mouseleave",
|
|
16988
|
-
this.handleCellMouseLeave.bind(this)
|
|
16989
|
-
);
|
|
16990
|
-
}
|
|
16991
|
-
handleRowMouseEnter(e, t) {
|
|
16992
|
-
const i = t.hoverMenuElement;
|
|
16993
|
-
if (i) {
|
|
16994
|
-
const s = this.getMenuPlacement(i);
|
|
16995
|
-
this.applyMenuPosition(t, i, s), i.classList.add("tabulator-hover-menu--active");
|
|
16996
|
-
}
|
|
16997
|
-
}
|
|
16998
|
-
handleRowMouseLeave(e, t) {
|
|
16999
|
-
const i = t.hoverMenuElement;
|
|
17000
|
-
i && i.classList.remove("tabulator-hover-menu--active");
|
|
17001
|
-
}
|
|
17002
|
-
handleCellMouseEnter(e, t) {
|
|
17003
|
-
const i = t.hoverMenuElement;
|
|
17004
|
-
i && i.classList.add("tabulator-hover-menu--active");
|
|
17005
|
-
}
|
|
17006
|
-
handleCellMouseLeave(e, t) {
|
|
17007
|
-
const i = t.hoverMenuElement;
|
|
17008
|
-
i && i.classList.remove("tabulator-hover-menu--active");
|
|
17009
|
-
}
|
|
17010
|
-
createHoverMenuElement() {
|
|
17011
|
-
const e = k(Dl);
|
|
17012
|
-
return e.classList.add("tabulator-hover-menu"), e;
|
|
17013
|
-
}
|
|
17014
|
-
layoutRow(e) {
|
|
17015
|
-
const t = Object.hasOwn(e.getData(), this.hoverMenuField) ? e.getData()[this.hoverMenuField] : this.table.options.hoverMenu;
|
|
17016
|
-
if (e.hoverMenuElement && (e.hoverMenuElement.remove(), e.hoverMenuElement = null), t) {
|
|
17017
|
-
const i = this.createHoverMenuElement();
|
|
17018
|
-
i.actions = t.data, i.row = e.getComponent(), e.getElement().appendChild(i), e.hoverMenuElement = i;
|
|
17019
|
-
const s = t.options?.placement ?? "left";
|
|
17020
|
-
i.dataset[_e.placementDataAttribute] = s, this.applyMenuPosition(e, i, s), t.options?.style && Object.assign(i.style, t.options.style);
|
|
17021
|
-
}
|
|
17022
|
-
}
|
|
17023
|
-
getMenuPlacement(e) {
|
|
17024
|
-
return e.dataset[_e.placementDataAttribute] === Re.Right ? Re.Right : Re.Left;
|
|
17025
|
-
}
|
|
17026
|
-
applyMenuPosition(e, t, i) {
|
|
17027
|
-
const s = e.getElement(), o = this.table.rowManager?.element, r = this.table.element;
|
|
17028
|
-
if (!o || !r) {
|
|
17029
|
-
i === Re.Left ? (t.style.right = "", t.style.left = "0px") : (t.style.left = "", t.style.right = "0px");
|
|
17030
|
-
return;
|
|
17031
|
-
}
|
|
17032
|
-
const a = s.getBoundingClientRect(), l = o.getBoundingClientRect(), h = r.getBoundingClientRect(), c = Math.max(l.left, h.left), d = Math.min(l.right, h.right);
|
|
17033
|
-
if (i === Re.Left) {
|
|
17034
|
-
t.style.right = "", t.style.left = `${Math.max(0, c - a.left)}px`;
|
|
17035
|
-
return;
|
|
17036
|
-
}
|
|
17037
|
-
t.style.left = "";
|
|
17038
|
-
const p = a.right - d;
|
|
17039
|
-
t.style.right = `${Math.max(0, p)}px`;
|
|
17040
|
-
}
|
|
17041
|
-
layoutCell(e) {
|
|
17042
|
-
const i = e.column.definition?.hoverMenu;
|
|
17043
|
-
if (e.hoverMenuElement && (e.hoverMenuElement.remove(), e.hoverMenuElement = null), i && e.element) {
|
|
17044
|
-
const s = this.createHoverMenuElement();
|
|
17045
|
-
s.actions = i.data, s.row = e.row.getComponent(), s.cell = e.getComponent(), e.element.appendChild(s), e.hoverMenuElement = s, (i.options?.placement ?? "left") === Re.Left ? (s.style.right = "", s.style.left = "0px") : (s.style.left = "", s.style.right = "0px"), i.options?.style && Object.assign(s.style, i.options.style);
|
|
17046
|
-
}
|
|
17047
|
-
}
|
|
17048
|
-
};
|
|
17049
|
-
_e.moduleName = "hoverMenu", _e.placementDataAttribute = "hoverMenuPlacement";
|
|
17050
|
-
let Ci = _e;
|
|
17051
|
-
const Ll = P`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srgb, var(--cx-color-neutral-0) 40%, transparent);text-align:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.tabulator .tabulator-alert.tabulator-alert-state-loading{--loading-offset:var(--cx-spacing-x-small);top:calc(var(--header-height,var(--cx-spacing-3x-large)) + var(--border-width) + var(--loading-offset));height:calc(100% - var(--header-height,var(--cx-spacing-3x-large)) - var(--border-width) - var(--loading-offset))}.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading{height:100%;top:0}.tabulator .tabulator-alert .tabulator-alert-msg{padding:var(--cx-spacing-small) var(--cx-spacing-large);border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-0);font-weight:700;font-size:var(--cx-font-size-medium);margin:0 auto;display:inline-block}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{color:var(--cx-color-neutral-1000)}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid var(--cx-color-danger);color:var(--cx-color-danger-900)}`, zl = P`:host{--width:100%;--table-height:var(--height,auto);--table-min-height:var(--min-height,0);--table-max-height:var(--max-height,auto);--color:var(--cx-color-neutral-700);--background-color:var(--cx-color-neutral-0);--border-width:var(--cx-input-border-width);--border-color:var(--cx-color-neutral-200);--outer-border-color:var(--border-color);--border-radius:var(--cx-border-radius-medium);--row-background-color:var(--cx-color-neutral-0);--row-even-background-color:var(--cx-color-neutral-0);--row-hover-background-color:var(--cx-color-neutral-0);--row-even-hover-background-color:var(--cx-color-neutral-0);--frozen-border-color:var(--cx-color-neutral-200);--header-background-color:var(--cx-color-neutral-50);--header-hover-background-color:var(--cx-color-primary-50);--header-font-weight:var(--cx-font-weight-medium);--header-font-size:var(--cx-font-size-x-small);--header-color:var(--cx-color-neutral-700);--header-border-right:1px solid var(--cx-color-neutral-200);--header-border-bottom:none;--header-height:var(--cx-spacing-3x-large);--header-horizontal-padding:var(--cx-spacing-large);--body-background-color:var(--cx-color-neutral-0);--cell-border-color:transparent;--cell-bottom-border-color:var(--cx-color-neutral-200);--cell-horizontal-padding:var(--cx-spacing-large);--cell-font-size:var(--cx-font-size-small);--cell-font-weight:var(--cx-font-weight-regular);--cell-line-height:normal;--cell-hover-background-color:var(--cx-color-neutral-50);--group-count-color:var(--cx-color-danger-500);--group-row-background-color:var(--row-background-color);--group-row-hover-background-color:var(--row-hover-background-color);--group-row-border-color:var(--cx-color-neutral-200);--group-row-color:var(--cx-color-neutral-900);--group-row-font-weight:var(--cx-font-weight-medium);--row-header-border-color:var(--cx-color-neutral-200);--tabulator-tree-control-width:18px;--tabulator-tree-child-indent:9px;--tabulator-tree-step:calc(var(--tabulator-tree-control-width) + var(--tabulator-tree-child-indent));isolation:isolate;width:var(--width);display:block}.container{height:100%}.tabulator{background-color:var(--background-color);font-size:var(--font-size,var(--cx-font-size-small));text-align:left;height:var(--table-height);min-height:var(--table-min-height);max-height:var(--table-max-height);border-radius:var(--cx-border-radius-medium);flex-direction:column;line-height:normal;display:flex;position:relative;overflow:hidden}.tabulator[data-overlayscrollbars]{flex-direction:column}.tabulator[data-overlayscrollbars-viewport="scrollbarHidden overflowXHidden overflowYHidden"]{display:flex}.tabulator>[data-overlayscrollbars-viewport]{flex-direction:column;display:flex}.tabulator.tabulator-overflow-x{border-right:var(--border-width) solid var(--outer-border-color);border-top-right-radius:var(--border-radius)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-tableholder-wrapper{flex:1;width:max-content;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-tableholder{white-space:nowrap;-webkit-overflow-scrolling:touch;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);flex:1;width:max-content;position:relative;overflow:auto}.tabulator .tabulator-tableholder-wrapper:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator.tabulator-header-hidden .tabulator-tableholder-wrapper:before{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-table{background-color:var(--body-background-color,var(--cx-color-neutral-0));white-space:nowrap;color:var(--color);min-width:100%;display:inline-block;position:relative;overflow:visible}`, Fl = P`.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:var(--cx-color-neutral-200)!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;text-align:left;border-bottom:1px solid var(--cx-color-neutral-400);border-top:1px solid var(--cx-color-neutral-400);width:100%;overflow:hidden;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}`, Ol = P`.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:none}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;width:7px;height:9px;margin-top:-9px;position:absolute}.tabulator-row .tabulator-cell .tabulator-data-tree-control{flex:0 0 var(--tabulator-tree-control-width);vertical-align:middle;width:var(--tabulator-tree-control-width);justify-content:center;align-items:center;display:inline-flex}`, Pl = P`.tabulator-row .tabulator-cell.tabulator-editing{padding:0 var(--cell-horizontal-padding);outline:none}.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing select{font-size:inherit;color:inherit;border-radius:var(--cx-input-border-radius-medium);background:0 0;border:none;outline:none;padding:0;font-family:inherit}.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing select{border:var(--border-width) solid var(--border-color);background:0 0;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:var(--border-width) solid var(--cx-color-danger)}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:var(--border-width) solid var(--border-color);color:var(--cx-color-danger);background:0 0}.tabulator-row .tabulator-cell.tabulator-editing.tabulator-edit-list{padding:0 var(--cx-spacing-x-small)}.tabulator-edit-list{position:relative}.tabulator-edit-list:not(.tabulator-editing) .tabulator-cell-content{padding-right:var(--cx-spacing-large)}.tabulator-edit-list-trigger{top:50%;right:var(--cx-spacing-small);width:var(--cx-spacing-large);appearance:none;height:100%;color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;transform:translateY(-50%)}.tabulator-edit-list.tabulator-editing .tabulator-edit-list-trigger{display:none}.tabulator-edit-list-trigger-caret{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-500)}`, Hl = P`.tabulator .tabulator-footer{border-top:1px solid var(--cx-color-neutral-400);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-500);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;font-weight:700}.tabulator .tabulator-footer .tabulator-footer-contents{padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);flex-direction:row;justify-content:space-between;align-items:center;display:flex}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}`, Al = P`.tabulator-row .tabulator-cell .tabulator-traffic-light-container{align-items:center;gap:var(--cx-spacing-x-small);display:inline-flex}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:var(--cx-border-radius-x-large);width:14px;height:14px;display:inline-block}`, _l = P`.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--group-row-border-color);border-right:var(--border-width) solid var(--group-row-border-color);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--group-row-background-color);min-width:100%;line-height:var(--header-height);color:var(--group-row-color);font-weight:var(--group-row-font-weight)}.tabulator-row.tabulator-group.tabulator-row-last{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:var(--group-row-hover-background-color)}}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-flex}.tabulator-row.tabulator-group span{margin-left:var(--cx-spacing-small);color:var(--group-count-color)}`, Nl = P`:host{--selected-column-header-background-color:var(--header-background-color);--selected-column-header-color:var(--header-color)}.tabulator .tabulator-header{box-sizing:border-box;width:max-content;font-weight:var(--header-font-weight);font-size:var(--header-font-size);color:var(--header-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;outline:none;position:relative}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{box-sizing:border-box;width:max-content;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom:var(--header-border-bottom);border-top-right-radius:var(--border-radius);border-top-left-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator .tabulator-header .tabulator-col:last-of-type{border-right:none}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{background-color:var(--header-background-color);display:inline-block}.tabulator .tabulator-header .tabulator-col{box-sizing:border-box;border-right:var(--header-border-right);background:var(--header-background-color);text-align:left;vertical-align:bottom;height:var(--header-height);flex-direction:column;justify-content:center;display:inline-flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{border:solid var(--border-width) var(--border-color);background:var(--cx-color-neutral-300);pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:var(--selected-column-header-background-color);color:var(--selected-column-header-color)}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--header-horizontal-padding);position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 var(--cx-spacing-x-small)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;width:100%;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:initial}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;border:solid var(--border-width) var(--border-color);width:100%;padding:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{align-items:center;display:flex;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-left:6px solid #0000;border-right:6px solid #0000;border-bottom:6px solid var(--cx-color-neutral-200);width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid var(--cx-color-neutral-400);margin-right:-1px;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:var(--cx-spacing-3x-small);text-align:center;width:100%;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:var(--cx-spacing-3x-small)}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:var(--cx-spacing-x-large)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer}.tabulator .tabulator-header .tabulator-col:hover{background-color:var(--header-hover-background-color)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-200)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-200)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid var(--cx-color-neutral-600);color:var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;inset:4px 0 auto}.tabulator .tabulator-header .tabulator-frozen{z-index:11;position:sticky;left:0}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen-rows-holder{border-bottom:2px solid var(--frozen-border-color);display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}`, Vl = P`:host{--hover-menu-background-color:transparent}.tabulator-hover-menu{padding-left:var(--cell-horizontal-padding);padding-right:var(--cell-horizontal-padding);background-color:var(--hover-menu-background-color);opacity:0;pointer-events:none;z-index:12;align-items:center;height:100%;display:flex;position:absolute;top:0}.tabulator:not(.tabulator-editing) .tabulator-hover-menu--active{opacity:1;pointer-events:auto}`, Il = P`.tabulator-row .tabulator-cell.tabulator-row-handle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;justify-content:center;align-items:center;display:inline-flex}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-600)}`, Bl = P`.tabulator .tabulator-footer .tabulator-paginator{flex:1}.tabulator .tabulator-footer .tabulator-paginator-pagination{margin-left:auto}.tabulator-paginator-pagination{--font-size:var(--cx-font-size-x-small);--pagination-input-font-size:var(--cx-font-size-x-small)}.tabulator-paginator-pagination::part(back-icon),.tabulator-paginator-pagination::part(next-icon){--font-size:var(--cx-font-size-medium)}`, Wl = P`:host{--placeholder-color:var(--cx-color-neutral-800);--placeholder-font-weight:var(--cx-font-weight-regular);--placeholder-font-size:var(--cx-font-size-small)}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder{box-sizing:border-box;justify-content:center;align-items:center;width:100%;min-width:100%;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-placeholder .tabulator-placeholder-contents{height:100%;padding:var(--cx-spacing-small);color:var(--placeholder-color);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-font-size);white-space:normal;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder.tabulator-placeholder--initializing .tabulator-placeholder-contents{visibility:hidden}.tabulator.tabulator-all-columns-hidden .tabulator-header{width:100%;height:var(--header-height);min-height:var(--header-height)}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents{background-color:var(--header-background-color);flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents:before{box-sizing:border-box;width:auto;height:auto;inset:0}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents .tabulator-headers{box-sizing:border-box;flex:1;align-self:stretch;width:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-tableholder-wrapper{width:100%}.tabulator-row.tabulator-placeholder-row{border-left:var(--border-width) solid var(--cell-border-color);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding)}`, Gl = P`.tabulator-toggle{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-200);flex-direction:row;display:flex}.tabulator-toggle.tabulator-toggle-on{background:var(--cx-color-primary-700)}.tabulator-toggle .tabulator-toggle-switch{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-0)}.tabulator-popup-container{box-sizing:border-box;background:var(--cx-color-neutral-0);border:var(--border-width) solid var(--cx-color-neutral-400);font-size:var(--cx-font-size-small);-webkit-overflow-scrolling:touch;z-index:10000;display:inline-block;position:absolute;overflow-y:auto;box-shadow:0 0 5px #0003}.tabulator-popup{padding:var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small)}.tabulator-tooltip{max-width:min(500px,100%);padding:var(--cx-spacing-3x-small) var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small);box-shadow:none;font-size:var(--cx-font-size-x-small);pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);user-select:none;position:relative}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:var(--cx-color-neutral-50)}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:var(--cx-spacing-x-large)}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{content:"";border-width:var(--border-width) var(--border-width) 0 0;border-style:solid;border-color:var(--cx-color-neutral-400);vertical-align:top;width:7px;height:7px;display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:var(--border-width) solid var(--cx-color-neutral-400)}`, jl = P`.tabulator-print-fullscreen{z-index:10000;position:absolute;inset:0}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{vertical-align:middle;width:7px;height:9px;margin-top:-9px;margin-right:var(--cx-spacing-2x-small);border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;display:inline-block}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--cx-color-neutral-400);border-right:var(--border-width) solid var(--cx-color-neutral-400);border-top:var(--border-width) solid var(--cx-color-neutral-400);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--cx-color-neutral-300);min-width:100%;font-weight:700}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:#0000001a}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group span{margin-left:var(--cx-spacing-small);color:var(--cx-color-danger)}`, $l = P`.tabulator .tabulator-col-resize-handle{z-index:11;vertical-align:middle;width:6px;margin-left:-3px;margin-right:-3px;display:inline-block;position:relative}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-col-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:4px;height:100%;margin-left:-.5px;position:absolute;top:0}.tabulator .tabulator-row-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:100%;height:4px;margin-top:-.5px;position:absolute;left:0}`, Ul = P`.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-600);width:15px;height:15px;color:var(--cx-color-neutral-0);justify-content:center;align-items:center;font-size:1.1em;font-weight:700;display:inline-flex}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}`, Kl = P`.tabulator-row{box-sizing:border-box;background-color:var(--row-background-color);min-height:22px;display:flex;position:relative}.tabulator-row .tabulator-cell-first{border-left:var(--border-width) solid var(--outer-border-color)}.tabulator-row.tabulator-row-even{background-color:var(--row-even-background-color)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:var(--row-hover-background-color);cursor:pointer}.tabulator-row.tabulator-row-even.tabulator-selectable:hover{background-color:var(--row-even-hover-background-color);cursor:pointer}}.tabulator-row.tabulator-selected{background-color:var(--cx-color-primary-200)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:var(--cx-color-primary-300);cursor:pointer}}.tabulator-row.tabulator-row-moving{border:var(--border-width) solid var(--cx-color-neutral-1000);background:var(--cx-color-neutral-0)}.tabulator-row.tabulator-moving{border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);pointer-events:none;z-index:15;position:absolute}.tabulator-header-hidden .tabulator-row.tabulator-row-first .tabulator-cell.tabulator-cell-last{border-top-right-radius:var(--border-radius)}.tabulator-row .tabulator-row-resize-handle{height:5px;position:absolute;bottom:0;left:0;right:0}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:var(--cx-spacing-2x-small);border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400)}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:var(--cx-font-size-small)}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:var(--cx-spacing-small)}.tabulator-row .tabulator-cell{vertical-align:middle;box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);display:inline-flex;position:relative}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell:hover,.tabulator-row .tabulator-cell.tabulator-frozen:hover{background-color:var(--cell-hover-background-color)}}.tabulator-row .tabulator-cell .tabulator-cell-content{width:100%;height:100%;font-size:var(--cell-font-size);font-weight:var(--cell-font-weight);line-height:var(--cell-line-height);align-items:center;display:inline-flex}.tabulator-row .tabulator-cell .tabulator-cell-content cx-line-clamp{width:100%;max-width:max-content}.tabulator-row .tabulator-cell.tabulator-row-header{border-right:var(--border-width) solid var(--row-header-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;z-index:11;display:inline-block;position:sticky;left:0}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator-row:has(+.tabulator-placeholder-row) .tabulator-cell{border-bottom:none}`, Xl = P`.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:var(--border-width) solid var(--cx-color-neutral-400);border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:initial;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:var(--cx-spacing-x-large)}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:var(--border-width) solid var(--cell-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:initial;margin-left:var(--cx-spacing-2x-small);border-bottom-left-radius:initial;border-left:initial;border-right:2px solid var(--cx-color-neutral-400);border-bottom-right-radius:1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}`, Jl = P`:host{--table-active-cell-border-color:var(--border-color);--table-selected-cell-border-width:1px;--table-selected-cell-border-style:solid;--table-selected-only-cell-background-color:transparent;--table-selected-range-cell-background-color:var(--cx-color-neutral-100);--table-selected-range-selection-start-cell-background-color:var(--cx-color-neutral-50);--table-selected-cell-hover-background-color:var(--cx-color-neutral-50);--table-editable-only-cell-selected-background-color:var(--cx-color-primary-50);--table-editable-cell-hover-background-color:var(--cx-color-primary-50);--table-editable-only-cell-active-border-color:var(--cx-color-primary-600)}.tabulator .tabulator-tableholder .tabulator-range-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active,.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-hover{box-sizing:border-box;border-color:var(--table-active-cell-border-color);border-style:var(--table-selected-cell-border-style);border-width:var(--table-selected-cell-border-width);background-color:var(--table-selected-only-cell-background-color);position:absolute}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral-1000)}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header){background-color:var(--table-selected-range-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selection-start:not(.tabulator-range-row-header){background-color:var(--table-selected-range-selection-start-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-selected-cell-hover-background-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-only-cell-active.tabulator-range-cell-active{border-color:var(--table-editable-only-cell-active-border-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-cell-hover{border:var(--border-width) solid var(--table-editable-only-cell-active-border-color)}.tabulator-row .tabulator-cell.tabulator-editable:hover{background-color:var(--table-editable-cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-only-cell-selected:not(.tabulator-range-row-header){background-color:var(--table-editable-only-cell-selected-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-editable-cell-hover-background-color)}`, ql = P`.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{padding:var(--cx-spacing-2x-small);border:solid var(--border-width) var(--border-color);border-top:none;border-bottom-right-radius:5px;border-bottom-left-radius:5px;font-size:.9em;display:inline-block}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:var(--cx-color-neutral-0)}`, Yl = [
|
|
17052
|
-
zl,
|
|
17165
|
+
const Al = O`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srgb, var(--cx-color-neutral-0) 40%, transparent);text-align:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.tabulator .tabulator-alert.tabulator-alert-state-loading{--loading-offset:var(--cx-spacing-x-small);top:calc(var(--header-height,var(--cx-spacing-3x-large)) + var(--border-width) + var(--loading-offset));height:calc(100% - var(--header-height,var(--cx-spacing-3x-large)) - var(--border-width) - var(--loading-offset))}.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading{height:100%;top:0}.tabulator .tabulator-alert .tabulator-alert-msg{padding:var(--cx-spacing-small) var(--cx-spacing-large);border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-0);font-weight:700;font-size:var(--cx-font-size-medium);margin:0 auto;display:inline-block}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{color:var(--cx-color-neutral-1000)}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid var(--cx-color-danger);color:var(--cx-color-danger-900)}`, _l = O`:host{--width:100%;--table-height:var(--height,auto);--table-min-height:var(--min-height,0);--table-max-height:var(--max-height,auto);--color:var(--cx-color-neutral-700);--background-color:var(--cx-color-neutral-0);--border-width:var(--cx-input-border-width);--border-color:var(--cx-color-neutral-200);--outer-border-color:var(--border-color);--border-radius:var(--cx-border-radius-medium);--row-background-color:var(--cx-color-neutral-0);--row-even-background-color:var(--cx-color-neutral-0);--row-hover-background-color:var(--cx-color-neutral-0);--row-even-hover-background-color:var(--cx-color-neutral-0);--frozen-border-color:var(--cx-color-neutral-200);--header-background-color:var(--cx-color-neutral-50);--header-hover-background-color:var(--cx-color-primary-50);--header-font-weight:var(--cx-font-weight-medium);--header-font-size:var(--cx-font-size-x-small);--header-color:var(--cx-color-neutral-700);--header-border-right:1px solid var(--cx-color-neutral-200);--header-border-bottom:none;--header-height:var(--cx-spacing-3x-large);--header-horizontal-padding:var(--cx-spacing-large);--body-background-color:var(--cx-color-neutral-0);--cell-border-color:transparent;--cell-bottom-border-color:var(--cx-color-neutral-200);--cell-horizontal-padding:var(--cx-spacing-large);--cell-font-size:var(--cx-font-size-small);--cell-font-weight:var(--cx-font-weight-regular);--cell-line-height:normal;--cell-hover-background-color:var(--cx-color-neutral-50);--group-count-color:var(--cx-color-danger-500);--group-row-background-color:var(--row-background-color);--group-row-hover-background-color:var(--row-hover-background-color);--group-row-border-color:var(--cx-color-neutral-200);--group-row-color:var(--cx-color-neutral-900);--group-row-font-weight:var(--cx-font-weight-medium);--row-header-border-color:var(--cx-color-neutral-200);--tabulator-tree-control-width:18px;--tabulator-tree-child-indent:9px;--tabulator-tree-step:calc(var(--tabulator-tree-control-width) + var(--tabulator-tree-child-indent));isolation:isolate;width:var(--width);display:block}.container{height:100%}.tabulator{background-color:var(--background-color);font-size:var(--font-size,var(--cx-font-size-small));text-align:left;height:var(--table-height);min-height:var(--table-min-height);max-height:var(--table-max-height);border-radius:var(--cx-border-radius-medium);flex-direction:column;line-height:normal;display:flex;position:relative;overflow:hidden}.tabulator[data-overlayscrollbars]{flex-direction:column}.tabulator[data-overlayscrollbars-viewport="scrollbarHidden overflowXHidden overflowYHidden"]{display:flex}.tabulator>[data-overlayscrollbars-viewport]{flex-direction:column;display:flex}.tabulator.tabulator-overflow-x{border-right:var(--border-width) solid var(--outer-border-color);border-top-right-radius:var(--border-radius)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-tableholder-wrapper{flex:1;width:max-content;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-tableholder{white-space:nowrap;-webkit-overflow-scrolling:touch;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);flex:1;width:max-content;position:relative;overflow:auto}.tabulator .tabulator-tableholder-wrapper:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator.tabulator-header-hidden .tabulator-tableholder-wrapper:before{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-table{background-color:var(--body-background-color,var(--cx-color-neutral-0));white-space:nowrap;color:var(--color);min-width:100%;display:inline-block;position:relative;overflow:visible}`, Nl = O`.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:var(--cx-color-neutral-200)!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;text-align:left;border-bottom:1px solid var(--cx-color-neutral-400);border-top:1px solid var(--cx-color-neutral-400);width:100%;overflow:hidden;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}`, Vl = O`.tabulator-clickable-cell{color:var(--clickable-cell-color,var(--cx-color-primary-600));cursor:pointer}.tabulator-clickable-cell:hover{text-decoration:underline}`, Il = O`.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:none}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;width:7px;height:9px;margin-top:-9px;position:absolute}.tabulator-row .tabulator-cell .tabulator-data-tree-control{flex:0 0 var(--tabulator-tree-control-width);vertical-align:middle;width:var(--tabulator-tree-control-width);justify-content:center;align-items:center;display:inline-flex}`, Bl = O`.tabulator-row .tabulator-cell.tabulator-editing{padding:0 var(--cell-horizontal-padding);outline:none}.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing select{font-size:inherit;color:inherit;border-radius:var(--cx-input-border-radius-medium);background:0 0;border:none;outline:none;padding:0;font-family:inherit}.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing select{border:var(--border-width) solid var(--border-color);background:0 0;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:var(--border-width) solid var(--cx-color-danger)}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:var(--border-width) solid var(--border-color);color:var(--cx-color-danger);background:0 0}.tabulator-row .tabulator-cell.tabulator-editing.tabulator-edit-list{padding:0 var(--cx-spacing-x-small)}.tabulator-edit-list{position:relative}.tabulator-edit-list:not(.tabulator-editing) .tabulator-cell-content{padding-right:var(--cx-spacing-large)}.tabulator-edit-list-trigger{top:50%;right:var(--cx-spacing-small);width:var(--cx-spacing-large);appearance:none;height:100%;color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;transform:translateY(-50%)}.tabulator-edit-list.tabulator-editing .tabulator-edit-list-trigger{display:none}.tabulator-edit-list-trigger-caret{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-500)}`, Wl = O`.tabulator .tabulator-footer{border-top:1px solid var(--cx-color-neutral-400);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-500);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;font-weight:700}.tabulator .tabulator-footer .tabulator-footer-contents{padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);flex-direction:row;justify-content:space-between;align-items:center;display:flex}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}`, Gl = O`.tabulator-row .tabulator-cell a{color:var(--cx-color-primary-600);text-decoration:none}.tabulator-row .tabulator-cell a:hover{text-decoration:underline}.tabulator-row .tabulator-cell .tabulator-traffic-light-container{align-items:center;gap:var(--cx-spacing-x-small);display:inline-flex}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:var(--cx-border-radius-x-large);width:14px;height:14px;display:inline-block}`, jl = O`.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--group-row-border-color);border-right:var(--border-width) solid var(--group-row-border-color);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--group-row-background-color);min-width:100%;line-height:var(--header-height);color:var(--group-row-color);font-weight:var(--group-row-font-weight)}.tabulator-row.tabulator-group.tabulator-row-last{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:var(--group-row-hover-background-color)}}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-flex}.tabulator-row.tabulator-group span{margin-left:var(--cx-spacing-small);color:var(--group-count-color)}`, $l = O`:host{--selected-column-header-background-color:var(--header-background-color);--selected-column-header-color:var(--header-color)}.tabulator .tabulator-header{box-sizing:border-box;width:max-content;font-weight:var(--header-font-weight);font-size:var(--header-font-size);color:var(--header-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;outline:none;position:relative}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{box-sizing:border-box;width:max-content;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-header-contents:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom:var(--header-border-bottom);border-top-right-radius:var(--border-radius);border-top-left-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator .tabulator-header .tabulator-col:last-of-type{border-right:none}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{background-color:var(--header-background-color);display:inline-block}.tabulator .tabulator-header .tabulator-col{box-sizing:border-box;border-right:var(--header-border-right);background:var(--header-background-color);text-align:left;vertical-align:bottom;height:var(--header-height);flex-direction:column;justify-content:center;display:inline-flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{border:solid var(--border-width) var(--border-color);background:var(--cx-color-neutral-300);pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:var(--selected-column-header-background-color);color:var(--selected-column-header-color)}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--header-horizontal-padding);position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 var(--cx-spacing-x-small)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;width:100%;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:initial}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;border:solid var(--border-width) var(--border-color);width:100%;padding:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{align-items:center;display:flex;position:absolute;top:0;bottom:0;right:4px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-left:6px solid #0000;border-right:6px solid #0000;border-bottom:6px solid var(--cx-color-neutral-200);width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid var(--cx-color-neutral-400);margin-right:-1px;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:var(--cx-spacing-3x-small);text-align:center;width:100%;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:var(--cx-spacing-3x-small)}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:var(--cx-spacing-x-large)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer}.tabulator .tabulator-header .tabulator-col:hover{background-color:var(--header-hover-background-color)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-200)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-200)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-bottom:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-top:none;border-bottom:6px solid var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:var(--cx-color-neutral-600)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{cursor:pointer;border-top:6px solid var(--cx-color-neutral-500)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid var(--cx-color-neutral-600);color:var(--cx-color-neutral-600)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;inset:4px 0 auto}.tabulator .tabulator-header .tabulator-frozen{z-index:11;position:sticky;left:0}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen-rows-holder{border-bottom:2px solid var(--frozen-border-color);display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}`, Ul = O`:host{--hover-menu-background-color:transparent}.tabulator-hover-menu{padding-left:var(--cell-horizontal-padding);padding-right:var(--cell-horizontal-padding);background-color:var(--hover-menu-background-color);opacity:0;pointer-events:none;z-index:12;align-items:center;height:100%;display:flex;position:absolute;top:0}.tabulator:not(.tabulator-editing) .tabulator-hover-menu--active{opacity:1;pointer-events:auto}`, Kl = O`.tabulator-row .tabulator-cell.tabulator-row-handle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;justify-content:center;align-items:center;display:inline-flex}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-600)}`, Xl = O`.tabulator .tabulator-footer .tabulator-paginator{flex:1}.tabulator .tabulator-footer .tabulator-paginator-pagination{margin-left:auto}.tabulator-paginator-pagination{--font-size:var(--cx-font-size-x-small);--pagination-input-font-size:var(--cx-font-size-x-small)}.tabulator-paginator-pagination::part(back-icon),.tabulator-paginator-pagination::part(next-icon){--font-size:var(--cx-font-size-medium)}`, Jl = O`:host{--placeholder-color:var(--cx-color-neutral-800);--placeholder-font-weight:var(--cx-font-weight-regular);--placeholder-font-size:var(--cx-font-size-small)}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder{box-sizing:border-box;justify-content:center;align-items:center;width:100%;min-width:100%;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-placeholder .tabulator-placeholder-contents{height:100%;padding:var(--cx-spacing-small);color:var(--placeholder-color);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-font-size);white-space:normal;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder.tabulator-placeholder--initializing .tabulator-placeholder-contents{visibility:hidden}.tabulator.tabulator-all-columns-hidden .tabulator-header{width:100%;height:var(--header-height);min-height:var(--header-height)}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents{background-color:var(--header-background-color);flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents:before{box-sizing:border-box;width:auto;height:auto;inset:0}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents .tabulator-headers{box-sizing:border-box;flex:1;align-self:stretch;width:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-tableholder-wrapper{width:100%}.tabulator-row.tabulator-placeholder-row{border-left:var(--border-width) solid var(--cell-border-color);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding)}`, ql = O`.tabulator-toggle{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-200);flex-direction:row;display:flex}.tabulator-toggle.tabulator-toggle-on{background:var(--cx-color-primary-700)}.tabulator-toggle .tabulator-toggle-switch{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-0)}.tabulator-popup-container{box-sizing:border-box;background:var(--cx-color-neutral-0);border:var(--border-width) solid var(--cx-color-neutral-400);font-size:var(--cx-font-size-small);-webkit-overflow-scrolling:touch;z-index:10000;display:inline-block;position:absolute;overflow-y:auto;box-shadow:0 0 5px #0003}.tabulator-popup{padding:var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small)}.tabulator-tooltip{max-width:min(500px,100%);padding:var(--cx-spacing-3x-small) var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small);box-shadow:none;font-size:var(--cx-font-size-x-small);pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);user-select:none;position:relative}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:var(--cx-color-neutral-50)}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:var(--cx-spacing-x-large)}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{content:"";border-width:var(--border-width) var(--border-width) 0 0;border-style:solid;border-color:var(--cx-color-neutral-400);vertical-align:top;width:7px;height:7px;display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:var(--border-width) solid var(--cx-color-neutral-400)}`, Yl = O`.tabulator-print-fullscreen{z-index:10000;position:absolute;inset:0}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{vertical-align:middle;width:7px;height:9px;margin-top:-9px;margin-right:var(--cx-spacing-2x-small);border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;display:inline-block}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--cx-color-neutral-400);border-right:var(--border-width) solid var(--cx-color-neutral-400);border-top:var(--border-width) solid var(--cx-color-neutral-400);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--cx-color-neutral-300);min-width:100%;font-weight:700}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:#0000001a}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group span{margin-left:var(--cx-spacing-small);color:var(--cx-color-danger)}`, Ql = O`.tabulator .tabulator-col-resize-handle{z-index:11;vertical-align:middle;width:6px;margin-left:-3px;margin-right:-3px;display:inline-block;position:relative}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-col-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:4px;height:100%;margin-left:-.5px;position:absolute;top:0}.tabulator .tabulator-row-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:100%;height:4px;margin-top:-.5px;position:absolute;left:0}`, Zl = O`.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-600);width:15px;height:15px;color:var(--cx-color-neutral-0);justify-content:center;align-items:center;font-size:1.1em;font-weight:700;display:inline-flex}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}`, eh = O`.tabulator-row{box-sizing:border-box;background-color:var(--row-background-color);min-height:22px;display:flex;position:relative}.tabulator-row .tabulator-cell-first{border-left:var(--border-width) solid var(--outer-border-color)}.tabulator-row.tabulator-row-even{background-color:var(--row-even-background-color)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:var(--row-hover-background-color);cursor:pointer}.tabulator-row.tabulator-row-even.tabulator-selectable:hover{background-color:var(--row-even-hover-background-color);cursor:pointer}}.tabulator-row.tabulator-selected{background-color:var(--cx-color-primary-200)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:var(--cx-color-primary-300);cursor:pointer}}.tabulator-row.tabulator-row-moving{border:var(--border-width) solid var(--cx-color-neutral-1000);background:var(--cx-color-neutral-0)}.tabulator-row.tabulator-moving{border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);pointer-events:none;z-index:15;position:absolute}.tabulator-header-hidden .tabulator-row.tabulator-row-first .tabulator-cell.tabulator-cell-last{border-top-right-radius:var(--border-radius)}.tabulator-row .tabulator-row-resize-handle{height:5px;position:absolute;bottom:0;left:0;right:0}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:var(--cx-spacing-2x-small);border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400)}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:var(--cx-font-size-small)}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:var(--cx-spacing-small)}.tabulator-row .tabulator-cell{vertical-align:middle;box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);display:inline-flex;position:relative}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell:hover,.tabulator-row .tabulator-cell.tabulator-frozen:hover{background-color:var(--cell-hover-background-color)}}.tabulator-row .tabulator-cell .tabulator-cell-content{width:100%;height:100%;font-size:var(--cell-font-size);font-weight:var(--cell-font-weight);line-height:var(--cell-line-height);align-items:center;display:inline-flex}.tabulator-row .tabulator-cell .tabulator-cell-content cx-line-clamp{width:100%;max-width:max-content}.tabulator-row .tabulator-cell.tabulator-row-header{border-right:var(--border-width) solid var(--row-header-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;z-index:11;display:inline-block;position:sticky;left:0}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator-row:has(+.tabulator-placeholder-row) .tabulator-cell{border-bottom:none}`, th = O`.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:var(--border-width) solid var(--cx-color-neutral-400);border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:initial;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:0;padding-left:var(--cx-spacing-x-large)}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:var(--border-width) solid var(--cell-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:initial;margin-left:var(--cx-spacing-2x-small);border-bottom-left-radius:initial;border-left:initial;border-right:2px solid var(--cx-color-neutral-400);border-bottom-right-radius:1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid var(--cx-color-neutral-400)}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}`, ih = O`:host{--table-active-cell-border-color:var(--border-color);--table-selected-cell-border-width:1px;--table-selected-cell-border-style:solid;--table-selected-only-cell-background-color:transparent;--table-selected-range-cell-background-color:var(--cx-color-neutral-100);--table-selected-range-selection-start-cell-background-color:var(--cx-color-neutral-50);--table-selected-cell-hover-background-color:var(--cx-color-neutral-50);--table-editable-only-cell-selected-background-color:var(--cx-color-primary-50);--table-editable-cell-hover-background-color:var(--cx-color-primary-50);--table-editable-only-cell-active-border-color:var(--cx-color-primary-600)}.tabulator .tabulator-tableholder .tabulator-range-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active,.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-hover{box-sizing:border-box;border-color:var(--table-active-cell-border-color);border-style:var(--table-selected-cell-border-style);border-width:var(--table-selected-cell-border-width);background-color:var(--table-selected-only-cell-background-color);position:absolute}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral-1000)}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header){background-color:var(--table-selected-range-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selection-start:not(.tabulator-range-row-header){background-color:var(--table-selected-range-selection-start-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-selected-cell-hover-background-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-only-cell-active.tabulator-range-cell-active{border-color:var(--table-editable-only-cell-active-border-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-cell-hover{border:var(--border-width) solid var(--table-editable-only-cell-active-border-color)}.tabulator-row .tabulator-cell.tabulator-editable:hover{background-color:var(--table-editable-cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-only-cell-selected:not(.tabulator-range-row-header){background-color:var(--table-editable-only-cell-selected-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-selected:not(.tabulator-range-row-header):hover{background-color:var(--table-editable-cell-hover-background-color)}`, sh = O`.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{padding:var(--cx-spacing-2x-small);border:solid var(--border-width) var(--border-color);border-top:none;border-bottom-right-radius:5px;border-bottom-left-radius:5px;font-size:.9em;display:inline-block}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:var(--cx-color-neutral-0)}`, oh = [
|
|
17166
|
+
_l,
|
|
17167
|
+
$l,
|
|
17168
|
+
Jl,
|
|
17053
17169
|
Nl,
|
|
17170
|
+
ih,
|
|
17054
17171
|
Wl,
|
|
17055
|
-
|
|
17056
|
-
|
|
17057
|
-
|
|
17058
|
-
|
|
17172
|
+
sh,
|
|
17173
|
+
Xl,
|
|
17174
|
+
Ql,
|
|
17175
|
+
Al,
|
|
17176
|
+
eh,
|
|
17059
17177
|
Bl,
|
|
17060
|
-
$l,
|
|
17061
|
-
Ll,
|
|
17062
17178
|
Kl,
|
|
17063
|
-
Pl,
|
|
17064
17179
|
Il,
|
|
17065
|
-
|
|
17066
|
-
Ul,
|
|
17067
|
-
Al,
|
|
17068
|
-
_l,
|
|
17180
|
+
Zl,
|
|
17069
17181
|
Gl,
|
|
17070
|
-
Xl,
|
|
17071
17182
|
jl,
|
|
17183
|
+
ql,
|
|
17184
|
+
th,
|
|
17185
|
+
Yl,
|
|
17186
|
+
Ul,
|
|
17072
17187
|
Vl
|
|
17073
|
-
],
|
|
17188
|
+
], rh = {
|
|
17074
17189
|
formatter: function() {
|
|
17075
17190
|
const n = document.createElement("div");
|
|
17076
17191
|
n.style.display = "flex", n.style.alignItems = "center", n.style.justifyContent = "center", n.style.width = "100%", n.style.height = "100%", n.style.userSelect = "none", n.dataset.testid = "movable-row-button";
|
|
@@ -17083,7 +17198,7 @@ const Ll = P`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17083
17198
|
rowHandle: !0,
|
|
17084
17199
|
title: "",
|
|
17085
17200
|
width: 40
|
|
17086
|
-
},
|
|
17201
|
+
}, nh = {
|
|
17087
17202
|
fromAttribute: (n) => {
|
|
17088
17203
|
if (typeof n == "string") {
|
|
17089
17204
|
if (!n.trim())
|
|
@@ -17100,7 +17215,7 @@ const Ll = P`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17100
17215
|
return n;
|
|
17101
17216
|
},
|
|
17102
17217
|
toAttribute: (n) => typeof n == "function" ? "" : Array.isArray(n) ? JSON.stringify(n) : typeof n == "number" ? n.toString() : n
|
|
17103
|
-
},
|
|
17218
|
+
}, ah = {
|
|
17104
17219
|
fromAttribute: (n) => {
|
|
17105
17220
|
if (typeof n == "string") {
|
|
17106
17221
|
if (!n.trim())
|
|
@@ -17116,7 +17231,7 @@ const Ll = P`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17116
17231
|
return n;
|
|
17117
17232
|
},
|
|
17118
17233
|
toAttribute: (n) => typeof n == "function" ? "" : Array.isArray(n) ? JSON.stringify(n) : typeof n == "boolean" ? n.toString() : n
|
|
17119
|
-
},
|
|
17234
|
+
}, lh = {
|
|
17120
17235
|
fromAttribute: (n) => {
|
|
17121
17236
|
if (typeof n == "string") {
|
|
17122
17237
|
if (!n.trim())
|
|
@@ -17132,23 +17247,23 @@ const Ll = P`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
17132
17247
|
},
|
|
17133
17248
|
toAttribute: (n) => typeof n == "function" ? "" : Array.isArray(n) ? JSON.stringify(n) : n
|
|
17134
17249
|
};
|
|
17135
|
-
var
|
|
17250
|
+
var hh = Object.defineProperty, ch = Object.getOwnPropertyDescriptor, Xs = (n) => {
|
|
17136
17251
|
throw TypeError(n);
|
|
17137
17252
|
}, v = (n, e, t, i) => {
|
|
17138
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
17253
|
+
for (var s = i > 1 ? void 0 : i ? ch(e, t) : e, o = n.length - 1, r; o >= 0; o--)
|
|
17139
17254
|
(r = n[o]) && (s = (i ? r(e, t, s) : r(s)) || s);
|
|
17140
|
-
return i && s &&
|
|
17141
|
-
},
|
|
17255
|
+
return i && s && hh(e, t, s), s;
|
|
17256
|
+
}, dh = (n, e, t) => e.has(n) || Xs("Cannot " + t), uh = (n, e, t) => (dh(n, e, "read from private field"), t ? t.call(n) : e.get(n)), ph = (n, e, t) => e.has(n) ? Xs("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), xi, Js;
|
|
17142
17257
|
let w = class extends Ie {
|
|
17143
17258
|
constructor() {
|
|
17144
|
-
super(),
|
|
17259
|
+
super(), ph(this, xi), this.localize = new ut(this), this.verticalOsInstance = null, this.horizontalOsInstance = null, this.resizeObserver = null, this.overflowObserver = null, this.filterController = new Hl(this), this.shadowRootAutoloader = new El(this), this.movableRows = !1, this.movableColumns = !1, this.data = void 0, this.rowHeight = 48, this.layout = "fitColumns", this.columns = [], this.footerElement = void 0, this.responsiveLayout = !1, this.responsiveLayoutCollapseFormatter = void 0, this.responsiveLayoutCollapseUseFormatters = void 0, this.rowHeader = void 0, this.noHeader = !1, this.textDirection = void 0, this.responsiveLayoutCollapseStartOpen = void 0, this.renderVerticalBuffer = void 0, this.renderVertical = "virtual", this.columnDefaults = {}, this.canSearch = !1, this.noAdvancedSearch = !1, this.showSavedSearch = !1, this.searchFields = [], this.searchMatchAnyKeyword = !1, this.canAdd = !1, this.addLabel = this.localize.term("add"), this.canExportCsv = !1, this.canExportXml = !1, this.canExportCustom = !1, this.canSaveReport = !1, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.dropdownFilters = [], this.ajaxURL = void 0, this.ajaxURLGenerator = void 0, this.ajaxParams = void 0, this.ajaxResponse = void 0, this.dataSendParams = void 0, this.dataReceiveParams = void 0, this.noAutoResize = !1, this.resizableRows = !1, this.resizableColumnFit = !1, this.resizableColumnGuide = !1, this.resizableRowGuide = !1, this.frozenRows = void 0, this.frozenRowsField = "id", this.placeholder = this.localize.term("noData"), this.groupBy = void 0, this.groupHeader = void 0, this.groupHeaderCount = !1, this.groupIndent = 36, this.groupHeaderPrint = void 0, this.groupHeaderClipboard = void 0, this.groupHeaderDownload = void 0, this.groupHeaderHtmlOutput = void 0, this.groupStartOpen = !1, this.groupStartOpenValues = void 0, this.groupToggleElement = "arrow", this.groupValues = [], this.groupUpdateOnCellEdit = !1, this.groupLoadMoreMeta = {}, this.dataTree = !1, this.dataTreeChildField = "_children", this.dataTreeLoadingField = "loading", this.dataTreeHasMoreField = "hasMore", this.dataTreeFilter = !1, this.dataTreeSort = !1, this.dataTreeElementColumn = void 0, this.dataTreeChildIndent = 9, this.dataTreeStartExpanded = !1, this.dataTreeSelectPropagate = !1, this.dataTreeExpandElement = void 0, this.dataTreeCollapseElement = void 0, this.spreadsheet = !1, this.spreadsheetColumns = 50, this.spreadsheetRows = 50, this.spreadsheetColumnDefinition = void 0, this.spreadsheetOutputFull = !1, this.editorEmptyValue = "", this.spreadsheetSheets = void 0, this.spreadsheetSheetTabs = !1, this.spreadsheetData = void 0, this.selectableRange = 1, this.noSelectable = !1, this.selectableRangeColumns = !1, this.selectableRangeRows = !1, this.selectableRangeClearCells = !1, this.editTriggerEvent = "dblclick", this.selectableRangeAutoFocus = !1, this.noClipboard = !1, this.clipboardAction = Ue.Both, this.clipboardCopyRowRange = "range", this.clipboardPasteParser = void 0, this.clipboardPasteAction = "insert", this.clipboardCopyConfig = { columnHeaders: !1 }, this.clipboardNoCopyStyled = !1, this.pagination = !1, this.paginationMode = de.Local, this.paginationSize = void 0, this.paginationInitialPage = 1, this.paginationButtonCount = 5, this.showPaginationButtons = !1, this.hidePaginationInput = !1, this.pageSizeOptions = void 0, this.paginationAddRow = "page", this.paginationCounter = ho.Both, this.paginationShowFirst = !1, this.paginationShowLast = !1, this.hoverMenu = void 0, this.label = "", this.tabulatorRole = "grid", this.columnGroupRole = "columngroup", this.columnHeaderRole = "columnheader", this.rowRole = "row", this.rowGroupRole = "rowgroup", this.cellRole = "gridcell", this.filterMode = de.Local, this.placeholderHeaderFilter = "No matching data", this.noColumnPlaceholderText = this.localize.term("noColumnsVisible"), this.useOverlayScrollbar = !1, this.loading = !1, this.tabulatorInstance = null, this.watchedEvents = /* @__PURE__ */ new Set(), this.activeSearchValue = "", this.handleTableBuilt = () => {
|
|
17145
17260
|
this.useOverlayScrollbar ? this.initVerticalScrollbar() : this.verticalOsInstance?.destroy(), this.initHorizontalScrollbar(), this.initOverflowObserver(), this.filterController.syncDropdownFilterSources(this.dropdownFilters), this.handleSearch(), this.filterController.applyFilters(), this.attachPaginatorToToolbar();
|
|
17146
17261
|
}, this.checkHorizontalOverflow = () => {
|
|
17147
17262
|
if (!this.tabulatorElement || !this.tabulatorHolder)
|
|
17148
17263
|
return;
|
|
17149
17264
|
const e = this.tabulatorHolder.scrollWidth > this.tabulatorElement.clientWidth;
|
|
17150
17265
|
this.tabulatorElement.classList.toggle("tabulator-overflow-x", e);
|
|
17151
|
-
}
|
|
17266
|
+
};
|
|
17152
17267
|
const n = this.addEventListener;
|
|
17153
17268
|
this.addEventListener = (e, t, ...i) => {
|
|
17154
17269
|
const [s, o] = e.split(".");
|
|
@@ -17188,9 +17303,9 @@ let w = class extends Ie {
|
|
|
17188
17303
|
}
|
|
17189
17304
|
async initTable() {
|
|
17190
17305
|
let n = this.rowHeader;
|
|
17191
|
-
n == null && (this.movableRows ? n =
|
|
17306
|
+
n == null && (this.movableRows ? n = rh : this.responsiveLayout === "collapse" && (n = {
|
|
17192
17307
|
formatter: "responsiveCollapse"
|
|
17193
|
-
})), this.tabulatorInstance = new
|
|
17308
|
+
})), this.tabulatorInstance = new Cl(this.table, {
|
|
17194
17309
|
ajaxParams: this.ajaxParams,
|
|
17195
17310
|
ajaxResponse: this.ajaxResponse,
|
|
17196
17311
|
ajaxURL: this.ajaxURL,
|
|
@@ -17239,7 +17354,7 @@ let w = class extends Ie {
|
|
|
17239
17354
|
groupHeaderPrint: this.groupHeaderPrint,
|
|
17240
17355
|
groupIndent: this.groupIndent,
|
|
17241
17356
|
groupLoadMoreMeta: this.groupLoadMoreMeta,
|
|
17242
|
-
groupStartOpen:
|
|
17357
|
+
groupStartOpen: uh(this, xi, Js),
|
|
17243
17358
|
groupToggleElement: this.groupToggleElement,
|
|
17244
17359
|
groupUpdateOnCellEdit: this.groupUpdateOnCellEdit,
|
|
17245
17360
|
groupValues: this.groupValues,
|
|
@@ -17314,7 +17429,7 @@ let w = class extends Ie {
|
|
|
17314
17429
|
});
|
|
17315
17430
|
}
|
|
17316
17431
|
initVerticalScrollbar() {
|
|
17317
|
-
!this.tabulatorHolder || !this.tabulatorInstance?.initialized || (this.verticalOsInstance?.destroy(), this.verticalOsInstance =
|
|
17432
|
+
!this.tabulatorHolder || !this.tabulatorInstance?.initialized || (this.verticalOsInstance?.destroy(), this.verticalOsInstance = Zi(this.tabulatorHolder, {
|
|
17318
17433
|
overflow: {
|
|
17319
17434
|
x: "hidden",
|
|
17320
17435
|
y: "scroll"
|
|
@@ -17326,7 +17441,7 @@ let w = class extends Ie {
|
|
|
17326
17441
|
}), this.tabulatorInstance?.redraw());
|
|
17327
17442
|
}
|
|
17328
17443
|
initHorizontalScrollbar() {
|
|
17329
|
-
!this.tabulatorElement || !this.tabulatorInstance?.initialized || (this.horizontalOsInstance?.destroy(), this.horizontalOsInstance =
|
|
17444
|
+
!this.tabulatorElement || !this.tabulatorInstance?.initialized || (this.horizontalOsInstance?.destroy(), this.horizontalOsInstance = Zi(this.tabulatorElement, {
|
|
17330
17445
|
overflow: {
|
|
17331
17446
|
x: "scroll",
|
|
17332
17447
|
y: "hidden"
|
|
@@ -17470,7 +17585,7 @@ let w = class extends Ie {
|
|
|
17470
17585
|
this.filterController.setSourceFilters(`dropdown:${e}`, t.filter ? [t.filter] : []);
|
|
17471
17586
|
}
|
|
17472
17587
|
render() {
|
|
17473
|
-
return E`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${
|
|
17588
|
+
return E`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${co({
|
|
17474
17589
|
container: !0,
|
|
17475
17590
|
"container--overlay-scrollbar": this.useOverlayScrollbar
|
|
17476
17591
|
})}>${X(
|
|
@@ -17479,24 +17594,24 @@ let w = class extends Ie {
|
|
|
17479
17594
|
)}<div part="table" class="table"></div></cx-space>`;
|
|
17480
17595
|
}
|
|
17481
17596
|
};
|
|
17482
|
-
|
|
17483
|
-
|
|
17597
|
+
xi = /* @__PURE__ */ new WeakSet();
|
|
17598
|
+
Js = function() {
|
|
17484
17599
|
return this.groupStartOpenValues !== void 0 && this.groupStartOpenValues !== null ? (n) => this.groupStartOpenValues?.includes(n) ?? !1 : this.groupStartOpen;
|
|
17485
17600
|
};
|
|
17486
17601
|
w.styles = [
|
|
17487
17602
|
Qe,
|
|
17488
|
-
|
|
17489
|
-
|
|
17603
|
+
oh,
|
|
17604
|
+
io
|
|
17490
17605
|
];
|
|
17491
17606
|
w.dependencies = {
|
|
17492
17607
|
"cx-button": Ve,
|
|
17493
|
-
"cx-checkbox":
|
|
17494
|
-
"cx-divider":
|
|
17495
|
-
"cx-format-number":
|
|
17496
|
-
"cx-icon-button":
|
|
17497
|
-
"cx-select":
|
|
17498
|
-
"cx-space":
|
|
17499
|
-
"cx-spinner":
|
|
17608
|
+
"cx-checkbox": Ys,
|
|
17609
|
+
"cx-divider": Qs,
|
|
17610
|
+
"cx-format-number": Zs,
|
|
17611
|
+
"cx-icon-button": Ls,
|
|
17612
|
+
"cx-select": eo,
|
|
17613
|
+
"cx-space": Ri,
|
|
17614
|
+
"cx-spinner": to,
|
|
17500
17615
|
"cx-table-row-actions": ye,
|
|
17501
17616
|
"cx-table-toolbar": F
|
|
17502
17617
|
};
|
|
@@ -17787,7 +17902,7 @@ v([
|
|
|
17787
17902
|
v([
|
|
17788
17903
|
g({
|
|
17789
17904
|
attribute: "frozen-rows",
|
|
17790
|
-
converter:
|
|
17905
|
+
converter: nh
|
|
17791
17906
|
})
|
|
17792
17907
|
], w.prototype, "frozenRows", 2);
|
|
17793
17908
|
v([
|
|
@@ -17805,7 +17920,7 @@ v([
|
|
|
17805
17920
|
v([
|
|
17806
17921
|
g({
|
|
17807
17922
|
attribute: "group-by",
|
|
17808
|
-
converter:
|
|
17923
|
+
converter: lh
|
|
17809
17924
|
})
|
|
17810
17925
|
], w.prototype, "groupBy", 2);
|
|
17811
17926
|
v([
|
|
@@ -17954,7 +18069,7 @@ v([
|
|
|
17954
18069
|
v([
|
|
17955
18070
|
g({
|
|
17956
18071
|
attribute: "data-tree-start-expanded",
|
|
17957
|
-
converter:
|
|
18072
|
+
converter: ah
|
|
17958
18073
|
})
|
|
17959
18074
|
], w.prototype, "dataTreeStartExpanded", 2);
|
|
17960
18075
|
v([
|
|
@@ -18441,22 +18556,22 @@ export {
|
|
|
18441
18556
|
kt as A,
|
|
18442
18557
|
ti as B,
|
|
18443
18558
|
w as C,
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
|
|
18559
|
+
Vt as D,
|
|
18560
|
+
Bt as E,
|
|
18561
|
+
Gt as F,
|
|
18562
|
+
As as G,
|
|
18448
18563
|
Re as H,
|
|
18449
|
-
|
|
18564
|
+
Jt as I,
|
|
18450
18565
|
ii as J,
|
|
18451
|
-
|
|
18566
|
+
Yt as K,
|
|
18452
18567
|
si as L,
|
|
18453
|
-
|
|
18568
|
+
S as M,
|
|
18454
18569
|
oi as N,
|
|
18455
18570
|
ri as O,
|
|
18456
|
-
|
|
18571
|
+
Zh as P,
|
|
18457
18572
|
ni as Q,
|
|
18458
|
-
|
|
18459
|
-
|
|
18573
|
+
Di as R,
|
|
18574
|
+
Us as S,
|
|
18460
18575
|
ve as T,
|
|
18461
18576
|
ai as U,
|
|
18462
18577
|
li as V,
|
|
@@ -18465,31 +18580,33 @@ export {
|
|
|
18465
18580
|
di as Y,
|
|
18466
18581
|
ui as Z,
|
|
18467
18582
|
pi as _,
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18583
|
+
Cl as a,
|
|
18584
|
+
gi as a0,
|
|
18585
|
+
mi as a1,
|
|
18586
|
+
ye as a2,
|
|
18587
|
+
F as a3,
|
|
18588
|
+
ki as b,
|
|
18589
|
+
Ht as c,
|
|
18590
|
+
_o as d,
|
|
18591
|
+
La as e,
|
|
18475
18592
|
B as f,
|
|
18476
18593
|
Ze as g,
|
|
18477
18594
|
wt as h,
|
|
18478
18595
|
Dt as i,
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18596
|
+
Lt as j,
|
|
18597
|
+
zt as k,
|
|
18598
|
+
Pt as l,
|
|
18599
|
+
At as m,
|
|
18600
|
+
_t as n,
|
|
18601
|
+
It as o,
|
|
18485
18602
|
Wt as p,
|
|
18486
|
-
|
|
18603
|
+
at as q,
|
|
18487
18604
|
jt as r,
|
|
18488
18605
|
$t as s,
|
|
18489
18606
|
Ut as t,
|
|
18490
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
18607
|
+
Kt as u,
|
|
18608
|
+
Xt as v,
|
|
18609
|
+
qt as w,
|
|
18493
18610
|
Qt as x,
|
|
18494
18611
|
Zt as y,
|
|
18495
18612
|
ei as z
|