@sankhyalabs/ezui 7.1.9 → 7.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
- package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
- package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
- package/dist/cjs/DialogType-2114c337.js.gz +0 -0
- package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
- package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
- package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
- package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
- package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
- package/dist/cjs/constants-72b7e05e.js.gz +0 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-grid.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
- package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
- package/dist/cjs/ezui.cjs.js.gz +0 -0
- package/dist/cjs/filter-column.cjs.entry.js +6 -1
- package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
- package/dist/cjs/floating-ui.dom.esm-f4d87617.js.gz +0 -0
- package/dist/cjs/index-1be40f19.js.gz +0 -0
- package/dist/cjs/index-a7b0c73d.js.gz +0 -0
- package/dist/cjs/index.cjs.js.gz +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/{purify-ca9603eb.js → purify-db11ac44.js} +677 -245
- package/dist/cjs/purify-db11ac44.js.gz +0 -0
- package/dist/cjs/search-column-316e2c59.js.gz +0 -0
- package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
- package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
- package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
- package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
- package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
- package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
- package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
- package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
- package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
- package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
- package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
- package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
- package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
- package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
- package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
- package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
- package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
- package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
- package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
- package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
- package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
- package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
- package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
- package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
- package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
- package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
- package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
- package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
- package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
- package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
- package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
- package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
- package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
- package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
- package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
- package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
- package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
- package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
- package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
- package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
- package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
- package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
- package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
- package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +6 -1
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
- package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
- package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
- package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
- package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
- package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
- package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
- package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
- package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
- package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
- package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
- package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
- package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
- package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
- package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
- package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
- package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
- package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
- package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
- package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
- package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
- package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
- package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
- package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
- package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
- package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
- package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
- package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
- package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
- package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
- package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
- package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
- package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
- package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
- package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
- package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
- package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
- package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
- package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
- package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
- package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
- package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
- package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
- package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
- package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
- package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
- package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
- package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
- package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
- package/dist/collection/global/app-init.js.gz +0 -0
- package/dist/collection/index.js.gz +0 -0
- package/dist/collection/servidor.js.gz +0 -0
- package/dist/collection/setupTests.js.gz +0 -0
- package/dist/collection/sw.js.gz +0 -0
- package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
- package/dist/collection/utils/AssetsUtils.js.gz +0 -0
- package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
- package/dist/collection/utils/FocusResolver.js.gz +0 -0
- package/dist/collection/utils/ag-grid-license.js.gz +0 -0
- package/dist/collection/utils/constants.js.gz +0 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
- package/dist/collection/utils/form/DataBinder.js.gz +0 -0
- package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
- package/dist/collection/utils/form/index.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
- package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
- package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
- package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
- package/dist/collection/utils/i18n/index.js.gz +0 -0
- package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
- package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
- package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
- package/dist/collection/utils/i18n/translations.js.gz +0 -0
- package/dist/collection/utils/index.js.gz +0 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
- package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
- package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
- package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
- package/dist/collection/utils/search/types.js.gz +0 -0
- package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
- package/dist/custom-elements/index.js +683 -246
- package/dist/custom-elements/index.js.gz +0 -0
- package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
- package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
- package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
- package/dist/esm/DialogType-54a62731.js.gz +0 -0
- package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
- package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
- package/dist/esm/FormLayout-071d324c.js.gz +0 -0
- package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
- package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
- package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
- package/dist/esm/constants-3fabe81e.js.gz +0 -0
- package/dist/esm/ez-actions-button.entry.js.gz +0 -0
- package/dist/esm/ez-alert-list.entry.js.gz +0 -0
- package/dist/esm/ez-alert.entry.js.gz +0 -0
- package/dist/esm/ez-application.entry.js.gz +0 -0
- package/dist/esm/ez-avatar.entry.js.gz +0 -0
- package/dist/esm/ez-badge.entry.js.gz +0 -0
- package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
- package/dist/esm/ez-button.entry.js.gz +0 -0
- package/dist/esm/ez-calendar.entry.js.gz +0 -0
- package/dist/esm/ez-card-item.entry.js.gz +0 -0
- package/dist/esm/ez-chart.entry.js.gz +0 -0
- package/dist/esm/ez-check.entry.js.gz +0 -0
- package/dist/esm/ez-chip.entry.js.gz +0 -0
- package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
- package/dist/esm/ez-classic-input.entry.js.gz +0 -0
- package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
- package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
- package/dist/esm/ez-combo-box-list_4.entry.js +1 -1
- package/dist/esm/ez-combo-box-list_4.entry.js.gz +0 -0
- package/dist/esm/ez-combo-box.entry.js.gz +0 -0
- package/dist/esm/ez-date-input.entry.js.gz +0 -0
- package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
- package/dist/esm/ez-dialog.entry.js.gz +0 -0
- package/dist/esm/ez-double-list.entry.js.gz +0 -0
- package/dist/esm/ez-dropdown.entry.js.gz +0 -0
- package/dist/esm/ez-empty-card.entry.js.gz +0 -0
- package/dist/esm/ez-file-item.entry.js.gz +0 -0
- package/dist/esm/ez-filter-input.entry.js.gz +0 -0
- package/dist/esm/ez-form-view.entry.js.gz +0 -0
- package/dist/esm/ez-form.entry.js.gz +0 -0
- package/dist/esm/ez-grid-view.entry.js.gz +0 -0
- package/dist/esm/ez-grid.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js.gz +0 -0
- package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
- package/dist/esm/ez-icon.entry.js.gz +0 -0
- package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
- package/dist/esm/ez-list-item.entry.js.gz +0 -0
- package/dist/esm/ez-list.entry.js.gz +0 -0
- package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
- package/dist/esm/ez-modal-container.entry.js.gz +0 -0
- package/dist/esm/ez-modal.entry.js.gz +0 -0
- package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
- package/dist/esm/ez-number-input.entry.js.gz +0 -0
- package/dist/esm/ez-pagination.entry.js.gz +0 -0
- package/dist/esm/ez-popover-core.entry.js.gz +0 -0
- package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
- package/dist/esm/ez-popover.entry.js.gz +0 -0
- package/dist/esm/ez-popup.entry.js.gz +0 -0
- package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
- package/dist/esm/ez-radio-button.entry.js.gz +0 -0
- package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
- package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
- package/dist/esm/ez-search-plus.entry.js.gz +0 -0
- package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
- package/dist/esm/ez-search.entry.js.gz +0 -0
- package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
- package/dist/esm/ez-skeleton.entry.js.gz +0 -0
- package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
- package/dist/esm/ez-spinner.entry.js.gz +0 -0
- package/dist/esm/ez-split-button.entry.js.gz +0 -0
- package/dist/esm/ez-split-item.entry.js.gz +0 -0
- package/dist/esm/ez-split-panel.entry.js.gz +0 -0
- package/dist/esm/ez-tabselector.entry.js.gz +0 -0
- package/dist/esm/ez-tag-input.entry.js.gz +0 -0
- package/dist/esm/ez-tag.entry.js.gz +0 -0
- package/dist/esm/ez-text-area.entry.js.gz +0 -0
- package/dist/esm/ez-text-input.entry.js.gz +0 -0
- package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
- package/dist/esm/ez-tile.entry.js.gz +0 -0
- package/dist/esm/ez-time-input.entry.js.gz +0 -0
- package/dist/esm/ez-toast.entry.js.gz +0 -0
- package/dist/esm/ez-tooltip.entry.js.gz +0 -0
- package/dist/esm/ez-tree.entry.js.gz +0 -0
- package/dist/esm/ez-underface.entry.js.gz +0 -0
- package/dist/esm/ez-upload.entry.js.gz +0 -0
- package/dist/esm/ez-view-stack.entry.js.gz +0 -0
- package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
- package/dist/esm/ezui.js.gz +0 -0
- package/dist/esm/filter-column.entry.js +6 -1
- package/dist/esm/filter-column.entry.js.gz +0 -0
- package/dist/esm/floating-ui.dom.esm-ad30f2f0.js.gz +0 -0
- package/dist/esm/index-41363fa6.js.gz +0 -0
- package/dist/esm/index-baa5e267.js.gz +0 -0
- package/dist/esm/index.js.gz +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/polyfills/core-js.js.gz +0 -0
- package/dist/esm/polyfills/css-shim.js.gz +0 -0
- package/dist/esm/polyfills/dom.js.gz +0 -0
- package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
- package/dist/esm/polyfills/index.js.gz +0 -0
- package/dist/esm/polyfills/system.js.gz +0 -0
- package/dist/esm/{purify-a818ad63.js → purify-d55d1f11.js} +677 -245
- package/dist/esm/purify-d55d1f11.js.gz +0 -0
- package/dist/esm/search-column-c20d2b01.js.gz +0 -0
- package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/ezui.esm.js.gz +0 -0
- package/dist/ezui/index.esm.js.gz +0 -0
- package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
- package/dist/ezui/p-04126429.js.gz +0 -0
- package/dist/ezui/p-05c32903.entry.js.gz +0 -0
- package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
- package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
- package/dist/ezui/p-112455b1.js.gz +0 -0
- package/dist/ezui/p-18384b91.entry.js.gz +0 -0
- package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
- package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
- package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
- package/dist/ezui/p-23a36bb6.js.gz +0 -0
- package/dist/ezui/p-2528e988.entry.js.gz +0 -0
- package/dist/ezui/p-288631d1.entry.js.gz +0 -0
- package/dist/ezui/p-2a806303.js.gz +0 -0
- package/dist/ezui/{p-183db57c.entry.js → p-2cc07392.entry.js} +1 -1
- package/dist/ezui/p-2cc07392.entry.js.gz +0 -0
- package/dist/ezui/p-30ffb9ed.js.gz +0 -0
- package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
- package/dist/ezui/p-351fb12f.entry.js.gz +0 -0
- package/dist/ezui/p-39761eca.entry.js.gz +0 -0
- package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
- package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
- package/dist/ezui/p-3e767a74.js.gz +0 -0
- package/dist/ezui/p-40a60148.js.gz +0 -0
- package/dist/ezui/p-411c0222.entry.js.gz +0 -0
- package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
- package/dist/ezui/p-48effc69.entry.js.gz +0 -0
- package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
- package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
- package/dist/ezui/p-5554704c.js.gz +0 -0
- package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
- package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
- package/dist/ezui/p-62a362b4.js +3 -0
- package/dist/ezui/p-62a362b4.js.gz +0 -0
- package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
- package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
- package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
- package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
- package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
- package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
- package/dist/ezui/p-721fd999.entry.js.gz +0 -0
- package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
- package/dist/ezui/p-7f37ee99.entry.js.gz +0 -0
- package/dist/ezui/p-7f792043.entry.js.gz +0 -0
- package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
- package/dist/ezui/p-80dfc50b.js.gz +0 -0
- package/dist/ezui/p-859e3134.entry.js.gz +0 -0
- package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
- package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
- package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
- package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
- package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
- package/dist/ezui/p-967ed829.entry.js +1 -0
- package/dist/ezui/p-967ed829.entry.js.gz +0 -0
- package/dist/ezui/p-98bb8b16.js.gz +0 -0
- package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
- package/dist/ezui/p-9b215871.entry.js.gz +0 -0
- package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
- package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
- package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
- package/dist/ezui/p-a278f26e.entry.js.gz +0 -0
- package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
- package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
- package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
- package/dist/ezui/p-a61fdd20.js.gz +0 -0
- package/dist/ezui/p-a63b20a0.entry.js.gz +0 -0
- package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
- package/dist/ezui/p-ab574d59.js.gz +0 -0
- package/dist/ezui/p-b1e45320.js.gz +0 -0
- package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
- package/dist/ezui/p-b853763b.js.gz +0 -0
- package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
- package/dist/ezui/p-baec56c9.js.gz +0 -0
- package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
- package/dist/ezui/{p-c9ef8551.entry.js → p-c2d1f276.entry.js} +1 -1
- package/dist/ezui/p-c2d1f276.entry.js.gz +0 -0
- package/dist/ezui/p-cde41310.entry.js.gz +0 -0
- package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
- package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
- package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
- package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
- package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
- package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
- package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
- package/dist/ezui/p-dc628ed3.js.gz +0 -0
- package/dist/ezui/p-de862af4.entry.js.gz +0 -0
- package/dist/ezui/p-dee18824.entry.js.gz +0 -0
- package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
- package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
- package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
- package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
- package/dist/ezui/p-ec7db713.js.gz +0 -0
- package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
- package/dist/ezui/p-ef8bd3e8.entry.js.gz +0 -0
- package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
- package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
- package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
- package/dist/index.cjs.js.gz +0 -0
- package/dist/index.js.gz +0 -0
- package/package.json +1 -1
- package/dist/cjs/purify-ca9603eb.js.gz +0 -0
- package/dist/esm/purify-a818ad63.js.gz +0 -0
- package/dist/ezui/p-183db57c.entry.js.gz +0 -0
- package/dist/ezui/p-197eb577.js +0 -3
- package/dist/ezui/p-197eb577.js.gz +0 -0
- package/dist/ezui/p-2b49aa22.entry.js +0 -1
- package/dist/ezui/p-2b49aa22.entry.js.gz +0 -0
- package/dist/ezui/p-c9ef8551.entry.js.gz +0 -0
|
@@ -75209,7 +75209,7 @@ var MenuModule = {
|
|
|
75209
75209
|
};
|
|
75210
75210
|
|
|
75211
75211
|
var purify = createCommonjsModule(function (module, exports) {
|
|
75212
|
-
/*! @license DOMPurify 3.4.
|
|
75212
|
+
/*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE */
|
|
75213
75213
|
|
|
75214
75214
|
(function (global, factory) {
|
|
75215
75215
|
module.exports = factory() ;
|
|
@@ -75541,6 +75541,13 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75541
75541
|
);
|
|
75542
75542
|
const DOCTYPE_NAME = seal(/^html$/i);
|
|
75543
75543
|
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
75544
|
+
// Markup-significant character probes used by _sanitizeElements.
|
|
75545
|
+
// Shared module-level instances are safe despite the sticky /g flags:
|
|
75546
|
+
// unapply() resets lastIndex for RegExp receivers before every call.
|
|
75547
|
+
const ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
|
|
75548
|
+
const COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
|
|
75549
|
+
const FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
|
|
75550
|
+
const SELF_CLOSING_TAG = seal(/\/>/i);
|
|
75544
75551
|
|
|
75545
75552
|
/* eslint-disable @typescript-eslint/indent */
|
|
75546
75553
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
@@ -75553,7 +75560,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75553
75560
|
// Deprecated
|
|
75554
75561
|
entityNode: 6,
|
|
75555
75562
|
// Deprecated
|
|
75556
|
-
|
|
75563
|
+
processingInstruction: 7,
|
|
75557
75564
|
comment: 8,
|
|
75558
75565
|
document: 9,
|
|
75559
75566
|
documentType: 10,
|
|
@@ -75613,10 +75620,25 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75613
75620
|
uponSanitizeShadowNode: []
|
|
75614
75621
|
};
|
|
75615
75622
|
};
|
|
75623
|
+
/**
|
|
75624
|
+
* Resolve a set-valued configuration option: a fresh set built from
|
|
75625
|
+
* cfg[key] when it is an own array property (seeded with a clone of
|
|
75626
|
+
* options.base when given, case-normalized via options.transform),
|
|
75627
|
+
* the fallback set otherwise.
|
|
75628
|
+
*
|
|
75629
|
+
* @param cfg the cloned, prototype-free configuration object
|
|
75630
|
+
* @param key the configuration property to read
|
|
75631
|
+
* @param fallback the set to use when the option is absent or not an array
|
|
75632
|
+
* @param options transform and optional base set to merge into
|
|
75633
|
+
* @returns the resolved set
|
|
75634
|
+
*/
|
|
75635
|
+
const _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
|
|
75636
|
+
return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
|
|
75637
|
+
};
|
|
75616
75638
|
function createDOMPurify() {
|
|
75617
75639
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
75618
75640
|
const DOMPurify = root => createDOMPurify(root);
|
|
75619
|
-
DOMPurify.version = '3.4.
|
|
75641
|
+
DOMPurify.version = '3.4.10';
|
|
75620
75642
|
DOMPurify.removed = [];
|
|
75621
75643
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
75622
75644
|
// Not running in a browser, provide a factory function
|
|
@@ -75657,23 +75679,54 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75657
75679
|
}
|
|
75658
75680
|
let trustedTypesPolicy;
|
|
75659
75681
|
let emptyHTML = '';
|
|
75682
|
+
// The instance's own internal Trusted Types policy. Unlike a caller-supplied
|
|
75683
|
+
// `TRUSTED_TYPES_POLICY`, this is created at most once — Trusted Types throws
|
|
75684
|
+
// on duplicate policy names — and is the only policy allowed to persist
|
|
75685
|
+
// across configurations and survive `clearConfig()`.
|
|
75686
|
+
let defaultTrustedTypesPolicy;
|
|
75687
|
+
let defaultTrustedTypesPolicyResolved = false;
|
|
75660
75688
|
// Tracks whether we are already inside a call to the configured Trusted Types
|
|
75661
|
-
// policy
|
|
75689
|
+
// policy (`createHTML` or `createScriptURL`). If a supplied policy callback
|
|
75662
75690
|
// itself calls `DOMPurify.sanitize` (the cause of #1422), `sanitize` would
|
|
75663
75691
|
// re-enter the policy and recurse until the stack overflows. We detect that
|
|
75664
|
-
// re-entry and throw a clear, actionable error instead.
|
|
75665
|
-
|
|
75666
|
-
|
|
75667
|
-
|
|
75668
|
-
|
|
75692
|
+
// re-entry and throw a clear, actionable error instead. The guard is shared
|
|
75693
|
+
// across both callbacks, because either one re-entering `sanitize` triggers
|
|
75694
|
+
// the same unbounded recursion.
|
|
75695
|
+
let IN_TRUSTED_TYPES_POLICY = 0;
|
|
75696
|
+
const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
|
|
75697
|
+
if (IN_TRUSTED_TYPES_POLICY > 0) {
|
|
75698
|
+
throw typeErrorCreate('A configured TRUSTED_TYPES_POLICY callback (createHTML or ' + 'createScriptURL) must not call DOMPurify.sanitize, as that causes ' + 'infinite recursion. Do not pass a policy whose callbacks wrap ' + 'DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted ' + 'Types" section of the README.');
|
|
75669
75699
|
}
|
|
75670
|
-
|
|
75700
|
+
};
|
|
75701
|
+
const _createTrustedHTML = function _createTrustedHTML(html) {
|
|
75702
|
+
_assertNotInTrustedTypesPolicy();
|
|
75703
|
+
IN_TRUSTED_TYPES_POLICY++;
|
|
75671
75704
|
try {
|
|
75672
75705
|
return trustedTypesPolicy.createHTML(html);
|
|
75673
75706
|
} finally {
|
|
75674
|
-
|
|
75707
|
+
IN_TRUSTED_TYPES_POLICY--;
|
|
75675
75708
|
}
|
|
75676
75709
|
};
|
|
75710
|
+
const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
|
|
75711
|
+
_assertNotInTrustedTypesPolicy();
|
|
75712
|
+
IN_TRUSTED_TYPES_POLICY++;
|
|
75713
|
+
try {
|
|
75714
|
+
return trustedTypesPolicy.createScriptURL(scriptUrl);
|
|
75715
|
+
} finally {
|
|
75716
|
+
IN_TRUSTED_TYPES_POLICY--;
|
|
75717
|
+
}
|
|
75718
|
+
};
|
|
75719
|
+
// Lazily resolve (and cache) the instance's internal default policy.
|
|
75720
|
+
// Resolution is attempted at most once: a successful `createPolicy` cannot be
|
|
75721
|
+
// repeated (Trusted Types throws on duplicate names), and a failed or
|
|
75722
|
+
// unsupported attempt must not be retried on every parse.
|
|
75723
|
+
const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
|
|
75724
|
+
if (!defaultTrustedTypesPolicyResolved) {
|
|
75725
|
+
defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
75726
|
+
defaultTrustedTypesPolicyResolved = true;
|
|
75727
|
+
}
|
|
75728
|
+
return defaultTrustedTypesPolicy;
|
|
75729
|
+
};
|
|
75677
75730
|
const _document = document,
|
|
75678
75731
|
implementation = _document.implementation,
|
|
75679
75732
|
createNodeIterator = _document.createNodeIterator,
|
|
@@ -75812,7 +75865,17 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75812
75865
|
let USE_PROFILES = {};
|
|
75813
75866
|
/* Tags to ignore content of when KEEP_CONTENT is true */
|
|
75814
75867
|
let FORBID_CONTENTS = null;
|
|
75815
|
-
const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
|
|
75868
|
+
const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
|
|
75869
|
+
// <selectedcontent> mirrors the selected <option>'s subtree, cloned by
|
|
75870
|
+
// the UA (customizable <select>) — including any on* handlers — and the
|
|
75871
|
+
// engine re-mirrors synchronously whenever a removal changes which
|
|
75872
|
+
// option/selectedcontent is current, even inside DOMPurify's inert
|
|
75873
|
+
// DOMParser document. Hoisting its children on removal re-inserts a fresh
|
|
75874
|
+
// mirror target ahead of the walk, which the engine refills, looping
|
|
75875
|
+
// forever (DoS) and amplifying output. Dropping its content on removal
|
|
75876
|
+
// (rather than hoisting) breaks that cascade; the content is a duplicate
|
|
75877
|
+
// of the option, which is sanitized on its own. See campaign-3 F1/F6.
|
|
75878
|
+
'selectedcontent', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
|
|
75816
75879
|
/* Tags that are safe for data: URIs */
|
|
75817
75880
|
let DATA_URI_TAGS = null;
|
|
75818
75881
|
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
|
@@ -75828,8 +75891,10 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75828
75891
|
/* Allowed XHTML+XML namespaces */
|
|
75829
75892
|
let ALLOWED_NAMESPACES = null;
|
|
75830
75893
|
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
75831
|
-
|
|
75832
|
-
let
|
|
75894
|
+
const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze(['mi', 'mo', 'mn', 'ms', 'mtext']);
|
|
75895
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
|
|
75896
|
+
const DEFAULT_HTML_INTEGRATION_POINTS = freeze(['annotation-xml']);
|
|
75897
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
|
|
75833
75898
|
// Certain elements are allowed in both SVG and HTML
|
|
75834
75899
|
// namespace. We need to specify them explicitly
|
|
75835
75900
|
// so that they don't get erroneously deleted from
|
|
@@ -75871,14 +75936,32 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75871
75936
|
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
|
75872
75937
|
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
|
75873
75938
|
/* Set configuration parameters */
|
|
75874
|
-
ALLOWED_TAGS =
|
|
75875
|
-
|
|
75876
|
-
|
|
75877
|
-
|
|
75878
|
-
|
|
75879
|
-
|
|
75880
|
-
|
|
75881
|
-
|
|
75939
|
+
ALLOWED_TAGS = _resolveSetOption(cfg, 'ALLOWED_TAGS', DEFAULT_ALLOWED_TAGS, {
|
|
75940
|
+
transform: transformCaseFunc
|
|
75941
|
+
});
|
|
75942
|
+
ALLOWED_ATTR = _resolveSetOption(cfg, 'ALLOWED_ATTR', DEFAULT_ALLOWED_ATTR, {
|
|
75943
|
+
transform: transformCaseFunc
|
|
75944
|
+
});
|
|
75945
|
+
ALLOWED_NAMESPACES = _resolveSetOption(cfg, 'ALLOWED_NAMESPACES', DEFAULT_ALLOWED_NAMESPACES, {
|
|
75946
|
+
transform: stringToString
|
|
75947
|
+
});
|
|
75948
|
+
URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, 'ADD_URI_SAFE_ATTR', DEFAULT_URI_SAFE_ATTRIBUTES, {
|
|
75949
|
+
transform: transformCaseFunc,
|
|
75950
|
+
base: DEFAULT_URI_SAFE_ATTRIBUTES
|
|
75951
|
+
});
|
|
75952
|
+
DATA_URI_TAGS = _resolveSetOption(cfg, 'ADD_DATA_URI_TAGS', DEFAULT_DATA_URI_TAGS, {
|
|
75953
|
+
transform: transformCaseFunc,
|
|
75954
|
+
base: DEFAULT_DATA_URI_TAGS
|
|
75955
|
+
});
|
|
75956
|
+
FORBID_CONTENTS = _resolveSetOption(cfg, 'FORBID_CONTENTS', DEFAULT_FORBID_CONTENTS, {
|
|
75957
|
+
transform: transformCaseFunc
|
|
75958
|
+
});
|
|
75959
|
+
FORBID_TAGS = _resolveSetOption(cfg, 'FORBID_TAGS', clone({}), {
|
|
75960
|
+
transform: transformCaseFunc
|
|
75961
|
+
});
|
|
75962
|
+
FORBID_ATTR = _resolveSetOption(cfg, 'FORBID_ATTR', clone({}), {
|
|
75963
|
+
transform: transformCaseFunc
|
|
75964
|
+
});
|
|
75882
75965
|
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
|
|
75883
75966
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
75884
75967
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
@@ -75897,8 +75980,8 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75897
75980
|
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
|
75898
75981
|
IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
|
|
75899
75982
|
NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
|
|
75900
|
-
MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({},
|
|
75901
|
-
HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({},
|
|
75983
|
+
MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS); // Default built-in map
|
|
75984
|
+
HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS); // Default built-in map
|
|
75902
75985
|
const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
|
|
75903
75986
|
CUSTOM_ELEMENT_HANDLING = create(null);
|
|
75904
75987
|
if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
|
|
@@ -75910,6 +75993,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75910
75993
|
if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
|
|
75911
75994
|
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
|
|
75912
75995
|
}
|
|
75996
|
+
seal(CUSTOM_ELEMENT_HANDLING);
|
|
75913
75997
|
if (SAFE_FOR_TEMPLATES) {
|
|
75914
75998
|
ALLOW_DATA_ATTR = false;
|
|
75915
75999
|
}
|
|
@@ -75993,6 +76077,13 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75993
76077
|
addToSet(ALLOWED_TAGS, ['tbody']);
|
|
75994
76078
|
delete FORBID_TAGS.tbody;
|
|
75995
76079
|
}
|
|
76080
|
+
// Re-derive the active Trusted Types policy from this configuration on
|
|
76081
|
+
// every parse. The active policy must never be sticky closure state that
|
|
76082
|
+
// outlives the config that set it: a caller-supplied policy left in place
|
|
76083
|
+
// after `clearConfig()` — or after a later call that supplied none, or
|
|
76084
|
+
// `TRUSTED_TYPES_POLICY: null` — could sign a subsequent "default"
|
|
76085
|
+
// `RETURN_TRUSTED_TYPE` result with a foreign, possibly unsafe policy.
|
|
76086
|
+
// See GHSA-vxr8-fq34-vvx9.
|
|
75996
76087
|
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
75997
76088
|
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
|
75998
76089
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
@@ -76000,7 +76091,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76000
76091
|
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
|
76001
76092
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
76002
76093
|
}
|
|
76003
|
-
//
|
|
76094
|
+
// A caller-supplied policy applies to this configuration only.
|
|
76004
76095
|
const previousTrustedTypesPolicy = trustedTypesPolicy;
|
|
76005
76096
|
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
76006
76097
|
// Sign local variables required by `sanitize`. If the supplied policy's
|
|
@@ -76013,16 +76104,30 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76013
76104
|
trustedTypesPolicy = previousTrustedTypesPolicy;
|
|
76014
76105
|
throw error;
|
|
76015
76106
|
}
|
|
76107
|
+
} else if (cfg.TRUSTED_TYPES_POLICY === null) {
|
|
76108
|
+
// Explicit opt-out for this call: perform no Trusted Types signing and
|
|
76109
|
+
// create nothing (so a strict `trusted-types` CSP that disallows a
|
|
76110
|
+
// `dompurify` policy can still call `sanitize` from inside its own
|
|
76111
|
+
// policy — see #1422). Resetting to `undefined` rather than a sticky
|
|
76112
|
+
// `null` also drops any previously retained caller policy, so it cannot
|
|
76113
|
+
// resurface on a later call, while still allowing the next config-less
|
|
76114
|
+
// call to restore the internal default policy. See GHSA-vxr8-fq34-vvx9.
|
|
76115
|
+
trustedTypesPolicy = undefined;
|
|
76116
|
+
emptyHTML = '';
|
|
76016
76117
|
} else {
|
|
76017
|
-
//
|
|
76018
|
-
|
|
76019
|
-
|
|
76020
|
-
|
|
76021
|
-
//
|
|
76022
|
-
//
|
|
76023
|
-
|
|
76024
|
-
|
|
76025
|
-
|
|
76118
|
+
// No policy supplied: keep the currently active policy if one is set — a
|
|
76119
|
+
// previously supplied policy is intentionally sticky across config-less
|
|
76120
|
+
// calls — otherwise fall back to the instance's own internal policy,
|
|
76121
|
+
// created at most once. (A policy supplied for a *single* call still
|
|
76122
|
+
// lingers by design; what must not linger is a policy whose configuration
|
|
76123
|
+
// has been torn down via `clearConfig()`, which restores the default.)
|
|
76124
|
+
if (trustedTypesPolicy === undefined) {
|
|
76125
|
+
trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
|
|
76126
|
+
}
|
|
76127
|
+
// Sign internal variables only when a policy is active. A falsy policy
|
|
76128
|
+
// (Trusted Types unsupported, creation failed, or an explicit opt-out)
|
|
76129
|
+
// leaves `emptyHTML` as a plain string, so we never call `.createHTML` on
|
|
76130
|
+
// a non-policy and throw. See #1422.
|
|
76026
76131
|
if (trustedTypesPolicy && typeof emptyHTML === 'string') {
|
|
76027
76132
|
emptyHTML = _createTrustedHTML('');
|
|
76028
76133
|
}
|
|
@@ -76054,6 +76159,77 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76054
76159
|
* correctly. */
|
|
76055
76160
|
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
76056
76161
|
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
76162
|
+
/**
|
|
76163
|
+
* Namespace rules for an element in the SVG namespace.
|
|
76164
|
+
*
|
|
76165
|
+
* @param tagName the element's lowercase tag name
|
|
76166
|
+
* @param parent the (possibly simulated) parent node
|
|
76167
|
+
* @param parentTagName the parent's lowercase tag name
|
|
76168
|
+
* @returns true if a spec-compliant parser could produce this element
|
|
76169
|
+
*/
|
|
76170
|
+
const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
|
|
76171
|
+
// The only way to switch from HTML namespace to SVG
|
|
76172
|
+
// is via <svg>. If it happens via any other tag, then
|
|
76173
|
+
// it should be killed.
|
|
76174
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76175
|
+
return tagName === 'svg';
|
|
76176
|
+
}
|
|
76177
|
+
// The only way to switch from MathML to SVG is via <svg>
|
|
76178
|
+
// if the parent is either <annotation-xml> or a MathML
|
|
76179
|
+
// text integration point.
|
|
76180
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
76181
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
76182
|
+
}
|
|
76183
|
+
// We only allow elements that are defined in SVG
|
|
76184
|
+
// spec. All others are disallowed in SVG namespace.
|
|
76185
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
76186
|
+
};
|
|
76187
|
+
/**
|
|
76188
|
+
* Namespace rules for an element in the MathML namespace.
|
|
76189
|
+
*
|
|
76190
|
+
* @param tagName the element's lowercase tag name
|
|
76191
|
+
* @param parent the (possibly simulated) parent node
|
|
76192
|
+
* @param parentTagName the parent's lowercase tag name
|
|
76193
|
+
* @returns true if a spec-compliant parser could produce this element
|
|
76194
|
+
*/
|
|
76195
|
+
const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
|
|
76196
|
+
// The only way to switch from HTML namespace to MathML
|
|
76197
|
+
// is via <math>. If it happens via any other tag, then
|
|
76198
|
+
// it should be killed.
|
|
76199
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76200
|
+
return tagName === 'math';
|
|
76201
|
+
}
|
|
76202
|
+
// The only way to switch from SVG to MathML is via
|
|
76203
|
+
// <math> and HTML integration points
|
|
76204
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
76205
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
76206
|
+
}
|
|
76207
|
+
// We only allow elements that are defined in MathML
|
|
76208
|
+
// spec. All others are disallowed in MathML namespace.
|
|
76209
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
76210
|
+
};
|
|
76211
|
+
/**
|
|
76212
|
+
* Namespace rules for an element in the HTML namespace.
|
|
76213
|
+
*
|
|
76214
|
+
* @param tagName the element's lowercase tag name
|
|
76215
|
+
* @param parent the (possibly simulated) parent node
|
|
76216
|
+
* @param parentTagName the parent's lowercase tag name
|
|
76217
|
+
* @returns true if a spec-compliant parser could produce this element
|
|
76218
|
+
*/
|
|
76219
|
+
const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
|
|
76220
|
+
// The only way to switch from SVG to HTML is via
|
|
76221
|
+
// HTML integration points, and from MathML to HTML
|
|
76222
|
+
// is via MathML text integration points
|
|
76223
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
76224
|
+
return false;
|
|
76225
|
+
}
|
|
76226
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
76227
|
+
return false;
|
|
76228
|
+
}
|
|
76229
|
+
// We disallow tags that are specific for MathML
|
|
76230
|
+
// or SVG and should never appear in HTML namespace
|
|
76231
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
76232
|
+
};
|
|
76057
76233
|
/**
|
|
76058
76234
|
* @param element a DOM element whose namespace is being checked
|
|
76059
76235
|
* @returns Return false if the element has a
|
|
@@ -76076,51 +76252,13 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76076
76252
|
return false;
|
|
76077
76253
|
}
|
|
76078
76254
|
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
76079
|
-
|
|
76080
|
-
// is via <svg>. If it happens via any other tag, then
|
|
76081
|
-
// it should be killed.
|
|
76082
|
-
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76083
|
-
return tagName === 'svg';
|
|
76084
|
-
}
|
|
76085
|
-
// The only way to switch from MathML to SVG is via`
|
|
76086
|
-
// svg if parent is either <annotation-xml> or MathML
|
|
76087
|
-
// text integration points.
|
|
76088
|
-
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
76089
|
-
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
76090
|
-
}
|
|
76091
|
-
// We only allow elements that are defined in SVG
|
|
76092
|
-
// spec. All others are disallowed in SVG namespace.
|
|
76093
|
-
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
76255
|
+
return _checkSvgNamespace(tagName, parent, parentTagName);
|
|
76094
76256
|
}
|
|
76095
76257
|
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
76096
|
-
|
|
76097
|
-
// is via <math>. If it happens via any other tag, then
|
|
76098
|
-
// it should be killed.
|
|
76099
|
-
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76100
|
-
return tagName === 'math';
|
|
76101
|
-
}
|
|
76102
|
-
// The only way to switch from SVG to MathML is via
|
|
76103
|
-
// <math> and HTML integration points
|
|
76104
|
-
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
76105
|
-
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
76106
|
-
}
|
|
76107
|
-
// We only allow elements that are defined in MathML
|
|
76108
|
-
// spec. All others are disallowed in MathML namespace.
|
|
76109
|
-
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
76258
|
+
return _checkMathMlNamespace(tagName, parent, parentTagName);
|
|
76110
76259
|
}
|
|
76111
76260
|
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
76112
|
-
|
|
76113
|
-
// HTML integration points, and from MathML to HTML
|
|
76114
|
-
// is via MathML text integration points
|
|
76115
|
-
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
76116
|
-
return false;
|
|
76117
|
-
}
|
|
76118
|
-
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
76119
|
-
return false;
|
|
76120
|
-
}
|
|
76121
|
-
// We disallow tags that are specific for MathML
|
|
76122
|
-
// or SVG and should never appear in HTML namespace
|
|
76123
|
-
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
76261
|
+
return _checkHtmlNamespace(tagName, parent, parentTagName);
|
|
76124
76262
|
}
|
|
76125
76263
|
// For XHTML and XML documents that support custom namespaces
|
|
76126
76264
|
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
@@ -76145,7 +76283,74 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76145
76283
|
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
|
76146
76284
|
getParentNode(node).removeChild(node);
|
|
76147
76285
|
} catch (_) {
|
|
76286
|
+
/* The normal detach failed — this is reached for a parentless node
|
|
76287
|
+
(getParentNode() is null, so .removeChild throws). Element.prototype
|
|
76288
|
+
.remove() is itself a spec no-op on a parentless node, so a recorded
|
|
76289
|
+
"removal" would otherwise hand the caller back an intact,
|
|
76290
|
+
payload-bearing node (e.g. a detached IN_PLACE root the mXSS canary or
|
|
76291
|
+
the style-with-element-child rule decided to kill). Fail closed by
|
|
76292
|
+
throwing — exactly as a clobbered root does at the IN_PLACE entry —
|
|
76293
|
+
rather than trying to "neutralize" the node via its own methods.
|
|
76294
|
+
Neutralizing would mean calling getAttributeNames()/removeAttribute()
|
|
76295
|
+
on the node, both of which a <form> root can clobber via a named child
|
|
76296
|
+
(and _isClobbered does not even probe getAttributeNames), so the
|
|
76297
|
+
neutralize step could itself be silently defeated, leaving the payload
|
|
76298
|
+
intact. A throw touches only the cached, clobber-safe remove() and
|
|
76299
|
+
getParentNode(). Generalizes GHSA-r47g-fvhr-h676 (clobbered-form root)
|
|
76300
|
+
to every root-kill reason. REPORT-3.
|
|
76301
|
+
This lives inside the catch, so it never fires for a normally-removed
|
|
76302
|
+
in-tree node: those have a parent, removeChild() succeeds, and the
|
|
76303
|
+
catch is not entered. Only a kept (parentless) root reaches here. */
|
|
76148
76304
|
remove(node);
|
|
76305
|
+
if (!getParentNode(node)) {
|
|
76306
|
+
throw typeErrorCreate('a node selected for removal could not be detached from its tree ' + 'and cannot be safely returned; refusing to sanitize in place');
|
|
76307
|
+
}
|
|
76308
|
+
}
|
|
76309
|
+
};
|
|
76310
|
+
/**
|
|
76311
|
+
* _neutralizeRoot
|
|
76312
|
+
*
|
|
76313
|
+
* Fail-closed teardown of an in-place root after the sanitize walk aborts
|
|
76314
|
+
* (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
|
|
76315
|
+
* custom element's reaction detaches a node so `_forceRemove`'s deliberate
|
|
76316
|
+
* parentless guard throws, or any other re-entrant engine mutation — would
|
|
76317
|
+
* otherwise leave the caller's *live* tree half-sanitized, with everything
|
|
76318
|
+
* after the abort point still carrying its handlers. There is no safe way
|
|
76319
|
+
* to resume the walk (the tree mutated under us), so we strip the root bare:
|
|
76320
|
+
* remove every child and every attribute, then let the caller's catch see
|
|
76321
|
+
* the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
|
|
76322
|
+
* getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
|
|
76323
|
+
*
|
|
76324
|
+
* @param root the in-place root to empty
|
|
76325
|
+
*/
|
|
76326
|
+
const _neutralizeRoot = function _neutralizeRoot(root) {
|
|
76327
|
+
const childNodes = getChildNodes(root);
|
|
76328
|
+
if (childNodes) {
|
|
76329
|
+
const snapshot = [];
|
|
76330
|
+
arrayForEach(childNodes, child => {
|
|
76331
|
+
arrayPush(snapshot, child);
|
|
76332
|
+
});
|
|
76333
|
+
arrayForEach(snapshot, child => {
|
|
76334
|
+
try {
|
|
76335
|
+
remove(child);
|
|
76336
|
+
} catch (_) {
|
|
76337
|
+
/* Best-effort teardown; a still-attached child is handled below */
|
|
76338
|
+
}
|
|
76339
|
+
});
|
|
76340
|
+
}
|
|
76341
|
+
const attributes = getAttributes(root);
|
|
76342
|
+
if (attributes) {
|
|
76343
|
+
for (let i = attributes.length - 1; i >= 0; --i) {
|
|
76344
|
+
const attribute = attributes[i];
|
|
76345
|
+
const name = attribute && attribute.name;
|
|
76346
|
+
if (typeof name === 'string') {
|
|
76347
|
+
try {
|
|
76348
|
+
root.removeAttribute(name);
|
|
76349
|
+
} catch (_) {
|
|
76350
|
+
/* Clobbered removeAttribute — ignore (fail-closed best effort) */
|
|
76351
|
+
}
|
|
76352
|
+
}
|
|
76353
|
+
}
|
|
76149
76354
|
}
|
|
76150
76355
|
};
|
|
76151
76356
|
/**
|
|
@@ -76180,6 +76385,72 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76180
76385
|
}
|
|
76181
76386
|
}
|
|
76182
76387
|
};
|
|
76388
|
+
/**
|
|
76389
|
+
* _stripDisallowedAttributes
|
|
76390
|
+
*
|
|
76391
|
+
* Removes every attribute the active configuration does not allow from a
|
|
76392
|
+
* single element, using the same allowlist as the main attribute pass (so
|
|
76393
|
+
* `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
|
|
76394
|
+
* neutralise nodes that are being discarded from an in-place tree.
|
|
76395
|
+
*
|
|
76396
|
+
* @param element the element to strip
|
|
76397
|
+
*/
|
|
76398
|
+
const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
|
|
76399
|
+
const attributes = getAttributes(element);
|
|
76400
|
+
if (!attributes) {
|
|
76401
|
+
return;
|
|
76402
|
+
}
|
|
76403
|
+
for (let i = attributes.length - 1; i >= 0; --i) {
|
|
76404
|
+
const attribute = attributes[i];
|
|
76405
|
+
const name = attribute && attribute.name;
|
|
76406
|
+
if (typeof name !== 'string' || ALLOWED_ATTR[transformCaseFunc(name)]) {
|
|
76407
|
+
continue;
|
|
76408
|
+
}
|
|
76409
|
+
try {
|
|
76410
|
+
element.removeAttribute(name);
|
|
76411
|
+
} catch (_) {
|
|
76412
|
+
/* Clobbered removeAttribute on a doomed node — ignore */
|
|
76413
|
+
}
|
|
76414
|
+
}
|
|
76415
|
+
};
|
|
76416
|
+
/**
|
|
76417
|
+
* _neutralizeSubtree
|
|
76418
|
+
*
|
|
76419
|
+
* Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
|
|
76420
|
+
* move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
|
|
76421
|
+
* namespace, comment, processing-instruction and KEEP_CONTENT:false removals
|
|
76422
|
+
* all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
|
|
76423
|
+
* those dropped nodes are detached from the caller's LIVE tree but a
|
|
76424
|
+
* handler-bearing original among them (an `<img onerror>`/`<video>` that was
|
|
76425
|
+
* loading) keeps its queued resource event, which fires in page scope after
|
|
76426
|
+
* sanitize returns. This walks a removed subtree and strips every attribute
|
|
76427
|
+
* the active configuration does not allow — so `on*` handlers are cancelled
|
|
76428
|
+
* through the SAME allowlist that governs kept nodes, not a separate `/^on/`
|
|
76429
|
+
* blocklist. Run synchronously before sanitize returns, i.e. before any
|
|
76430
|
+
* queued event can fire. Hook-free by design: these nodes leave the output,
|
|
76431
|
+
* so firing attribute hooks for them would be surprising. Clobber-safe reads;
|
|
76432
|
+
* a doomed clobbered node may shadow `removeAttribute` (its own attributes are
|
|
76433
|
+
* irrelevant — it is discarded — while its non-clobbered descendants, e.g.
|
|
76434
|
+
* the `<img>`, are reached and scrubbed).
|
|
76435
|
+
*
|
|
76436
|
+
* @param root the root of a removed subtree to neutralise
|
|
76437
|
+
*/
|
|
76438
|
+
const _neutralizeSubtree = function _neutralizeSubtree(root) {
|
|
76439
|
+
const stack = [root];
|
|
76440
|
+
while (stack.length > 0) {
|
|
76441
|
+
const node = stack.pop();
|
|
76442
|
+
const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
|
|
76443
|
+
if (nodeType === NODE_TYPE.element) {
|
|
76444
|
+
_stripDisallowedAttributes(node);
|
|
76445
|
+
}
|
|
76446
|
+
const childNodes = getChildNodes(node);
|
|
76447
|
+
if (childNodes) {
|
|
76448
|
+
for (let i = childNodes.length - 1; i >= 0; --i) {
|
|
76449
|
+
stack.push(childNodes[i]);
|
|
76450
|
+
}
|
|
76451
|
+
}
|
|
76452
|
+
}
|
|
76453
|
+
};
|
|
76183
76454
|
/**
|
|
76184
76455
|
* _initDocument
|
|
76185
76456
|
*
|
|
@@ -76241,6 +76512,20 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76241
76512
|
// eslint-disable-next-line no-bitwise
|
|
76242
76513
|
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
76243
76514
|
};
|
|
76515
|
+
/**
|
|
76516
|
+
* Replace template expression syntax (mustache, ERB, template
|
|
76517
|
+
* literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
|
|
76518
|
+
* sites. Order matters: mustache, then ERB, then template literal.
|
|
76519
|
+
*
|
|
76520
|
+
* @param value the string to scrub
|
|
76521
|
+
* @returns the scrubbed string
|
|
76522
|
+
*/
|
|
76523
|
+
const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
|
|
76524
|
+
value = stringReplace(value, MUSTACHE_EXPR$1, ' ');
|
|
76525
|
+
value = stringReplace(value, ERB_EXPR$1, ' ');
|
|
76526
|
+
value = stringReplace(value, TMPLIT_EXPR$1, ' ');
|
|
76527
|
+
return value;
|
|
76528
|
+
};
|
|
76244
76529
|
/**
|
|
76245
76530
|
* Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
|
|
76246
76531
|
* character data of an element subtree. Used as the final safety net for
|
|
@@ -76261,29 +76546,27 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76261
76546
|
* @param node The root element whose character data should be scrubbed.
|
|
76262
76547
|
*/
|
|
76263
76548
|
const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
|
|
76264
|
-
var _node$querySelectorAl
|
|
76549
|
+
var _node$querySelectorAl;
|
|
76265
76550
|
node.normalize();
|
|
76266
76551
|
const walker = createNodeIterator.call(node.ownerDocument || node, node,
|
|
76267
76552
|
// eslint-disable-next-line no-bitwise
|
|
76268
76553
|
NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
|
|
76269
76554
|
let currentNode = walker.nextNode();
|
|
76270
76555
|
while (currentNode) {
|
|
76271
|
-
|
|
76272
|
-
arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
|
|
76273
|
-
data = stringReplace(data, expr, ' ');
|
|
76274
|
-
});
|
|
76275
|
-
currentNode.data = data;
|
|
76556
|
+
currentNode.data = _stripTemplateExpressions(currentNode.data);
|
|
76276
76557
|
currentNode = walker.nextNode();
|
|
76277
76558
|
}
|
|
76278
76559
|
// NodeIterator does not descend into <template>.content per the DOM spec,
|
|
76279
76560
|
// so we must explicitly recurse into each template's content fragment,
|
|
76280
76561
|
// mirroring the approach used by _sanitizeShadowDOM.
|
|
76281
|
-
const templates = (_node$querySelectorAl =
|
|
76282
|
-
|
|
76283
|
-
|
|
76284
|
-
|
|
76285
|
-
|
|
76286
|
-
|
|
76562
|
+
const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, 'template');
|
|
76563
|
+
if (templates) {
|
|
76564
|
+
arrayForEach(templates, tmpl => {
|
|
76565
|
+
if (_isDocumentFragment(tmpl.content)) {
|
|
76566
|
+
_scrubTemplateExpressions2(tmpl.content);
|
|
76567
|
+
}
|
|
76568
|
+
});
|
|
76569
|
+
}
|
|
76287
76570
|
};
|
|
76288
76571
|
/**
|
|
76289
76572
|
* _isClobbered
|
|
@@ -76379,10 +76662,104 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76379
76662
|
}
|
|
76380
76663
|
};
|
|
76381
76664
|
function _executeHooks(hooks, currentNode, data) {
|
|
76665
|
+
if (hooks.length === 0) {
|
|
76666
|
+
return;
|
|
76667
|
+
}
|
|
76382
76668
|
arrayForEach(hooks, hook => {
|
|
76383
76669
|
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
76384
76670
|
});
|
|
76385
76671
|
}
|
|
76672
|
+
/**
|
|
76673
|
+
* Structural-threat checks that condemn a node regardless of the
|
|
76674
|
+
* allowlists: mXSS via namespace confusion, risky CSS construction,
|
|
76675
|
+
* processing instructions, markup-bearing comments. Pure predicate;
|
|
76676
|
+
* the caller removes. Check order is load-bearing.
|
|
76677
|
+
*
|
|
76678
|
+
* @param currentNode the node to inspect
|
|
76679
|
+
* @param tagName the node's transformCaseFunc'd tag name
|
|
76680
|
+
* @return true if the node must be removed
|
|
76681
|
+
*/
|
|
76682
|
+
const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
|
|
76683
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
|
76684
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) {
|
|
76685
|
+
return true;
|
|
76686
|
+
}
|
|
76687
|
+
/* Remove risky CSS construction leading to mXSS */
|
|
76688
|
+
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
|
|
76689
|
+
return true;
|
|
76690
|
+
}
|
|
76691
|
+
/* Remove any occurrence of processing instructions */
|
|
76692
|
+
if (currentNode.nodeType === NODE_TYPE.processingInstruction) {
|
|
76693
|
+
return true;
|
|
76694
|
+
}
|
|
76695
|
+
/* Remove any kind of possibly harmful comments */
|
|
76696
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) {
|
|
76697
|
+
return true;
|
|
76698
|
+
}
|
|
76699
|
+
return false;
|
|
76700
|
+
};
|
|
76701
|
+
/**
|
|
76702
|
+
* Handle a node whose tag is forbidden or not allowlisted: keep
|
|
76703
|
+
* allowed custom elements (false return exits _sanitizeElements
|
|
76704
|
+
* early - namespace/fallback checks and the afterSanitizeElements
|
|
76705
|
+
* hook are intentionally skipped for kept custom elements), else
|
|
76706
|
+
* hoist content per KEEP_CONTENT and remove.
|
|
76707
|
+
*
|
|
76708
|
+
* @param currentNode the disallowed node
|
|
76709
|
+
* @param tagName the node's transformCaseFunc'd tag name
|
|
76710
|
+
* @return true if the node was removed, false if kept
|
|
76711
|
+
*/
|
|
76712
|
+
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
|
|
76713
|
+
/* Check if we have a custom element to handle */
|
|
76714
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
76715
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
76716
|
+
return false;
|
|
76717
|
+
}
|
|
76718
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
76719
|
+
return false;
|
|
76720
|
+
}
|
|
76721
|
+
}
|
|
76722
|
+
/* Keep content except for bad-listed elements.
|
|
76723
|
+
Use the cached prototype getters exclusively — the previous code
|
|
76724
|
+
had `|| currentNode.parentNode` / `|| currentNode.childNodes`
|
|
76725
|
+
fallbacks, but the cached getters always return the canonical
|
|
76726
|
+
value (or null for a real parent-less node), so the fallback
|
|
76727
|
+
path was dead in safe cases and a clobbering surface in unsafe
|
|
76728
|
+
ones. Falsy cached results stay falsy; the `if (childNodes &&
|
|
76729
|
+
parentNode)` check already gates correctly. */
|
|
76730
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
76731
|
+
const parentNode = getParentNode(currentNode);
|
|
76732
|
+
const childNodes = getChildNodes(currentNode);
|
|
76733
|
+
if (childNodes && parentNode) {
|
|
76734
|
+
const childCount = childNodes.length;
|
|
76735
|
+
/* In-place: hoist the *original* children so the iterator visits
|
|
76736
|
+
and sanitises them through the same allowlist pass as every other
|
|
76737
|
+
node. The caller built the tree in the live document, so the
|
|
76738
|
+
originals carry already-queued resource events (`<img onerror>`,
|
|
76739
|
+
`<video>`/`<audio>` error, lazy/`onload`, …); cloning would leave
|
|
76740
|
+
those originals detached but still armed, firing in page scope
|
|
76741
|
+
while the returned tree looked clean. Moving is safe in-place: the
|
|
76742
|
+
root is pre-validated as an allowed tag and so is never the node
|
|
76743
|
+
being removed, which keeps `parentNode` inside the iterator root
|
|
76744
|
+
and the relocated child inside the serialised tree.
|
|
76745
|
+
Otherwise (string / DOM-copy paths): clone. The iterator is rooted
|
|
76746
|
+
at — and the result serialised from — `body`, so a restrictive
|
|
76747
|
+
ALLOWED_TAGS that removes `body` itself must leave its content in
|
|
76748
|
+
place, which only cloning does; and those paths parse into an
|
|
76749
|
+
inert document, so their discarded originals never had a queued
|
|
76750
|
+
event to neutralise.
|
|
76751
|
+
`childNodes` is live; a tail-to-head walk keeps `childNodes[i]`
|
|
76752
|
+
valid whether we move (drops the trailing entry) or clone (leaves
|
|
76753
|
+
the list intact). */
|
|
76754
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
76755
|
+
const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
|
|
76756
|
+
parentNode.insertBefore(hoisted, getNextSibling(currentNode));
|
|
76757
|
+
}
|
|
76758
|
+
}
|
|
76759
|
+
}
|
|
76760
|
+
_forceRemove(currentNode);
|
|
76761
|
+
return true;
|
|
76762
|
+
};
|
|
76386
76763
|
/**
|
|
76387
76764
|
* _sanitizeElements
|
|
76388
76765
|
*
|
|
@@ -76393,7 +76770,6 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76393
76770
|
* @return true if node was killed, false if left alive
|
|
76394
76771
|
*/
|
|
76395
76772
|
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
76396
|
-
let content = null;
|
|
76397
76773
|
/* Execute a hook if present */
|
|
76398
76774
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
76399
76775
|
/* Check if element is clobbered or can clobber */
|
|
@@ -76408,58 +76784,14 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76408
76784
|
tagName,
|
|
76409
76785
|
allowedTags: ALLOWED_TAGS
|
|
76410
76786
|
});
|
|
76411
|
-
/*
|
|
76412
|
-
if (
|
|
76413
|
-
_forceRemove(currentNode);
|
|
76414
|
-
return true;
|
|
76415
|
-
}
|
|
76416
|
-
/* Remove risky CSS construction leading to mXSS */
|
|
76417
|
-
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
|
|
76418
|
-
_forceRemove(currentNode);
|
|
76419
|
-
return true;
|
|
76420
|
-
}
|
|
76421
|
-
/* Remove any occurrence of processing instructions */
|
|
76422
|
-
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
76423
|
-
_forceRemove(currentNode);
|
|
76424
|
-
return true;
|
|
76425
|
-
}
|
|
76426
|
-
/* Remove any kind of possibly harmful comments */
|
|
76427
|
-
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
76787
|
+
/* Remove mXSS vectors, processing instructions and risky comments */
|
|
76788
|
+
if (_isUnsafeNode(currentNode, tagName)) {
|
|
76428
76789
|
_forceRemove(currentNode);
|
|
76429
76790
|
return true;
|
|
76430
76791
|
}
|
|
76431
76792
|
/* Remove element if anything forbids its presence */
|
|
76432
76793
|
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
76433
|
-
|
|
76434
|
-
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
76435
|
-
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
76436
|
-
return false;
|
|
76437
|
-
}
|
|
76438
|
-
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
76439
|
-
return false;
|
|
76440
|
-
}
|
|
76441
|
-
}
|
|
76442
|
-
/* Keep content except for bad-listed elements.
|
|
76443
|
-
Use the cached prototype getters exclusively — the previous code
|
|
76444
|
-
had `|| currentNode.parentNode` / `|| currentNode.childNodes`
|
|
76445
|
-
fallbacks, but the cached getters always return the canonical
|
|
76446
|
-
value (or null for a real parent-less node), so the fallback
|
|
76447
|
-
path was dead in safe cases and a clobbering surface in unsafe
|
|
76448
|
-
ones. Falsy cached results stay falsy; the `if (childNodes &&
|
|
76449
|
-
parentNode)` check already gates correctly. */
|
|
76450
|
-
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
76451
|
-
const parentNode = getParentNode(currentNode);
|
|
76452
|
-
const childNodes = getChildNodes(currentNode);
|
|
76453
|
-
if (childNodes && parentNode) {
|
|
76454
|
-
const childCount = childNodes.length;
|
|
76455
|
-
for (let i = childCount - 1; i >= 0; --i) {
|
|
76456
|
-
const childClone = cloneNode(childNodes[i], true);
|
|
76457
|
-
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
76458
|
-
}
|
|
76459
|
-
}
|
|
76460
|
-
}
|
|
76461
|
-
_forceRemove(currentNode);
|
|
76462
|
-
return true;
|
|
76794
|
+
return _sanitizeDisallowedNode(currentNode, tagName);
|
|
76463
76795
|
}
|
|
76464
76796
|
/* Check whether element has a valid namespace.
|
|
76465
76797
|
Realm-safe check (GHSA-hpcv-96wg-7vj8): use the cached Node.prototype
|
|
@@ -76473,17 +76805,14 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76473
76805
|
return true;
|
|
76474
76806
|
}
|
|
76475
76807
|
/* Make sure that older browsers don't get fallback-tag mXSS */
|
|
76476
|
-
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(
|
|
76808
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
|
|
76477
76809
|
_forceRemove(currentNode);
|
|
76478
76810
|
return true;
|
|
76479
76811
|
}
|
|
76480
76812
|
/* Sanitize element content to be template-safe */
|
|
76481
76813
|
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
76482
76814
|
/* Get the element's text content */
|
|
76483
|
-
content = currentNode.textContent;
|
|
76484
|
-
arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
|
|
76485
|
-
content = stringReplace(content, expr, ' ');
|
|
76486
|
-
});
|
|
76815
|
+
const content = _stripTemplateExpressions(currentNode.textContent);
|
|
76487
76816
|
if (currentNode.textContent !== content) {
|
|
76488
76817
|
arrayPush(DOMPurify.removed, {
|
|
76489
76818
|
element: currentNode.cloneNode()
|
|
@@ -76518,7 +76847,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76518
76847
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
76519
76848
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
76520
76849
|
We don't need to check the value; it's always URI safe. */
|
|
76521
|
-
if (ALLOW_DATA_ATTR &&
|
|
76850
|
+
if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!nameIsPermitted) {
|
|
76522
76851
|
if (
|
|
76523
76852
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
76524
76853
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -76550,6 +76879,63 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76550
76879
|
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
76551
76880
|
return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
|
|
76552
76881
|
};
|
|
76882
|
+
/**
|
|
76883
|
+
* Wrap an attribute value in the matching Trusted Types object when
|
|
76884
|
+
* the active policy requires it. Namespaced attributes pass through
|
|
76885
|
+
* unchanged (no TT support yet, see
|
|
76886
|
+
* https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
|
|
76887
|
+
*
|
|
76888
|
+
* @param lcTag lowercase tag name of the containing element
|
|
76889
|
+
* @param lcName lowercase attribute name
|
|
76890
|
+
* @param namespaceURI the attribute's namespace, if any
|
|
76891
|
+
* @param value the attribute value to wrap
|
|
76892
|
+
* @return the value, wrapped when Trusted Types demand it
|
|
76893
|
+
*/
|
|
76894
|
+
const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
|
|
76895
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function' && !namespaceURI) {
|
|
76896
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
76897
|
+
case 'TrustedHTML':
|
|
76898
|
+
{
|
|
76899
|
+
return _createTrustedHTML(value);
|
|
76900
|
+
}
|
|
76901
|
+
case 'TrustedScriptURL':
|
|
76902
|
+
{
|
|
76903
|
+
return _createTrustedScriptURL(value);
|
|
76904
|
+
}
|
|
76905
|
+
}
|
|
76906
|
+
}
|
|
76907
|
+
return value;
|
|
76908
|
+
};
|
|
76909
|
+
/**
|
|
76910
|
+
* Write a modified attribute value back onto the element. On
|
|
76911
|
+
* success, re-probe for clobbering introduced by the new value and
|
|
76912
|
+
* remove the element when found; otherwise pop the removal entry
|
|
76913
|
+
* recorded by the earlier _removeAttribute (long-standing pairing
|
|
76914
|
+
* with the SANITIZE_NAMED_PROPS path - do not "fix" casually). On
|
|
76915
|
+
* failure, remove the attribute instead.
|
|
76916
|
+
*
|
|
76917
|
+
* @param currentNode the element carrying the attribute
|
|
76918
|
+
* @param name the attribute name as present on the element
|
|
76919
|
+
* @param namespaceURI the attribute's namespace, if any
|
|
76920
|
+
* @param value the new attribute value
|
|
76921
|
+
*/
|
|
76922
|
+
const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
|
|
76923
|
+
try {
|
|
76924
|
+
if (namespaceURI) {
|
|
76925
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
76926
|
+
} else {
|
|
76927
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
76928
|
+
currentNode.setAttribute(name, value);
|
|
76929
|
+
}
|
|
76930
|
+
if (_isClobbered(currentNode)) {
|
|
76931
|
+
_forceRemove(currentNode);
|
|
76932
|
+
} else {
|
|
76933
|
+
arrayPop(DOMPurify.removed);
|
|
76934
|
+
}
|
|
76935
|
+
} catch (_) {
|
|
76936
|
+
_removeAttribute(name, currentNode);
|
|
76937
|
+
}
|
|
76938
|
+
};
|
|
76553
76939
|
/**
|
|
76554
76940
|
* _sanitizeAttributes
|
|
76555
76941
|
*
|
|
@@ -76576,6 +76962,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76576
76962
|
forceKeepAttr: undefined
|
|
76577
76963
|
};
|
|
76578
76964
|
let l = attributes.length;
|
|
76965
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
76579
76966
|
/* Go backwards over all attributes; safely remove bad ones */
|
|
76580
76967
|
while (l--) {
|
|
76581
76968
|
const attr = attributes[l];
|
|
@@ -76613,7 +77000,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76613
77000
|
_removeAttribute(name, currentNode);
|
|
76614
77001
|
continue;
|
|
76615
77002
|
}
|
|
76616
|
-
/* Did the hooks
|
|
77003
|
+
/* Did the hooks force-keep the attribute? */
|
|
76617
77004
|
if (hookEvent.forceKeepAttr) {
|
|
76618
77005
|
continue;
|
|
76619
77006
|
}
|
|
@@ -76623,56 +77010,24 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76623
77010
|
continue;
|
|
76624
77011
|
}
|
|
76625
77012
|
/* Work around a security issue in jQuery 3.0 */
|
|
76626
|
-
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(
|
|
77013
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
|
|
76627
77014
|
_removeAttribute(name, currentNode);
|
|
76628
77015
|
continue;
|
|
76629
77016
|
}
|
|
76630
77017
|
/* Sanitize attribute content to be template-safe */
|
|
76631
77018
|
if (SAFE_FOR_TEMPLATES) {
|
|
76632
|
-
|
|
76633
|
-
value = stringReplace(value, expr, ' ');
|
|
76634
|
-
});
|
|
77019
|
+
value = _stripTemplateExpressions(value);
|
|
76635
77020
|
}
|
|
76636
77021
|
/* Is `value` valid for this attribute? */
|
|
76637
|
-
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
76638
77022
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
76639
77023
|
_removeAttribute(name, currentNode);
|
|
76640
77024
|
continue;
|
|
76641
77025
|
}
|
|
76642
77026
|
/* Handle attributes that require Trusted Types */
|
|
76643
|
-
|
|
76644
|
-
if (namespaceURI) ; else {
|
|
76645
|
-
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
76646
|
-
case 'TrustedHTML':
|
|
76647
|
-
{
|
|
76648
|
-
value = _createTrustedHTML(value);
|
|
76649
|
-
break;
|
|
76650
|
-
}
|
|
76651
|
-
case 'TrustedScriptURL':
|
|
76652
|
-
{
|
|
76653
|
-
value = trustedTypesPolicy.createScriptURL(value);
|
|
76654
|
-
break;
|
|
76655
|
-
}
|
|
76656
|
-
}
|
|
76657
|
-
}
|
|
76658
|
-
}
|
|
77027
|
+
value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
|
|
76659
77028
|
/* Handle invalid data-* attribute set by try-catching it */
|
|
76660
77029
|
if (value !== initValue) {
|
|
76661
|
-
|
|
76662
|
-
if (namespaceURI) {
|
|
76663
|
-
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
76664
|
-
} else {
|
|
76665
|
-
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
76666
|
-
currentNode.setAttribute(name, value);
|
|
76667
|
-
}
|
|
76668
|
-
if (_isClobbered(currentNode)) {
|
|
76669
|
-
_forceRemove(currentNode);
|
|
76670
|
-
} else {
|
|
76671
|
-
arrayPop(DOMPurify.removed);
|
|
76672
|
-
}
|
|
76673
|
-
} catch (_) {
|
|
76674
|
-
_removeAttribute(name, currentNode);
|
|
76675
|
-
}
|
|
77030
|
+
_setAttributeValue(currentNode, name, namespaceURI, value);
|
|
76676
77031
|
}
|
|
76677
77032
|
}
|
|
76678
77033
|
/* Execute a hook if present */
|
|
@@ -76714,9 +77069,9 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76714
77069
|
iterator also surfaces. */
|
|
76715
77070
|
const shadowNodeType = getNodeType ? getNodeType(shadowNode) : shadowNode.nodeType;
|
|
76716
77071
|
if (shadowNodeType === NODE_TYPE.element) {
|
|
76717
|
-
const innerSr = getShadowRoot
|
|
77072
|
+
const innerSr = getShadowRoot(shadowNode);
|
|
76718
77073
|
if (_isDocumentFragment(innerSr)) {
|
|
76719
|
-
|
|
77074
|
+
_sanitizeAttachedShadowRoots(innerSr);
|
|
76720
77075
|
_sanitizeShadowDOM2(innerSr);
|
|
76721
77076
|
}
|
|
76722
77077
|
}
|
|
@@ -76743,46 +77098,81 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76743
77098
|
*
|
|
76744
77099
|
* @param root the subtree root to walk for attached shadow roots
|
|
76745
77100
|
*/
|
|
76746
|
-
const
|
|
76747
|
-
|
|
76748
|
-
|
|
76749
|
-
|
|
76750
|
-
|
|
76751
|
-
|
|
76752
|
-
|
|
76753
|
-
|
|
76754
|
-
|
|
76755
|
-
|
|
76756
|
-
|
|
76757
|
-
|
|
76758
|
-
|
|
76759
|
-
|
|
76760
|
-
|
|
76761
|
-
|
|
76762
|
-
|
|
76763
|
-
|
|
76764
|
-
|
|
76765
|
-
|
|
76766
|
-
|
|
76767
|
-
|
|
76768
|
-
|
|
76769
|
-
|
|
76770
|
-
|
|
76771
|
-
|
|
76772
|
-
|
|
76773
|
-
|
|
76774
|
-
|
|
76775
|
-
|
|
76776
|
-
|
|
76777
|
-
|
|
76778
|
-
|
|
76779
|
-
|
|
76780
|
-
|
|
76781
|
-
|
|
76782
|
-
|
|
76783
|
-
|
|
76784
|
-
|
|
76785
|
-
|
|
77101
|
+
const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
|
|
77102
|
+
/* Iterative (explicit stack) rather than per-child recursion. DOM APIs
|
|
77103
|
+
impose no depth cap, so an attacker-shaped tree (JSON/CRDT/editor data
|
|
77104
|
+
built straight into the DOM — the IN_PLACE surface) deeper than the JS
|
|
77105
|
+
call-stack budget would otherwise overflow native recursion here and
|
|
77106
|
+
throw at the IN_PLACE entry pre-pass, before a single node is
|
|
77107
|
+
sanitized, leaving the caller's live tree untouched (fail-open). See
|
|
77108
|
+
campaign-3 F4. A heap stack keeps depth off the call stack.
|
|
77109
|
+
Each work item is either a node to descend into, or a deferred
|
|
77110
|
+
`_sanitizeShadowDOM` for an already-walked shadow root. The deferred
|
|
77111
|
+
form preserves the original post-order discipline: a shadow root's
|
|
77112
|
+
nested shadow roots are discovered before the outer shadow is
|
|
77113
|
+
sanitized (which may remove hosts). Pushes are in reverse of the
|
|
77114
|
+
desired processing order (LIFO): template content, then children, then
|
|
77115
|
+
the shadow-sanitize, then the shadow walk — so the order matches the
|
|
77116
|
+
previous recursion exactly. */
|
|
77117
|
+
const stack = [{
|
|
77118
|
+
node: root,
|
|
77119
|
+
shadow: null
|
|
77120
|
+
}];
|
|
77121
|
+
while (stack.length > 0) {
|
|
77122
|
+
const item = stack.pop();
|
|
77123
|
+
/* Deferred shadow-DOM sanitisation: runs after its subtree was walked. */
|
|
77124
|
+
if (item.shadow) {
|
|
77125
|
+
_sanitizeShadowDOM2(item.shadow);
|
|
77126
|
+
continue;
|
|
77127
|
+
}
|
|
77128
|
+
const node = item.node;
|
|
77129
|
+
const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
|
|
77130
|
+
const isElement = nodeType === NODE_TYPE.element;
|
|
77131
|
+
/* (pushed last → processed first) Children, snapshotted in reverse so
|
|
77132
|
+
the first child is processed first. Snapshotting matters because a
|
|
77133
|
+
hook may detach siblings mid-walk. */
|
|
77134
|
+
const childNodes = getChildNodes(node);
|
|
77135
|
+
if (childNodes) {
|
|
77136
|
+
for (let i = childNodes.length - 1; i >= 0; --i) {
|
|
77137
|
+
stack.push({
|
|
77138
|
+
node: childNodes[i],
|
|
77139
|
+
shadow: null
|
|
77140
|
+
});
|
|
77141
|
+
}
|
|
77142
|
+
}
|
|
77143
|
+
/* (pushed before children → processed after them, matching the old
|
|
77144
|
+
"template content last" order) When the node is a <template>,
|
|
77145
|
+
descend into its content. */
|
|
77146
|
+
if (isElement) {
|
|
77147
|
+
const rootName = getNodeName ? getNodeName(node) : null;
|
|
77148
|
+
if (typeof rootName === 'string' && transformCaseFunc(rootName) === 'template') {
|
|
77149
|
+
const content = node.content;
|
|
77150
|
+
if (_isDocumentFragment(content)) {
|
|
77151
|
+
stack.push({
|
|
77152
|
+
node: content,
|
|
77153
|
+
shadow: null
|
|
77154
|
+
});
|
|
77155
|
+
}
|
|
77156
|
+
}
|
|
77157
|
+
}
|
|
77158
|
+
/* Shadow root (processed first): walk its subtree, then sanitise it.
|
|
77159
|
+
Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
|
|
77160
|
+
rather than `instanceof DocumentFragment`, which is realm-bound and
|
|
77161
|
+
silently skipped foreign-realm shadow roots (e.g.
|
|
77162
|
+
iframe.contentDocument attachShadow). */
|
|
77163
|
+
if (isElement) {
|
|
77164
|
+
const sr = getShadowRoot(node);
|
|
77165
|
+
if (_isDocumentFragment(sr)) {
|
|
77166
|
+
/* Push the deferred sanitise first so it pops after the shadow
|
|
77167
|
+
walk we push next, i.e. nested shadow roots are discovered
|
|
77168
|
+
before this one is sanitised. */
|
|
77169
|
+
stack.push({
|
|
77170
|
+
node: null,
|
|
77171
|
+
shadow: sr
|
|
77172
|
+
}, {
|
|
77173
|
+
node: sr,
|
|
77174
|
+
shadow: null
|
|
77175
|
+
});
|
|
76786
77176
|
}
|
|
76787
77177
|
}
|
|
76788
77178
|
}
|
|
@@ -76818,11 +77208,14 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76818
77208
|
}
|
|
76819
77209
|
/* Clean up removed elements */
|
|
76820
77210
|
DOMPurify.removed = [];
|
|
76821
|
-
/*
|
|
76822
|
-
|
|
76823
|
-
|
|
76824
|
-
|
|
76825
|
-
|
|
77211
|
+
/* Resolve IN_PLACE for this call without mutating persistent config.
|
|
77212
|
+
Writing the IN_PLACE closure variable here leaks under setConfig(),
|
|
77213
|
+
where _parseConfig is skipped on later calls: a single string call would
|
|
77214
|
+
disable in-place mode for every subsequent node call, returning a
|
|
77215
|
+
sanitized copy while leaving the caller's node — which in-place callers
|
|
77216
|
+
keep using and whose return value they ignore — unsanitized. REPORT-2. */
|
|
77217
|
+
const inPlace = IN_PLACE && typeof dirty !== 'string' && _isNode(dirty);
|
|
77218
|
+
if (inPlace) {
|
|
76826
77219
|
/* Do some early pre-sanitization to avoid unsafe root nodes.
|
|
76827
77220
|
Read nodeName through the cached prototype getter — a clobbering
|
|
76828
77221
|
child named "nodeName" on the form root would otherwise shadow
|
|
@@ -76849,8 +77242,16 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76849
77242
|
throw typeErrorCreate('root node is clobbered and cannot be sanitized in-place');
|
|
76850
77243
|
}
|
|
76851
77244
|
/* Sanitize attached shadow roots before the main iterator runs.
|
|
76852
|
-
The iterator does not descend into shadow trees.
|
|
76853
|
-
|
|
77245
|
+
The iterator does not descend into shadow trees. Same fail-closed
|
|
77246
|
+
barrier as the main walk (campaign-3 F2): a custom-element reaction
|
|
77247
|
+
inside a shadow root could abort this pre-pass before the walk runs,
|
|
77248
|
+
which would otherwise leave the entire live tree unsanitized. */
|
|
77249
|
+
try {
|
|
77250
|
+
_sanitizeAttachedShadowRoots(dirty);
|
|
77251
|
+
} catch (error) {
|
|
77252
|
+
_neutralizeRoot(dirty);
|
|
77253
|
+
throw error;
|
|
77254
|
+
}
|
|
76854
77255
|
} else if (_isNode(dirty)) {
|
|
76855
77256
|
/* If dirty is a DOM element, append to an empty document to avoid
|
|
76856
77257
|
elements being stripped by the parser */
|
|
@@ -76870,7 +77271,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76870
77271
|
descend into shadow trees. The walk routes every read through a
|
|
76871
77272
|
cached prototype getter so clobbering descendants on a form root
|
|
76872
77273
|
cannot hide a shadow host from this pass. */
|
|
76873
|
-
|
|
77274
|
+
_sanitizeAttachedShadowRoots(importedNode);
|
|
76874
77275
|
} else {
|
|
76875
77276
|
/* Exit directly if we have nothing to do */
|
|
76876
77277
|
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
@@ -76890,23 +77291,50 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76890
77291
|
_forceRemove(body.firstChild);
|
|
76891
77292
|
}
|
|
76892
77293
|
/* Get node iterator */
|
|
76893
|
-
const nodeIterator = _createNodeIterator(
|
|
76894
|
-
/* Now start iterating over the created document
|
|
76895
|
-
|
|
76896
|
-
|
|
76897
|
-
|
|
76898
|
-
|
|
76899
|
-
|
|
76900
|
-
|
|
76901
|
-
|
|
76902
|
-
|
|
76903
|
-
|
|
76904
|
-
|
|
76905
|
-
|
|
77294
|
+
const nodeIterator = _createNodeIterator(inPlace ? dirty : body);
|
|
77295
|
+
/* Now start iterating over the created document.
|
|
77296
|
+
The walk runs inside an exception barrier (campaign-3 F2): a re-entrant
|
|
77297
|
+
engine/custom-element mutation can detach a node mid-walk so
|
|
77298
|
+
`_forceRemove`'s parentless guard throws, aborting the loop. Without the
|
|
77299
|
+
barrier the caller's in-place tree would be left half-sanitized with the
|
|
77300
|
+
unvisited tail still armed. On any throw we fail closed — strip the
|
|
77301
|
+
in-place root bare — then rethrow so the existing throw contract is
|
|
77302
|
+
preserved. (String/DOM-copy paths never return the partial body, so the
|
|
77303
|
+
propagating throw is already fail-closed there.) */
|
|
77304
|
+
try {
|
|
77305
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
77306
|
+
/* Sanitize tags and elements */
|
|
77307
|
+
_sanitizeElements(currentNode);
|
|
77308
|
+
/* Check attributes next */
|
|
77309
|
+
_sanitizeAttributes(currentNode);
|
|
77310
|
+
/* Shadow DOM detected, sanitize it.
|
|
77311
|
+
Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
|
|
77312
|
+
instead of instanceof, so foreign-realm <template>.content is
|
|
77313
|
+
walked correctly. */
|
|
77314
|
+
if (_isDocumentFragment(currentNode.content)) {
|
|
77315
|
+
_sanitizeShadowDOM2(currentNode.content);
|
|
77316
|
+
}
|
|
77317
|
+
}
|
|
77318
|
+
} catch (error) {
|
|
77319
|
+
if (inPlace) {
|
|
77320
|
+
_neutralizeRoot(dirty);
|
|
76906
77321
|
}
|
|
77322
|
+
throw error;
|
|
76907
77323
|
}
|
|
76908
77324
|
/* If we sanitized `dirty` in-place, return it. */
|
|
76909
|
-
if (
|
|
77325
|
+
if (inPlace) {
|
|
77326
|
+
/* Fail-closed completion of the audit-5 F1 fix: every node removed from
|
|
77327
|
+
the caller's live tree is detached but may still hold a queued
|
|
77328
|
+
resource-event handler that fires in page scope after we return. The
|
|
77329
|
+
move-hoist covers only disallowed-tag KEEP_CONTENT removals; strip the
|
|
77330
|
+
non-allow-listed attributes off every other removed subtree (clobber,
|
|
77331
|
+
mXSS, namespace, comments, KEEP_CONTENT:false, …) so those handlers are
|
|
77332
|
+
cancelled before any event can fire. Runs synchronously, pre-return. */
|
|
77333
|
+
arrayForEach(DOMPurify.removed, entry => {
|
|
77334
|
+
if (entry.element) {
|
|
77335
|
+
_neutralizeSubtree(entry.element);
|
|
77336
|
+
}
|
|
77337
|
+
});
|
|
76910
77338
|
if (SAFE_FOR_TEMPLATES) {
|
|
76911
77339
|
_scrubTemplateExpressions2(dirty);
|
|
76912
77340
|
}
|
|
@@ -76945,9 +77373,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76945
77373
|
}
|
|
76946
77374
|
/* Sanitize final string template-safe */
|
|
76947
77375
|
if (SAFE_FOR_TEMPLATES) {
|
|
76948
|
-
|
|
76949
|
-
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
76950
|
-
});
|
|
77376
|
+
serializedHTML = _stripTemplateExpressions(serializedHTML);
|
|
76951
77377
|
}
|
|
76952
77378
|
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
|
|
76953
77379
|
};
|
|
@@ -76959,6 +77385,12 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76959
77385
|
DOMPurify.clearConfig = function () {
|
|
76960
77386
|
CONFIG = null;
|
|
76961
77387
|
SET_CONFIG = false;
|
|
77388
|
+
// Drop any caller-supplied Trusted Types policy so it cannot poison later
|
|
77389
|
+
// `RETURN_TRUSTED_TYPE` output. The internal default policy (cached, and
|
|
77390
|
+
// never recreated — Trusted Types throws on duplicate names) is restored by
|
|
77391
|
+
// the next `_parseConfig`. See GHSA-vxr8-fq34-vvx9.
|
|
77392
|
+
trustedTypesPolicy = defaultTrustedTypesPolicy;
|
|
77393
|
+
emptyHTML = '';
|
|
76962
77394
|
};
|
|
76963
77395
|
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
|
76964
77396
|
/* Initialize shared config vars if necessary. */
|
|
@@ -93492,7 +93924,7 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
93492
93924
|
this.options = null;
|
|
93493
93925
|
}
|
|
93494
93926
|
buildOptions(selectedItems) {
|
|
93495
|
-
var _a, _b;
|
|
93927
|
+
var _a, _b, _c, _d;
|
|
93496
93928
|
if (selectedItems && selectedItems.length > 0) {
|
|
93497
93929
|
return selectedItems;
|
|
93498
93930
|
}
|
|
@@ -93505,6 +93937,11 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
93505
93937
|
}
|
|
93506
93938
|
const options = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.options;
|
|
93507
93939
|
if (Array.isArray(options)) {
|
|
93940
|
+
if ((_d = (_c = this.fieldDescriptor) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d.switchLabelsAndValues) {
|
|
93941
|
+
return options.map((option) => {
|
|
93942
|
+
return { label: option.label, value: option.value, check: true };
|
|
93943
|
+
});
|
|
93944
|
+
}
|
|
93508
93945
|
return options.map((option) => {
|
|
93509
93946
|
return { label: option.value, value: option.value, check: true };
|
|
93510
93947
|
});
|