@chaoswise/business 1.1.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/I18nInput/index.d.ts +31 -0
- package/lib/I18nInput/index.js +159 -58
- package/lib/index.d.ts +1 -0
- package/lib/index.js +0 -4
- package/lib/locales/en_US.json +1 -1
- package/lib/locales/index.d.ts +7 -0
- package/lib/locales/index.js +15 -19
- package/lib/locales/intl.d.ts +11 -0
- package/lib/locales/intl.js +18 -58
- package/lib/locales/ja_JP.json +1 -1
- package/lib/locales/normalizeLocale.d.ts +2 -0
- package/lib/locales/normalizeLocale.js +27 -0
- package/lib/locales/withLocale.d.ts +28 -0
- package/lib/locales/withLocale.js +1 -1
- package/lib/locales/zh_CN.json +1 -1
- package/lib/locales/zh_HK.json +1 -1
- package/lib/locales/zh_TW.json +1 -1
- package/package.json +8 -6
- package/lib/AggregateSearch/CLSPL/CLQLLexer.js +0 -78
- package/lib/AggregateSearch/CLSPL/CLQLParser.js +0 -2724
- package/lib/AggregateSearch/CLSPL/CLQLParserListener.js +0 -347
- package/lib/AggregateSearch/CLSPL/CLQLParserVisitor.js +0 -251
- package/lib/AggregateSearch/CLSPL/SPLStagy.js +0 -197
- package/lib/AggregateSearch/CLSPL/index.js +0 -196
- package/lib/AggregateSearch/CLSPL/makeTokenizeFn.js +0 -18
- package/lib/AggregateSearch/CLSPL/token.js +0 -7
- package/lib/AggregateSearch/components/CloseAllIcon/index.js +0 -13
- package/lib/AggregateSearch/components/CloseAllIcon/index.less +0 -11
- package/lib/AggregateSearch/components/DropDown/assets/combined.svg +0 -22
- package/lib/AggregateSearch/components/DropDown/assets/copy.svg +0 -22
- package/lib/AggregateSearch/components/DropDown/assets/delete.svg +0 -24
- package/lib/AggregateSearch/components/DropDown/assets/home.svg +0 -20
- package/lib/AggregateSearch/components/DropDown/assets/key.svg +0 -21
- package/lib/AggregateSearch/components/DropDown/assets/star.svg +0 -22
- package/lib/AggregateSearch/components/DropDown/assets/time-circle.svg +0 -20
- package/lib/AggregateSearch/components/DropDown/assets/value.svg +0 -23
- package/lib/AggregateSearch/components/DropDown/config.js +0 -54
- package/lib/AggregateSearch/components/DropDown/index.js +0 -576
- package/lib/AggregateSearch/components/DropDown/index.less +0 -118
- package/lib/AggregateSearch/components/SwitchBtn/assets/tag-icon.svg +0 -17
- package/lib/AggregateSearch/components/SwitchBtn/assets/text-icon.svg +0 -18
- package/lib/AggregateSearch/components/SwitchBtn/index.js +0 -27
- package/lib/AggregateSearch/components/SwitchBtn/index.less +0 -31
- package/lib/AggregateSearch/hooks/useDropDown.js +0 -428
- package/lib/AggregateSearch/index.js +0 -503
- package/lib/AggregateSearch/index.less +0 -225
- package/lib/AggregateSearch/utils/index.js +0 -391
- package/lib/ContentEditableSearch/components/CloseAllIcon/index.js +0 -13
- package/lib/ContentEditableSearch/components/CloseAllIcon/index.less +0 -11
- package/lib/ContentEditableSearch/index.js +0 -155
- package/lib/ContentEditableSearch/index.less +0 -65
- package/lib/ContentEditableSearch/utils/index.js +0 -98
- package/lib/PropertyControlViewer/assets/doCommon.less +0 -75
- package/lib/PropertyControlViewer/assets/doSelect.less +0 -74
- package/lib/PropertyControlViewer/assets/index.less +0 -189
- package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/iconfont.js +0 -1
- package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/index.js +0 -29
- package/lib/PropertyControlViewer/components/DoAppIcon/iconData/IconJson.js +0 -0
- package/lib/PropertyControlViewer/components/DoAppIcon/index.js +0 -41
- package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +0 -50
- package/lib/PropertyControlViewer/components/DoCommon.js +0 -36
- package/lib/PropertyControlViewer/components/DoDefaultPlaceholder.js +0 -9
- package/lib/PropertyControlViewer/components/DoImage.js +0 -107
- package/lib/PropertyControlViewer/components/DoQuote/components/QuoteView.js +0 -63
- package/lib/PropertyControlViewer/components/DoQuote/components/TableQuoteView.js +0 -18
- package/lib/PropertyControlViewer/components/DoQuote/index.js +0 -16
- package/lib/PropertyControlViewer/components/DoSelect.js +0 -80
- package/lib/PropertyControlViewer/components/DoTable.js +0 -44
- package/lib/PropertyControlViewer/components/DoUser.js +0 -61
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +0 -132
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.less +0 -106
- package/lib/PropertyControlViewer/config/constants.js +0 -84
- package/lib/PropertyControlViewer/config/utils.js +0 -353
- package/lib/PropertyControlViewer/index.js +0 -195
- package/lib/PropertyControlViewer/index.less +0 -107
- package/lib/Watermark/index.js +0 -184
- package/lib/Watermark/index.less +0 -17
- package/lib/demo.js +0 -0
- package/lib/locale/en_US.js +0 -9
- package/lib/locale/index.js +0 -12
- package/lib/locale/zh_CN.js +0 -9
- package/lib/locales/localeCode.js +0 -13
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
3
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
4
|
+
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); }
|
|
5
|
+
// 格式规范化不决定产品支持范围;保留已有短码兼容。
|
|
6
|
+
export var normalizeLocale = function normalizeLocale(locale) {
|
|
7
|
+
if (typeof locale !== 'string') return locale;
|
|
8
|
+
var formatted = locale.trim().replace(/-/g, '_');
|
|
9
|
+
var legacy = {
|
|
10
|
+
zh: 'zh_CN',
|
|
11
|
+
en: 'en_US',
|
|
12
|
+
ja: 'ja_JP'
|
|
13
|
+
};
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(legacy, formatted)) return legacy[formatted];
|
|
15
|
+
return formatted.replace(/^([a-z]{2})_([a-z]{2})$/i, function (_, language, region) {
|
|
16
|
+
return "".concat(language.toLowerCase(), "_").concat(region.toUpperCase());
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
// 多语言数据统一使用完整下划线键;同时存在别名和标准键时,标准键优先(包括空值)。
|
|
20
|
+
export var normalizeLocaleRecord = function normalizeLocaleRecord(record) {
|
|
21
|
+
if (!record || _typeof(record) !== 'object' || Array.isArray(record)) return record;
|
|
22
|
+
return Object.keys(record).reduce(function (result, key) {
|
|
23
|
+
var locale = normalizeLocale(key);
|
|
24
|
+
var value = Object.prototype.hasOwnProperty.call(record, locale) ? record[locale] : record[key];
|
|
25
|
+
return Object.assign(Object.assign({}, result), _defineProperty({}, locale, value));
|
|
26
|
+
}, {});
|
|
27
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default function withLocale(WrappedComponent: any): {
|
|
2
|
+
new (props: any): {
|
|
3
|
+
render(): void;
|
|
4
|
+
context: any;
|
|
5
|
+
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
|
|
6
|
+
forceUpdate(callback?: () => void): void;
|
|
7
|
+
readonly props: Readonly<any> & Readonly<{
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
state: Readonly<any>;
|
|
11
|
+
refs: {
|
|
12
|
+
[key: string]: React.ReactInstance;
|
|
13
|
+
};
|
|
14
|
+
componentDidMount?(): void;
|
|
15
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
16
|
+
componentWillUnmount?(): void;
|
|
17
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
18
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
19
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
20
|
+
componentWillMount?(): void;
|
|
21
|
+
UNSAFE_componentWillMount?(): void;
|
|
22
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
23
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
24
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
25
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
26
|
+
};
|
|
27
|
+
contextType?: React.Context<any>;
|
|
28
|
+
};
|
|
@@ -26,7 +26,7 @@ export default function withLocale(WrappedComponent) {
|
|
|
26
26
|
value: function render() {
|
|
27
27
|
var _this = this;
|
|
28
28
|
/*#__PURE__*/React.createElement(intlContext.Consumer, null, function (value) {
|
|
29
|
-
return /*#__PURE__*/React.createElement(WrappedComponent, _this.props);
|
|
29
|
+
return /*#__PURE__*/React.createElement(WrappedComponent, Object.assign({}, _this.props));
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
}]);
|
package/lib/locales/zh_CN.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"19d6c313-9540-4042-b642-ebc6396ca0c7":"取消","632edd96-893f-4599-b1a3-0406e2146010":"确定","99b301b7-f153-4861-8ca3-22371b6b95d9":"请输入","e25f1462-c823-434a-a6b2-4258dd57930a":"多语言配置"}
|
package/lib/locales/zh_HK.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"19d6c313-9540-4042-b642-ebc6396ca0c7":"取消","632edd96-893f-4599-b1a3-0406e2146010":"確定","99b301b7-f153-4861-8ca3-22371b6b95d9":"請輸入","e25f1462-c823-434a-a6b2-4258dd57930a":"多語言配置"}
|
package/lib/locales/zh_TW.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"19d6c313-9540-4042-b642-ebc6396ca0c7":"取消","632edd96-893f-4599-b1a3-0406e2146010":"確定","99b301b7-f153-4861-8ca3-22371b6b95d9":"請輸入","e25f1462-c823-434a-a6b2-4258dd57930a":"多語言配置"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaoswise/business",
|
|
3
3
|
"packageName": "chaoswiseBusiness",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"description": "业务组件库",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ui",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@babel/plugin-transform-spread": "^7.16.7",
|
|
29
29
|
"@babel/preset-env": "^7.16.11",
|
|
30
30
|
"@babel/preset-typescript": "^7.16.7",
|
|
31
|
-
"@chaoswise/intl": "^3.2.0",
|
|
32
31
|
"@babel/runtime-corejs3": "^7.11.2",
|
|
33
|
-
"@chaoswise/
|
|
32
|
+
"@chaoswise/intl": "^3.2.0",
|
|
33
|
+
"@chaoswise/ui": "^3.2.0",
|
|
34
34
|
"@chaoswise/utils": "^1.0.0",
|
|
35
35
|
"@storybook/addon-actions": "^6.4.22",
|
|
36
36
|
"@storybook/addon-essentials": "^6.4.22",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@storybook/addon-storysource": "^6.4.22",
|
|
40
40
|
"@storybook/react": "^6.4.22",
|
|
41
41
|
"@storybook/testing-library": "^0.0.11",
|
|
42
|
+
"@types/node": "18.19.76",
|
|
42
43
|
"@types/react": "^17.0.0",
|
|
43
44
|
"@types/react-dom": "^17.0.0",
|
|
44
45
|
"babel-eslint": "^10.1.0",
|
|
@@ -76,10 +77,11 @@
|
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|
|
78
79
|
"antlr4": "4.9.2",
|
|
79
|
-
"react-copy-to-clipboard": "^5.1.0"
|
|
80
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
81
|
+
"react-intl-universal": "^2.9.1"
|
|
80
82
|
},
|
|
81
83
|
"peerDependencies": {
|
|
82
|
-
"@chaoswise/ui": ">=2.
|
|
84
|
+
"@chaoswise/ui": ">=3.2.0",
|
|
83
85
|
"@chaoswise/intl": ">=3.2.0"
|
|
84
86
|
},
|
|
85
87
|
"author": "cloudwiser",
|
|
@@ -106,9 +108,9 @@
|
|
|
106
108
|
"build": "gulp es --gulpfile ./scripts/gulpfile.js",
|
|
107
109
|
"build-tar": "node ./scripts/build-tar.js",
|
|
108
110
|
"intl-init": "chaoswise-intl init",
|
|
111
|
+
"intl-addLocale": "chaoswise-intl addLocale",
|
|
109
112
|
"intl-collect": "chaoswise-intl collect",
|
|
110
113
|
"intl-update": "chaoswise-intl update",
|
|
111
|
-
"intl-addLocale": "chaoswise-intl addLocale",
|
|
112
114
|
"intl-verify": "chaoswise-intl verify",
|
|
113
115
|
"intl-verifyFix": "chaoswise-intl verify fix"
|
|
114
116
|
},
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
11
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
-
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
15
|
-
// Generated from /Users/changle/Documents/code/doop/cql/src/main/resources/antlr/cql/CLQLLexer.g4 by ANTLR 4.9.2
|
|
16
|
-
// jshint ignore: start
|
|
17
|
-
import antlr4 from 'antlr4';
|
|
18
|
-
var serializedATN = ["\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786", "\u5964\x02\"\u0112\b\x01\x04\x02\t\x02\x04\x03\t\x03", "\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07", "\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\x0B\t\x0B\x04", "\f\t\f\x04\r\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10", "\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13", "\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17", "\t\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1A\t\x1A", "\x04\x1B\t\x1B\x04\x1C\t\x1C\x04\x1D\t\x1D\x04\x1E", "\t\x1E\x04\x1F\t\x1F\x04 \t \x04!\t!\x04\"\t\"\x04#", "\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x03\x02\x03\x02", "\x03\x03\x03\x03\x03\x03\x03\x03\x07\x03V\n\x03", "\f\x03\x0E\x03Y\x0B\x03\x03\x03\x03\x03\x03\x04", "\x03\x04\x07\x04_\n\x04\f\x04\x0E\x04b\x0B\x04\x03", "\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x05\x07", "\x05j\n\x05\f\x05\x0E\x05m\x0B\x05\x03\x05\x03\x05", "\x03\x06\x03\x06\x03\x06\x03\x06\x03\x07\x03\x07", "\x03\b\x03\b\x03\t\x03\t\x03\n\x03\n\x03\x0B\x03\x0B", "\x03\f\x03\f\x03\f\x03\r\x03\r\x03\r\x03\x0E\x03\x0E", "\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x11\x03\x11", "\x03\x12\x03\x12\x03\x13\x03\x13\x03\x14\x03\x14", "\x03\x15\x03\x15\x03\x16\x03\x16\x03\x17\x03\x17", "\x03\x17\x03\x17\x03\x18\x03\x18\x03\x18\x03\x18", "\x03\x19\x03\x19\x03\x19\x03\x1A\x03\x1A\x03\x1A", "\x03\x1B\x03\x1B\x03\x1B\x03\x1B\x07\x1B\xA9\n", "\x1B\f\x1B\x0E\x1B\xAC\x0B\x1B\x03\x1B\x03\x1B", "\x03\x1C\x06\x1C\xB1\n\x1C\r\x1C\x0E\x1C\xB2\x03", "\x1D\x03\x1D\x03\x1E\x03\x1E\x03\x1F\x03\x1F\x03", "\x1F\x06\x1F\xBC\n\x1F\r\x1F\x0E\x1F\xBD\x03\x1F", "\x03\x1F\x05\x1F\xC2\n\x1F\x03\x1F\x06\x1F\xC5", "\n\x1F\r\x1F\x0E\x1F\xC6\x05\x1F\xC9\n\x1F\x03 ", "\x06 \xCC\n \r \x0E \xCD\x03 \x05 \xD1\n \x03 \x06", " \xD4\n \r \x0E \xD5\x05 \xD8\n \x03 \x03 \x05 \xDC", "\n \x03 \x06 \xDF\n \r \x0E \xE0\x05 \xE3\n \x03 \x05", " \xE6\n \x03!\x03!\x03\"\x03\"\x03#\x03#\x03#\x06", "#\xEF\n#\r#\x0E#\xF0\x03$\x03$\x03%\x03%\x03&\x03", "&\x05&\xF9\n&\x03&\x03&\x03&\x05&\xFE\n&\x03&\x03", "&\x05&\u0102\n&\x03&\x03&\x05&\u0106\n&\x03'\x03'\x03", "'\x03'\x03'\x03'\x03'\x03'\x03'\x05'\u0111\n'", "\x02\x02(\x03\x03\x05\x04\x07\x05\t\x06\x0B\x07", "\r\b\x0F\t\x11\n\x13\x0B\x15\f\x17\r\x19\x0E\x1B\x0F", "\x1D\x10\x1F\x11!\x12#\x13%\x14'\x15)\x16+\x17", "-\x18/\x191\x1A3\x1B5\x1C7\x1D9\x1E;\x1F=\x02?\x02", "A\x02C\x02E G!I\"K\x02M\x02\x03\x02\x17\x03\x0211", "\x03\x02bb\x04\x02\f\f\x0F\x0F\x05\x02\x0B\r\x0F", "\x0F\"\"\x04\x02CCcc\x04\x02PPpp\x04\x02FFff\x04\x02", "QQqq\x04\x02VVvv\x04\x02TTtt\x03\x02$$\x04\x02ZZzz\x05", "\x022;CHch\x04\x02GGgg\x04\x02--//\x03\x022;\x03\x02", "00\x06\x02FFHHffhh\x05\x02C\\aac|\x06\x02&&00BB\x82\0", "\x04\x02,,AA\x02\u012B\x02\x03\x03\x02\x02\x02\x02", "\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02", "\t\x03\x02\x02\x02\x02\x0B\x03\x02\x02\x02\x02", "\r\x03\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02", "\x11\x03\x02\x02\x02\x02\x13\x03\x02\x02\x02\x02", "\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02", "\x19\x03\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02", "\x1D\x03\x02\x02\x02\x02\x1F\x03\x02\x02\x02\x02", "!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03", "\x02\x02\x02\x02'\x03\x02\x02\x02\x02)\x03\x02", "\x02\x02\x02+\x03\x02\x02\x02\x02-\x03\x02\x02", "\x02\x02/\x03\x02\x02\x02\x021\x03\x02\x02\x02", "\x023\x03\x02\x02\x02\x025\x03\x02\x02\x02\x02", "7\x03\x02\x02\x02\x029\x03\x02\x02\x02\x02;\x03", "\x02\x02\x02\x02E\x03\x02\x02\x02\x02G\x03\x02", "\x02\x02\x02I\x03\x02\x02\x02\x03O\x03\x02\x02", "\x02\x05Q\x03\x02\x02\x02\x07\\\x03\x02\x02\x02", "\te\x03\x02\x02\x02\x0Bp\x03\x02\x02\x02\rt\x03", "\x02\x02\x02\x0Fv\x03\x02\x02\x02\x11x\x03\x02", "\x02\x02\x13z\x03\x02\x02\x02\x15|\x03\x02\x02", "\x02\x17~\x03\x02\x02\x02\x19\x81\x03\x02\x02", "\x02\x1B\x84\x03\x02\x02\x02\x1D\x86\x03\x02\x02", "\x02\x1F\x88\x03\x02\x02\x02!\x8A\x03\x02\x02", "\x02#\x8C\x03\x02\x02\x02%\x8E\x03\x02\x02\x02", "'\x90\x03\x02\x02\x02)\x92\x03\x02\x02\x02+\x94", "\x03\x02\x02\x02-\x96\x03\x02\x02\x02/\x9A\x03", "\x02\x02\x021\x9E\x03\x02\x02\x023\xA1\x03\x02", "\x02\x025\xA4\x03\x02\x02\x027\xB0\x03\x02\x02", "\x029\xB4\x03\x02\x02\x02;\xB6\x03\x02\x02\x02", "=\xB8\x03\x02\x02\x02?\xCB\x03\x02\x02\x02A\xE7", "\x03\x02\x02\x02C\xE9\x03\x02\x02\x02E\xEE\x03", "\x02\x02\x02G\xF2\x03\x02\x02\x02I\xF4\x03\x02", "\x02\x02K\u0105\x03\x02\x02\x02M\u0110\x03\x02\x02", "\x02OP\x07%\x02\x02P\x04\x03\x02\x02\x02QW\x071", "\x02\x02RV\n\x02\x02\x02ST\x07^\x02\x02TV\x071\x02", "\x02UR\x03\x02\x02\x02US\x03\x02\x02\x02VY\x03\x02", "\x02\x02WU\x03\x02\x02\x02WX\x03\x02\x02\x02XZ\x03", "\x02\x02\x02YW\x03\x02\x02\x02Z[\x071\x02\x02[\x06", "\x03\x02\x02\x02\\`\x07b\x02\x02]_\n\x03\x02\x02", "^]\x03\x02\x02\x02_b\x03\x02\x02\x02`^\x03\x02\x02", "\x02`a\x03\x02\x02\x02ac\x03\x02\x02\x02b`\x03\x02", "\x02\x02cd\x07b\x02\x02d\b\x03\x02\x02\x02ef\x07", "/\x02\x02fg\x07/\x02\x02gk\x03\x02\x02\x02hj\n\x04", "\x02\x02ih\x03\x02\x02\x02jm\x03\x02\x02\x02ki\x03", "\x02\x02\x02kl\x03\x02\x02\x02ln\x03\x02\x02\x02", "mk\x03\x02\x02\x02no\b\x05\x02\x02o\n\x03\x02\x02", "\x02pq\t\x05\x02\x02qr\x03\x02\x02\x02rs\b\x06\x02", "\x02s\f\x03\x02\x02\x02tu\x07<\x02\x02u\x0E\x03", "\x02\x02\x02vw\x07*\x02\x02w\x10\x03\x02\x02\x02", "xy\x07+\x02\x02y\x12\x03\x02\x02\x02z{\x07>\x02", "\x02{\x14\x03\x02\x02\x02|}\x07@\x02\x02}\x16\x03", "\x02\x02\x02~\x7F\x07>\x02\x02\x7F\x80\x07?\x02", "\x02\x80\x18\x03\x02\x02\x02\x81\x82\x07@\x02", "\x02\x82\x83\x07?\x02\x02\x83\x1A\x03\x02\x02", "\x02\x84\x85\x07A\x02\x02\x85\x1C\x03\x02\x02", "\x02\x86\x87\x07,\x02\x02\x87\x1E\x03\x02\x02", "\x02\x88\x89\x07]\x02\x02\x89 \x03\x02\x02\x02", "\x8A\x8B\x07_\x02\x02\x8B\"\x03\x02\x02\x02\x8C", "\x8D\x07}\x02\x02\x8D$\x03\x02\x02\x02\x8E\x8F", "\x07\x7F\x02\x02\x8F&\x03\x02\x02\x02\x90\x91", "\x07\x80\x02\x02\x91(\x03\x02\x02\x02\x92\x93", "\x07-\x02\x02\x93*\x03\x02\x02\x02\x94\x95\x07", "/\x02\x02\x95,\x03\x02\x02\x02\x96\x97\t\x06\x02", "\x02\x97\x98\t\x07\x02\x02\x98\x99\t\b\x02\x02\x99", ".\x03\x02\x02\x02\x9A\x9B\t\x07\x02\x02\x9B\x9C", "\t\t\x02\x02\x9C\x9D\t\n\x02\x02\x9D0\x03\x02\x02", "\x02\x9E\x9F\t\t\x02\x02\x9F\xA0\t\x0B\x02\x02\xA0", "2\x03\x02\x02\x02\xA1\xA2\t\n\x02\x02\xA2\xA3\t", "\t\x02\x02\xA34\x03\x02\x02\x02\xA4\xAA\x07$\x02", "\x02\xA5\xA9\n\f\x02\x02\xA6\xA7\x07^\x02\x02\xA7", "\xA9\x07$\x02\x02\xA8\xA5\x03\x02\x02\x02\xA8", "\xA6\x03\x02\x02\x02\xA9\xAC\x03\x02\x02\x02\xAA", "\xA8\x03\x02\x02\x02\xAA\xAB\x03\x02\x02\x02\xAB", "\xAD\x03\x02\x02\x02\xAC\xAA\x03\x02\x02\x02\xAD", "\xAE\x07$\x02\x02\xAE6\x03\x02\x02\x02\xAF\xB1", "\x05A!\x02\xB0\xAF\x03\x02\x02\x02\xB1\xB2\x03", "\x02\x02\x02\xB2\xB0\x03\x02\x02\x02\xB2\xB3\x03", "\x02\x02\x02\xB38\x03\x02\x02\x02\xB4\xB5\x05", "? \x02\xB5:\x03\x02\x02\x02\xB6\xB7\x05=\x1F\x02", "\xB7<\x03\x02\x02\x02\xB8\xB9\x072\x02\x02\xB9", "\xBB\t\r\x02\x02\xBA\xBC\t\x0E\x02\x02\xBB\xBA\x03", "\x02\x02\x02\xBC\xBD\x03\x02\x02\x02\xBD\xBB\x03", "\x02\x02\x02\xBD\xBE\x03\x02\x02\x02\xBE\xC8\x03", "\x02\x02\x02\xBF\xC1\t\x0F\x02\x02\xC0\xC2\t\x10", "\x02\x02\xC1\xC0\x03\x02\x02\x02\xC1\xC2\x03\x02", "\x02\x02\xC2\xC4\x03\x02\x02\x02\xC3\xC5\t\x11", "\x02\x02\xC4\xC3\x03\x02\x02\x02\xC5\xC6\x03\x02", "\x02\x02\xC6\xC4\x03\x02\x02\x02\xC6\xC7\x03\x02", "\x02\x02\xC7\xC9\x03\x02\x02\x02\xC8\xBF\x03\x02", "\x02\x02\xC8\xC9\x03\x02\x02\x02\xC9>\x03\x02", "\x02\x02\xCA\xCC\t\x11\x02\x02\xCB\xCA\x03\x02", "\x02\x02\xCC\xCD\x03\x02\x02\x02\xCD\xCB\x03\x02", "\x02\x02\xCD\xCE\x03\x02\x02\x02\xCE\xD0\x03\x02", "\x02\x02\xCF\xD1\t\x12\x02\x02\xD0\xCF\x03\x02", "\x02\x02\xD0\xD1\x03\x02\x02\x02\xD1\xD7\x03\x02", "\x02\x02\xD2\xD4\t\x11\x02\x02\xD3\xD2\x03\x02", "\x02\x02\xD4\xD5\x03\x02\x02\x02\xD5\xD3\x03\x02", "\x02\x02\xD5\xD6\x03\x02\x02\x02\xD6\xD8\x03\x02", "\x02\x02\xD7\xD3\x03\x02\x02\x02\xD7\xD8\x03\x02", "\x02\x02\xD8\xE2\x03\x02\x02\x02\xD9\xDB\t\x0F", "\x02\x02\xDA\xDC\t\x10\x02\x02\xDB\xDA\x03\x02", "\x02\x02\xDB\xDC\x03\x02\x02\x02\xDC\xDE\x03\x02", "\x02\x02\xDD\xDF\t\x11\x02\x02\xDE\xDD\x03\x02", "\x02\x02\xDF\xE0\x03\x02\x02\x02\xE0\xDE\x03\x02", "\x02\x02\xE0\xE1\x03\x02\x02\x02\xE1\xE3\x03\x02", "\x02\x02\xE2\xD9\x03\x02\x02\x02\xE2\xE3\x03\x02", "\x02\x02\xE3\xE5\x03\x02\x02\x02\xE4\xE6\t\x13", "\x02\x02\xE5\xE4\x03\x02\x02\x02\xE5\xE6\x03\x02", "\x02\x02\xE6@\x03\x02\x02\x02\xE7\xE8\t\x11\x02", "\x02\xE8B\x03\x02\x02\x02\xE9\xEA\t\x14\x02\x02", "\xEAD\x03\x02\x02\x02\xEB\xEF\x05C\"\x02\xEC\xEF", "\x05A!\x02\xED\xEF\t\x15\x02\x02\xEE\xEB\x03\x02", "\x02\x02\xEE\xEC\x03\x02\x02\x02\xEE\xED\x03\x02", "\x02\x02\xEF\xF0\x03\x02\x02\x02\xF0\xEE\x03\x02", "\x02\x02\xF0\xF1\x03\x02\x02\x02\xF1F\x03\x02", "\x02\x02\xF2\xF3\x0B\x02\x02\x02\xF3H\x03\x02", "\x02\x02\xF4\xF5\x05M'\x02\xF5J\x03\x02\x02\x02", "\xF6\xF9\x05)\x15\x02\xF7\xF9\x05+\x16\x02\xF8", "\xF6\x03\x02\x02\x02\xF8\xF7\x03\x02\x02\x02\xF8", "\xF9\x03\x02\x02\x02\xF9\xFA\x03\x02\x02\x02\xFA", "\u0106\x057\x1C\x02\xFB\xFE\x05)\x15\x02\xFC\xFE", "\x05+\x16\x02\xFD\xFB\x03\x02\x02\x02\xFD\xFC", "\x03\x02\x02\x02\xFD\xFE\x03\x02\x02\x02\xFE\u0101", "\x03\x02\x02\x02\xFF\u0102\x059\x1D\x02\u0100\u0102", "\x05;\x1E\x02\u0101\xFF\x03\x02\x02\x02\u0101\u0100", "\x03\x02\x02\x02\u0102\u0106\x03\x02\x02\x02\u0103\u0106", "\x05E#\x02\u0104\u0106\x055\x1B\x02\u0105\xF8\x03\x02", "\x02\x02\u0105\xFD\x03\x02\x02\x02\u0105\u0103\x03\x02", "\x02\x02\u0105\u0104\x03\x02\x02\x02\u0106L\x03\x02", "\x02\x02\u0107\u0108\t\x16\x02\x02\u0108\u0109\x05K&\x02", "\u0109\u010A\t\x16\x02\x02\u010A\u0111\x03\x02\x02\x02", "\u010B\u010C\x05K&\x02\u010C\u010D\t\x16\x02\x02\u010D\u0111", "\x03\x02\x02\x02\u010E\u010F\t\x16\x02\x02\u010F\u0111", "\x05K&\x02\u0110\u0107\x03\x02\x02\x02\u0110\u010B\x03", "\x02\x02\x02\u0110\u010E\x03\x02\x02\x02\u0111N\x03", "\x02\x02\x02\x1D\x02UW`k\xA8\xAA\xB2\xBD\xC1\xC6", "\xC8\xCD\xD0\xD5\xD7\xDB\xE0\xE2\xE5\xEE\xF0\xF8", "\xFD\u0101\u0105\u0110\x03\x02\x03\x02"].join('');
|
|
19
|
-
var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
|
|
20
|
-
var decisionsToDFA = atn.decisionToState.map(function (ds, index) {
|
|
21
|
-
return new antlr4.dfa.DFA(ds, index);
|
|
22
|
-
});
|
|
23
|
-
var CLQLLexer = /*#__PURE__*/function (_antlr4$Lexer) {
|
|
24
|
-
function CLQLLexer(input) {
|
|
25
|
-
var _this;
|
|
26
|
-
_classCallCheck(this, CLQLLexer);
|
|
27
|
-
_this = _callSuper(this, CLQLLexer, [input]);
|
|
28
|
-
_this._interp = new antlr4.atn.LexerATNSimulator(_this, atn, decisionsToDFA, new antlr4.PredictionContextCache());
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
_inherits(CLQLLexer, _antlr4$Lexer);
|
|
32
|
-
return _createClass(CLQLLexer, [{
|
|
33
|
-
key: "atn",
|
|
34
|
-
get: function get() {
|
|
35
|
-
return atn;
|
|
36
|
-
}
|
|
37
|
-
}]);
|
|
38
|
-
}(antlr4.Lexer);
|
|
39
|
-
_defineProperty(CLQLLexer, "grammarFileName", 'CLQLLexer.g4');
|
|
40
|
-
_defineProperty(CLQLLexer, "channelNames", ['DEFAULT_TOKEN_CHANNEL', 'HIDDEN']);
|
|
41
|
-
_defineProperty(CLQLLexer, "modeNames", ['DEFAULT_MODE']);
|
|
42
|
-
_defineProperty(CLQLLexer, "literalNames", [null, "'#'", null, null, null, null, "':'", "'('", "')'", "'<'", "'>'", "'<='", "'>='", "'?'", "'*'", "'['", "']'", "'{'", "'}'", "'~'", "'+'", "'-'"]);
|
|
43
|
-
_defineProperty(CLQLLexer, "symbolicNames", [null, 'WEI', 'REGEX', 'BQUOTA_STRING', 'LINE_COMMENT', 'SPACES', 'COLON', 'LPAREN', 'RPAREN', 'LT', 'GT', 'LE', 'GE', 'QUESTION', 'STAR', 'LBRAKET', 'RBRAKET', 'LCURLY', 'RCURLY', 'WAVE', 'PLUS', 'MINUS', 'K_AND', 'K_NOT', 'K_OR', 'K_TO', 'DQUOTA_STRING', 'INTEGER_LITERAL', 'DECIMAL_LITERAL', 'HEXADECIMAL_LITERAL', 'UNQUOTA_STRING', 'UNEXPECTED_CHAR', 'FUZZY_LITERAL']);
|
|
44
|
-
_defineProperty(CLQLLexer, "ruleNames", ['WEI', 'REGEX', 'BQUOTA_STRING', 'LINE_COMMENT', 'SPACES', 'COLON', 'LPAREN', 'RPAREN', 'LT', 'GT', 'LE', 'GE', 'QUESTION', 'STAR', 'LBRAKET', 'RBRAKET', 'LCURLY', 'RCURLY', 'WAVE', 'PLUS', 'MINUS', 'K_AND', 'K_NOT', 'K_OR', 'K_TO', 'DQUOTA_STRING', 'INTEGER_LITERAL', 'DECIMAL_LITERAL', 'HEXADECIMAL_LITERAL', 'HEXADECIMAL', 'DECIMAL', 'DIGIT', 'LETTER', 'UNQUOTA_STRING', 'UNEXPECTED_CHAR', 'FUZZY_LITERAL', 'TEXT', 'FUZZY']);
|
|
45
|
-
export { CLQLLexer as default };
|
|
46
|
-
CLQLLexer.EOF = antlr4.Token.EOF;
|
|
47
|
-
CLQLLexer.WEI = 1;
|
|
48
|
-
CLQLLexer.REGEX = 2;
|
|
49
|
-
CLQLLexer.BQUOTA_STRING = 3;
|
|
50
|
-
CLQLLexer.LINE_COMMENT = 4;
|
|
51
|
-
CLQLLexer.SPACES = 5;
|
|
52
|
-
CLQLLexer.COLON = 6;
|
|
53
|
-
CLQLLexer.LPAREN = 7;
|
|
54
|
-
CLQLLexer.RPAREN = 8;
|
|
55
|
-
CLQLLexer.LT = 9;
|
|
56
|
-
CLQLLexer.GT = 10;
|
|
57
|
-
CLQLLexer.LE = 11;
|
|
58
|
-
CLQLLexer.GE = 12;
|
|
59
|
-
CLQLLexer.QUESTION = 13;
|
|
60
|
-
CLQLLexer.STAR = 14;
|
|
61
|
-
CLQLLexer.LBRAKET = 15;
|
|
62
|
-
CLQLLexer.RBRAKET = 16;
|
|
63
|
-
CLQLLexer.LCURLY = 17;
|
|
64
|
-
CLQLLexer.RCURLY = 18;
|
|
65
|
-
CLQLLexer.WAVE = 19;
|
|
66
|
-
CLQLLexer.PLUS = 20;
|
|
67
|
-
CLQLLexer.MINUS = 21;
|
|
68
|
-
CLQLLexer.K_AND = 22;
|
|
69
|
-
CLQLLexer.K_NOT = 23;
|
|
70
|
-
CLQLLexer.K_OR = 24;
|
|
71
|
-
CLQLLexer.K_TO = 25;
|
|
72
|
-
CLQLLexer.DQUOTA_STRING = 26;
|
|
73
|
-
CLQLLexer.INTEGER_LITERAL = 27;
|
|
74
|
-
CLQLLexer.DECIMAL_LITERAL = 28;
|
|
75
|
-
CLQLLexer.HEXADECIMAL_LITERAL = 29;
|
|
76
|
-
CLQLLexer.UNQUOTA_STRING = 30;
|
|
77
|
-
CLQLLexer.UNEXPECTED_CHAR = 31;
|
|
78
|
-
CLQLLexer.FUZZY_LITERAL = 32;
|