@nokecy/qc-ui 1.1.36 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -25
- package/dist/cjs/ConfirmPro/index.js +4 -4
- package/dist/cjs/RuleBuilder/LogicSelector.js +7 -7
- package/dist/cjs/RuleBuilder/RuleBuilderContainer.js +27 -27
- package/dist/cjs/RuleBuilder/RuleCard.js +6 -6
- package/dist/cjs/RuleBuilder/RuleGroupEditor.js +7 -7
- package/dist/cjs/RuleBuilder/constants/operators.js +18 -18
- package/dist/cjs/RuleBuilder/context/RuleBuilderContext.js +38 -38
- package/dist/cjs/RuleBuilder/inputs/BetweenValueInput.js +5 -5
- package/dist/cjs/RuleBuilder/inputs/MultiValueInput.js +5 -5
- package/dist/cjs/RuleBuilder/inputs/SingleValueInput.js +8 -8
- package/dist/cjs/RuleBuilder/inputs/ValueInput.js +8 -8
- package/dist/cjs/RuleBuilder/selectors/FieldSelector.js +5 -5
- package/dist/cjs/RuleBuilder/selectors/OperatorSelector.js +5 -5
- package/dist/cjs/RuleBuilder/styles/index.module.less +443 -443
- package/dist/cjs/RuleBuilder/styles/index.module.less.d.ts +43 -43
- package/dist/cjs/RuleBuilder/types/index.js +42 -42
- package/dist/cjs/RuleBuilder/utils/pathHelpers.js +47 -47
- package/dist/cjs/RuleBuilder/utils/ruleHelpers.js +31 -31
- package/dist/cjs/RuleBuilder/utils/validation.js +22 -22
- package/dist/cjs/ag-grid-plus/_utils/boolSelect.js +5 -5
- package/dist/cjs/ag-grid-plus/_utils/processColumnGroups.js +9 -9
- package/dist/cjs/ag-grid-plus/ag-grid-theme-builder.css +352 -352
- package/dist/cjs/ag-grid-plus/ag-gridPlus.js +83 -89
- package/dist/cjs/ag-grid-plus/context/gridContext.d.ts +1 -5
- package/dist/cjs/ag-grid-plus/context/gridContext.js +19 -19
- package/dist/cjs/ag-grid-plus/context/useSchemeDataFlow.js +56 -56
- package/dist/cjs/ag-grid-plus/context/useSchemeManager.js +93 -93
- package/dist/cjs/ag-grid-plus/errors/ErrorBoundary.js +8 -8
- package/dist/cjs/ag-grid-plus/errors/types.js +14 -14
- package/dist/cjs/ag-grid-plus/hooks/useAgGridCalculation.js +45 -45
- package/dist/cjs/ag-grid-plus/hooks/useAgGridData.js +44 -44
- package/dist/cjs/ag-grid-plus/hooks/useGridPlusColumnState.js +3 -3
- package/dist/cjs/ag-grid-plus/hooks/useGridState.js +36 -36
- package/dist/cjs/ag-grid-plus/index.less +50 -50
- package/dist/cjs/ag-grid-plus/queryForm/index.less +72 -72
- package/dist/cjs/ag-grid-plus/setting/ColumnConfigForm.js +11 -11
- package/dist/cjs/ag-grid-plus/setting/ColumnConfigTable.js +3 -3
- package/dist/cjs/ag-grid-plus/setting/ColumnNameCellRenderer.js +10 -10
- package/dist/cjs/ag-grid-plus/setting/ColumnSetting.js +29 -29
- package/dist/cjs/ag-grid-plus/setting/DebounceInputs.js +9 -9
- package/dist/cjs/ag-grid-plus/setting/MoveNodeModal.js +7 -7
- package/dist/cjs/ag-grid-plus/setting/NameColumnRenderer.js +6 -6
- package/dist/cjs/ag-grid-plus/setting/QuerySchemeManager.js +34 -34
- package/dist/cjs/ag-grid-plus/setting/columnGroupUtils.js +76 -76
- package/dist/cjs/ag-grid-plus/setting/performanceMonitor.js +5 -5
- package/dist/cjs/ag-grid-plus/shared/storage/backendApiAdapter.js +46 -46
- package/dist/cjs/ag-grid-plus/shared/storage/localStorageAdapter.js +39 -39
- package/dist/cjs/ag-grid-plus/shared/utils/schemeDataMigration.js +18 -18
- package/dist/cjs/ag-grid-plus/theme.js +3 -3
- package/dist/cjs/ag-grid-plus/toolBar/index.js +4 -4
- package/dist/cjs/ag-grid-plus/types.d.ts +2 -22
- package/dist/cjs/ag-grid-plus/utils/columnProcessors.js +52 -52
- package/dist/cjs/ag-grid-plus/utils/constants.js +22 -22
- package/dist/cjs/ag-grid-plus/utils/entityExtensionColumns.d.ts +1 -0
- package/dist/cjs/ag-grid-plus/utils/entityExtensionColumns.js +22 -20
- package/dist/cjs/ag-grid-plus/utils/logger.js +2 -2
- package/dist/cjs/ag-grid-plus/utils/sanitize.js +10 -10
- package/dist/cjs/ag-grid-plus/utils.js +3 -3
- package/dist/cjs/array-table/columnHelper.js +43 -43
- package/dist/cjs/array-table/hooks.js +11 -9
- package/dist/cjs/array-table/index.js +40 -41
- package/dist/cjs/array-table/utils.js +4 -3
- package/dist/cjs/components/RegexEditor/core/RegexEditor.js +32 -32
- package/dist/cjs/components/RegexEditor/core/RegexEditor.less +119 -119
- package/dist/cjs/components/RegexEditor/core/extensions/errorMarker.js +52 -52
- package/dist/cjs/components/RegexEditor/hooks/useRegexTester.js +48 -48
- package/dist/cjs/components/RegexEditor/hooks/useRegexValidation.js +54 -54
- package/dist/cjs/components/RegexEditor/hooks/useTemplateManager.js +5 -5
- package/dist/cjs/components/RegexEditor/templates/TemplateSelector.js +28 -28
- package/dist/cjs/components/RegexEditor/templates/builtinTemplates.js +24 -24
- package/dist/cjs/components/RegexEditor/templates/storage.js +29 -29
- package/dist/cjs/components/RegexEditor/templates/templateManager.js +29 -29
- package/dist/cjs/components/RegexEditor/templates/types.js +74 -74
- package/dist/cjs/components/RegexEditor/validation/complexity.js +40 -40
- package/dist/cjs/components/RegexEditor/validation/parser.js +47 -47
- package/dist/cjs/components/RegexEditor/validation/validator.js +54 -54
- package/dist/cjs/components/RegexEditor/visualizer/FlagsSelector.js +19 -19
- package/dist/cjs/components/RegexEditor/visualizer/MatchItem.js +20 -20
- package/dist/cjs/components/RegexEditor/visualizer/RegexRailroadDiagram.js +15 -15
- package/dist/cjs/components/RegexEditor/visualizer/RegexTester.js +17 -17
- package/dist/cjs/components/RegexEditor/visualizer/astToRailroad.js +11 -11
- package/dist/cjs/components/RegexEditor/visualizer/utils.js +92 -92
- package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.less +49 -49
- package/dist/cjs/dashboard/dashboard/index.less +173 -173
- package/dist/cjs/dashboard/dashboard/utils.js +4 -4
- package/dist/cjs/dashboard/utils.js +8 -8
- package/dist/cjs/dashboard/widget/index.less +7 -7
- package/dist/cjs/dashboard/widget/selector/index.less +172 -172
- package/dist/cjs/deleteConfirm/index.js +17 -17
- package/dist/cjs/draggableModal/index.js +4 -4
- package/dist/cjs/draggableModal/style.less +122 -122
- package/dist/cjs/editable/index.js +16 -1
- package/dist/cjs/formDesigner/arrayTable/styles.less +2 -2
- package/dist/cjs/formDesigner/index.less +2 -2
- package/dist/cjs/fullScreenAlert/index.js +13 -13
- package/dist/cjs/fullScreenAlert/index.less +133 -133
- package/dist/cjs/generatedListPage/ConfigurableToolbar.js +2 -2
- package/dist/cjs/generatedListPage/GeneratedListPage.js +20 -20
- package/dist/cjs/generatedListPage/OptionsColumn.js +3 -3
- package/dist/cjs/generatedListPage/PerformanceMonitor.js +9 -9
- package/dist/cjs/generatedListPage/RequestManager.js +39 -39
- package/dist/cjs/generatedListPage/_utils/AccessWrapper.js +6 -6
- package/dist/cjs/generatedListPage/_utils/defaultHandlers.js +14 -14
- package/dist/cjs/generatedListPage/usePermissionCheck.js +27 -27
- package/dist/cjs/generatedListPage/useRequestManager.js +20 -20
- package/dist/cjs/importModal/index.js +4 -4
- package/dist/cjs/standardFormDialog/FormValidation.js +45 -45
- package/dist/cjs/standardFormDialog/PortalManager.js +46 -46
- package/dist/cjs/standardFormDialog/StandardFormDialog.js +20 -20
- package/dist/cjs/standardFormDialog/useStandardFormSchema.js +24 -24
- package/dist/cjs/toolBar/index.less +25 -25
- package/dist/cjs/types/railroad-diagrams.d.ts +59 -59
- package/dist/cjs/types/regexp-tree.d.ts +175 -175
- package/dist/esm/ConfirmPro/index.js +4 -4
- package/dist/esm/RuleBuilder/LogicSelector.js +7 -7
- package/dist/esm/RuleBuilder/RuleBuilderContainer.js +27 -27
- package/dist/esm/RuleBuilder/RuleCard.js +6 -6
- package/dist/esm/RuleBuilder/RuleGroupEditor.js +7 -7
- package/dist/esm/RuleBuilder/constants/operators.js +18 -18
- package/dist/esm/RuleBuilder/context/RuleBuilderContext.js +38 -38
- package/dist/esm/RuleBuilder/index.js +6 -6
- package/dist/esm/RuleBuilder/inputs/BetweenValueInput.js +5 -5
- package/dist/esm/RuleBuilder/inputs/MultiValueInput.js +5 -5
- package/dist/esm/RuleBuilder/inputs/SingleValueInput.js +8 -8
- package/dist/esm/RuleBuilder/inputs/ValueInput.js +8 -8
- package/dist/esm/RuleBuilder/selectors/FieldSelector.js +5 -5
- package/dist/esm/RuleBuilder/selectors/OperatorSelector.js +5 -5
- package/dist/esm/RuleBuilder/styles/index.module.less +443 -443
- package/dist/esm/RuleBuilder/styles/index.module.less.d.ts +43 -43
- package/dist/esm/RuleBuilder/types/index.js +42 -42
- package/dist/esm/RuleBuilder/utils/pathHelpers.js +47 -47
- package/dist/esm/RuleBuilder/utils/ruleHelpers.js +31 -31
- package/dist/esm/RuleBuilder/utils/validation.js +22 -22
- package/dist/esm/ag-grid-plus/_utils/boolSelect.js +5 -5
- package/dist/esm/ag-grid-plus/_utils/processColumnGroups.js +9 -9
- package/dist/esm/ag-grid-plus/ag-grid-theme-builder.css +352 -352
- package/dist/esm/ag-grid-plus/ag-gridPlus.js +83 -89
- package/dist/esm/ag-grid-plus/context/gridContext.d.ts +1 -5
- package/dist/esm/ag-grid-plus/context/gridContext.js +19 -19
- package/dist/esm/ag-grid-plus/context/useSchemeDataFlow.js +56 -56
- package/dist/esm/ag-grid-plus/context/useSchemeManager.js +93 -93
- package/dist/esm/ag-grid-plus/errors/ErrorBoundary.js +8 -8
- package/dist/esm/ag-grid-plus/errors/types.js +14 -14
- package/dist/esm/ag-grid-plus/hooks/index.js +2 -2
- package/dist/esm/ag-grid-plus/hooks/useAgGridCalculation.js +45 -45
- package/dist/esm/ag-grid-plus/hooks/useAgGridData.js +44 -44
- package/dist/esm/ag-grid-plus/hooks/useGridPlusColumnState.js +3 -3
- package/dist/esm/ag-grid-plus/hooks/useGridState.js +36 -36
- package/dist/esm/ag-grid-plus/index.less +50 -50
- package/dist/esm/ag-grid-plus/queryForm/index.less +72 -72
- package/dist/esm/ag-grid-plus/setting/ColumnConfigForm.js +11 -11
- package/dist/esm/ag-grid-plus/setting/ColumnConfigTable.js +3 -3
- package/dist/esm/ag-grid-plus/setting/ColumnNameCellRenderer.js +10 -10
- package/dist/esm/ag-grid-plus/setting/ColumnSetting.js +29 -29
- package/dist/esm/ag-grid-plus/setting/DebounceInputs.js +9 -9
- package/dist/esm/ag-grid-plus/setting/MoveNodeModal.js +7 -7
- package/dist/esm/ag-grid-plus/setting/NameColumnRenderer.js +6 -6
- package/dist/esm/ag-grid-plus/setting/QuerySchemeManager.js +34 -34
- package/dist/esm/ag-grid-plus/setting/columnGroupUtils.js +76 -76
- package/dist/esm/ag-grid-plus/setting/performanceMonitor.js +5 -5
- package/dist/esm/ag-grid-plus/shared/storage/backendApiAdapter.js +46 -46
- package/dist/esm/ag-grid-plus/shared/storage/localStorageAdapter.js +39 -39
- package/dist/esm/ag-grid-plus/shared/utils/schemeDataMigration.js +18 -18
- package/dist/esm/ag-grid-plus/theme.js +3 -3
- package/dist/esm/ag-grid-plus/toolBar/index.js +4 -4
- package/dist/esm/ag-grid-plus/types.d.ts +2 -22
- package/dist/esm/ag-grid-plus/utils/columnProcessors.js +52 -52
- package/dist/esm/ag-grid-plus/utils/constants.js +22 -22
- package/dist/esm/ag-grid-plus/utils/entityExtensionColumns.d.ts +1 -0
- package/dist/esm/ag-grid-plus/utils/entityExtensionColumns.js +29 -34
- package/dist/esm/ag-grid-plus/utils/logger.js +2 -2
- package/dist/esm/ag-grid-plus/utils/sanitize.js +10 -10
- package/dist/esm/ag-grid-plus/utils.js +3 -3
- package/dist/esm/array-table/columnHelper.js +43 -43
- package/dist/esm/array-table/hooks.js +11 -9
- package/dist/esm/array-table/index.js +40 -41
- package/dist/esm/array-table/utils.js +4 -3
- package/dist/esm/components/RegexEditor/core/RegexEditor.js +32 -32
- package/dist/esm/components/RegexEditor/core/RegexEditor.less +119 -119
- package/dist/esm/components/RegexEditor/core/extensions/errorMarker.js +52 -52
- package/dist/esm/components/RegexEditor/hooks/index.js +4 -4
- package/dist/esm/components/RegexEditor/hooks/useRegexTester.js +48 -48
- package/dist/esm/components/RegexEditor/hooks/useRegexValidation.js +54 -54
- package/dist/esm/components/RegexEditor/hooks/useTemplateManager.js +5 -5
- package/dist/esm/components/RegexEditor/templates/TemplateSelector.js +28 -28
- package/dist/esm/components/RegexEditor/templates/builtinTemplates.js +24 -24
- package/dist/esm/components/RegexEditor/templates/index.js +2 -2
- package/dist/esm/components/RegexEditor/templates/storage.js +29 -29
- package/dist/esm/components/RegexEditor/templates/templateManager.js +29 -29
- package/dist/esm/components/RegexEditor/templates/types.js +74 -74
- package/dist/esm/components/RegexEditor/validation/complexity.js +40 -40
- package/dist/esm/components/RegexEditor/validation/parser.js +47 -47
- package/dist/esm/components/RegexEditor/validation/validator.js +54 -54
- package/dist/esm/components/RegexEditor/visualizer/FlagsSelector.js +19 -19
- package/dist/esm/components/RegexEditor/visualizer/MatchItem.js +20 -20
- package/dist/esm/components/RegexEditor/visualizer/RegexRailroadDiagram.js +15 -15
- package/dist/esm/components/RegexEditor/visualizer/RegexTester.js +17 -17
- package/dist/esm/components/RegexEditor/visualizer/astToRailroad.js +11 -11
- package/dist/esm/components/RegexEditor/visualizer/index.js +5 -5
- package/dist/esm/components/RegexEditor/visualizer/utils.js +92 -92
- package/dist/esm/dashboard/dashboard/components/toolbar/style/index.less +49 -49
- package/dist/esm/dashboard/dashboard/index.less +173 -173
- package/dist/esm/dashboard/dashboard/utils.js +4 -4
- package/dist/esm/dashboard/utils.js +8 -8
- package/dist/esm/dashboard/widget/index.less +7 -7
- package/dist/esm/dashboard/widget/selector/index.less +172 -172
- package/dist/esm/deleteConfirm/index.js +17 -17
- package/dist/esm/draggableModal/index.js +4 -4
- package/dist/esm/draggableModal/style.less +122 -122
- package/dist/esm/editable/index.js +16 -1
- package/dist/esm/formDesigner/arrayTable/styles.less +2 -2
- package/dist/esm/formDesigner/index.less +2 -2
- package/dist/esm/fullScreenAlert/index.js +13 -13
- package/dist/esm/fullScreenAlert/index.less +133 -133
- package/dist/esm/generatedListPage/ConfigurableToolbar.js +2 -2
- package/dist/esm/generatedListPage/GeneratedListPage.js +20 -20
- package/dist/esm/generatedListPage/OptionsColumn.js +3 -3
- package/dist/esm/generatedListPage/PerformanceMonitor.js +9 -9
- package/dist/esm/generatedListPage/RequestManager.js +39 -39
- package/dist/esm/generatedListPage/_utils/AccessWrapper.js +6 -6
- package/dist/esm/generatedListPage/_utils/defaultHandlers.js +14 -14
- package/dist/esm/generatedListPage/index.js +9 -9
- package/dist/esm/generatedListPage/usePermissionCheck.js +27 -27
- package/dist/esm/generatedListPage/useRequestManager.js +20 -20
- package/dist/esm/importModal/index.js +4 -4
- package/dist/esm/standardFormDialog/FormValidation.js +45 -45
- package/dist/esm/standardFormDialog/PortalManager.js +46 -46
- package/dist/esm/standardFormDialog/StandardFormDialog.js +20 -20
- package/dist/esm/standardFormDialog/useStandardFormSchema.js +24 -24
- package/dist/esm/standardFormDialog/withStandardForm.d.ts +2 -2
- package/dist/esm/toolBar/index.less +25 -25
- package/dist/esm/types/railroad-diagrams.d.ts +59 -59
- package/dist/esm/types/regexp-tree.d.ts +175 -175
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +90 -90
- package/dist/cjs/ag-grid-plus/shared/hooks/useSchemeManager.d.ts +0 -66
- package/dist/cjs/ag-grid-plus/shared/hooks/useSchemeManager.js +0 -648
- package/dist/esm/ag-grid-plus/shared/hooks/useSchemeManager.d.ts +0 -66
- package/dist/esm/ag-grid-plus/shared/hooks/useSchemeManager.js +0 -643
|
@@ -12,14 +12,14 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
-
* FlagsSelector 组件
|
|
17
|
-
*
|
|
18
|
-
* @module RegexEditor/visualizer/FlagsSelector
|
|
19
|
-
* @description 正则表达式标志选择器组件
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
+
* FlagsSelector 组件
|
|
17
|
+
*
|
|
18
|
+
* @module RegexEditor/visualizer/FlagsSelector
|
|
19
|
+
* @description 正则表达式标志选择器组件
|
|
20
20
|
*/
|
|
21
|
-
/**
|
|
22
|
-
* 标志配置
|
|
21
|
+
/**
|
|
22
|
+
* 标志配置
|
|
23
23
|
*/
|
|
24
24
|
var FLAG_CONFIG = [{
|
|
25
25
|
key: 'global',
|
|
@@ -47,16 +47,16 @@ var FLAG_CONFIG = [{
|
|
|
47
47
|
tooltip: '粘性匹配 (sticky) - 从 lastIndex 位置开始匹配'
|
|
48
48
|
}];
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* 标志选择器组件
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```tsx
|
|
55
|
-
* <FlagsSelector
|
|
56
|
-
* value={{ global: true, ignoreCase: true }}
|
|
57
|
-
* onChange={(flags) => console.log(flags)}
|
|
58
|
-
* />
|
|
59
|
-
* ```
|
|
50
|
+
/**
|
|
51
|
+
* 标志选择器组件
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <FlagsSelector
|
|
56
|
+
* value={{ global: true, ignoreCase: true }}
|
|
57
|
+
* onChange={(flags) => console.log(flags)}
|
|
58
|
+
* />
|
|
59
|
+
* ```
|
|
60
60
|
*/
|
|
61
61
|
var FlagsSelector = exports.FlagsSelector = function FlagsSelector(_ref) {
|
|
62
62
|
var _ref$value = _ref.value,
|
|
@@ -64,8 +64,8 @@ var FlagsSelector = exports.FlagsSelector = function FlagsSelector(_ref) {
|
|
|
64
64
|
onChange = _ref.onChange,
|
|
65
65
|
_ref$disabled = _ref.disabled,
|
|
66
66
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
67
|
-
/**
|
|
68
|
-
* 处理标志变化
|
|
67
|
+
/**
|
|
68
|
+
* 处理标志变化
|
|
69
69
|
*/
|
|
70
70
|
var handleChange = function handleChange(key) {
|
|
71
71
|
return function (e) {
|
|
@@ -15,31 +15,31 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
15
15
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
16
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
17
17
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
18
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
|
|
19
|
-
* MatchItem 组件
|
|
20
|
-
*
|
|
21
|
-
* @module RegexEditor/visualizer/MatchItem
|
|
22
|
-
* @description 匹配结果项组件
|
|
18
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
|
|
19
|
+
* MatchItem 组件
|
|
20
|
+
*
|
|
21
|
+
* @module RegexEditor/visualizer/MatchItem
|
|
22
|
+
* @description 匹配结果项组件
|
|
23
23
|
*/
|
|
24
24
|
var Text = _antd.Typography.Text,
|
|
25
25
|
Paragraph = _antd.Typography.Paragraph;
|
|
26
26
|
var Panel = _antd.Collapse.Panel;
|
|
27
27
|
|
|
28
|
-
/**
|
|
29
|
-
* 匹配项组件
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```tsx
|
|
33
|
-
* <MatchItem
|
|
34
|
-
* match={{
|
|
35
|
-
* index: 0,
|
|
36
|
-
* lastIndex: 3,
|
|
37
|
-
* fullMatch: 'abc',
|
|
38
|
-
* groups: ['abc', 'ab', 'c'],
|
|
39
|
-
* }}
|
|
40
|
-
* index={0}
|
|
41
|
-
* />
|
|
42
|
-
* ```
|
|
28
|
+
/**
|
|
29
|
+
* 匹配项组件
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <MatchItem
|
|
34
|
+
* match={{
|
|
35
|
+
* index: 0,
|
|
36
|
+
* lastIndex: 3,
|
|
37
|
+
* fullMatch: 'abc',
|
|
38
|
+
* groups: ['abc', 'ab', 'c'],
|
|
39
|
+
* }}
|
|
40
|
+
* index={0}
|
|
41
|
+
* />
|
|
42
|
+
* ```
|
|
43
43
|
*/
|
|
44
44
|
var MatchItem = exports.MatchItem = function MatchItem(_ref) {
|
|
45
45
|
var match = _ref.match,
|
|
@@ -20,22 +20,22 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
20
20
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
21
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22
22
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
|
|
24
|
-
* RegexRailroadDiagram 组件
|
|
25
|
-
*
|
|
26
|
-
* @module RegexEditor/visualizer/RegexRailroadDiagram
|
|
27
|
-
* @description 使用 Railroad Diagram 可视化正则表达式结构
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
|
|
24
|
+
* RegexRailroadDiagram 组件
|
|
25
|
+
*
|
|
26
|
+
* @module RegexEditor/visualizer/RegexRailroadDiagram
|
|
27
|
+
* @description 使用 Railroad Diagram 可视化正则表达式结构
|
|
28
28
|
*/
|
|
29
|
-
/**
|
|
30
|
-
* Railroad Diagram 可视化组件
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```tsx
|
|
34
|
-
* <RegexRailroadDiagram
|
|
35
|
-
* pattern="\d{3}-\d{4}"
|
|
36
|
-
* showTitle={true}
|
|
37
|
-
* />
|
|
38
|
-
* ```
|
|
29
|
+
/**
|
|
30
|
+
* Railroad Diagram 可视化组件
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <RegexRailroadDiagram
|
|
35
|
+
* pattern="\d{3}-\d{4}"
|
|
36
|
+
* showTitle={true}
|
|
37
|
+
* />
|
|
38
|
+
* ```
|
|
39
39
|
*/
|
|
40
40
|
var RegexRailroadDiagram = exports.RegexRailroadDiagram = function RegexRailroadDiagram(_ref) {
|
|
41
41
|
var pattern = _ref.pattern,
|
|
@@ -18,26 +18,26 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
18
18
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
19
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
20
20
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
|
|
22
|
-
* RegexTester 组件
|
|
23
|
-
*
|
|
24
|
-
* @module RegexEditor/visualizer/RegexTester
|
|
25
|
-
* @description 正则表达式测试面板组件
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**
|
|
22
|
+
* RegexTester 组件
|
|
23
|
+
*
|
|
24
|
+
* @module RegexEditor/visualizer/RegexTester
|
|
25
|
+
* @description 正则表达式测试面板组件
|
|
26
26
|
*/
|
|
27
27
|
var TextArea = _antd.Input.TextArea;
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* 正则测试器组件
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```tsx
|
|
34
|
-
* <RegexTester
|
|
35
|
-
* pattern="\d+"
|
|
36
|
-
* flags={{ global: true }}
|
|
37
|
-
* onMatchResults={(results) => console.log(results)}
|
|
38
|
-
* enableReplace={true}
|
|
39
|
-
* />
|
|
40
|
-
* ```
|
|
29
|
+
/**
|
|
30
|
+
* 正则测试器组件
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <RegexTester
|
|
35
|
+
* pattern="\d+"
|
|
36
|
+
* flags={{ global: true }}
|
|
37
|
+
* onMatchResults={(results) => console.log(results)}
|
|
38
|
+
* enableReplace={true}
|
|
39
|
+
* />
|
|
40
|
+
* ```
|
|
41
41
|
*/
|
|
42
42
|
var RegexTester = exports.RegexTester = function RegexTester(_ref) {
|
|
43
43
|
var pattern = _ref.pattern,
|
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.convertASTToRailroad = convertASTToRailroad;
|
|
7
7
|
exports.createRailroadDiagram = createRailroadDiagram;
|
|
8
8
|
var _railroadDiagrams = require("railroad-diagrams");
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } /**
|
|
10
|
-
* AST to Railroad Diagram Converter
|
|
11
|
-
*
|
|
12
|
-
* @module RegexEditor/visualizer/astToRailroad
|
|
13
|
-
* @description 将 regexp-tree 的 AST 转换为 railroad-diagrams 格式
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } /**
|
|
10
|
+
* AST to Railroad Diagram Converter
|
|
11
|
+
*
|
|
12
|
+
* @module RegexEditor/visualizer/astToRailroad
|
|
13
|
+
* @description 将 regexp-tree 的 AST 转换为 railroad-diagrams 格式
|
|
14
14
|
*/
|
|
15
|
-
/**
|
|
16
|
-
* 将 regexp-tree AST 节点转换为 railroad-diagram 节点
|
|
15
|
+
/**
|
|
16
|
+
* 将 regexp-tree AST 节点转换为 railroad-diagram 节点
|
|
17
17
|
*/
|
|
18
18
|
function convertASTToRailroad(ast) {
|
|
19
19
|
if (!ast || !ast.type) {
|
|
@@ -124,8 +124,8 @@ function convertASTToRailroad(ast) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
/**
|
|
128
|
-
* 辅助函数:将字符节点转换为字符串
|
|
127
|
+
/**
|
|
128
|
+
* 辅助函数:将字符节点转换为字符串
|
|
129
129
|
*/
|
|
130
130
|
function convertCharNode(node) {
|
|
131
131
|
if (node.type === 'Char') {
|
|
@@ -134,8 +134,8 @@ function convertCharNode(node) {
|
|
|
134
134
|
return String(node.value || '');
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
/**
|
|
138
|
-
* 创建完整的 Railroad Diagram
|
|
137
|
+
/**
|
|
138
|
+
* 创建完整的 Railroad Diagram
|
|
139
139
|
*/
|
|
140
140
|
function createRailroadDiagram(ast) {
|
|
141
141
|
try {
|
|
@@ -16,24 +16,24 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
16
16
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
17
17
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
18
18
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
-
/**
|
|
20
|
-
* 正则表达式可视化 - 工具函数
|
|
21
|
-
*
|
|
22
|
-
* @module RegexEditor/visualizer/utils
|
|
23
|
-
* @description 提供匹配、标志转换等工具函数
|
|
19
|
+
/**
|
|
20
|
+
* 正则表达式可视化 - 工具函数
|
|
21
|
+
*
|
|
22
|
+
* @module RegexEditor/visualizer/utils
|
|
23
|
+
* @description 提供匹配、标志转换等工具函数
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
* 将标志对象转换为标志字符串
|
|
28
|
-
*
|
|
29
|
-
* @param flags - 标志对象
|
|
30
|
-
* @returns 标志字符串 (如 "gim")
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* flagsToString({ global: true, ignoreCase: true })
|
|
35
|
-
* // => "gi"
|
|
36
|
-
* ```
|
|
26
|
+
/**
|
|
27
|
+
* 将标志对象转换为标志字符串
|
|
28
|
+
*
|
|
29
|
+
* @param flags - 标志对象
|
|
30
|
+
* @returns 标志字符串 (如 "gim")
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* flagsToString({ global: true, ignoreCase: true })
|
|
35
|
+
* // => "gi"
|
|
36
|
+
* ```
|
|
37
37
|
*/
|
|
38
38
|
function flagsToString(flags) {
|
|
39
39
|
if (!flags) return '';
|
|
@@ -47,17 +47,17 @@ function flagsToString(flags) {
|
|
|
47
47
|
return result;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* 将标志字符串转换为标志对象
|
|
52
|
-
*
|
|
53
|
-
* @param flagsStr - 标志字符串 (如 "gim")
|
|
54
|
-
* @returns 标志对象
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* stringToFlags("gi")
|
|
59
|
-
* // => { global: true, ignoreCase: true }
|
|
60
|
-
* ```
|
|
50
|
+
/**
|
|
51
|
+
* 将标志字符串转换为标志对象
|
|
52
|
+
*
|
|
53
|
+
* @param flagsStr - 标志字符串 (如 "gim")
|
|
54
|
+
* @returns 标志对象
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* stringToFlags("gi")
|
|
59
|
+
* // => { global: true, ignoreCase: true }
|
|
60
|
+
* ```
|
|
61
61
|
*/
|
|
62
62
|
function stringToFlags(flagsStr) {
|
|
63
63
|
return {
|
|
@@ -70,24 +70,24 @@ function stringToFlags(flagsStr) {
|
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
/**
|
|
74
|
-
* 执行正则匹配并返回所有匹配结果
|
|
75
|
-
*
|
|
76
|
-
* @param pattern - 正则表达式模式
|
|
77
|
-
* @param text - 测试文本
|
|
78
|
-
* @param flags - 标志
|
|
79
|
-
* @param maxMatches - 最大匹配数量限制
|
|
80
|
-
* @param timeout - 超时时间 (毫秒)
|
|
81
|
-
* @returns 匹配结果数组,如果出错返回 null
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```ts
|
|
85
|
-
* const results = performMatch('\\d+', 'abc 123 def 456', { global: true });
|
|
86
|
-
* // => [
|
|
87
|
-
* // { index: 4, lastIndex: 7, fullMatch: '123', groups: ['123'] },
|
|
88
|
-
* // { index: 12, lastIndex: 15, fullMatch: '456', groups: ['456'] }
|
|
89
|
-
* // ]
|
|
90
|
-
* ```
|
|
73
|
+
/**
|
|
74
|
+
* 执行正则匹配并返回所有匹配结果
|
|
75
|
+
*
|
|
76
|
+
* @param pattern - 正则表达式模式
|
|
77
|
+
* @param text - 测试文本
|
|
78
|
+
* @param flags - 标志
|
|
79
|
+
* @param maxMatches - 最大匹配数量限制
|
|
80
|
+
* @param timeout - 超时时间 (毫秒)
|
|
81
|
+
* @returns 匹配结果数组,如果出错返回 null
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const results = performMatch('\\d+', 'abc 123 def 456', { global: true });
|
|
86
|
+
* // => [
|
|
87
|
+
* // { index: 4, lastIndex: 7, fullMatch: '123', groups: ['123'] },
|
|
88
|
+
* // { index: 12, lastIndex: 15, fullMatch: '456', groups: ['456'] }
|
|
89
|
+
* // ]
|
|
90
|
+
* ```
|
|
91
91
|
*/
|
|
92
92
|
function performMatch(pattern, text, flags) {
|
|
93
93
|
var maxMatches = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1000;
|
|
@@ -149,20 +149,20 @@ function performMatch(pattern, text, flags) {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
/**
|
|
153
|
-
* 执行正则替换并返回结果
|
|
154
|
-
*
|
|
155
|
-
* @param pattern - 正则表达式模式
|
|
156
|
-
* @param text - 原始文本
|
|
157
|
-
* @param replaceText - 替换文本 (支持 $1, $2 等)
|
|
158
|
-
* @param flags - 标志
|
|
159
|
-
* @returns 替换后的文本,如果出错返回 null
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* ```ts
|
|
163
|
-
* performReplace('(\\d+)', 'abc 123 def', 'NUM:$1', { global: true })
|
|
164
|
-
* // => "abc NUM:123 def"
|
|
165
|
-
* ```
|
|
152
|
+
/**
|
|
153
|
+
* 执行正则替换并返回结果
|
|
154
|
+
*
|
|
155
|
+
* @param pattern - 正则表达式模式
|
|
156
|
+
* @param text - 原始文本
|
|
157
|
+
* @param replaceText - 替换文本 (支持 $1, $2 等)
|
|
158
|
+
* @param flags - 标志
|
|
159
|
+
* @returns 替换后的文本,如果出错返回 null
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* performReplace('(\\d+)', 'abc 123 def', 'NUM:$1', { global: true })
|
|
164
|
+
* // => "abc NUM:123 def"
|
|
165
|
+
* ```
|
|
166
166
|
*/
|
|
167
167
|
function performReplace(pattern, text, replaceText, flags) {
|
|
168
168
|
try {
|
|
@@ -175,20 +175,20 @@ function performReplace(pattern, text, replaceText, flags) {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
/**
|
|
179
|
-
* 高亮文本中的匹配部分
|
|
180
|
-
*
|
|
181
|
-
* @param text - 原始文本
|
|
182
|
-
* @param matches - 匹配结果数组
|
|
183
|
-
* @returns 带高亮标记的 HTML 字符串
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```ts
|
|
187
|
-
* highlightMatches('abc 123 def', [
|
|
188
|
-
* { index: 4, lastIndex: 7, fullMatch: '123', groups: ['123'] }
|
|
189
|
-
* ])
|
|
190
|
-
* // => 'abc <mark class="regex-match">123</mark> def'
|
|
191
|
-
* ```
|
|
178
|
+
/**
|
|
179
|
+
* 高亮文本中的匹配部分
|
|
180
|
+
*
|
|
181
|
+
* @param text - 原始文本
|
|
182
|
+
* @param matches - 匹配结果数组
|
|
183
|
+
* @returns 带高亮标记的 HTML 字符串
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```ts
|
|
187
|
+
* highlightMatches('abc 123 def', [
|
|
188
|
+
* { index: 4, lastIndex: 7, fullMatch: '123', groups: ['123'] }
|
|
189
|
+
* ])
|
|
190
|
+
* // => 'abc <mark class="regex-match">123</mark> def'
|
|
191
|
+
* ```
|
|
192
192
|
*/
|
|
193
193
|
function highlightMatches(text, matches) {
|
|
194
194
|
if (!matches || matches.length === 0) {
|
|
@@ -219,8 +219,8 @@ function highlightMatches(text, matches) {
|
|
|
219
219
|
return result;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
/**
|
|
223
|
-
* 转义 HTML 特殊字符
|
|
222
|
+
/**
|
|
223
|
+
* 转义 HTML 特殊字符
|
|
224
224
|
*/
|
|
225
225
|
function escapeHtml(text) {
|
|
226
226
|
var map = {
|
|
@@ -235,28 +235,28 @@ function escapeHtml(text) {
|
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
/**
|
|
239
|
-
* 格式化匹配位置
|
|
240
|
-
*
|
|
241
|
-
* @param match - 匹配结果
|
|
242
|
-
* @returns 格式化的位置字符串
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* ```ts
|
|
246
|
-
* formatPosition({ index: 10, lastIndex: 15, ... })
|
|
247
|
-
* // => "10-15"
|
|
248
|
-
* ```
|
|
238
|
+
/**
|
|
239
|
+
* 格式化匹配位置
|
|
240
|
+
*
|
|
241
|
+
* @param match - 匹配结果
|
|
242
|
+
* @returns 格式化的位置字符串
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* ```ts
|
|
246
|
+
* formatPosition({ index: 10, lastIndex: 15, ... })
|
|
247
|
+
* // => "10-15"
|
|
248
|
+
* ```
|
|
249
249
|
*/
|
|
250
250
|
function formatPosition(match) {
|
|
251
251
|
return "".concat(match.index, "-").concat(match.lastIndex);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
/**
|
|
255
|
-
* 检查正则表达式是否有效
|
|
256
|
-
*
|
|
257
|
-
* @param pattern - 正则表达式模式
|
|
258
|
-
* @param flags - 标志
|
|
259
|
-
* @returns 是否有效
|
|
254
|
+
/**
|
|
255
|
+
* 检查正则表达式是否有效
|
|
256
|
+
*
|
|
257
|
+
* @param pattern - 正则表达式模式
|
|
258
|
+
* @param flags - 标志
|
|
259
|
+
* @returns 是否有效
|
|
260
260
|
*/
|
|
261
261
|
function isValidRegex(pattern, flags) {
|
|
262
262
|
try {
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
.react-dashboard-toolbar {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
// width: 100%;
|
|
6
|
-
padding: 0 10px;
|
|
7
|
-
padding-bottom: 10px;
|
|
8
|
-
// background: var(--component-background);
|
|
9
|
-
|
|
10
|
-
&:after {
|
|
11
|
-
display: block;
|
|
12
|
-
clear: both;
|
|
13
|
-
content: '';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-left {
|
|
17
|
-
float: left;
|
|
18
|
-
|
|
19
|
-
button {
|
|
20
|
-
margin-right: 10px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&-right {
|
|
25
|
-
float: right;
|
|
26
|
-
|
|
27
|
-
button {
|
|
28
|
-
margin-left: 10px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-space {
|
|
33
|
-
flex: auto;
|
|
34
|
-
height: 1px;
|
|
35
|
-
margin: 0 !important;
|
|
36
|
-
padding: 0 !important;
|
|
37
|
-
border: 0 !important;
|
|
38
|
-
-webkit-box-flex: 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&-fixed {
|
|
42
|
-
position: fixed;
|
|
43
|
-
right: 0;
|
|
44
|
-
bottom: 0;
|
|
45
|
-
z-index: 9;
|
|
46
|
-
border-top: 1px solid rgba(128, 128, 128, 0.1);
|
|
47
|
-
box-shadow: 0 -1px 2px rgba(128, 128, 128, 0.03);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
.react-dashboard-toolbar {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
// width: 100%;
|
|
6
|
+
padding: 0 10px;
|
|
7
|
+
padding-bottom: 10px;
|
|
8
|
+
// background: var(--component-background);
|
|
9
|
+
|
|
10
|
+
&:after {
|
|
11
|
+
display: block;
|
|
12
|
+
clear: both;
|
|
13
|
+
content: '';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-left {
|
|
17
|
+
float: left;
|
|
18
|
+
|
|
19
|
+
button {
|
|
20
|
+
margin-right: 10px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-right {
|
|
25
|
+
float: right;
|
|
26
|
+
|
|
27
|
+
button {
|
|
28
|
+
margin-left: 10px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-space {
|
|
33
|
+
flex: auto;
|
|
34
|
+
height: 1px;
|
|
35
|
+
margin: 0 !important;
|
|
36
|
+
padding: 0 !important;
|
|
37
|
+
border: 0 !important;
|
|
38
|
+
-webkit-box-flex: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-fixed {
|
|
42
|
+
position: fixed;
|
|
43
|
+
right: 0;
|
|
44
|
+
bottom: 0;
|
|
45
|
+
z-index: 9;
|
|
46
|
+
border-top: 1px solid rgba(128, 128, 128, 0.1);
|
|
47
|
+
box-shadow: 0 -1px 2px rgba(128, 128, 128, 0.03);
|
|
48
|
+
}
|
|
49
|
+
}
|