@next-bricks/advanced 0.1.11 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +13 -4
- package/dist/chunks/{1646.6f16fc33.js → 1646.a80b5eaa.js} +2 -2
- package/dist/chunks/{1646.6f16fc33.js.map → 1646.a80b5eaa.js.map} +1 -1
- package/dist/chunks/3494.8dc2bb35.js +2 -0
- package/dist/chunks/{3494.e5fef5da.js.map → 3494.8dc2bb35.js.map} +1 -1
- package/dist/chunks/{4131.ae18b866.js → 4131.c8a8abfc.js} +2 -2
- package/dist/chunks/4131.c8a8abfc.js.map +1 -0
- package/dist/chunks/4717.5a3e82eb.js +2 -0
- package/dist/chunks/4717.5a3e82eb.js.map +1 -0
- package/dist/chunks/7746.ea869f8e.js +2 -0
- package/dist/chunks/{7746.4bffd269.js.map → 7746.ea869f8e.js.map} +1 -1
- package/dist/chunks/7822.670428a7.js +2 -0
- package/dist/chunks/{7822.4d967d10.js.map → 7822.670428a7.js.map} +1 -1
- package/dist/chunks/9079.7b709949.js +2 -0
- package/dist/chunks/9079.7b709949.js.map +1 -0
- package/dist/chunks/9549.21712f9e.js +2 -0
- package/dist/chunks/9549.21712f9e.js.map +1 -0
- package/dist/chunks/eo-cascader.c47cca4f.js +2 -0
- package/dist/chunks/eo-cascader.c47cca4f.js.map +1 -0
- package/dist/chunks/eo-table.30c21474.js +2 -0
- package/dist/chunks/eo-table.30c21474.js.map +1 -0
- package/dist/chunks/main.083afec5.js +2 -0
- package/dist/chunks/{main.46bd548c.js.map → main.083afec5.js.map} +1 -1
- package/dist/index.9123c321.js +2 -0
- package/dist/index.9123c321.js.map +1 -0
- package/dist/manifest.json +9 -3
- package/dist/types.json +2 -2
- package/dist-types/cascader/index.d.ts +1 -5
- package/docs/{general-table.md → eo-table.md} +18 -18
- package/package.json +3 -3
- package/dist/chunks/3494.e5fef5da.js +0 -2
- package/dist/chunks/4131.ae18b866.js.map +0 -1
- package/dist/chunks/4717.b9d4a3a0.js +0 -2
- package/dist/chunks/4717.b9d4a3a0.js.map +0 -1
- package/dist/chunks/7746.4bffd269.js +0 -2
- package/dist/chunks/7822.4d967d10.js +0 -2
- package/dist/chunks/9079.7655adf3.js +0 -2
- package/dist/chunks/9079.7655adf3.js.map +0 -1
- package/dist/chunks/9549.88a18c15.js +0 -2
- package/dist/chunks/9549.88a18c15.js.map +0 -1
- package/dist/chunks/general-cascader.8fbc4ab3.js +0 -2
- package/dist/chunks/general-cascader.8fbc4ab3.js.map +0 -1
- package/dist/chunks/general-table.7f1c10a5.js +0 -2
- package/dist/chunks/general-table.7f1c10a5.js.map +0 -1
- package/dist/chunks/main.46bd548c.js +0 -2
- package/dist/index.4f174b6f.js +0 -2
- package/dist/index.4f174b6f.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[4717],{6666:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(5850);function i(t,e,r){return(e=(0,n.Z)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},3028:(t,e,r)=>{r.d(e,{Z:()=>o});var n=r(6666);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},5850:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(6522);function i(t){var e=function(t,e){if("object"!==(0,n.Z)(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!==(0,n.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===(0,n.Z)(e)?e:String(e)}},6522:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{Z:()=>n})},9549:(t,e,r)=>{r.r(e),r.d(e,{NextElement:()=>g,createDecorators:()=>u,supportsAdoptingStyleSheets:()=>Z});var n=r(2159),i=r(3028),o=Symbol("attributeHasBeenSet"),a=Symbol("stopAttributeChangedCallback"),s=["type"],l={attribute:!0,type:String,converter:{toAttribute:(t,e)=>e===Boolean?t?"":null:t,fromAttribute(t,e){switch(e){case Boolean:return null!==t&&"false"!==t;case Number:return null===t?null:Number(t)}return t}},reflect:!0,hasChanged:(t,e)=>e!==t&&(e==e||t==t)};function u(){var t=new Map,e=new Set,r=new Set,u=new Set;return{defineElement:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(a,s)=>{var{kind:l,name:v,addInitializer:h}=s;h((function(){var s,l,v,h,f,b=Object.getPrototypeOf(this);if(c(this,"observedAttributes",d(null!==(s=b.observedAttributes)&&void 0!==s?s:[],t.keys())),c(this,"__attributeReflections",new Map([...null!==(l=b.__attributeReflections)&&void 0!==l?l:[],...t])),c(this,"styleTexts",o.styleTexts),c(this,"shadowOptions",!1!==o.shadowOptions?(0,i.Z)({mode:"open"},o.shadowOptions):null),c(this,"__tagName",n),c(this,"_dev_only_definedProperties",d(null!==(v=b._dev_only_definedProperties)&&void 0!==v?v:[],e)),c(this,"_dev_only_definedMethods",d(null!==(h=b._dev_only_definedMethods)&&void 0!==h?h:[],r)),c(this,"_dev_only_definedEvents",d(null!==(f=b._dev_only_definedEvents)&&void 0!==f?f:[],u)),customElements.define(n,this),Array.isArray(o.alias))for(var p of o.alias){var y=class extends a{};c(y,"__tagName",p),customElements.define(p,y)}}))}},property:function(r){return function(n,s){var{get:u,set:c}=n,{kind:d,name:v,static:h,private:f}=s;e.add(v);var b=Object.assign({},l,r),p=function(t,e){var r=e.attribute;return!1===r?void 0:"string"==typeof r?r:t.replace(/[A-Z]/g,(t=>"-".concat(t.toLowerCase())))}(v,b);return void 0!==p&&t.set(p,(0,i.Z)((0,i.Z)({},b),{},{property:v})),{get(){return void 0!==p&&this[o](p)?b.converter.fromAttribute(this.getAttribute(p),b.type):u.call(this)},set(t){var e=u.call(this);if(c.call(this,t),b.hasChanged(t,e)){if(void 0!==p){var r=b.converter.toAttribute(t,b.type);this[a](!0),null==r?this.removeAttribute(p):this.setAttribute(p,r),this[a](!1)}this._requestRender()}},init(t){if(void 0!==p&&b.hasChanged(t,void 0)){var e=b.converter.toAttribute(t,b.type);null!=e&&requestAnimationFrame((()=>{this[o](p)||(this[a](!0),this.setAttribute(p,e),this[a](!1))}))}return t}}}},method:function(t){return function(e,n){var{kind:i,name:o,static:a,private:s,addInitializer:l}=n;null!=t&&t.bound&&l((function(){this[o]=this[o].bind(this)})),r.add(o)}},event:function(t){return function(e,r){var{get:o}=e,{kind:a,name:l,static:c,private:d}=r,{type:v}=t,h=(0,n.Z)(t,s);return u.add(v),{get(){return o.call(this)},set(){throw new Error("Decorated events are readonly")},init(t){return Object.freeze({emit:t=>this.dispatchEvent(new CustomEvent(v,(0,i.Z)((0,i.Z)({},h),{},{detail:t})))})}}}}}}function c(t,e,r){Object.defineProperty(t,e,{get:()=>r,configurable:!0})}function d(t,e){var r=new Set(t);for(var n of e)r.add(n);return[...r]}new Set(["prefix"]);var v,h=r(3395),f=r(6666),b=r(687),p=r(381),y=new WeakMap,m=new WeakMap,_=new WeakMap,w=new WeakMap;class g extends HTMLElement{constructor(){super(...arguments),(0,h.Z)(this,y,{writable:!0,value:!1}),(0,h.Z)(this,m,{writable:!0,value:!1}),(0,h.Z)(this,_,{writable:!0,value:!1}),(0,h.Z)(this,w,{writable:!0,value:new Set})}_markConnectedCallbackCalled(){(0,p.Z)(this,m,!0)}connectedCallback(){this._markConnectedCallbackCalled(),this._render()}[o](t){return(0,b.Z)(this,w).has(t)}[a](t){(0,p.Z)(this,_,t)}attributeChangedCallback(t,e,r){if((0,b.Z)(this,w).add(t),!(0,b.Z)(this,_)&&e!==r){var n=this.constructor.__attributeReflections.get(t),i=n.converter.fromAttribute(r,n.type);this[n.property]=i}}_requestRender(){this.isConnected&&(0,b.Z)(this,m)&&!(0,b.Z)(this,y)&&((0,p.Z)(this,y,!0),Promise.resolve().then((()=>{(0,p.Z)(this,y,!1),this._render()})))}}function Z(){return void 0===v&&(v=!!(window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype)),v}(0,f.Z)(g,"styleTexts",void 0),(0,f.Z)(g,"shadowOptions",void 0),(0,f.Z)(g,"__attributeReflections",void 0),(0,f.Z)(g,"__tagName",void 0)}}]);
|
|
2
|
+
//# sourceMappingURL=4717.5a3e82eb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/4717.5a3e82eb.js","mappings":"6JACe,SAASA,EAAgBC,EAAKC,EAAKC,GAYhD,OAXAD,GAAM,OAAcA,MACTD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GAAOC,EAENF,CACT,C,gDCbA,SAASQ,EAAQC,EAAQC,GACvB,IAAIC,EAAOR,OAAOQ,KAAKF,GACvB,GAAIN,OAAOS,sBAAuB,CAChC,IAAIC,EAAUV,OAAOS,sBAAsBH,GAC3CC,IAAmBG,EAAUA,EAAQC,QAAO,SAAUC,GACpD,OAAOZ,OAAOa,yBAAyBP,EAAQM,GAAKV,UACtD,KAAKM,EAAKM,KAAKC,MAAMP,EAAME,EAC7B,CACA,OAAOF,CACT,CACe,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AAQ3G,UAAUG,cAAcnD,EAAO2J,EAAQ5G,MAC/D8B,KAAK8E,EAAQ7D,UAAY0C,CAC3B,CACF,CAMAnB,iBAGMxC,KAAK+E,cAAe,OAAsB/E,KAAMmE,MAA8B,OAAsBnE,KAAMiE,MAC5G,OAAsBjE,KAAMiE,GAAqB,GACjDe,QAAQC,UAAUC,MAAK,MACrB,OAAsBlF,KAAMiE,GAAqB,GACjDjE,KAAK2E,SAAS,IAGpB,ED9EK,SAASQ,IAMd,YALiB/H,IAAb4G,IACFA,KAAcoB,OAAOC,YAErB,uBAAwBC,SAAS1H,WAAa,YAAa2H,cAAc3H,YAEpEoG,CACT,ECyEA,OAAgBM,EAAa,kBAAc,IAC3C,OAAgBA,EAAa,qBAAiB,IAC9C,OAAgBA,EAAa,8BAA0B,IACvD,OAAgBA,EAAa,iBAAa,E","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack:///../../node_modules/@next-core/element/dist/esm/internal/symbols.js","webpack:///../../node_modules/@next-core/element/dist/esm/createDecorators.js","webpack:///../../node_modules/@next-core/element/dist/esm/supportsAdoptingStyleSheets.js","webpack:///../../node_modules/@next-core/element/dist/esm/NextElement.js"],"sourcesContent":["import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","export var symbolOfAttributeHasBeenSet = Symbol(\"attributeHasBeenSet\");\nexport var symbolOfStopAttributeChangedCallback = Symbol(\"stopAttributeChangedCallback\");\n//# sourceMappingURL=symbols.js.map","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/objectSpread2\";\nvar _excluded = [\"type\"];\nimport { symbolOfAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar defaultConverter = {\n toAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value ? \"\" : null;\n }\n return value;\n },\n fromAttribute(value, type) {\n switch (type) {\n case Boolean:\n return value !== null && value !== \"false\";\n case Number:\n return value === null ? null : Number(value);\n }\n return value;\n }\n};\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nvar notEqual = (value, old) => {\n // This ensures (old==NaN, value==NaN) always returns false\n return old !== value && (old === old || value === value);\n};\nvar defaultPropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n reflect: true,\n hasChanged: notEqual\n};\n\n// Note: `prefix` is a native prop on Element, but it's only used in XML documents.\nvar allowedNativeProps = new Set([\"prefix\"]);\nexport function createDecorators() {\n var attributeReflections = new Map();\n var definedProperties = new Set();\n var definedMethods = new Set();\n var definedEvents = new Set();\n function defineElement(name) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return (value, _ref) => {\n var {\n kind,\n name: className,\n addInitializer\n } = _ref;\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && kind !== \"class\") {\n throw new Error(\"Invalid usage of `@defineElement()` on a \".concat(kind, \": \\\"\").concat(className, \"\\\"\"));\n }\n addInitializer(function () {\n var _superClass$observedA, _superClass$__attribu, _superClass$_dev_only, _superClass$_dev_only2, _superClass$_dev_only3;\n var superClass = Object.getPrototypeOf(this);\n var mergedAttributes = mergeIterables((_superClass$observedA = superClass.observedAttributes) !== null && _superClass$observedA !== void 0 ? _superClass$observedA : [], attributeReflections.keys());\n defineReadonlyProperty(this, \"observedAttributes\", mergedAttributes);\n var mergedAttributeReflections = new Map([...((_superClass$__attribu = superClass.__attributeReflections) !== null && _superClass$__attribu !== void 0 ? _superClass$__attribu : []), ...attributeReflections]);\n defineReadonlyProperty(this, \"__attributeReflections\", mergedAttributeReflections);\n defineReadonlyProperty(this, \"styleTexts\", options.styleTexts);\n defineReadonlyProperty(this, \"shadowOptions\", options.shadowOptions !== false ? _objectSpread({\n mode: \"open\"\n }, options.shadowOptions) : null);\n defineReadonlyProperty(this, \"__tagName\", name);\n var mergedProperties = mergeIterables((_superClass$_dev_only = superClass._dev_only_definedProperties) !== null && _superClass$_dev_only !== void 0 ? _superClass$_dev_only : [], definedProperties);\n defineReadonlyProperty(this, \"_dev_only_definedProperties\", mergedProperties);\n var mergedMethods = mergeIterables((_superClass$_dev_only2 = superClass._dev_only_definedMethods) !== null && _superClass$_dev_only2 !== void 0 ? _superClass$_dev_only2 : [], definedMethods);\n defineReadonlyProperty(this, \"_dev_only_definedMethods\", mergedMethods);\n var mergedEvents = mergeIterables((_superClass$_dev_only3 = superClass._dev_only_definedEvents) !== null && _superClass$_dev_only3 !== void 0 ? _superClass$_dev_only3 : [], definedEvents);\n defineReadonlyProperty(this, \"_dev_only_definedEvents\", mergedEvents);\n customElements.define(name, this);\n if (Array.isArray(options.alias)) {\n for (var alias of options.alias) {\n // Use a parenthesized expression to make the class has no name.\n var Alias = (\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n 0, class extends value {});\n defineReadonlyProperty(Alias, \"__tagName\", alias);\n customElements.define(alias, Alias);\n }\n }\n });\n };\n }\n function property(options) {\n return function (_ref2, _ref3) {\n var {\n get,\n set\n } = _ref2;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref3;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@property()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@property()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@property()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick property.\");\n throw new Error(message);\n }\n }\n definedProperties.add(name);\n var _options = Object.assign({}, defaultPropertyDeclaration, options);\n var attrName = attributeNameForProperty(name, _options);\n if (attrName !== undefined) {\n attributeReflections.set(attrName, _objectSpread(_objectSpread({}, _options), {}, {\n property: name\n }));\n }\n return {\n get() {\n // If the attribute has been set (not by initialization), returns the\n // value converted by the attribute. Otherwise returns the prop value.\n // This works as a type conversion when reading a prop value.\n if (attrName !== undefined && this[symbolOfAttributeHasBeenSet](attrName)) {\n return _options.converter.fromAttribute(this.getAttribute(attrName), _options.type);\n }\n return get.call(this);\n },\n set(value) {\n var oldValue = get.call(this);\n set.call(this, value);\n if (_options.hasChanged(value, oldValue)) {\n if (attrName !== undefined) {\n var attrValue = _options.converter.toAttribute(value, _options.type);\n this[symbolOfStopAttributeChangedCallback](true);\n if (attrValue == null) {\n this.removeAttribute(attrName);\n } else {\n this.setAttribute(attrName, attrValue);\n }\n this[symbolOfStopAttributeChangedCallback](false);\n }\n this._requestRender();\n }\n },\n init(initialValue) {\n if (attrName !== undefined && _options.hasChanged(initialValue, undefined)) {\n var attrValue = _options.converter.toAttribute(initialValue, _options.type);\n if (attrValue != null) {\n // No attributes should be created during constructing custom elements.\n // This is true even if the work is done inside a constructor-initiated microtask.\n // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance\n requestAnimationFrame(() => {\n if (!this[symbolOfAttributeHasBeenSet](attrName)) {\n this[symbolOfStopAttributeChangedCallback](true);\n this.setAttribute(attrName, attrValue);\n this[symbolOfStopAttributeChangedCallback](false);\n }\n });\n }\n }\n return initialValue;\n }\n };\n };\n }\n function method(options) {\n return function (value, _ref4) {\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate,\n addInitializer\n } = _ref4;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"method\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (typeof name !== \"string\") {\n throw new Error(\"Invalid usage of `@method()` on a \".concat(kind, \" of \").concat(typeof name));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@method()` on a static \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (isPrivate) {\n throw new Error(\"Invalid usage of `@method()` on a private \".concat(kind, \": \\\"\").concat(name, \"\\\"\"));\n }\n if (name in HTMLElement.prototype && !allowedNativeProps.has(name)) {\n var message = \"\\\"\".concat(name, \"\\\" is a native HTMLElement property, and is deprecated to be used as a brick method.\");\n throw new Error(message);\n }\n }\n if (options !== null && options !== void 0 && options.bound) {\n addInitializer(function () {\n this[name] = this[name].bind(this);\n });\n }\n definedMethods.add(name);\n };\n }\n function event(options) {\n return function (_ref5, _ref6) {\n var {\n get\n } = _ref5;\n var {\n kind,\n name,\n static: isStatic,\n private: isPrivate\n } = _ref6;\n // istanbul ignore next\n if (process.env.NODE_ENV !== \"production\") {\n if (kind !== \"accessor\") {\n throw new Error(\"Invalid usage of `@event()` on a \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (!isPrivate) {\n throw new Error(\"Invalid usage of `@event()` on a non-private \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n if (isStatic) {\n throw new Error(\"Invalid usage of `@event()` on a static \".concat(kind, \": \\\"\").concat(String(name), \"\\\"\"));\n }\n }\n var {\n type\n } = options,\n eventInit = _objectWithoutProperties(options, _excluded);\n definedEvents.add(type);\n return {\n get() {\n return get.call(this);\n },\n set() {\n throw new Error(\"Decorated events are readonly\");\n },\n init(initialValue) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && initialValue !== undefined) {\n throw new Error(\"Do not set an initial value for a decorated event: \\\"\".concat(String(name), \"\\\"\"));\n }\n return Object.freeze({\n emit: detail => this.dispatchEvent(new CustomEvent(type, _objectSpread(_objectSpread({}, eventInit), {}, {\n detail\n })))\n });\n }\n };\n };\n }\n return {\n defineElement,\n property,\n method,\n event\n };\n}\nfunction defineReadonlyProperty(target, propName, propValue) {\n Object.defineProperty(target, propName, {\n get() {\n return propValue;\n },\n configurable: true\n });\n}\nfunction mergeIterables(list1, list2) {\n var newList = new Set(list1);\n for (var item of list2) {\n newList.add(item);\n }\n return [...newList];\n}\nfunction attributeNameForProperty(name, options) {\n var attribute = options.attribute;\n return attribute === false ? undefined : typeof attribute === \"string\" ? attribute : name.replace(/[A-Z]/g, char => \"-\".concat(char.toLowerCase()));\n}\n//# sourceMappingURL=createDecorators.js.map","var supports;\nexport function supportsAdoptingStyleSheets() {\n if (supports === undefined) {\n supports = !!(window.ShadowRoot &&\n // (window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&\n \"adoptedStyleSheets\" in Document.prototype && \"replace\" in CSSStyleSheet.prototype);\n }\n return supports;\n}\n//# sourceMappingURL=supportsAdoptingStyleSheets.js.map","import _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet\";\nimport { symbolOfAttributeHasBeenSet, symbolOfStopAttributeChangedCallback } from \"./internal/symbols.js\";\nvar _hasRequestedRender = /*#__PURE__*/new WeakMap();\nvar _connectedCallbackCalled = /*#__PURE__*/new WeakMap();\nvar _attributeChangedCallbackStopped = /*#__PURE__*/new WeakMap();\nvar _attributesBeenSet = /*#__PURE__*/new WeakMap();\nexport class NextElement extends HTMLElement {\n constructor() {\n super(...arguments);\n _classPrivateFieldInitSpec(this, _hasRequestedRender, {\n writable: true,\n value: false\n });\n _classPrivateFieldInitSpec(this, _connectedCallbackCalled, {\n writable: true,\n value: false\n });\n _classPrivateFieldInitSpec(this, _attributeChangedCallbackStopped, {\n writable: true,\n value: false\n });\n _classPrivateFieldInitSpec(this, _attributesBeenSet, {\n writable: true,\n value: new Set()\n });\n }\n /**\n * When render a custom element as parsed DOM, it is already connected in the\n * first place. The attributes are set while isConnected is true, which will\n * trigger a render request, and then before the next micro-task, the\n * `connectedCallback` will be called, which will trigger an immediate render.\n * Thus we would see two calls of render. So we manually set a mark of whether\n * the `connectedCallback` is actually get called, to prevent a trigger of\n * render request during attributes initialization before `connectedCallback`.\n */\n _markConnectedCallbackCalled() {\n _classPrivateFieldSet(this, _connectedCallbackCalled, true);\n }\n connectedCallback() {\n this._markConnectedCallbackCalled();\n this._render();\n }\n [symbolOfAttributeHasBeenSet](name) {\n return _classPrivateFieldGet(this, _attributesBeenSet).has(name);\n }\n\n /** Whether to process attributeChangedCallback. */\n [symbolOfStopAttributeChangedCallback](value) {\n _classPrivateFieldSet(this, _attributeChangedCallbackStopped, value);\n }\n\n /** @internal */\n attributeChangedCallback(name, old, value) {\n _classPrivateFieldGet(this, _attributesBeenSet).add(name);\n if (!_classPrivateFieldGet(this, _attributeChangedCallbackStopped) && old !== value) {\n var attrRef = this.constructor.__attributeReflections.get(name);\n assertAttributeIsReflected(attrRef, name);\n var propValue = attrRef.converter.fromAttribute(value, attrRef.type);\n this[attrRef.property] = propValue;\n }\n }\n\n /**\n * Request a render in the next micro-task. This ensures multiple properties\n * or attributes will trigger a render once in a batch.\n */\n _requestRender() {\n // If the element is not connected,\n // let `connectedCallback()` do the job of calling _render.\n if (this.isConnected && _classPrivateFieldGet(this, _connectedCallbackCalled) && !_classPrivateFieldGet(this, _hasRequestedRender)) {\n _classPrivateFieldSet(this, _hasRequestedRender, true);\n Promise.resolve().then(() => {\n _classPrivateFieldSet(this, _hasRequestedRender, false);\n this._render();\n });\n }\n }\n}\n_defineProperty(NextElement, \"styleTexts\", void 0);\n_defineProperty(NextElement, \"shadowOptions\", void 0);\n_defineProperty(NextElement, \"__attributeReflections\", void 0);\n_defineProperty(NextElement, \"__tagName\", void 0);\nfunction assertAttributeIsReflected(attrRef, name) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\" && !attrRef) {\n throw new Error(\"Attribute [\".concat(name, \"] is not reflected\"));\n }\n}\n//# sourceMappingURL=NextElement.js.map"],"names":["_defineProperty","obj","key","value","Object","defineProperty","enumerable","configurable","writable","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","apply","_objectSpread2","target","i","arguments","length","source","forEach","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","arg","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","String","_typeof","iterator","constructor","prototype","symbolOfAttributeHasBeenSet","symbolOfStopAttributeChangedCallback","_excluded","defaultPropertyDeclaration","attribute","type","converter","toAttribute","Boolean","fromAttribute","Number","reflect","hasChanged","old","createDecorators","attributeReflections","Map","definedProperties","Set","definedMethods","definedEvents","defineElement","name","options","_ref","kind","className","addInitializer","_superClass$observedA","_superClass$__attribu","_superClass$_dev_only","_superClass$_dev_only2","_superClass$_dev_only3","superClass","getPrototypeOf","this","defineReadonlyProperty","mergeIterables","observedAttributes","__attributeReflections","styleTexts","shadowOptions","mode","_dev_only_definedProperties","_dev_only_definedMethods","_dev_only_definedEvents","customElements","define","Array","isArray","alias","Alias","property","_ref2","_ref3","get","set","static","isStatic","private","isPrivate","add","_options","assign","attrName","replace","char","concat","toLowerCase","attributeNameForProperty","getAttribute","oldValue","attrValue","removeAttribute","setAttribute","_requestRender","init","initialValue","requestAnimationFrame","method","_ref4","bound","bind","event","_ref5","_ref6","eventInit","Error","freeze","emit","detail","dispatchEvent","CustomEvent","propName","propValue","list1","list2","newList","item","supports","_hasRequestedRender","WeakMap","_connectedCallbackCalled","_attributeChangedCallbackStopped","_attributesBeenSet","NextElement","HTMLElement","super","_markConnectedCallbackCalled","connectedCallback","_render","has","attributeChangedCallback","attrRef","isConnected","Promise","resolve","then","supportsAdoptingStyleSheets","window","ShadowRoot","Document","CSSStyleSheet"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[7746],{7029:(e,t,n)=>{var r=n(2484);t.s=r.createRoot,r.hydrateRoot},6171:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}n.d(t,{Z:()=>r})},5866:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(5863);function s(e,t){(0,r.Z)(e,t),t.add(e)}},1646:(e,t,n)=>{n.r(t),n.d(t,{ReactNextElement:()=>f,wrapBrick:()=>S,wrapLocalBrick:()=>k});var r=n(5866),s=n(3395),a=n(6171),i=n(381),o=n(687),l=n(8657),c=n(7029),d=n(4558),h=new WeakMap,u=new WeakSet;class f extends d.NextElement{constructor(){super(...arguments),(0,r.Z)(this,u),(0,s.Z)(this,h,{writable:!0,value:void 0})}connectedCallback(){super._markConnectedCallbackCalled(),(0,a.Z)(this,u,p).call(this),this._render()}disconnectedCallback(){var e;null===(e=(0,o.Z)(this,h))||void 0===e||e.render(null)}_render(){if(this.isConnected&&(0,o.Z)(this,h)){var e,t=this.constructor;t.shadowOptions?(0,o.Z)(this,h).render((0,d.supportsAdoptingStyleSheets)()||null===(e=t.styleTexts)||void 0===e||!e.length?this.render():l.createElement(l.Fragment,null,l.createElement("style",null,t.styleTexts.join("\n")),this.render())):(0,o.Z)(this,h).render(this.render())}}}function p(){if(!(0,o.Z)(this,h)){var e=this.constructor;if(e.shadowOptions){var t,n=this.attachShadow(e.shadowOptions);if((0,d.supportsAdoptingStyleSheets)()&&null!==(t=e.styleTexts)&&void 0!==t&&t.length){var r=new CSSStyleSheet;r.replaceSync(e.styleTexts.join("")),n.adoptedStyleSheets=[r]}(0,i.Z)(this,h,(0,c.s)(n))}else(0,i.Z)(this,h,(0,c.s)(this))}}var v=n(7896),w=n(2159),Z=["children"],y=["children"];function k(e,t){return(0,l.forwardRef)((function(n,r){var{children:s}=n,a=(0,w.Z)(n,Z),i="string"==typeof e?e:e.__tagName,o=_(a,t);return l.createElement(i,(0,v.Z)({},o,{ref:r}),s)}))}function S(e,t){return(0,l.forwardRef)((function(n,r){var{children:s}=n,a=_((0,w.Z)(n,y),t);return l.createElement(e,(0,v.Z)({},a,{ref:r}),s)}))}function _(e,t){var n;if(t)for(var[r,s]of(n={},Object.entries(e)))Object.prototype.hasOwnProperty.call(t,r)?n["on".concat(t[r])]=s:n[r]=s;else n=e;return n}}}]);
|
|
2
|
+
//# sourceMappingURL=7746.ea869f8e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/7746.
|
|
1
|
+
{"version":3,"file":"chunks/7746.ea869f8e.js","mappings":"kIAEIA,EAAI,EAAQ,MAEdC,EAAQ,EAAaD,EAAEE,WACDF,EAAEG,W,iBCLX,SAASC,EAAuBC,EAAUC,EAAYC,GACnE,IAAKD,EAAWE,IAAIH,GAClB,MAAM,IAAII,UAAU,kDAEtB,OAAOF,CACT,C,gECJe,SAASG,EAA4BC,EAAKL,IACvD,OAA0BK,EAAKL,GAC/BA,EAAWM,IAAID,EACjB,C,+KCIIE,EAAqB,IAAIC,QACzBC,EAA2B,IAAIC,QAC5B,MAAMC,UAAyB,EAAAC,YACpCC,cACEC,SAASC,YACT,OAA4BC,KAAMP,IAClC,OAA2BO,KAAMT,EAAO,CACtCU,UAAU,EACVC,WAAO,GAEX,CACAC,oBACEL,MAAMM,gCACN,OAAuBJ,KAAMP,EAAaY,GAAcC,KAAKN,MAC7DA,KAAKO,SACP,CACAC,uBACE,IAAIC,EAC8D,QAAjEA,GAAyB,OAAsBT,KAAMT,UAA+C,IAA3BkB,GAA6CA,EAAuBC,OAAO,KACvJ,CACAH,UACE,GAAKP,KAAKW,cAAgB,OAAsBX,KAAMT,GAAtD,CAGA,IAEMqB,EAFFC,EAAOb,KAAKH,YACZgB,EAAKC,eAEP,OAAsBd,KAAMT,GAAOmB,Q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N,GACF,CACA,SAASK,EAAoBJ,EAAOL,GAClC,IAAIQ,EACJ,GAAIR,EAEF,IAAK,IAAKa,EAAUC,KADpBN,EAAa,CAAC,EACoBO,OAAOC,QAAQX,IAC3CU,OAAOE,UAAUC,eAAe1C,KAAKwB,EAAea,GACtDL,EAAW,KAAKW,OAAOnB,EAAca,KAAcC,EAEnDN,EAAWK,GAAYC,OAI3BN,EAAaH,EAEf,OAAOG,CACT,C","sources":["webpack:///../../node_modules/react-dom/client.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js","webpack:///../../node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js","webpack:///../../node_modules/@next-core/react-element/dist/esm/ReactNextElement.js","webpack:///../../node_modules/@next-core/react-element/dist/esm/wrapBrick.js"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","export default function _classPrivateMethodGet(receiver, privateSet, fn) {\n if (!privateSet.has(receiver)) {\n throw new TypeError(\"attempted to get private field on non-instance\");\n }\n return fn;\n}","import checkPrivateRedeclaration from \"./checkPrivateRedeclaration.js\";\nexport default function _classPrivateMethodInitSpec(obj, privateSet) {\n checkPrivateRedeclaration(obj, privateSet);\n privateSet.add(obj);\n}","import _classPrivateMethodInitSpec from \"@babel/runtime/helpers/classPrivateMethodInitSpec\";\nimport _classPrivateFieldInitSpec from \"@babel/runtime/helpers/classPrivateFieldInitSpec\";\nimport _classPrivateMethodGet from \"@babel/runtime/helpers/classPrivateMethodGet\";\nimport _classPrivateFieldSet from \"@babel/runtime/helpers/classPrivateFieldSet\";\nimport _classPrivateFieldGet from \"@babel/runtime/helpers/classPrivateFieldGet\";\nimport React from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { NextElement, supportsAdoptingStyleSheets } from \"@next-core/element\";\nvar _root = /*#__PURE__*/new WeakMap();\nvar _createRoot = /*#__PURE__*/new WeakSet();\nexport class ReactNextElement extends NextElement {\n constructor() {\n super(...arguments);\n _classPrivateMethodInitSpec(this, _createRoot);\n _classPrivateFieldInitSpec(this, _root, {\n writable: true,\n value: void 0\n });\n }\n connectedCallback() {\n super._markConnectedCallbackCalled();\n _classPrivateMethodGet(this, _createRoot, _createRoot2).call(this);\n this._render();\n }\n disconnectedCallback() {\n var _classPrivateFieldGet2;\n (_classPrivateFieldGet2 = _classPrivateFieldGet(this, _root)) === null || _classPrivateFieldGet2 === void 0 ? void 0 : _classPrivateFieldGet2.render(null);\n }\n _render() {\n if (!this.isConnected || !_classPrivateFieldGet(this, _root)) {\n return;\n }\n var ctor = this.constructor;\n if (ctor.shadowOptions) {\n var _ctor$styleTexts;\n _classPrivateFieldGet(this, _root).render(supportsAdoptingStyleSheets() || !((_ctor$styleTexts = ctor.styleTexts) !== null && _ctor$styleTexts !== void 0 && _ctor$styleTexts.length) ? this.render() : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"style\", null, ctor.styleTexts.join(\"\\n\")), this.render()));\n } else {\n _classPrivateFieldGet(this, _root).render(this.render());\n }\n }\n}\nfunction _createRoot2() {\n if (_classPrivateFieldGet(this, _root)) {\n return;\n }\n var ctor = this.constructor;\n if (ctor.shadowOptions) {\n var shadowRoot = this.attachShadow(ctor.shadowOptions);\n if (supportsAdoptingStyleSheets()) {\n var _ctor$styleTexts2;\n if ((_ctor$styleTexts2 = ctor.styleTexts) !== null && _ctor$styleTexts2 !== void 0 && _ctor$styleTexts2.length) {\n var styleSheet = new CSSStyleSheet();\n styleSheet.replaceSync(ctor.styleTexts.join(\"\"));\n shadowRoot.adoptedStyleSheets = [styleSheet];\n }\n }\n _classPrivateFieldSet(this, _root, createRoot(shadowRoot));\n } else {\n var _ctor$styleTexts3;\n if (process.env.NODE_ENV !== \"production\" && (_ctor$styleTexts3 = ctor.styleTexts) !== null && _ctor$styleTexts3 !== void 0 && _ctor$styleTexts3.length) {\n throw new Error(\"Use `styleTexts` with `shadowOptions: false` is not supported\");\n }\n _classPrivateFieldSet(this, _root, createRoot(this));\n }\n}\n//# sourceMappingURL=ReactNextElement.js.map","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"children\"],\n _excluded2 = [\"children\"];\nimport React, { forwardRef } from \"react\";\nexport function wrapLocalBrick(brick, eventsMapping) {\n // istanbul ignore next\n if (process.env.NODE_ENV === \"development\") {\n if (typeof brick === \"string\" && !customElements.get(brick)) {\n throw new Error(\"Brick \".concat(brick, \" is not defined while using `wrapLocalBrick`.\"));\n }\n }\n return /*#__PURE__*/forwardRef(function BrickReactWrapper(_ref, ref) {\n var {\n children\n } = _ref,\n props = _objectWithoutProperties(_ref, _excluded);\n var WebComponent = typeof brick === \"string\" ? brick : brick.__tagName;\n var properties = getMappedProperties(props, eventsMapping);\n return /*#__PURE__*/React.createElement(WebComponent, _extends({}, properties, {\n ref: ref\n }), children);\n });\n}\nexport function wrapBrick(BrickName, eventsMapping) {\n return /*#__PURE__*/forwardRef(function BrickReactWrapper(_ref2, ref) {\n var {\n children\n } = _ref2,\n props = _objectWithoutProperties(_ref2, _excluded2);\n var properties = getMappedProperties(props, eventsMapping);\n return /*#__PURE__*/React.createElement(BrickName, _extends({}, properties, {\n ref: ref\n }), children);\n });\n}\nfunction getMappedProperties(props, eventsMapping) {\n var properties;\n if (eventsMapping) {\n properties = {};\n for (var [propName, propValue] of Object.entries(props)) {\n if (Object.prototype.hasOwnProperty.call(eventsMapping, propName)) {\n properties[\"on\".concat(eventsMapping[propName])] = propValue;\n } else {\n properties[propName] = propValue;\n }\n }\n } else {\n properties = props;\n }\n return properties;\n}\n//# sourceMappingURL=wrapBrick.js.map"],"names":["m","exports","createRoot","hydrateRoot","_classPrivateMethodGet","receiver","privateSet","fn","has","TypeError","_classPrivateMethodInitSpec","obj","add","_root","WeakMap","_createRoot","WeakSet","ReactNextElement","NextElement","constructor","super","arguments","this","writable","value","connectedCallback","_markConnectedCallbackCalled","_createRoot2","call","_render","disconnectedCallback","_classPrivateFieldGet2","render","isConnected","_ctor$styleTexts","ctor","shadowOptions","supportsAdoptingStyleSheets","styleTexts","length","join","_ctor$styleTexts2","shadowRoot","attachShadow","styleSheet","CSSStyleSheet","replaceSync","adoptedStyleSheets","_excluded","_excluded2","wrapLocalBrick","brick","eventsMapping","forwardRef","_ref","ref","children","props","WebComponent","__tagName","properties","getMappedProperties","wrapBrick","BrickName","_ref2","propName","propValue","Object","entries","prototype","hasOwnProperty","concat"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[7822,4795,3494],{4795:(e,t,r)=>{function n(e,t,r,n,a,u,c){try{var i=e[u](c),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,u){var c=e.apply(t,r);function i(e){n(c,a,u,i,s,"next",e)}function s(e){n(c,a,u,i,s,"throw",e)}i(void 0)}))}}r.d(t,{Z:()=>a})},7822:(e,t,r)=>{r.r(t),r.d(t,{ReactUseBrick:()=>c,ReactUseMultipleBricks:()=>i,useCurrentApp:()=>o,useCurrentTheme:()=>s,useRecentApps:()=>l});var n=r(4795),a=r(8657),u=r(3190);function c(e){var{useBrick:t,data:r}=e,[c,i]=(0,a.useState)(null),s=(0,a.useRef)(),[l,o]=(0,a.useState)(),d=(0,a.useRef)(0);(0,a.useEffect)((()=>{function e(){return(e=(0,n.Z)((function*(){try{i(yield u.__secret_internals.renderUseBrick(t,r)),o(++d.current)}catch(e){console.error("Render useBrick failed:",t,"with data:",r),(0,u.handleHttpError)(e)}}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[r,t]);var f=(0,a.useCallback)((e=>{e?s.current=u.__secret_internals.mountUseBrick(c,e):(u.__secret_internals.unmountUseBrick(c,s.current),s.current=void 0)}),[c]);if(!c)return null;var{tagName:v}=c;if(null===v)return null;var p=v;return a.createElement(p,{key:l,ref:f})}function i(e){var{useBrick:t,data:r}=e;return Array.isArray(t)?a.createElement(a.Fragment,null,t.map(((e,t)=>a.createElement(c,{key:t,useBrick:e,data:r})))):a.createElement(c,{useBrick:t,data:r})}function s(){var[e,t]=(0,a.useState)(u.getCurrentTheme);return(0,a.useEffect)((()=>{var e=e=>{t(e.detail)};return window.addEventListener("theme.change",e),()=>{window.removeEventListener("theme.change",e)}}),[]),e}function l(){var[e,t]=a.useState((()=>(0,u.getRuntime)().getRecentApps()));return a.useEffect((()=>{var e=e=>{t(e.detail)};return window.addEventListener("app.change",e),()=>window.removeEventListener("app.change",e)}),[]),e}function o(){return l().currentApp}}}]);
|
|
2
|
+
//# sourceMappingURL=7822.670428a7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/7822.
|
|
1
|
+
{"version":3,"file":"chunks/7822.670428a7.js","mappings":"wIAAA,SAASA,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQC,EAAKC,GACpE,IACE,IAAIC,EAAOP,EAAIK,GAAKC,GAChBE,EAAQD,EAAKC,KACnB,CAAE,MAAOC,GAEP,YADAP,EAAOO,EAET,CACIF,EAAKG,KACPT,EAAQO,GAERG,QAAQV,QAAQO,GAAOI,KAAKT,EAAOC,EAEvC,CACe,SAASS,EAAkBC,GACxC,OAAO,WACL,IAAIC,EAAOC,KACTC,EAAOC,UACT,OAAO,IAAIP,SAAQ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AAS2B,KAAI,CAACC,EAAMC,IAAuB,gBAAoB/B,EAAe,CAC1IjB,IAAKgD,EACL7B,SAAU4B,EACV3B,KAAMA,OAGU,gBAAoBH,EAAe,CACrDE,SAAUA,EACVC,KAAMA,GAEV,CC/EO,SAAS6B,IACd,IAAKC,EAAcC,IAAmB,IAAA5B,UAAS,EAAA6B,iBAU/C,OATA,IAAAvB,YAAU,KACR,IAAIwB,EAAsBC,IACxBH,EAAgBG,EAAMC,OAAO,EAG/B,OADAC,OAAOC,iBAAiB,eAAgBJ,GACjC,KACLG,OAAOE,oBAAoB,eAAgBL,EAAoB,CAChE,GACA,IACIH,CACT,CCZO,SAASS,IACd,IAAKC,EAAYC,GAAiB,YAAe,KAAM,IAAAC,cAAaC,kBAQpE,OAPA,aAAgB,KACd,IAAIC,EAAWV,IACbO,EAAcP,EAAMC,OAAO,EAG7B,OADAC,OAAOC,iBAAiB,aAAcO,GAC/B,IAAMR,OAAOE,oBAAoB,aAAcM,EAAS,GAC9D,IACIJ,CACT,CCIO,SAASK,IACd,OAAON,IAAgBO,UACzB,C","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/ReactUseBrick.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useCurrentTheme.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useRecentApps.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useCurrentApp.js"],"sourcesContent":["function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { __secret_internals, handleHttpError } from \"@next-core/runtime\";\n// Note: always synchronize code in LegacyUseBrick:\n// `bricks/v2-adapter/src/data-providers/legacy-brick-kit/getLegacyUseBrick.ts`\nexport function ReactUseBrick(_ref) {\n var {\n useBrick,\n data\n } = _ref;\n var [renderResult, setRenderResult] = useState(null);\n var mountResult = useRef();\n var [renderKey, setRenderKey] = useState();\n var IdCounterRef = useRef(0);\n useEffect(() => {\n function init() {\n return _init.apply(this, arguments);\n }\n function _init() {\n _init = _asyncToGenerator(function* () {\n try {\n setRenderResult(yield __secret_internals.renderUseBrick(useBrick, data));\n setRenderKey(getUniqueId(IdCounterRef));\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Render useBrick failed:\", useBrick, \"with data:\", data);\n handleHttpError(error);\n }\n });\n return _init.apply(this, arguments);\n }\n init();\n }, [data, useBrick]);\n var refCallback = useCallback(element => {\n if (element) {\n mountResult.current = __secret_internals.mountUseBrick(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n renderResult, element);\n } else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n __secret_internals.unmountUseBrick(renderResult, mountResult.current);\n mountResult.current = undefined;\n }\n }, [renderResult]);\n if (!renderResult) {\n // Fallback when loading/\n return null;\n // return <span>🌀 Loading...</span>;\n }\n\n var {\n tagName\n } = renderResult;\n if (tagName === null) {\n return null;\n }\n var WebComponent = tagName;\n return /*#__PURE__*/React.createElement(WebComponent, {\n key: renderKey,\n ref: refCallback\n });\n}\nfunction getUniqueId(ref) {\n return ++ref.current;\n}\nexport function ReactUseMultipleBricks(_ref2) {\n var {\n useBrick,\n data\n } = _ref2;\n if (Array.isArray(useBrick)) {\n return /*#__PURE__*/React.createElement(React.Fragment, null, useBrick.map((item, index) => /*#__PURE__*/React.createElement(ReactUseBrick, {\n key: index,\n useBrick: item,\n data: data\n })));\n }\n return /*#__PURE__*/React.createElement(ReactUseBrick, {\n useBrick: useBrick,\n data: data\n });\n}\n//# sourceMappingURL=ReactUseBrick.js.map","import { useEffect, useState } from \"react\";\nimport { getCurrentTheme } from \"@next-core/runtime\";\nexport function useCurrentTheme() {\n var [currentTheme, setCurrentTheme] = useState(getCurrentTheme);\n useEffect(() => {\n var listenToThemeChange = event => {\n setCurrentTheme(event.detail);\n };\n window.addEventListener(\"theme.change\", listenToThemeChange);\n return () => {\n window.removeEventListener(\"theme.change\", listenToThemeChange);\n };\n }, []);\n return currentTheme;\n}\n//# sourceMappingURL=useCurrentTheme.js.map","import React from \"react\";\nimport { getRuntime } from \"@next-core/runtime\";\nexport function useRecentApps() {\n var [recentApps, setRecentApps] = React.useState(() => getRuntime().getRecentApps());\n React.useEffect(() => {\n var listener = event => {\n setRecentApps(event.detail);\n };\n window.addEventListener(\"app.change\", listener);\n return () => window.removeEventListener(\"app.change\", listener);\n }, []);\n return recentApps;\n}\n//# sourceMappingURL=useRecentApps.js.map","import { useRecentApps } from \"./useRecentApps.js\";\n\n/**\n * 获取当前所在微应用信息的 React hooks。\n *\n * @example\n *\n * ```tsx\n * function MyReactComponent() {\n * const app = useCurrentApp();\n * return <div>{app.id}</div>;\n * }\n * ```\n *\n * @returns 当前所在微应用的信息。\n */\nexport function useCurrentApp() {\n return useRecentApps().currentApp;\n}\n//# sourceMappingURL=useCurrentApp.js.map"],"names":["asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","ReactUseBrick","_ref","useBrick","data","renderResult","setRenderResult","useState","mountResult","useRef","renderKey","setRenderKey","IdCounterRef","useEffect","_init","__secret_internals","current","console","handleHttpError","init","refCallback","useCallback","element","tagName","WebComponent","ref","ReactUseMultipleBricks","_ref2","Array","isArray","map","item","index","useCurrentTheme","currentTheme","setCurrentTheme","getCurrentTheme","listenToThemeChange","event","detail","window","addEventListener","removeEventListener","useRecentApps","recentApps","setRecentApps","getRuntime","getRecentApps","listener","useCurrentApp","currentApp"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_next_bricks_advanced=self.webpackChunk_next_bricks_advanced||[]).push([[9079],{5202:(e,t,i)=>{i.r(t);var a=i(3028),s=i(6666),n=i(3395),r=i(381),l=i(687),o=i(5303),h=i(8657),d=i.n(h),c=i(4558),u=i(817),p=i(2869),w=i(5178),g=i(3190),v=i(7896),m=i(2159),f=i(4275),Z={$eq:w.isEqual,$lt:w.lt,$lte:w.lte,$gt:w.gt,$gte:w.gte,$ne:(e,t)=>!(0,w.isEqual)(e,t),$isEqual:w.isEqual,$notEqual:(e,t)=>!(0,w.isEqual)(e,t),$in:w.includes,$nin:(e,t)=>!(0,w.includes)(e,t),$exists:(e,t)=>e?!(0,w.isUndefined)(t):(0,w.isUndefined)(t)};function b(e,t,i){var{dataIndex:a,mapping:s}=e,n=void 0!==a?(0,w.get)(t,a):i,r=s.find((e=>e.value===n));return r?{borderLeft:"4px solid ".concat(r.leftBorderColor)}:{}}var y=(e,t,i,a)=>{e&&(0,w.forEach)(e,(e=>{var s=(0,w.get)(e,i),n=(0,w.get)(e,t);a.push(n),null!=s&&s.length&&y(s,t,i,a)}))},C=(e,t,i)=>{e&&(0,w.forEach)(e,(e=>{var a=(0,w.get)(e,t);i.push(e),null!=a&&a.length&&C(a,t,i)}))};function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null!=t&&t.length&&t.forEach((t=>{var i;return null!==(i=t[e])&&void 0!==i&&i.length?x(e,t[e]):(delete t[e],t)})),t}var S=i(2779),_=i.n(S),k=i(8533),R=i(2689),E=i(2238),W=i(8683),M=i(4819),K=i.n(M),P=i(2556),I=i(3691),N=["index","moveRow","className","style"],B=["useBrick","valueSuffix","cellStatus","cellStyle","headerBrick","colSpanKey","rowSpanKey","filterDropdownBrick"],U="DraggableBodyRow",D={lib:"antd",icon:"down",theme:"outlined"},z={lib:"antd",icon:"right",theme:"outlined"},A=(0,u.wrapBrick)("eo-icon"),T=e=>{var{index:t,moveRow:i,className:s,style:n}=e,r=(0,m.Z)(e,N),l=d().useRef(null),[{isOver:o,dropClassName:h},c]=(0,k.L)({accept:U,collect:e=>{var{index:i}=e.getItem()||{};return i===t?{}:{isOver:e.isOver(),dropClassName:i<t?"dropOverDownward":"dropOverUpward"}},drop:e=>{i(e.index,t)}}),[,u]=(0,R.c)({type:U,item:{type:U,index:t},collect:e=>({isDragging:e.isDragging()})});return c(u(l)),d().createElement("tr",(0,v.Z)({ref:l,className:_()(s,{[h]:o}),style:(0,a.Z)({cursor:"move"},n)},r))};function F(e){if(e.error)throw e.error;var{configProps:t={pagination:!0,sortBy:!1},columns:i,rowKey:s="key",expandIconAsCell:n,expandIconColumnIndex:r,childrenColumnName:l,scroll:o,optimizedColumns:c,onDelete:u,ellipsisInfo:p,showHeader:g}=e,Z=(0,h.useMemo)((()=>{var t;return null===(t=e.dataSource)||void 0===t?void 0:t.map(((e,t)=>(0,w.isNil)(e[s])?(0,a.Z)((0,a.Z)({},e),{},{[s]:t}):e))}),[e.dataSource,s]),[y,C]=(0,h.useState)(Z),x=(0,h.useRef)(new Map),S=(0,h.useRef)(new Map),k=(0,h.useRef)(new Map),R=(0,h.useRef)(new Map);(0,h.useEffect)((()=>{R.current.clear(),C(Z)}),[Z]);var M=null!=t&&t.rowSelection?-1:0,N=(0,h.useMemo)((()=>{if(i){S.current.clear(),k.current.clear();var e=i.map(((e,t)=>{var i,{useBrick:o,valueSuffix:h,cellStatus:c,cellStyle:u={},headerBrick:g,colSpanKey:v,rowSpanKey:f,filterDropdownBrick:Z}=e,y=(0,m.Z)(e,B);if(null!=g&&g.useBrick){var C=null==g?void 0:g.useBrick,_=S.current.get(e);_||(_={title:y.title},S.current.set(e,_)),y.title=((e,t)=>function(){return d().createElement(P.ReactUseMultipleBricks,{useBrick:e,data:t})})(C,_)}if(null!=Z&&Z.useBrick&&(y.filterDropdown=d().createElement(P.ReactUseMultipleBricks,{useBrick:Z.useBrick})),o?(o&&((i=k.current.get(o))||(i=new Map,k.current.set(o,i))),y.render=((e,t)=>function(i,a,s){if(e){var n=null==t?void 0:t.get(a);return n||(n={cellData:i,rowData:a,columnIndex:s},null==t||t.set(a,n)),d().createElement(P.ReactUseMultipleBricks,{useBrick:e,data:n})}})(o,i),y.shouldCellUpdate=(e,t)=>!(0,w.isEqual)(e,t)):h&&(y.render=e=>e+h),!n&&t===Number(r)+M){var R=y.render;y.render=function(e,t,i){return d().createElement(d().Fragment,null,!t[l]&&x.current.get(s?t[s]:t),R?R(e,t,i):e)}}if(c||v||f||u){var E=y.render;y.render=(e,t,i)=>({children:E?E(e,t,i):e,props:{colSpan:t[v],rowSpan:t[f],style:(0,a.Z)((0,a.Z)({},c?b(c,t,e):{}),u)}})}return"string"==typeof y.dataIndex&&(y.dataIndex=(0,w.toPath)(y.dataIndex)),"top"===y.verticalAlign&&(y.className?y.className+=" alignTop":y.className="alignTop"),"bottom"===y.verticalAlign&&(y.className?y.className+=" alignBottom":y.className="alignBottom"),p&&(y.className?y.className+=" ellipsisInfoCell":y.className="ellipsisInfoCell"),y}));return e}}),[i,l,n,r,M,s,u,p]),U={body:{row:T}},F=(t,i)=>{var a=y[t],s=K()(y,{$splice:[[t,1],[i,0,a]]});C(s),e.onDrag&&e.onDrag(s)},O=(0,w.pickBy)({expandIconColumnIndex:r,expandIconAsCell:n,expandRowByClick:e.expandRowByClick,expandedRowKeys:e.expandedRowKeys,defaultExpandAllRows:e.defaultExpandAllRows},(e=>!(0,w.isNil)(e))),q=d().createElement(f.Z,(0,v.Z)({className:_()("brickTable",{expandIconCellHidden:!n,customDropTable:e.tableDraggable,tableThTransparent:e.thTransparent,zebraPatternTable:(null==y?void 0:y.length)>=2&&e.zebraPattern}),dataSource:y},e.tableDraggable?{components:U,onRow:(e,t)=>({index:t,moveRow:F})}:{},{columns:N,onChange:e.onChange},e.expandedRowBrick?{expandedRowRender:(t,i)=>{var a,s=R.current.get(t);return s||(s={rowData:t,rowIndex:i},R.current.set(t,s)),d().createElement(P.ReactUseMultipleBricks,{useBrick:null===(a=e.expandedRowBrick)||void 0===a?void 0:a.useBrick,data:s})}}:{},O,{onExpand:(t,i)=>{e.onExpand&&e.onExpand(t,i)},showSorterTooltip:!1,onExpandedRowsChange:t=>{e.onExpandedRowsChange&&e.onExpandedRowsChange(t)},rowKey:s,childrenColumnName:l,rowClassName:(t,i)=>t.invalidRow?"invalidRow":t.disabledRow?"disabledRow":e.zebraPattern&&i%2?"brickTableOddRow":"",expandIcon:t=>{var i,a,r,{record:l,expandable:o,expanded:h,onExpand:c}=t,u=(null===(i=e.expandIcon)||void 0===i?void 0:i.collapsedIcon)||D;o?(h||(u=(null===(r=e.expandIcon)||void 0===r?void 0:r.expandedIcon)||z),a=d().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon",onClick:e=>{c(l,e)}},d().createElement(A,u))):a=d().createElement("span",{className:"expandIconSpan","data-testid":"expand-icon"},d().createElement("span",{style:{visibility:"hidden"}},d().createElement(A,u)));return a?(n||x.current.set(s?l[s]:l,a),a):d().createElement(d().Fragment,null)},scroll:o,showHeader:g},t));e.tableDraggable&&(q=d().createElement(E.W,{backend:W.PD},q));var H=(0,h.useMemo)((()=>(0,I.Df)()),[]);return d().createElement(I.V9,{container:e.shadowRoot,cache:H},q)}i(5254);var O,q,H,L,$,V,Q,j,J,G,X,Y,ee,te,ie,ae,se,ne,re,le,oe,he,de,ce,ue,pe,we,ge,ve,me,fe,Ze,be,ye,Ce,xe,Se,_e,ke,Re,Ee,We,Me,Ke,Pe,Ie,Ne,Be,Ue,De,ze,Ae,Te,Fe,Oe,qe,He,Le,$e,Ve,Qe,je,Je,Ge,Xe,Ye,et,tt,it,at,st,nt,rt,lt,ot,ht,dt,ct,ut,pt,wt,gt,vt,mt,ft,Zt,bt,yt,Ct,xt,St,_t,kt,Rt,Et,Wt,Mt,Kt,Pt,It,Nt,Bt,Ut,Dt,zt,At,Tt,Ft,Ot,qt,Ht,Lt,$t,Vt,Qt,jt,Jt,Gt,Xt,Yt,ei,ti,ii,ai,si,ni,ri,li,{defineElement:oi,property:hi,event:di,method:ci}=(0,c.createDecorators)();q=oi("eo-table",{styleTexts:[p.Z],alias:["advanced.general-table"]}),H=di({type:"page.update"}),Q=di({type:"filter.update"}),X=di({type:"select.update"}),ie=di({type:"select.row.keys.update"}),re=di({type:"sort.update",cancelable:!0}),de=di({type:"row.expand"}),we=di({type:"expand.rows.change"}),fe=di({type:"row.drag"}),Ce=hi({type:Boolean}),Se=hi({attribute:!1}),ke=hi(),Ee=hi({attribute:!1}),Me=hi({type:Boolean}),Pe=hi({attribute:!1}),Ne=hi({attribute:!1}),Ue=hi(),ze=hi({attribute:!1}),Te=hi({attribute:!1}),Oe=hi({attribute:!1}),He=hi({attribute:!1}),$e=hi({attribute:!1}),Qe=hi({type:Number}),Je=hi({type:Boolean}),Xe=hi({attribute:!1}),et=hi({attribute:!1}),it=hi({type:Boolean}),st=hi({type:Boolean}),rt=hi({attribute:!1}),ot=hi({type:Boolean}),dt=hi({type:Boolean}),ut=hi({attribute:!1}),wt=hi({attribute:!1}),vt=hi({type:Boolean}),ft=hi(),bt=hi({type:Boolean}),Ct=hi({attribute:!1}),St=hi({type:Number}),kt=hi({type:Number}),Et=hi({attribute:!1}),Mt=hi(),Pt=hi({type:Boolean}),Nt=hi({type:Boolean}),Ut=hi({type:Boolean}),zt=hi({attribute:!1}),Tt=hi({type:Boolean}),Ot=hi({type:Boolean}),Ht=hi({type:Boolean}),$t=hi({attribute:!1}),Qt=hi(),Jt=hi({attribute:!1}),Xt=hi({type:Boolean}),ei=hi({type:Boolean}),ii=hi({attribute:!1}),si=ci(),ni=ci();var ui=new WeakMap,pi=new WeakMap,wi=new WeakMap,gi=new WeakMap,vi=new WeakMap,mi=new WeakMap,fi=new WeakMap,Zi=new WeakMap,bi=new WeakMap,yi=new WeakMap,Ci=new WeakMap,xi=new WeakMap,Si=new WeakMap,_i=new WeakMap,ki=new WeakMap,Ri=new WeakMap,Ei=new WeakMap,Wi=new WeakMap,Mi=new WeakMap,Ki=new WeakMap,Pi=new WeakMap,Ii=new WeakMap,Ni=new WeakMap,Bi=new WeakMap,Ui=new WeakMap,Di=new WeakMap,zi=new WeakMap,Ai=new WeakMap,Ti=new WeakMap,Fi=new WeakMap,Oi=new WeakMap,qi=new WeakMap,Hi=new WeakMap,Li=new WeakMap,$i=new WeakMap,Vi=new WeakMap,Qi=new WeakMap,ji=new WeakMap,Ji=new WeakMap,Gi=new WeakMap,Xi=new WeakMap,Yi=new WeakMap,ea=new WeakMap,ta=new WeakMap,ia=new WeakMap,aa=new WeakMap,sa=new WeakMap,na=new WeakMap,ra=new WeakMap,la=new WeakMap,oa=new WeakMap,ha=new WeakMap,da=new WeakMap,ca=new WeakMap,ua=new WeakMap,pa=new WeakMap,wa=new WeakMap,ga=new WeakMap,va=new WeakMap,ma=new WeakMap,fa=new WeakMap,Za=new WeakMap;class ba extends u.ReactNextElement{constructor(){super(...arguments),(0,n.Z)(this,Ri,{get:Ua,set:Ba}),(0,n.Z)(this,_i,{get:Na,set:Ia}),(0,n.Z)(this,xi,{get:Pa,set:Ka}),(0,n.Z)(this,yi,{get:Ma,set:Wa}),(0,n.Z)(this,Zi,{get:Ea,set:Ra}),(0,n.Z)(this,mi,{get:ka,set:_a}),(0,n.Z)(this,gi,{get:Sa,set:xa}),(0,n.Z)(this,pi,{get:Ca,set:ya}),(0,n.Z)(this,ui,{writable:!0,value:(ri(this),L(this))}),(0,n.Z)(this,wi,{writable:!0,value:j(this)}),(0,n.Z)(this,vi,{writable:!0,value:Y(this)}),(0,n.Z)(this,fi,{writable:!0,value:ae(this)}),(0,n.Z)(this,bi,{writable:!0,value:le(this)}),(0,n.Z)(this,Ci,{writable:!0,value:ce(this)}),(0,n.Z)(this,Si,{writable:!0,value:ge(this)}),(0,n.Z)(this,ki,{writable:!0,value:Ze(this)}),(0,n.Z)(this,Ei,{writable:!0,value:xe(this,!0)}),(0,n.Z)(this,Wi,{writable:!0,value:_e(this)}),(0,n.Z)(this,Mi,{writable:!0,value:Re(this)}),(0,n.Z)(this,Ki,{writable:!0,value:We(this)}),(0,n.Z)(this,Pi,{writable:!0,value:Ke(this,!1)}),(0,n.Z)(this,Ii,{writable:!0,value:Ie(this)}),(0,n.Z)(this,Ni,{writable:!0,value:Be(this)}),(0,n.Z)(this,Bi,{writable:!0,value:De(this)}),(0,n.Z)(this,Ui,{writable:!0,value:Ae(this)}),(0,n.Z)(this,Di,{writable:!0,value:Fe(this)}),(0,n.Z)(this,zi,{writable:!0,value:qe(this)}),(0,n.Z)(this,Ai,{writable:!0,value:Le(this)}),(0,n.Z)(this,Ti,{writable:!0,value:Ve(this,!0)}),(0,n.Z)(this,Fi,{writable:!0,value:je(this)}),(0,n.Z)(this,Oi,{writable:!0,value:Ge(this)}),(0,n.Z)(this,qi,{writable:!0,value:Ye(this)}),(0,n.Z)(this,Hi,{writable:!0,value:tt(this,!1)}),(0,n.Z)(this,Li,{writable:!0,value:at(this)}),(0,n.Z)(this,$i,{writable:!0,value:nt(this)}),(0,n.Z)(this,Vi,{writable:!0,value:lt(this)}),(0,n.Z)(this,Qi,{writable:!0,value:ht(this)}),(0,n.Z)(this,ji,{writable:!0,value:ct(this)}),(0,s.Z)(this,"_disabledChildrenKeys",[]),(0,n.Z)(this,Ji,{writable:!0,value:pt(this,"children")}),(0,n.Z)(this,Gi,{writable:!0,value:gt(this,!0)}),(0,n.Z)(this,Xi,{writable:!0,value:mt(this)}),(0,n.Z)(this,Yi,{writable:!0,value:Zt(this,"")}),(0,n.Z)(this,ea,{writable:!0,value:yt(this)}),(0,n.Z)(this,ta,{writable:!0,value:xt(this)}),(0,n.Z)(this,ia,{writable:!0,value:_t(this)}),(0,n.Z)(this,aa,{writable:!0,value:Rt(this)}),(0,n.Z)(this,sa,{writable:!0,value:Wt(this,{x:!0})}),(0,n.Z)(this,na,{writable:!0,value:Kt(this,"q")}),(0,n.Z)(this,ra,{writable:!0,value:It(this)}),(0,n.Z)(this,la,{writable:!0,value:Bt(this)}),(0,n.Z)(this,oa,{writable:!0,value:Dt(this)}),(0,n.Z)(this,ha,{writable:!0,value:At(this,[])}),(0,n.Z)(this,da,{writable:!0,value:Ft(this)}),(0,n.Z)(this,ca,{writable:!0,value:qt(this)}),(0,n.Z)(this,ua,{writable:!0,value:Lt(this,!0)}),(0,n.Z)(this,pa,{writable:!0,value:Vt(this)}),(0,n.Z)(this,wa,{writable:!0,value:jt(this)}),(0,n.Z)(this,ga,{writable:!0,value:Gt(this)}),(0,n.Z)(this,va,{writable:!0,value:Yt(this,!0)}),(0,n.Z)(this,ma,{writable:!0,value:ti(this,!0)}),(0,s.Z)(this,"_originalDataSource",[]),(0,s.Z)(this,"_dataSource",[]),(0,s.Z)(this,"_pureSource",void 0),(0,s.Z)(this,"_columns",void 0),(0,s.Z)(this,"_finalConfigProps",{}),(0,s.Z)(this,"_error",void 0),(0,n.Z)(this,fa,{writable:!0,value:void 0}),(0,s.Z)(this,"_selectUpdateEventName",""),(0,s.Z)(this,"_selectUpdateEventDetailKeys",[]),(0,s.Z)(this,"_selectUpdateEventDetailField",""),(0,s.Z)(this,"_selectUpdateEventDetailExtra",{}),(0,s.Z)(this,"_fields",{page:"page",pageSize:"pageSize",dataSource:"list",total:"total",ascend:"ascend",descend:"descend"}),(0,n.Z)(this,Za,{writable:!0,value:ai(this,[])}),(0,s.Z)(this,"_selected",!1),(0,s.Z)(this,"_selectedRow",void 0),(0,s.Z)(this,"_selectedRows",[]),(0,s.Z)(this,"_allChildren",[]),(0,s.Z)(this,"_isInSelect",!1),(0,s.Z)(this,"_getRowKey",(()=>{var e,t,i,a;return null!==(e=null!==(t=null!==(i=this.rowKey)&&void 0!==i?i:this._fields.rowKey)&&void 0!==t?t:null===(a=this.configProps)||void 0===a?void 0:a.rowKey)&&void 0!==e?e:"key"})),(0,s.Z)(this,"_findParentByChildKeyValue",((e,t,i,a)=>{var s;return i.some((i=>{if(i[t]===e)s=a;else{var n=i[this.childrenColumnName];n&&(s=this._findParentByChildKeyValue(e,t,n,i))}return!!s})),s})),(0,s.Z)(this,"_handleRowSelectChange",((e,t)=>{var i=this._getRowKey(),a=(0,w.keyBy)(t,i);if(this._selected){var s=[...e];if(this._allChildren.forEach((e=>{var t=e[i];s.push(t),a[t]=e})),this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow){var n=new Set(e),r=this._findParentByChildKeyValue(this._selectedRow[i],i,this._dataSource);if(r&&r[this.childrenColumnName].every((e=>n.has(e[i])))){var o=r[i];s.push(o),a[o]=r}}this.selectedRowKeys=(0,w.uniq)(s)}else{var h;this.autoSelectParentWhenAllChildrenSelected&&this._selectedRow&&(h=this._findParentByChildKeyValue(this._selectedRow[i],i,this._dataSource)),this.selectedRowKeys=(0,w.pullAll)(e,(0,w.map)(this._allChildren.concat(h),i))}this._selectedRow=void 0;var d=(0,w.keyBy)(this.extraRows,i);this._selectedRows=this.selectedRowKeys.map((e=>a[e]||d[e]));var c=null,u=(0,w.isEmpty)(this._selectUpdateEventDetailField)?this._selectedRows:(0,w.map)(this._selectedRows,(e=>(0,w.get)(e,this._selectUpdateEventDetailField)));c=(0,w.isEmpty)(this._selectUpdateEventDetailKeys)||(0,w.isEmpty)(u)?u:(0,w.set)({},this._selectUpdateEventDetailKeys,u),(0,w.isEmpty)(c)||(c=(0,w.merge)(c,this._selectUpdateEventDetailExtra)),this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:c})):(0,l.Z)(this,mi).emit(c),(0,l.Z)(this,Zi).emit(e)})),(0,s.Z)(this,"_getSelectedRowsWithChildren",(e=>{var t=[];return!(0,w.isEmpty)(e[this.childrenColumnName])&&(0,w.isArray)(e[this.childrenColumnName])&&(0,w.forEach)(e[this.childrenColumnName],(e=>{t.push(e),t.push(...this._getSelectedRowsWithChildren(e))})),t})),(0,s.Z)(this,"_handleOnSelect",((e,t,i)=>{this._selected=t,this._selectedRow=e,this._isInSelect=!0;var a=this._getRowKey(),s=this.selectAllChildren?this._getSelectedRowsWithChildren(e):[];this._allChildren=s,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=t?(0,w.uniq)([...this._disabledChildrenKeys,...(0,w.map)(s,a)]):(0,w.pullAll)(this._disabledChildrenKeys,[...(0,w.map)(s,a)])),this.storeCheckedByUrl&&a&&this._updateUrlChecked([e[a]],t)})),(0,s.Z)(this,"_handleSelectAll",((e,t,i)=>{this._selected=e,this._isInSelect=!0;var a=this._getRowKey();if(this.selectAllChildren){var s=(0,w.map)(this._dataSource,a),n=i.filter((e=>s.includes(e[a]))),r=(0,w.flatten)((0,w.map)(n,(e=>(0,w.map)(this._getSelectedRowsWithChildren(e),(e=>e[a]))))),l=(0,w.flatten)((0,w.map)(n,(e=>(0,w.map)(this._getSelectedRowsWithChildren(e),(e=>e)))));this._allChildren=l,this.autoSelectParentWhenAllChildrenSelected||(this._disabledChildrenKeys=e?(0,w.uniq)(this._disabledChildrenKeys.concat(r)):this._disabledChildrenKeys.filter((e=>!r.includes(e))))}this.storeCheckedByUrl&&a&&this._updateUrlChecked((0,w.map)(i,a),e)})),(0,s.Z)(this,"_getCheckedFromUrl",(()=>{var e=(0,g.getHistory)(),t=new URLSearchParams(e.location.search).get("checked");return(0,w.isEmpty)(t)?[]:t.split(",")})),(0,s.Z)(this,"_updateUrlChecked",((e,t)=>{var i=(0,g.getHistory)(),a=this._getCheckedFromUrl();t?a=[...a,...e]:(0,w.pull)(a,...e),this.shouldUpdateUrlParams&&i.pushQuery({checked:a.join(",")},{notify:!1})})),(0,s.Z)(this,"_handleOnChange",((e,t,i)=>{var a=(0,g.getHistory)(),s=new URLSearchParams(a.location.search);if(!(0,w.isEmpty)(e))if(e.pageSize!==this.pageSize)e.current=1,s.set("page","1"),s.set("pageSize",(null==e?void 0:e.pageSize).toString()),(0,l.Z)(this,gi).emit({[this._fields.pageSize]:e.pageSize,[this._fields.page]:1}),this.page=1,this.pageSize=e.pageSize;else if(e.current!==this.page){var n=e.current||1;s.set("page",n.toString()),(0,l.Z)(this,pi).emit({[this._fields.page]:n}),this.page=n}this.filters=t,(0,w.isEmpty)(t)||(0,w.forEach)(t,((e,t)=>{(0,w.isNil)(e)||0===e.length?s.delete(t):s.set(t,e)})),i.order&&(0,w.isNil)(i.order)&&(i.columnKey!==this.sort||this._fields[i.order]!==this.order)&&(i.columnKey&&i.order?(s.set("sort",i.columnKey),s.set("order",this._fields[i.order].toString()),this.sort=i.columnKey,this.order=this._fields[i.order]):(s.delete("sort"),s.delete("order"),this.sort=null,this.order=null),(0,l.Z)(this,yi).emit({sort:this.sort,order:this.order})),this.frontSearch?(this.shouldUpdateUrlParams&&a.push("?".concat(s),{notify:!1}),this.frontendSearch(e,t,i)):this.shouldUpdateUrlParams&&a.push("?".concat(s),{notify:!!this.shouldRenderWhenUrlParamsUpdate})})),(0,s.Z)(this,"renderSelectInfo",(()=>d().createElement("span",{style:{marginLeft:20}},d().createElement("span",null,"已选择",this.selectedRowKeys.length,"项"),d().createElement("a",{role:"button",style:{marginLeft:"10px"},onClick:()=>{this.selectedRowKeys=[],this._selectedRows=[],this._disabledChildrenKeys=[],this._allChildren=[],this._selectUpdateEventName?this.dispatchEvent(new CustomEvent(this._selectUpdateEventName,{detail:[]})):(0,l.Z)(this,mi).emit([])}},"清空")))),(0,s.Z)(this,"_handleOnExpand",((e,t)=>{if(this.expandedRowKeys){var i=this._getRowKey(),a=[(0,w.get)(t,i)],s=(0,w.get)(t,this.childrenColumnName);if(!(0,w.isEmpty)(s)){var n=(0,w.map)((0,w.filter)(s,(e=>(0,w.isEmpty)((0,w.get)(e,this.childrenColumnName)))),i);a.push(...n)}this.expandedRowKeys=e?[...this.expandedRowKeys,...a]:(0,w.pull)(this.expandedRowKeys,...a),this._render()}(0,l.Z)(this,xi).emit({expanded:e,record:t})})),(0,s.Z)(this,"_handleOnExpandedRowsChange",(e=>{(0,l.Z)(this,_i).emit({expandedRows:e})})),(0,s.Z)(this,"_handleOnDrag",(e=>{(0,l.Z)(this,Ri).emit({data:e})})),(0,s.Z)(this,"_getAllRows",(()=>{var e=[];return C(this._dataSource,this.childrenColumnName,e),e})),(0,s.Z)(this,"_handleDefaultSelectAll",(()=>{this._isInSelect=!0;var e=this._getRowKey();return this._selectedRows=this._getAllRows(),this.selectedRowKeys=(0,w.map)(this._selectedRows,e),this.selectedRowKeys})),(0,s.Z)(this,"_initConfigProps",(()=>{var e,t,i,s={current:this.page,pageSize:this.pageSize,total:(0,l.Z)(this,fa),showSizeChanger:!0,pageSizeOptions:["10","20","50"],showTotal:e=>{var t;return d().createElement(d().Fragment,null,d().createElement("span",{className:"totalText"},"共 ",d().createElement("strong",{className:"total"},e)," 条"),((null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)||this.rowSelection)&&this.showSelectInfo&&0!==this.selectedRowKeys.length&&this.renderSelectInfo())}},n=this._getRowKey();this.rowDisabledConfig&&(i=Array.isArray(this.rowDisabledConfig)?this.rowDisabledConfig:[this.rowDisabledConfig]);var r=(0,a.Z)((0,a.Z)({},n?{selectedRowKeys:this._isInSelect?this.selectedRowKeys:this.storeCheckedByUrl?this._getCheckedFromUrl():this.defaultSelectAll?this._handleDefaultSelectAll():this.selectedRowKeys,onSelect:this._handleOnSelect,onSelectAll:this._handleSelectAll,onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0}:{onChange:this._handleRowSelectChange,preserveSelectedRowKeys:!0}),{},{getCheckboxProps:e=>!(0,w.isEmpty)(this._disabledChildrenKeys)&&this._disabledChildrenKeys.includes((0,w.get)(e,n))?{disabled:!0}:i?{disabled:i.some((t=>{var{field:i,value:a,operator:s}=t,n=Z[s];return null==n?void 0:n(a,(0,w.get)(e,i))}))}:{}});this.configProps?(this._finalConfigProps=(0,w.cloneDeep)(this.configProps),!1!==this.configProps.pagination&&(this._finalConfigProps.pagination=(0,a.Z)((0,a.Z)((0,a.Z)({},s),this.pagination),this.configProps.pagination),void 0!==this.configProps.pagination&&null!==this.configProps.pagination||!1!==this.pagination||(this._finalConfigProps.pagination=!1)),this.configProps.size||(this._finalConfigProps.size=this.size)):(this._finalConfigProps={},this._finalConfigProps.pagination=!1!==this.pagination&&s,this._finalConfigProps.size=this.size);var o,h,c=null!==(e=null===(t=this.configProps)||void 0===t?void 0:t.rowSelection)&&void 0!==e?e:this.rowSelection;c?this._finalConfigProps.rowSelection=!0===c?(0,a.Z)((0,a.Z)({},r),{},{type:null!==(o=this.type)&&void 0!==o?o:"checkbox"}):(0,a.Z)((0,a.Z)((0,a.Z)({},r),{},{type:null!==(h=this.type)&&void 0!==h?h:"checkbox"},c),r.selectedRowKeys?{selectedRowKeys:r.selectedRowKeys}:{}):this.type?this._finalConfigProps.rowSelection=(0,a.Z)((0,a.Z)({},r),{},{type:this.type}):this._finalConfigProps.rowSelection=!1,this._columns&&(this._columns=this._columns.map((e=>{if((0,w.isNil)(e.key)&&(e.key=e.dataIndex),e.sorter&&(e.sortOrder=this.sort===e.key&&!(0,w.isNil)(this.order)&&(this._fields.ascend===this.order?"ascend":"descend")),e.filters){var t,i,a=(0,g.getHistory)(),s=null!==(t=new URLSearchParams(a.location.search).get(e.key))&&void 0!==t?t:null===(i=(0,w.get)(this.filters,e.key))||void 0===i?void 0:i.join(",");(0,w.isNil)(s)||(0,w.isEmpty)(s)?(e.filtered=!1,e.filteredValue=[]):(e.filtered=!0,e.filteredValue=s.split(",").map((t=>{var i,a;return null!==(i=null===(a=(0,w.find)(e.filters,(e=>String(e.value)===t)))||void 0===a?void 0:a.value)&&void 0!==i?i:t})))}return e})))}))}set columns(e){this._columns=e,this._render()}get columns(){return this._columns}set dataSource(e){var t,i,a,s,n,l,o;this._isInSelect=!1,this._originalDataSource=e,this._dataSource=(0,w.cloneDeep)(this._fields.dataSource?(0,w.get)(e,this._fields.dataSource):e),this._pureSource=(0,w.cloneDeep)(this._dataSource),this.stripEmptyExpandableChildren&&x((null===(l=this.configProps)||void 0===l||null===(o=l.expandable)||void 0===o?void 0:o.childrenColumnName)||"children",this._dataSource),(0,r.Z)(this,fa,(0,w.get)(e,this._fields.total)),this.page=null!==(t=null!==(i=(0,w.get)(e,"page"))&&void 0!==i?i:this.page)&&void 0!==t?t:1,this.pageSize=null!==(a=null!==(s=null!==(n=(0,w.get)(e,"page_size"))&&void 0!==n?n:(0,w.get)(e,"pageSize"))&&void 0!==s?s:this.pageSize)&&void 0!==a?a:10,this._render()}get showCard(){return(0,l.Z)(this,Ei)}set showCard(e){(0,r.Z)(this,Ei,e)}get rowSelection(){return(0,l.Z)(this,Wi)}set rowSelection(e){(0,r.Z)(this,Wi,e)}get rowKey(){return(0,l.Z)(this,Mi)}set rowKey(e){(0,r.Z)(this,Mi,e)}get hiddenColumns(){return(0,l.Z)(this,Ki)}set hiddenColumns(e){(0,r.Z)(this,Ki,e)}get showSelectInfo(){return(0,l.Z)(this,Pi)}set showSelectInfo(e){(0,r.Z)(this,Pi,e)}get filters(){return(0,l.Z)(this,Ii)}set filters(e){(0,r.Z)(this,Ii,e)}get configProps(){return(0,l.Z)(this,Ni)}set configProps(e){(0,r.Z)(this,Ni,e)}get sort(){return(0,l.Z)(this,Bi)}set sort(e){(0,r.Z)(this,Bi,e)}get order(){return(0,l.Z)(this,Ui)}set order(e){(0,r.Z)(this,Ui,e)}get rowDisabledConfig(){return(0,l.Z)(this,Di)}set rowDisabledConfig(e){(0,r.Z)(this,Di,e)}get expandedRowBrick(){return(0,l.Z)(this,zi)}set expandedRowBrick(e){(0,r.Z)(this,zi,e)}get expandIcon(){return(0,l.Z)(this,Ai)}set expandIcon(e){(0,r.Z)(this,Ai,e)}get expandIconAsCell(){return(0,l.Z)(this,Ti)}set expandIconAsCell(e){(0,r.Z)(this,Ti,e)}get expandIconColumnIndex(){return(0,l.Z)(this,Fi)}set expandIconColumnIndex(e){(0,r.Z)(this,Fi,e)}get expandRowByClick(){return(0,l.Z)(this,Oi)}set expandRowByClick(e){(0,r.Z)(this,Oi,e)}get optimizedColumns(){return(0,l.Z)(this,qi)}set optimizedColumns(e){(0,r.Z)(this,qi,e)}get stripEmptyExpandableChildren(){return(0,l.Z)(this,Hi)}set stripEmptyExpandableChildren(e){(0,r.Z)(this,Hi,e)}get defaultExpandAllRows(){return(0,l.Z)(this,Li)}set defaultExpandAllRows(e){(0,r.Z)(this,Li,e)}get ellipsisInfo(){return(0,l.Z)(this,$i)}set ellipsisInfo(e){(0,r.Z)(this,$i,e)}get expandedRowKeys(){return(0,l.Z)(this,Vi)}set expandedRowKeys(e){(0,r.Z)(this,Vi,e)}get selectAllChildren(){return(0,l.Z)(this,Qi)}set selectAllChildren(e){(0,r.Z)(this,Qi,e)}get defaultSelectAll(){return(0,l.Z)(this,ji)}set defaultSelectAll(e){(0,r.Z)(this,ji,e)}get childrenColumnName(){return(0,l.Z)(this,Ji)}set childrenColumnName(e){(0,r.Z)(this,Ji,e)}get sortable(){return(0,l.Z)(this,Gi)}set sortable(e){(0,r.Z)(this,Gi,e)}set fields(e){this._fields=(0,a.Z)((0,a.Z)({},this._fields),e),this._render()}get frontSearch(){return(0,l.Z)(this,Xi)}set frontSearch(e){(0,r.Z)(this,Xi,e)}get frontSearchQuery(){return(0,l.Z)(this,Yi)}set frontSearchQuery(e){(0,r.Z)(this,Yi,e)}get exactSearch(){return(0,l.Z)(this,ea)}set exactSearch(e){(0,r.Z)(this,ea,e)}get frontSearchFilterKeys(){return(0,l.Z)(this,ta)}set frontSearchFilterKeys(e){(0,r.Z)(this,ta,e)}get page(){return(0,l.Z)(this,ia)}set page(e){(0,r.Z)(this,ia,e)}get pageSize(){return(0,l.Z)(this,aa)}set pageSize(e){(0,r.Z)(this,aa,e)}get scrollConfigs(){return(0,l.Z)(this,sa)}set scrollConfigs(e){(0,r.Z)(this,sa,e)}get qField(){return(0,l.Z)(this,na)}set qField(e){(0,r.Z)(this,na,e)}get tableDraggable(){return(0,l.Z)(this,ra)}set tableDraggable(e){(0,r.Z)(this,ra,e)}get zebraPattern(){return(0,l.Z)(this,la)}set zebraPattern(e){(0,r.Z)(this,la,e)}get storeCheckedByUrl(){return(0,l.Z)(this,oa)}set storeCheckedByUrl(e){(0,r.Z)(this,oa,e)}get extraRows(){return(0,l.Z)(this,ha)}set extraRows(e){(0,r.Z)(this,ha,e)}get autoSelectParentWhenAllChildrenSelected(){return(0,l.Z)(this,da)}set autoSelectParentWhenAllChildrenSelected(e){(0,r.Z)(this,da,e)}get thTransparent(){return(0,l.Z)(this,ca)}set thTransparent(e){(0,r.Z)(this,ca,e)}get showHeader(){return(0,l.Z)(this,ua)}set showHeader(e){(0,r.Z)(this,ua,e)}get pagination(){return(0,l.Z)(this,pa)}set pagination(e){(0,r.Z)(this,pa,e)}get size(){return(0,l.Z)(this,wa)}set size(e){(0,r.Z)(this,wa,e)}get type(){return(0,l.Z)(this,ga)}set type(e){(0,r.Z)(this,ga,e)}get shouldUpdateUrlParams(){return(0,l.Z)(this,va)}set shouldUpdateUrlParams(e){(0,r.Z)(this,va,e)}get shouldRenderWhenUrlParamsUpdate(){return(0,l.Z)(this,ma)}set shouldRenderWhenUrlParamsUpdate(e){(0,r.Z)(this,ma,e)}get processedDataSource(){return this._dataSource}get processConfigProps(){return this._finalConfigProps}get processedColumns(){return this.getModifyColumns()}get selectedRowKeys(){return(0,l.Z)(this,Za)}set selectedRowKeys(e){(0,r.Z)(this,Za,e)}filterSourceData(e){var t=this.exactSearch?e.detail.q.trim():e.detail.q.trim().toLowerCase();if(this.shouldUpdateUrlParams){var i=(0,g.getHistory)(),a=new URLSearchParams(i.location.search);a.set("page","1"),t?(a.set(this.qField,t),i.push("?".concat(a),{notify:!this.frontSearch})):(a.delete(this.qField),i.push("?".concat(a),{notify:!this.frontSearch})),this.page=1}this.frontSearchQuery=t}handleFrontendDataChange(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this.shouldUpdateUrlParams){var i=(0,g.getHistory)(),a=new URLSearchParams(i.location.search);this.frontSearchQuery=a.get(this.qField)}var s=[];s=this.handleFrontendFilterSource(e,this.frontSearchQuery||"",t);var n=(0,w.isNil)(this.order)?null:this._fields.ascend===this.order?"ascend":"descend";return s=this.handleFrontendSorter(s,{columnKey:this.sort,order:n}),s=this.handleFrontendFilters(s),(0,r.Z)(this,fa,s.length),s}handleFrontendFilterSource(e,t,i,s){if(!t)return e;var n=[];return s||(s=this.frontSearchFilterKeys||i.map((e=>e.dataIndex))),e.forEach((e=>{var r,l=e[this.childrenColumnName];if(l){var o=this.handleFrontendFilterSource(l,t,i,s);if(o.length>0)return void n.push((0,a.Z)((0,a.Z)({},e),{},{[this.childrenColumnName]:o}))}(null===(r=s)||void 0===r?void 0:r.some((i=>{var a=(0,w.get)(e,i);return!(0,w.isNil)(a)&&(this.exactSearch?a===t:JSON.stringify(a).toLowerCase().includes(t))})))&&n.push(e)})),n}handleFrontendSorter(e,t){var i=e||[],{columnKey:a,order:s}=t;if(!a||!s)return e;var n=1;return"descend"===s?n=-1:"ascend"===s&&(n=1),void 0!==n&&(i.sort(((e,t)=>{var i=(0,w.get)(e,a),s=(0,w.get)(t,a);if((0,w.isNil)(i)){if(!(0,w.isNil)(s))return 1}else if((0,w.isNil)(s))return-1;return i==s?0:i>s?n:-n})),i.forEach((e=>{var i=e[this.childrenColumnName];i&&this.handleFrontendSorter(i,t)}))),i}handleFrontendFilters(e){var t=e||[],i=(0,w.map)(this.filters,((e,t)=>({key:t,value:e}))).filter((e=>!(0,w.isNil)(e.value)&&0!==e.value.length));return t.filter((e=>(0,w.every)(i,(t=>{var i,a;return null===(i=null===(a=t.value)||void 0===a?void 0:a.includes((0,w.get)(e,t.key)))||void 0===i||i}))))}frontendSearch(e,t,i){this.sort=(0,w.isNil)(i.order)?null:i.columnKey,this.order=(0,w.isNil)(i.order)?null:this._fields[i.order]}expandAll(){var e=[],t=this._getRowKey();this._dataSource&&y(this._dataSource,t,this.childrenColumnName,e),this.expandedRowKeys=e}getModifyColumns(){var e=this._columns;return this._columns&&this.hiddenColumns&&(e=this._columns.filter((e=>{var t,i;return!(null!==(t=this.hiddenColumns)&&void 0!==t&&t.includes(null!==(i=e.dataIndex)&&void 0!==i?i:e.key))}))),!1===this.sortable&&(e=(0,w.map)(e,(e=>(e.sorter=!1,e)))),e}render(){return this.frontSearch&&(this._dataSource=this.handleFrontendDataChange(this._pureSource,this._columns)),this._initConfigProps(),d().createElement(F,{shadowRoot:this.shadowRoot,dataSource:this._dataSource||[],columns:this.getModifyColumns(),configProps:this._finalConfigProps,error:this._error,onChange:this._handleOnChange,showCard:this.showCard,showHeader:this.showHeader,expandedRowBrick:this.expandedRowBrick,expandIconAsCell:this.expandIconAsCell,expandIconColumnIndex:this.expandIconColumnIndex,expandRowByClick:this.expandRowByClick,defaultExpandAllRows:this.defaultExpandAllRows,onExpand:this._handleOnExpand,onExpandedRowsChange:this._handleOnExpandedRowsChange,expandedRowKeys:this.expandedRowKeys,rowKey:this._getRowKey(),childrenColumnName:this.childrenColumnName,tableDraggable:this.tableDraggable||this.draggable,onDrag:this._handleOnDrag,zebraPattern:this.zebraPattern,expandIcon:this.expandIcon,scroll:this.scrollConfigs,optimizedColumns:this.optimizedColumns,ellipsisInfo:this.ellipsisInfo,thTransparent:this.thTransparent})}_test_only_getOriginalDataSource(){return this._originalDataSource}updateData(e){this._dataSource=e.detail,this._error=null,this._render()}updateError(e){this._error=e.detail,this._render()}set selectUpdateEventName(e){this._selectUpdateEventName=e}set selectUpdateEventDetailKeys(e){this._selectUpdateEventDetailKeys=e}set selectUpdateEventDetailField(e){this._selectUpdateEventDetailField=e}set selectUpdateEventDetailExtra(e){this._selectUpdateEventDetailExtra=e}}function ya(e){V(this,e)}function Ca(){return $(this)}function xa(e){G(this,e)}function Sa(){return J(this)}function _a(e){te(this,e)}function ka(){return ee(this)}function Ra(e){ne(this,e)}function Ea(){return se(this)}function Wa(e){he(this,e)}function Ma(){return oe(this)}function Ka(e){pe(this,e)}function Pa(){return ue(this)}function Ia(e){me(this,e)}function Na(){return ve(this)}function Ba(e){ye(this,e)}function Ua(){return be(this)}({e:[L,$,V,j,J,G,Y,ee,te,ae,se,ne,le,oe,he,ce,ue,pe,ge,ve,me,Ze,be,ye,xe,_e,Re,We,Ke,Ie,Be,De,Ae,Fe,qe,Le,Ve,je,Ge,Ye,tt,at,nt,lt,ht,ct,pt,gt,mt,Zt,yt,xt,_t,Rt,Wt,Kt,It,Bt,Dt,At,Ft,qt,Lt,Vt,jt,Gt,Yt,ti,ai,ri],c:[li,O]}=(0,o.Z)(ba,[[H,1,"pageUpdate",function(){return(0,l.Z)(this,ui)},function(e){(0,r.Z)(this,ui,e)}],[Q,1,"filterUpdate",function(){return(0,l.Z)(this,wi)},function(e){(0,r.Z)(this,wi,e)}],[X,1,"selectUpdate",function(){return(0,l.Z)(this,vi)},function(e){(0,r.Z)(this,vi,e)}],[ie,1,"selectRowKeysUpdate",function(){return(0,l.Z)(this,fi)},function(e){(0,r.Z)(this,fi,e)}],[re,1,"sortUpdate",function(){return(0,l.Z)(this,bi)},function(e){(0,r.Z)(this,bi,e)}],[de,1,"rowExpand",function(){return(0,l.Z)(this,Ci)},function(e){(0,r.Z)(this,Ci,e)}],[we,1,"expandRowsChange",function(){return(0,l.Z)(this,Si)},function(e){(0,r.Z)(this,Si,e)}],[fe,1,"rowDrag",function(){return(0,l.Z)(this,ki)},function(e){(0,r.Z)(this,ki,e)}],[Ce,1,"showCard"],[Se,1,"rowSelection"],[ke,1,"rowKey"],[Ee,1,"hiddenColumns"],[Me,1,"showSelectInfo"],[Pe,1,"filters"],[Ne,1,"configProps"],[Ue,1,"sort"],[ze,1,"order"],[Te,1,"rowDisabledConfig"],[Oe,1,"expandedRowBrick"],[He,1,"expandIcon"],[$e,1,"expandIconAsCell"],[Qe,1,"expandIconColumnIndex"],[Je,1,"expandRowByClick"],[Xe,1,"optimizedColumns"],[et,1,"stripEmptyExpandableChildren"],[it,1,"defaultExpandAllRows"],[st,1,"ellipsisInfo"],[rt,1,"expandedRowKeys"],[ot,1,"selectAllChildren"],[dt,1,"defaultSelectAll"],[ut,1,"childrenColumnName"],[wt,1,"sortable"],[vt,1,"frontSearch"],[ft,1,"frontSearchQuery"],[bt,1,"exactSearch"],[Ct,1,"frontSearchFilterKeys"],[St,1,"page"],[kt,1,"pageSize"],[Et,1,"scrollConfigs"],[Mt,1,"qField"],[Pt,1,"tableDraggable"],[Nt,1,"zebraPattern"],[Ut,1,"storeCheckedByUrl"],[zt,1,"extraRows"],[Tt,1,"autoSelectParentWhenAllChildrenSelected"],[Ot,1,"thTransparent"],[Ht,1,"showHeader"],[$t,1,"pagination"],[Qt,1,"size"],[Jt,1,"type"],[Xt,1,"shouldUpdateUrlParams"],[ei,1,"shouldRenderWhenUrlParamsUpdate"],[ii,1,"selectedRowKeys"],[si,2,"filterSourceData"],[ni,2,"expandAll"]],[q])),O();var Da,za,Aa,Ta,Fa,Oa,qa,Ha,La,$a,Va,Qa,ja,Ja,Ga,Xa,Ya,es,ts,is,as,ss,ns,rs,ls,os,hs,ds,cs,us,ps,ws,gs,vs,ms,fs,Zs,bs,ys=i(8682),{defineElement:Cs,property:xs,event:Ss}=(0,c.createDecorators)(),_s=(0,u.wrapBrick)("eo-icon");za=Cs("eo-cascader",{alias:["advanced.general-cascader"]}),Aa=xs({attribute:!1}),Fa=xs({attribute:!1}),qa=xs({attribute:!1}),La=xs(),Va=xs({type:Boolean}),ja=xs({type:Boolean}),Ga=xs({type:Boolean}),Ya=xs({type:Boolean}),ts=xs({attribute:!1}),as=xs(),ns=xs(),ls=xs(),hs=xs({type:Number}),cs=xs({attribute:!1}),ps=xs({attribute:!1}),gs=Ss({type:"cascader.change"});var ks=new WeakMap,Rs=new WeakMap,Es=new WeakMap,Ws=new WeakMap,Ms=new WeakMap,Ks=new WeakMap,Ps=new WeakMap,Is=new WeakMap,Ns=new WeakMap,Bs=new WeakMap,Us=new WeakMap,Ds=new WeakMap,zs=new WeakMap,As=new WeakMap,Ts=new WeakMap,Fs=new WeakMap,Os=new WeakMap,qs=new WeakMap;class Hs extends u.ReactNextElement{constructor(){super(...arguments),(0,n.Z)(this,Os,{get:$s,set:Ls}),(0,n.Z)(this,ks,{writable:!0,value:(Zs(this),Ta(this))}),(0,n.Z)(this,Rs,{writable:!0,value:Oa(this,{label:"label",value:"value",children:"children"})}),(0,n.Z)(this,Es,{writable:!0,value:Ha(this)}),(0,n.Z)(this,Ws,{writable:!0,value:$a(this)}),(0,n.Z)(this,Ms,{writable:!0,value:Qa(this)}),(0,n.Z)(this,Ks,{writable:!0,value:Ja(this)}),(0,n.Z)(this,Ps,{writable:!0,value:Xa(this,!0)}),(0,n.Z)(this,Is,{writable:!0,value:es(this,!0)}),(0,n.Z)(this,Ns,{writable:!0,value:is(this)}),(0,n.Z)(this,Bs,{writable:!0,value:ss(this,"click")}),(0,n.Z)(this,Us,{writable:!0,value:rs(this,"bottomLeft")}),(0,n.Z)(this,Ds,{writable:!0,value:os(this)}),(0,n.Z)(this,zs,{writable:!0,value:ds(this,50)}),(0,n.Z)(this,As,{writable:!0,value:us(this)}),(0,n.Z)(this,Ts,{writable:!0,value:ws(this)}),(0,n.Z)(this,Fs,{writable:!0,value:vs(this)}),(0,n.Z)(this,qs,{writable:!0,value:(e,t)=>{this.value=e,Promise.resolve().then((()=>{(0,l.Z)(this,Os).emit({value:e,selectedOptions:t})}))}})}get options(){return(0,l.Z)(this,ks)}set options(e){(0,r.Z)(this,ks,e)}get fieldNames(){return(0,l.Z)(this,Rs)}set fieldNames(e){(0,r.Z)(this,Rs,e)}get value(){return(0,l.Z)(this,Es)}set value(e){(0,r.Z)(this,Es,e)}get placeholder(){return(0,l.Z)(this,Ws)}set placeholder(e){(0,r.Z)(this,Ws,e)}get multiple(){return(0,l.Z)(this,Ms)}set multiple(e){(0,r.Z)(this,Ms,e)}get disabled(){return(0,l.Z)(this,Ks)}set disabled(e){(0,r.Z)(this,Ks,e)}get allowClear(){return(0,l.Z)(this,Ps)}set allowClear(e){(0,r.Z)(this,Ps,e)}get showSearch(){return(0,l.Z)(this,Is)}set showSearch(e){(0,r.Z)(this,Is,e)}get suffixIcon(){return(0,l.Z)(this,Ns)}set suffixIcon(e){(0,r.Z)(this,Ns,e)}get expandTrigger(){return(0,l.Z)(this,Bs)}set expandTrigger(e){(0,r.Z)(this,Bs,e)}get popupPlacement(){return(0,l.Z)(this,Us)}set popupPlacement(e){(0,r.Z)(this,Us,e)}get size(){return(0,l.Z)(this,Ds)}set size(e){(0,r.Z)(this,Ds,e)}get limit(){return(0,l.Z)(this,zs)}set limit(e){(0,r.Z)(this,zs,e)}get maxTagCount(){return(0,l.Z)(this,As)}set maxTagCount(e){(0,r.Z)(this,As,e)}get cascaderStyle(){return(0,l.Z)(this,Ts)}set cascaderStyle(e){(0,r.Z)(this,Ts,e)}render(){return d().createElement(Vs,{shadowRoot:this.shadowRoot,options:this.options,fieldNames:this.fieldNames,value:this.value,multiple:this.multiple,placeholder:this.placeholder,disabled:this.disabled,allowClear:this.allowClear,showSearch:this.showSearch,expandTrigger:this.expandTrigger,suffixIcon:this.suffixIcon,size:this.size,limit:this.limit,popupPlacement:this.popupPlacement,maxTagCount:this.maxTagCount,cascaderStyle:this.cascaderStyle,onChange:(0,l.Z)(this,qs)})}}function Ls(e){fs(this,e)}function $s(){return ms(this)}function Vs(e){var{shadowRoot:t,options:i,fieldNames:a,value:s,placeholder:n,disabled:r,multiple:l,allowClear:o,showSearch:c,expandTrigger:u,size:p,limit:w,popupPlacement:g,cascaderStyle:v,suffixIcon:m,maxTagCount:f,onChange:Z}=e,b=(0,h.useMemo)((()=>(0,I.Df)()),[]);return d().createElement(I.V9,{container:t,cache:b},d().createElement(ys.Z,{getPopupContainer:e=>e.parentElement,allowClear:o,disabled:r,multiple:l,expandTrigger:u,fieldNames:a,placeholder:n,size:p,showSearch:c&&{limit:w,filter:(e,t)=>{for(var i=(null==a?void 0:a.label)||"label",s=e.split(" ").filter((e=>e)).map((e=>e.toLocaleLowerCase())),n=function(e){if(!t.some((t=>t[i].toLowerCase().includes(s[e]))))return{v:!1}},r=0;r<s.length;r++){var l=n(r);if("object"==typeof l)return l.v}return!0}},placement:g,style:v,suffixIcon:m&&d().createElement(_s,m),maxTagCount:f,value:s,options:i,onChange:(e,t)=>null==Z?void 0:Z(e,t)}))}({e:[Ta,Oa,Ha,$a,Qa,Ja,Xa,es,is,ss,rs,os,ds,us,ws,vs,ms,fs,Zs],c:[bs,Da]}=(0,o.Z)(Hs,[[Aa,1,"options"],[Fa,1,"fieldNames"],[qa,1,"value"],[La,1,"placeholder"],[Va,1,"multiple"],[ja,1,"disabled"],[Ga,1,"allowClear"],[Ya,1,"showSearch"],[ts,1,"suffixIcon"],[as,1,"expandTrigger"],[ns,1,"popupPlacement"],[ls,1,"size"],[hs,1,"limit"],[cs,1,"maxTagCount"],[ps,1,"cascaderStyle"],[gs,1,"changeEvent",function(){return(0,l.Z)(this,Fs)},function(e){(0,r.Z)(this,Fs,e)}]],[za])),Da()},2869:(e,t,i)=>{i.d(t,{Z:()=>l});var a=i(9601),s=i.n(a),n=i(2609),r=i.n(n)()(s());r.push([e.id,".brickTableOddRow{background-color:var(--color-fill-bg-base-4)}.ant-table-small .ant-table-body{margin:0}.ant-table-small .ant-table-thead{background:var(--antd-table-header-bg)}.ant-table-small .ant-table-row{line-height:26px}.ant-table-tbody > tr.invalidRow > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.invalidRow:hover > td{background-color:var(--color-error-bg)}.ant-table-tbody > tr.disabledRow > td{background-color:var(--theme-gray-border-color)}.ant-table-tbody > .ant-table-row-selected td{background:var(--antd-table-cell-fixed-body-bg)!important}td.alignTop{vertical-align:top}td.alignBottom{vertical-align:bottom}.expandIconCellHidden .ant-table-row-expand-icon-cell,\n.expandIconCellHidden .ant-table-expand-icon-col{width:1px;min-width:auto}.expandIconCellHidden .ant-table-row-expand-icon-cell > *,\n.expandIconCellHidden .ant-table-expand-icon-col > *{display:none}.expandIconSpan{cursor:pointer;margin-right:9px;color:var(--antd-table-row-expand-icon-color);font-size:11px}.expandIconSpan .anticon{background:var(--antd-table-row-expand-icon-action-bg);border-radius:2px;padding:3px}.tableThTransparent thead.ant-table-thead > tr > th{background:var(--antd-table-header-bg)}.zebraPatternTable .ant-table-tbody tr td{border-bottom:0}.ellipsis{max-width:240px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.totalText{color:var(--antd-pagination-total-text)}.total{font-weight:normal;color:var(--antd-pagination-total-strong-text)}",""]);const l=r.toString()}}]);
|
|
2
|
+
//# sourceMappingURL=9079.7b709949.js.map
|