@kne-components/components-core 0.1.10 → 0.1.11
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/build/asset-manifest.json +150 -148
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1272.3ef7608f.chunk.css +2 -0
- package/build/static/css/1272.3ef7608f.chunk.css.map +1 -0
- package/build/static/css/140.b4ed2023.chunk.css +2 -0
- package/build/static/css/{140.c607355f.chunk.css.map → 140.b4ed2023.chunk.css.map} +1 -1
- package/build/static/css/{2048.b92b9ff2.chunk.css → 164.0917747c.chunk.css} +1 -1
- package/build/static/css/164.0917747c.chunk.css.map +1 -0
- package/build/static/css/1736.793c1231.chunk.css +2 -0
- package/build/static/css/1736.793c1231.chunk.css.map +1 -0
- package/build/static/css/2048.1b8f77fa.chunk.css +2 -0
- package/build/static/css/2048.1b8f77fa.chunk.css.map +1 -0
- package/build/static/css/{2072.b92b9ff2.chunk.css → 2072.12f64235.chunk.css} +1 -1
- package/build/static/css/{2048.b92b9ff2.chunk.css.map → 2072.12f64235.chunk.css.map} +1 -1
- package/build/static/css/2720.1c94080d.chunk.css +2 -0
- package/build/static/css/2720.1c94080d.chunk.css.map +1 -0
- package/build/static/css/2832.36d02973.chunk.css +2 -0
- package/build/static/css/{2832.557ca1d2.chunk.css.map → 2832.36d02973.chunk.css.map} +1 -1
- package/build/static/css/3056.d092ea48.chunk.css +2 -0
- package/build/static/css/3056.d092ea48.chunk.css.map +1 -0
- package/build/static/css/3132.13c6ef04.chunk.css +2 -0
- package/build/static/css/{3132.a766c9c7.chunk.css.map → 3132.13c6ef04.chunk.css.map} +1 -1
- package/build/static/css/3564.6b8090ff.chunk.css +2 -0
- package/build/static/css/3564.6b8090ff.chunk.css.map +1 -0
- package/build/static/css/3849.d736f221.chunk.css +2 -0
- package/build/static/css/{3849.92b269db.chunk.css.map → 3849.d736f221.chunk.css.map} +1 -1
- package/build/static/css/3996.f504002b.chunk.css +2 -0
- package/build/static/css/{3996.4b4e16f5.chunk.css.map → 3996.f504002b.chunk.css.map} +1 -1
- package/build/static/css/{1736.d16b0a47.chunk.css → 4120.d317e629.chunk.css} +2 -2
- package/build/static/css/4120.d317e629.chunk.css.map +1 -0
- package/build/static/css/4900.d118bbf2.chunk.css +2 -0
- package/build/static/css/{4900.2548efe5.chunk.css.map → 4900.d118bbf2.chunk.css.map} +1 -1
- package/build/static/css/4952.0917747c.chunk.css +2 -0
- package/build/static/css/4952.0917747c.chunk.css.map +1 -0
- package/build/static/css/5060.4d89b6ca.chunk.css +12 -0
- package/build/static/css/5060.4d89b6ca.chunk.css.map +1 -0
- package/build/static/css/5128.630808d6.chunk.css +2 -0
- package/build/static/css/5128.630808d6.chunk.css.map +1 -0
- package/build/static/css/5696.78b6deb7.chunk.css +2 -0
- package/build/static/css/5696.78b6deb7.chunk.css.map +1 -0
- package/build/static/css/6096.85feb121.chunk.css +2 -0
- package/build/static/css/6096.85feb121.chunk.css.map +1 -0
- package/build/static/css/6280.0c7f0e09.chunk.css +2 -0
- package/build/static/css/{6280.70f7077b.chunk.css.map → 6280.0c7f0e09.chunk.css.map} +1 -1
- package/build/static/css/6548.44349d26.chunk.css +2 -0
- package/build/static/css/6548.44349d26.chunk.css.map +1 -0
- package/build/static/css/6840.33230f96.chunk.css +2 -0
- package/build/static/css/6840.33230f96.chunk.css.map +1 -0
- package/build/static/css/7620.9a4705c6.chunk.css +2 -0
- package/build/static/css/7620.9a4705c6.chunk.css.map +1 -0
- package/build/static/css/7736.4f6bbc21.chunk.css +2 -0
- package/build/static/css/{7736.537cdf89.chunk.css.map → 7736.4f6bbc21.chunk.css.map} +1 -1
- package/build/static/css/7780.4a141c7f.chunk.css +2 -0
- package/build/static/css/{7780.c4c90cf5.chunk.css.map → 7780.4a141c7f.chunk.css.map} +1 -1
- package/build/static/css/7808.1b1d71cc.chunk.css +2 -0
- package/build/static/css/7808.1b1d71cc.chunk.css.map +1 -0
- package/build/static/css/8192.4a1d82ae.chunk.css +2 -0
- package/build/static/css/8192.4a1d82ae.chunk.css.map +1 -0
- package/build/static/css/8666.9982107b.chunk.css +2 -0
- package/build/static/css/8666.9982107b.chunk.css.map +1 -0
- package/build/static/css/876.23364c7b.chunk.css +2 -0
- package/build/static/css/{876.111db31b.chunk.css.map → 876.23364c7b.chunk.css.map} +1 -1
- package/build/static/css/884.b71657e9.chunk.css +2 -0
- package/build/static/css/884.b71657e9.chunk.css.map +1 -0
- package/build/static/css/9424.0917747c.chunk.css +2 -0
- package/build/static/css/9424.0917747c.chunk.css.map +1 -0
- package/build/static/css/9813.a03395fc.chunk.css +2 -0
- package/build/static/css/9813.a03395fc.chunk.css.map +1 -0
- package/build/static/js/1272.51fb1f3b.chunk.js +2 -0
- package/build/static/js/1272.51fb1f3b.chunk.js.map +1 -0
- package/build/static/js/{6096.962a9877.chunk.js → 1336.43e5cbe2.chunk.js} +2 -2
- package/build/static/js/{3716.61f9132c.chunk.js.map → 1336.43e5cbe2.chunk.js.map} +1 -1
- package/build/static/js/140.fd3ca83e.chunk.js +2 -0
- package/build/static/js/{140.bca21e58.chunk.js.map → 140.fd3ca83e.chunk.js.map} +1 -1
- package/build/static/js/164.e6c5158d.chunk.js +2 -0
- package/build/static/js/164.e6c5158d.chunk.js.map +1 -0
- package/build/static/js/1736.6774ef51.chunk.js +2 -0
- package/build/static/js/{1736.e29a0f5b.chunk.js.map → 1736.6774ef51.chunk.js.map} +1 -1
- package/build/static/js/2048.2d7c438c.chunk.js +2 -0
- package/build/static/js/{2048.db73515b.chunk.js.map → 2048.2d7c438c.chunk.js.map} +1 -1
- package/build/static/js/2072.357f65f1.chunk.js +2 -0
- package/build/static/js/{2072.b2432d79.chunk.js.map → 2072.357f65f1.chunk.js.map} +1 -1
- package/build/static/js/{2832.592df6b6.chunk.js → 2832.78a7cef0.chunk.js} +3 -3
- package/build/static/js/{2832.592df6b6.chunk.js.map → 2832.78a7cef0.chunk.js.map} +1 -1
- package/build/static/js/3056.e74507be.chunk.js +2 -0
- package/build/static/js/{9960.8ac44b5c.chunk.js.map → 3056.e74507be.chunk.js.map} +1 -1
- package/build/static/js/3132.95cae2b5.chunk.js +3 -0
- package/build/static/js/{3132.f35fbc4d.chunk.js.map → 3132.95cae2b5.chunk.js.map} +1 -1
- package/build/static/js/3564.ac2ebcb4.chunk.js +2 -0
- package/build/static/js/3564.ac2ebcb4.chunk.js.map +1 -0
- package/build/static/js/{3716.61f9132c.chunk.js → 3716.c389be22.chunk.js} +2 -2
- package/build/static/js/{6096.962a9877.chunk.js.map → 3716.c389be22.chunk.js.map} +1 -1
- package/build/static/js/{3849.3a13999b.chunk.js → 3849.c1935834.chunk.js} +3 -3
- package/build/static/js/{3849.3a13999b.chunk.js.map → 3849.c1935834.chunk.js.map} +1 -1
- package/build/static/js/3996.ace4e3b3.chunk.js +3 -0
- package/build/static/js/{3996.03bd22d5.chunk.js.map → 3996.ace4e3b3.chunk.js.map} +1 -1
- package/build/static/js/{6344.cb91a052.chunk.js → 4120.5a36869a.chunk.js} +2 -2
- package/build/static/js/{6344.cb91a052.chunk.js.map → 4120.5a36869a.chunk.js.map} +1 -1
- package/build/static/js/{1264.465cfe03.chunk.js → 4448.60eb185d.chunk.js} +2 -2
- package/build/static/js/{1264.465cfe03.chunk.js.map → 4448.60eb185d.chunk.js.map} +1 -1
- package/build/static/js/4856.740491df.chunk.js +2 -0
- package/build/static/js/{4856.f34a6ca9.chunk.js.map → 4856.740491df.chunk.js.map} +1 -1
- package/build/static/js/4900.034d7f02.chunk.js +3 -0
- package/build/static/js/{4900.f47a361f.chunk.js.map → 4900.034d7f02.chunk.js.map} +1 -1
- package/build/static/js/{2468.5d7de23f.chunk.js → 4952.f18c8269.chunk.js} +2 -2
- package/build/static/js/{2468.5d7de23f.chunk.js.map → 4952.f18c8269.chunk.js.map} +1 -1
- package/build/static/js/5060.00e3d563.chunk.js +2 -0
- package/build/static/js/5060.00e3d563.chunk.js.map +1 -0
- package/build/static/js/5128.8d837487.chunk.js +2 -0
- package/build/static/js/{2764.c72af14c.chunk.js.map → 5128.8d837487.chunk.js.map} +1 -1
- package/build/static/js/5696.3902bd35.chunk.js +2 -0
- package/build/static/js/5696.3902bd35.chunk.js.map +1 -0
- package/build/static/js/6096.194bf659.chunk.js +2 -0
- package/build/static/js/{3020.ff2aa436.chunk.js.map → 6096.194bf659.chunk.js.map} +1 -1
- package/build/static/js/6280.6d50621f.chunk.js +3 -0
- package/build/static/js/{6280.d1677b77.chunk.js.map → 6280.6d50621f.chunk.js.map} +1 -1
- package/build/static/js/6548.835c55cc.chunk.js +2 -0
- package/build/static/js/{8680.a811e62f.chunk.js.map → 6548.835c55cc.chunk.js.map} +1 -1
- package/build/static/js/6840.504f70e9.chunk.js +2 -0
- package/build/static/js/6840.504f70e9.chunk.js.map +1 -0
- package/build/static/js/7292.f6689b5c.chunk.js +2 -0
- package/build/static/js/{7292.3d2f2a07.chunk.js.map → 7292.f6689b5c.chunk.js.map} +1 -1
- package/build/static/js/{7384.4599c1e6.chunk.js → 7384.09374d34.chunk.js} +2 -2
- package/build/static/js/{7384.4599c1e6.chunk.js.map → 7384.09374d34.chunk.js.map} +1 -1
- package/build/static/js/7620.6d6295c7.chunk.js +2 -0
- package/build/static/js/7620.6d6295c7.chunk.js.map +1 -0
- package/build/static/js/7624.2eab2480.chunk.js +2 -0
- package/build/static/js/7624.2eab2480.chunk.js.map +1 -0
- package/build/static/js/7736.e5f75329.chunk.js +3 -0
- package/build/static/js/{7736.13d309ec.chunk.js.map → 7736.e5f75329.chunk.js.map} +1 -1
- package/build/static/js/7780.97d8e18d.chunk.js +3 -0
- package/build/static/js/{7780.211b2678.chunk.js.map → 7780.97d8e18d.chunk.js.map} +1 -1
- package/build/static/js/7808.ca8747ee.chunk.js +2 -0
- package/build/static/js/{7304.7fa142e1.chunk.js.map → 7808.ca8747ee.chunk.js.map} +1 -1
- package/build/static/js/{7896.7cd81eba.chunk.js → 7896.aaa4d234.chunk.js} +3 -3
- package/build/static/js/{7896.7cd81eba.chunk.js.map → 7896.aaa4d234.chunk.js.map} +1 -1
- package/build/static/js/8192.592d0e00.chunk.js +2 -0
- package/build/static/js/8192.592d0e00.chunk.js.map +1 -0
- package/build/static/js/8666.8abeceb9.chunk.js +2 -0
- package/build/static/js/8666.8abeceb9.chunk.js.map +1 -0
- package/build/static/js/876.3886149f.chunk.js +2 -0
- package/build/static/js/{876.b6e22a3d.chunk.js.map → 876.3886149f.chunk.js.map} +1 -1
- package/build/static/js/884.31ea03db.chunk.js +2 -0
- package/build/static/js/{884.1a59b343.chunk.js.map → 884.31ea03db.chunk.js.map} +1 -1
- package/build/static/js/9188.13ccc33c.chunk.js +2 -0
- package/build/static/js/9188.13ccc33c.chunk.js.map +1 -0
- package/build/static/js/{4684.599fc524.chunk.js → 9813.24dde48f.chunk.js} +2 -2
- package/build/static/js/{4684.599fc524.chunk.js.map → 9813.24dde48f.chunk.js.map} +1 -1
- package/build/static/js/main.94d922b3.js +2 -0
- package/build/static/js/main.94d922b3.js.map +1 -0
- package/package.json +2 -2
- package/build/static/css/1264.07d0ae29.chunk.css +0 -2
- package/build/static/css/1264.07d0ae29.chunk.css.map +0 -1
- package/build/static/css/140.c607355f.chunk.css +0 -2
- package/build/static/css/1736.d16b0a47.chunk.css.map +0 -1
- package/build/static/css/2072.b92b9ff2.chunk.css.map +0 -1
- package/build/static/css/2468.d07af9fb.chunk.css +0 -2
- package/build/static/css/2468.d07af9fb.chunk.css.map +0 -1
- package/build/static/css/2764.40342f1e.chunk.css +0 -2
- package/build/static/css/2764.40342f1e.chunk.css.map +0 -1
- package/build/static/css/2832.557ca1d2.chunk.css +0 -2
- package/build/static/css/2896.e28a285f.chunk.css +0 -2
- package/build/static/css/2896.e28a285f.chunk.css.map +0 -1
- package/build/static/css/3020.030c85b8.chunk.css +0 -2
- package/build/static/css/3020.030c85b8.chunk.css.map +0 -1
- package/build/static/css/3132.a766c9c7.chunk.css +0 -2
- package/build/static/css/3849.92b269db.chunk.css +0 -2
- package/build/static/css/3944.c1bec9ee.chunk.css +0 -2
- package/build/static/css/3944.c1bec9ee.chunk.css.map +0 -1
- package/build/static/css/3996.4b4e16f5.chunk.css +0 -2
- package/build/static/css/4560.94497645.chunk.css +0 -2
- package/build/static/css/4560.94497645.chunk.css.map +0 -1
- package/build/static/css/4684.cd83c347.chunk.css +0 -2
- package/build/static/css/4684.cd83c347.chunk.css.map +0 -1
- package/build/static/css/4900.2548efe5.chunk.css +0 -2
- package/build/static/css/6280.70f7077b.chunk.css +0 -2
- package/build/static/css/6296.06328958.chunk.css +0 -2
- package/build/static/css/6296.06328958.chunk.css.map +0 -1
- package/build/static/css/6344.0924ae87.chunk.css +0 -2
- package/build/static/css/6344.0924ae87.chunk.css.map +0 -1
- package/build/static/css/6524.d07af9fb.chunk.css +0 -2
- package/build/static/css/6524.d07af9fb.chunk.css.map +0 -1
- package/build/static/css/6612.2063787e.chunk.css +0 -2
- package/build/static/css/6612.2063787e.chunk.css.map +0 -1
- package/build/static/css/6952.75933d25.chunk.css +0 -2
- package/build/static/css/6952.75933d25.chunk.css.map +0 -1
- package/build/static/css/7008.b8ab2b27.chunk.css +0 -12
- package/build/static/css/7008.b8ab2b27.chunk.css.map +0 -1
- package/build/static/css/704.7fa5ec7a.chunk.css +0 -2
- package/build/static/css/704.7fa5ec7a.chunk.css.map +0 -1
- package/build/static/css/7244.cba94673.chunk.css +0 -2
- package/build/static/css/7244.cba94673.chunk.css.map +0 -1
- package/build/static/css/7304.7c3e0e42.chunk.css +0 -2
- package/build/static/css/7304.7c3e0e42.chunk.css.map +0 -1
- package/build/static/css/7668.b5bb12de.chunk.css +0 -2
- package/build/static/css/7668.b5bb12de.chunk.css.map +0 -1
- package/build/static/css/7736.537cdf89.chunk.css +0 -2
- package/build/static/css/7780.c4c90cf5.chunk.css +0 -2
- package/build/static/css/8680.16df588f.chunk.css +0 -2
- package/build/static/css/8680.16df588f.chunk.css.map +0 -1
- package/build/static/css/8696.b76ec1cc.chunk.css +0 -2
- package/build/static/css/8696.b76ec1cc.chunk.css.map +0 -1
- package/build/static/css/876.111db31b.chunk.css +0 -2
- package/build/static/css/9960.a5189ec3.chunk.css +0 -2
- package/build/static/css/9960.a5189ec3.chunk.css.map +0 -1
- package/build/static/js/140.bca21e58.chunk.js +0 -2
- package/build/static/js/1736.e29a0f5b.chunk.js +0 -2
- package/build/static/js/2048.db73515b.chunk.js +0 -2
- package/build/static/js/2072.b2432d79.chunk.js +0 -2
- package/build/static/js/2764.c72af14c.chunk.js +0 -2
- package/build/static/js/2896.ca9aef73.chunk.js +0 -2
- package/build/static/js/2896.ca9aef73.chunk.js.map +0 -1
- package/build/static/js/3020.ff2aa436.chunk.js +0 -2
- package/build/static/js/3132.f35fbc4d.chunk.js +0 -3
- package/build/static/js/3944.f0729bf3.chunk.js +0 -2
- package/build/static/js/3944.f0729bf3.chunk.js.map +0 -1
- package/build/static/js/3996.03bd22d5.chunk.js +0 -3
- package/build/static/js/4560.bd65eadf.chunk.js +0 -2
- package/build/static/js/4560.bd65eadf.chunk.js.map +0 -1
- package/build/static/js/4856.f34a6ca9.chunk.js +0 -2
- package/build/static/js/4900.f47a361f.chunk.js +0 -3
- package/build/static/js/6280.d1677b77.chunk.js +0 -3
- package/build/static/js/6524.79124ed0.chunk.js +0 -2
- package/build/static/js/6524.79124ed0.chunk.js.map +0 -1
- package/build/static/js/6612.cdac758d.chunk.js +0 -2
- package/build/static/js/6612.cdac758d.chunk.js.map +0 -1
- package/build/static/js/7008.83ef78cd.chunk.js +0 -2
- package/build/static/js/7008.83ef78cd.chunk.js.map +0 -1
- package/build/static/js/704.8392342f.chunk.js +0 -2
- package/build/static/js/704.8392342f.chunk.js.map +0 -1
- package/build/static/js/7244.c99d9a82.chunk.js +0 -2
- package/build/static/js/7244.c99d9a82.chunk.js.map +0 -1
- package/build/static/js/7292.3d2f2a07.chunk.js +0 -2
- package/build/static/js/7304.7fa142e1.chunk.js +0 -2
- package/build/static/js/7668.4e8732da.chunk.js +0 -2
- package/build/static/js/7668.4e8732da.chunk.js.map +0 -1
- package/build/static/js/7736.13d309ec.chunk.js +0 -3
- package/build/static/js/7780.211b2678.chunk.js +0 -3
- package/build/static/js/8680.a811e62f.chunk.js +0 -2
- package/build/static/js/876.b6e22a3d.chunk.js +0 -2
- package/build/static/js/884.1a59b343.chunk.js +0 -2
- package/build/static/js/9960.8ac44b5c.chunk.js +0 -2
- package/build/static/js/main.eb518506.js +0 -2
- package/build/static/js/main.eb518506.js.map +0 -1
- /package/build/static/js/{2832.592df6b6.chunk.js.LICENSE.txt → 2832.78a7cef0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3132.f35fbc4d.chunk.js.LICENSE.txt → 3132.95cae2b5.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3849.3a13999b.chunk.js.LICENSE.txt → 3849.c1935834.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3996.03bd22d5.chunk.js.LICENSE.txt → 3996.ace4e3b3.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4900.f47a361f.chunk.js.LICENSE.txt → 4900.034d7f02.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6280.d1677b77.chunk.js.LICENSE.txt → 6280.6d50621f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7736.13d309ec.chunk.js.LICENSE.txt → 7736.e5f75329.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7780.211b2678.chunk.js.LICENSE.txt → 7780.97d8e18d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7896.7cd81eba.chunk.js.LICENSE.txt → 7896.aaa4d234.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3716,
|
|
2
|
-
//# sourceMappingURL=3716.
|
|
1
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3716,1336],{16096:(e,t,n)=>{var o=n(2676).default,r=n(87840),s=n(90628),l=n(46964),i=n(10467);function a(e){return e&&e.__esModule?e.default:e}function c(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function p(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e){e.forEach((e=>p(e.element)))}function u(e){e.forEach((e=>{!function(e,t,n){const o=e.children[n]||null;e.insertBefore(t,o)}(e.parentElement,e.element,e.oldIndex)}))}function b(e,t){const n=x(e),o={parentElement:e.from};let r=[];switch(n){case"normal":r=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":r=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...o},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...o}];break;case"multidrag":r=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...o})))}const s=function(e,t){const n=e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex));return n}(r,t);return s}function h(e,t){return m(e,f(e,t))}function f(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function m(e,t,n,o){const r=[...t];return e.forEach((e=>{const t=o&&n&&o(e.item,n);r.splice(e.newIndex,0,t||e.item)})),r}function x(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function g(e){const{list:t,setList:n,children:o,tag:r,style:s,className:l,clone:i,onAdd:a,onChange:c,onChoose:p,onClone:d,onEnd:u,onFilter:b,onRemove:h,onSort:f,onStart:m,onUnchoose:x,onUpdate:g,onMove:v,onSpill:I,onSelect:w,onDeselect:O,...S}=e;return S}c(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),c(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),c(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),c(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),c(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),c(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),c(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),c(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),c(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),c(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),c(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),c(e.exports,"ReactSortable",(()=>I));const v={dragging:null};class I extends l.Component{constructor(e){super(e),this.ref=(0,l.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,v),a(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();a(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:o}=this.props,r={style:t,className:n,id:o},s=e&&null!==e?e:"div";return(0,l.createElement)(s,{ref:this.ref,...r},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:o="sortable-chosen",dragClass:r="sortable-drag",fallbackClass:i="sortable-falback",ghostClass:c="sortable-ghost",swapClass:p="sortable-swap-highlight",filter:d="sortable-filter",list:u}=this.props;if(!e||null==e)return null;const b=t||"data-id";return l.Children.map(e,((e,t)=>{if(void 0===e)return;const r=u[t]||{},{className:i}=e.props,c="string"===typeof d&&{[d.replace(".","")]:!!r.filtered},p=a(s)(i,{[n]:r.selected,[o]:r.chosen,...c});return(0,l.cloneElement)(e,{[b]:e.key,className:p})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=g(this.props);["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t)));return{...e,onMove:(e,t)=>{const{onMove:n}=this.props,o=e.willInsertAfter||-1;if(!n)return o;const r=n(e,t,this.sortable,v);return"undefined"!==typeof r&&r}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,v)}onAdd(e){const{list:t,setList:n,clone:o}=this.props,r=b(e,[...v.dragging.props.list]);d(r);n(m(r,t,e,o).map((e=>Object.assign(e,{selected:!1}))),this.sortable,v)}onRemove(e){const{list:t,setList:n}=this.props,o=x(e),r=b(e,t);u(r);let s=[...t];if("clone"!==e.pullMode)s=f(r,s);else{let t=r;switch(o){case"multidrag":t=r.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=r.map((t=>({...t,element:e.clone})));break;default:a(i)(!0,'mode "'.concat(o,'" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "').concat(o,'" plugin'))}d(t),r.forEach((t=>{const n=t.oldIndex,o=this.props.clone(t.item,e);s.splice(n,1,o)}))}s=s.map((e=>Object.assign(e,{selected:!1}))),n(s,this.sortable,v)}onUpdate(e){const{list:t,setList:n}=this.props,o=b(e,t);d(o),u(o);return n(h(o,t),this.sortable,v)}onStart(){v.dragging=this}onEnd(){v.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(t,{chosen:!0})),o})),this.sortable,v)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(o,{chosen:!1})),o})),this.sortable,v)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&p(e.item)}onSelect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log('"'.concat(e.type,'" had indice of "').concat(t.index,"\", which is probably -1 and doesn't usually happen here.")),void console.log(e);o[n].selected=!0})),n(o,this.sortable,v)}onDeselect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(o[t].selected=!0)})),n(o,this.sortable,v)}}o(I,"defaultProps",{clone:e=>e});var w,O;w=e.exports,O={},Object.keys(O).forEach((function(e){"default"===e||"__esModule"===e||w.hasOwnProperty(e)||Object.defineProperty(w,e,{enumerable:!0,get:function(){return O[e]}})}))},10467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=!0,r="Invariant failed";function s(e,t){if(!e){if(o)throw new Error(r);var n="function"===typeof t?t():t;throw new Error(n?r+": "+n:r)}}},2676:(e,t,n)=>{var o=n(35216);e.exports=function(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},26776:(e,t,n)=>{var o=n(59848).default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},35216:(e,t,n)=>{var o=n(59848).default,r=n(26776);e.exports=function(e){var t=r(e,"string");return"symbol"==o(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},59848:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
|
|
2
|
+
//# sourceMappingURL=3716.c389be22.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/6096.962a9877.chunk.js","mappings":"yVASO,SAASA,EAAWC,GACE,OAAvBA,EAAKC,eAAwBD,EAAKC,cAAcC,YAAYF,E,CA6B3D,SAASG,EACdC,GAEAA,EAAQC,SAASC,GAASP,EAAWO,EAAKC,U,CAGrC,SAASC,EACdJ,GAEAA,EAAQC,SAASC,KA7BZ,SACLG,EACAC,EACAC,GAEA,MAAMC,EAAWH,EAAOI,SAASF,IAAU,KAC3CF,EAAOK,aAAaJ,EAAUE,E,CAwB5BG,CAAaT,EAAKL,cAAeK,EAAKC,QAASD,EAAKU,SAAS,G,CAI1D,SAASC,EACdC,EACAC,GAEA,MAAMC,EAAOC,EAAQH,GACfjB,EAAgB,CAAEA,cAAeiB,EAAII,MAC3C,IAAIC,EAAS,GACb,OAAQH,GACN,IAAK,SAQHG,EAAS,CANI,CACXhB,QAASW,EAAIM,KACbC,SAAUP,EAAIO,SACdT,SAAUE,EAAIF,SACdf,cAAeiB,EAAII,OAGrB,MACF,IAAK,OAaHC,EAAS,CAZW,CAClBhB,QAASW,EAAIM,KACbR,SAAUE,EAAIF,SACdS,SAAUP,EAAIO,YACXxB,GAEe,CAClBM,QAASW,EAAIQ,SACbV,SAAUE,EAAIO,SACdA,SAAUP,EAAIF,YACXf,IAGL,MACF,IAAK,YACHsB,EAASL,EAAIS,YAAYC,KAAW,CAACtB,EAAMK,KAAU,CACnDJ,QAASD,EAAKuB,iBACdb,SAAUV,EAAKK,MACfc,SAAUP,EAAIY,YAAYnB,GAAOA,SAC9BV,MAMT,MAAMG,E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AAGC,GAAK,WACvB,GAAI,UAAYF,EAAQM,GAAI,OAAOA,EACnC,MAAM,IAAIE,UAAU,+CACtB,CACA,OAAQ,WAAaN,EAAIO,OAASC,QAAQT,EAC5C,EAC8BV,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,O,kBCXnG,IAAIQ,EAAU,iBACVK,EAAc,EAAQ,OAK1Bd,EAAOC,QAJP,SAAuBS,GACrB,IAAIK,EAAID,EAAYJ,EAAG,UACvB,MAAO,UAAYD,EAAQM,GAAKA,EAAIG,OAAOH,EAC7C,EACgCf,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,O,YCNrG,SAASQ,EAAQW,GAGf,OAAQpB,EAAOC,QAAUQ,EAAU,mBAAqBI,QAAU,iBAAmBA,OAAOQ,SAAW,SAAUD,GAC/G,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBP,QAAUO,EAAErG,cAAgB8F,QAAUO,IAAMP,OAAOS,UAAY,gBAAkBF,CACpH,EAAGpB,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,QAAUQ,EAAQW,EAC5F,CACApB,EAAOC,QAAUQ,EAAST,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,O","sources":["../node_modules/react-sortablejs/dist/src/util.ts","../node_modules/react-sortablejs/dist/src/react-sortable.tsx","../node_modules/react-sortablejs/node_modules/tiny-invariant/dist/tiny-invariant.esm.js","../node_modules/@babel/runtime/helpers/defineProperty.js","../node_modules/@babel/runtime/helpers/toPrimitive.js","../node_modules/@babel/runtime/helpers/toPropertyKey.js","../node_modules/@babel/runtime/helpers/typeof.js"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport Sortable, { Options } from \"sortablejs\";\nimport { MultiDragEvent } from \"./react-sortable\";\nimport { AllMethodNames, ItemInterface, ReactSortableProps } from \"./types\";\n\n/**\n * Removes the `node` from the DOM\n * @param node\n */\nexport function removeNode(node: HTMLElement): void {\n if (node.parentElement !== null) node.parentElement.removeChild(node);\n}\n\n/**\n * Inserts the `newChild` node at the given index in a parent\n * @param parent The parent HTML Element.\n * @param newChild A HTML eement to add as a child of the parent.\n * @param index index of the parent to place the new child in.\n */\nexport function insertNodeAt(\n parent: HTMLElement,\n newChild: HTMLElement,\n index: number\n): void {\n const refChild = parent.children[index] || null;\n parent.insertBefore(newChild, refChild);\n}\n\n// @todo - create a dom handler function for arrays or not at all\n\n/** removes stuff from the dom in a nice order */\n// @todo - do I need parenElement?\nexport function handleDOMChanges<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n removeNodes(customs);\n insertNodes(customs);\n}\n\nexport function removeNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => removeNode(curr.element));\n}\n\nexport function insertNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => {\n insertNodeAt(curr.parentElement, curr.element, curr.oldIndex);\n });\n}\n\nexport function createCustoms<T extends ItemInterface>(\n evt: MultiDragEvent,\n list: T[]\n): Normalized<T>[] {\n const mode = getMode(evt);\n const parentElement = { parentElement: evt.from };\n let custom = [];\n switch (mode) {\n case \"normal\":\n /* eslint-disable */\n const item = {\n element: evt.item,\n newIndex: evt.newIndex!,\n oldIndex: evt.oldIndex!,\n parentElement: evt.from,\n };\n custom = [item];\n break;\n case \"swap\":\n const drag: Input = {\n element: evt.item,\n oldIndex: evt.oldIndex!,\n newIndex: evt.newIndex!,\n ...parentElement,\n };\n const swap: Input = {\n element: evt.swapItem!,\n oldIndex: evt.newIndex!,\n newIndex: evt.oldIndex!,\n ...parentElement,\n };\n custom = [drag, swap];\n break;\n case \"multidrag\":\n custom = evt.oldIndicies.map<Input>((curr, index) => ({\n element: curr.multiDragElement,\n oldIndex: curr.index,\n newIndex: evt.newIndicies[index].index,\n ...parentElement,\n }));\n break;\n }\n /* eslint-enable */\n\n const customs = createNormalized(custom, list);\n return customs;\n}\n\n/** moves items form old index to new index without breaking anything ideally. */\nexport function handleStateChanges<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const a = handleStateRemove(normalized, list);\n const b = handleStateAdd(normalized, a);\n return b;\n}\n\nexport function handleStateRemove<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const newList = [...list];\n normalized\n .concat()\n .reverse()\n .forEach((curr) => newList.splice(curr.oldIndex, 1));\n return newList;\n}\n\nexport function handleStateAdd<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[],\n evt?: Sortable.SortableEvent,\n clone?: ((currentItem: T, evt: Sortable.SortableEvent) => T) | undefined\n): T[] {\n const newList = [...list];\n normalized.forEach((curr) => {\n const newItem = clone && evt && clone(curr.item, evt);\n newList.splice(curr.newIndex, 0, newItem || curr.item);\n });\n return newList;\n}\n\nexport function getMode(evt: MultiDragEvent): \"multidrag\" | \"swap\" | \"normal\" {\n if (evt.oldIndicies && evt.oldIndicies.length > 0) return \"multidrag\";\n if (evt.swapItem) return \"swap\";\n return \"normal\";\n}\n\nexport function createNormalized<T extends ItemInterface>(\n inputs: Input[],\n list: T[]\n): Normalized<T>[] {\n const normalized = inputs\n .map<Normalized<T>>((curr) => ({ ...curr, item: list[curr.oldIndex] }))\n .sort((a, b) => a.oldIndex - b.oldIndex);\n return normalized;\n}\n\nexport interface Input {\n parentElement: HTMLElement;\n element: HTMLElement;\n oldIndex: number;\n newIndex: number;\n}\n\nexport interface Normalized<T> extends Input {\n item: T;\n}\n\n/**\n * Removes the following group of properties from `props`,\n * leaving only `Sortable.Options` without any `on` methods.\n * @param props `ReactSortable.Props`\n */\nexport function destructurePropsForOptions<T>(\n props: PropsWithChildren<ReactSortableProps<T>>\n): Exclude<Options, AllMethodNames> {\n /* eslint-disable */\n const {\n // react sortable props\n list,\n setList,\n children,\n tag,\n style,\n className,\n clone,\n // sortable options that have methods we want to overwrite\n onAdd,\n onChange,\n onChoose,\n onClone,\n onEnd,\n onFilter,\n onRemove,\n onSort,\n onStart,\n onUnchoose,\n onUpdate,\n onMove,\n onSpill,\n onSelect,\n onDeselect,\n ...options\n } = props;\n /* eslint-enable */\n return options;\n}\n\n/**\n * Construct a type with the properties of T except for those in type K.\n * Including this allows for backwards compatibility with earlier versions of TS.\n */\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n","import classNames from \"classnames\";\nimport {\n Children,\n cloneElement,\n Component,\n createElement,\n createRef,\n ReactElement,\n RefObject,\n} from \"react\";\nimport Sortable, { MoveEvent, Options, SortableEvent } from \"sortablejs\";\nimport invariant from \"tiny-invariant\";\nimport {\n AllMethodsExceptMove,\n HandledMethodNames,\n ItemInterface,\n ReactSortableProps,\n Store,\n UnHandledMethodNames,\n} from \"./types\";\nimport {\n createCustoms,\n destructurePropsForOptions,\n getMode,\n handleStateAdd,\n handleStateChanges,\n handleStateRemove,\n insertNodes,\n removeNode,\n removeNodes,\n} from \"./util\";\n\n/** Holds a global reference for which react element is being dragged */\n// @todo - use context to manage this. How does one use 2 different providers?\nconst store: Store = { dragging: null };\n\nexport class ReactSortable<T extends ItemInterface> extends Component<\n ReactSortableProps<T>\n> {\n /* eslint-disable-next-line */\n static defaultProps: Partial<ReactSortableProps<any>> = {\n clone: (item) => item,\n };\n\n private ref: RefObject<HTMLElement>;\n constructor(props: ReactSortableProps<T>) {\n super(props);\n // @todo forward ref this component\n this.ref = createRef<HTMLElement>();\n\n // make all state false because we can't change sortable unless a mouse gesture is made.\n const newList = [...props.list].map((item) =>\n Object.assign(item, {\n chosen: false,\n selected: false,\n })\n );\n\n props.setList(newList, this.sortable, store);\n invariant(\n //@ts-expect-error: Doesn't exist. Will deprecate soon.\n !props.plugins,\n `\nPlugins prop is no longer supported.\nInstead, mount it with \"Sortable.mount(new MultiDrag())\"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n `\n );\n }\n\n componentDidMount(): void {\n if (this.ref.current === null) return;\n const newOptions = this.makeOptions();\n Sortable.create(this.ref.current, newOptions);\n }\n\n componentDidUpdate(prevProps: ReactSortableProps<T>): void {\n if (prevProps.disabled !== this.props.disabled && this.sortable) {\n this.sortable.option(\"disabled\", this.props.disabled);\n }\n }\n\n render(): JSX.Element {\n const { tag, style, className, id } = this.props;\n const classicProps = { style, className, id };\n\n // if no tag, default to a `div` element.\n const newTag = !tag || tag === null ? \"div\" : tag;\n return createElement(\n newTag,\n {\n // @todo - find a way (perhaps with the callback) to allow AntD components to work\n ref: this.ref,\n ...classicProps,\n },\n this.getChildren()\n );\n }\n\n private getChildren() {\n const {\n children,\n dataIdAttr,\n selectedClass = \"sortable-selected\",\n chosenClass = \"sortable-chosen\",\n /* eslint-disable */\n dragClass = \"sortable-drag\",\n fallbackClass = \"sortable-falback\",\n ghostClass = \"sortable-ghost\",\n swapClass = \"sortable-swap-highlight\",\n /* eslint-enable */\n filter = \"sortable-filter\",\n list,\n } = this.props;\n\n // if no children, don't do anything.\n if (!children || children == null) return null;\n const dataid = dataIdAttr || \"data-id\";\n /* eslint-disable-next-line */\n return Children.map(children as ReactElement<any>[], (child, index) => {\n if (child === undefined) return undefined;\n\n const item = list[index] || {};\n const { className: prevClassName } = child.props;\n\n // @todo - handle the function if avalable. I don't think anyone will be doing this soon.\n const filtered = typeof filter === \"string\" && {\n [filter.replace(\".\", \"\")]: !!item.filtered,\n };\n\n const className = classNames(prevClassName, {\n [selectedClass]: item.selected,\n [chosenClass]: item.chosen,\n ...filtered,\n // [dragClass]: true,\n // [fallbackClass]: true,\n // [ghostClass]: true,\n // [swapClass]: true\n });\n\n return cloneElement(child, {\n [dataid]: child.key,\n className,\n });\n });\n }\n\n /** Appends the `sortable` property to this component */\n private get sortable(): Sortable | null {\n const el = this.ref.current;\n if (el === null) return null;\n const key = Object.keys(el).find((k) => k.includes(\"Sortable\"));\n if (!key) return null;\n //@ts-expect-error: fix me.\n return el[key] as Sortable;\n }\n\n /** Converts all the props from `ReactSortable` into the `options` object that `Sortable.create(el, [options])` can use. */\n makeOptions(): Options {\n const DOMHandlers: HandledMethodNames[] = [\n \"onAdd\",\n \"onChoose\",\n \"onDeselect\",\n \"onEnd\",\n \"onRemove\",\n \"onSelect\",\n \"onSpill\",\n \"onStart\",\n \"onUnchoose\",\n \"onUpdate\",\n ];\n const NonDOMHandlers: UnHandledMethodNames[] = [\n \"onChange\",\n \"onClone\",\n \"onFilter\",\n \"onSort\",\n ];\n const newOptions: Options = destructurePropsForOptions(this.props);\n DOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerPropAndDOM(name))\n );\n NonDOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerProp(name))\n );\n\n /** onMove has 2 arguments and needs to be handled seperately. */\n const onMove = (evt: MoveEvent, originalEvt: Event) => {\n const { onMove } = this.props;\n const defaultValue = evt.willInsertAfter || -1;\n if (!onMove) return defaultValue;\n const result = onMove(evt, originalEvt, this.sortable, store);\n if (typeof result === \"undefined\") return false;\n return result;\n };\n\n return {\n ...newOptions,\n onMove,\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop & an `on[Handler]` ReactSortable method. */\n prepareOnHandlerPropAndDOM(\n evtName: HandledMethodNames\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n // calls state change\n //@ts-expect-error: until @types multidrag item is in\n this[evtName](evt);\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop */\n prepareOnHandlerProp(\n evtName: Exclude<AllMethodsExceptMove, HandledMethodNames>\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n };\n }\n\n /** Calls the `props.on[Handler]` function */\n callOnHandlerProp(evt: SortableEvent, evtName: AllMethodsExceptMove): void {\n const propEvent = this.props[evtName];\n if (propEvent) propEvent(evt, this.sortable, store);\n }\n\n // SORTABLE DOM HANDLING\n\n onAdd(evt: MultiDragEvent): void {\n const { list, setList, clone } = this.props;\n /* eslint-disable-next-line */\n const otherList = [...store.dragging!.props.list];\n const customs = createCustoms(evt, otherList);\n removeNodes(customs);\n\n const newList = handleStateAdd(customs, list, evt, clone).map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onRemove(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const mode = getMode(evt);\n const customs = createCustoms(evt, list);\n insertNodes(customs);\n\n let newList = [...list];\n // remove state if not in clone mode. otherwise, keep.\n if (evt.pullMode !== \"clone\") newList = handleStateRemove(customs, newList);\n // if clone, it doesn't really remove. instead it clones in place.\n // @todo -\n else {\n // switch used to get the clone\n let customClones = customs;\n switch (mode) {\n case \"multidrag\":\n customClones = customs.map((item, index) => ({\n ...item,\n element: evt.clones[index],\n }));\n break;\n case \"normal\":\n customClones = customs.map((item) => ({\n ...item,\n element: evt.clone,\n }));\n break;\n case \"swap\":\n default: {\n invariant(\n true,\n `mode \"${mode}\" cannot clone. Please remove \"props.clone\" from <ReactSortable/> when using the \"${mode}\" plugin`\n );\n }\n }\n removeNodes(customClones);\n\n // replace selected items with cloned items\n customs.forEach((curr) => {\n const index = curr.oldIndex;\n /* eslint-disable-next-line */\n const newItem = this.props.clone!(curr.item, evt);\n newList.splice(index, 1, newItem);\n });\n }\n\n // remove item.selected from list\n newList = newList.map((item: T) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onUpdate(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const customs = createCustoms(evt, list);\n removeNodes(customs);\n insertNodes(customs);\n const newList = handleStateChanges(customs, list);\n return setList(newList, this.sortable, store);\n }\n\n onStart(): void {\n store.dragging = this;\n }\n\n onEnd(): void {\n store.dragging = null;\n }\n\n onChoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(item, {\n chosen: true,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onUnchoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(newItem, {\n chosen: false,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onSpill(evt: SortableEvent): void {\n const { removeOnSpill, revertOnSpill } = this.props;\n if (removeOnSpill && !revertOnSpill) removeNode(evt.item);\n }\n\n onSelect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) {\n console.log(\n `\"${evt.type}\" had indice of \"${curr.index}\", which is probably -1 and doesn't usually happen here.`\n );\n console.log(evt);\n return;\n }\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n\n onDeselect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) return;\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n}\n\n// everything below this point can be removed\n// once @types has been merged. PR submited\ninterface MultiIndices {\n multiDragElement: HTMLElement;\n index: number;\n}\n\nexport interface MultiDragEvent extends SortableEvent {\n // @todo - add this to @types\n clones: HTMLElement[];\n oldIndicies: MultiIndices[];\n newIndicies: MultiIndices[];\n swapItem: HTMLElement | null;\n}\n","var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n var provided = typeof message === 'function' ? message() : message;\n var value = provided ? prefix + \": \" + provided : prefix;\n throw new Error(value);\n}\n\nexport { invariant as default };\n","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _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}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"names":["$eb03e74f8f7db1f3$export$1d0aa160432dfea5","node","parentElement","removeChild","$eb03e74f8f7db1f3$export$77f49a256021c8de","customs","forEach","curr","element","$eb03e74f8f7db1f3$export$a6177d5829f70ebc","parent","newChild","index","refChild","children","insertBefore","$eb03e74f8f7db1f3$export$6d240faa51aa562f","oldIndex","$eb03e74f8f7db1f3$export$4655efe700f887a","evt","list","mode","$eb03e74f8f7db1f3$export$1fc0f6205829e19c","from","custom","item","newIndex","swapItem","oldIndicies","map","multiDragElement","newIndicies","inputs","normalized","sort","a","b","$eb03e74f8f7db1f3$export$bc06a3af7dc65f53","$eb03e74f8f7db1f3$export$c25cf8080bd305ec","$eb03e74f8f7db1f3$export$eca851ee65ae17e4","$eb03e74f8f7db1f3$export$be2da95e6167b0bd","newList","concat","reverse","splice","clone","newItem","length","$eb03e74f8f7db1f3$export$7553c81e62e31b7e","props","setList","tag","style","className","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect","options","$7fe8e3ea572bda7a$var$store","dragging","$7fe8e3ea572bda7a$export$11bbed9ee0012c13","$8zHUo$react","Component","constructor","super","this","ref","createRef","Object","assign","chosen","selected","sortable","$parcel$interopDefault","$8zHUo$tinyinvariant","plugins","componentDidMount","current","newOptions","makeOptions","$8zHUo$sortablejs","create","componentDidUpdate","prevProps","disabled","option","render","id","classicProps","newTag","createElement","getChildren","dataIdAttr","selectedClass","chosenClass","dragClass","fallbackClass","ghostClass","swapClass","filter","dataid","Children","child","undefined","prevClassName","filtered","replace","$8zHUo$classnames","cloneElement","key","el","keys","find","k","includes","name","prepareOnHandlerPropAndDOM","prepareOnHandlerProp","onMove1","originalEvt","defaultValue","willInsertAfter","result","evtName","callOnHandlerProp","propEvent","pullMode","customClones","clones","removeOnSpill","revertOnSpill","console","log","type","_defineProperty","isProduction","process","prefix","invariant","condition","message","Error","provided","toPropertyKey","module","exports","obj","value","defineProperty","enumerable","configurable","writable","__esModule","_typeof","t","r","e","Symbol","toPrimitive","i","call","TypeError","String","Number","o","iterator","prototype"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/3716.c389be22.chunk.js","mappings":"yVASO,SAASA,EAAWC,GACE,OAAvBA,EAAKC,eAAwBD,EAAKC,cAAcC,YAAYF,E,CA6B3D,SAASG,EACdC,GAEAA,EAAQC,SAASC,GAASP,EAAWO,EAAKC,U,CAGrC,SAASC,EAC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pB,EAAOC,QAAUQ,EAAU,mBAAqBI,QAAU,iBAAmBA,OAAOQ,SAAW,SAAUD,GAC/G,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBP,QAAUO,EAAErG,cAAgB8F,QAAUO,IAAMP,OAAOS,UAAY,gBAAkBF,CACpH,EAAGpB,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,QAAUQ,EAAQW,EAC5F,CACApB,EAAOC,QAAUQ,EAAST,EAAOC,QAAQO,YAAa,EAAMR,EAAOC,QAAiB,QAAID,EAAOC,O","sources":["../node_modules/react-sortablejs/dist/src/util.ts","../node_modules/react-sortablejs/dist/src/react-sortable.tsx","../node_modules/react-sortablejs/node_modules/tiny-invariant/dist/tiny-invariant.esm.js","../node_modules/@babel/runtime/helpers/defineProperty.js","../node_modules/@babel/runtime/helpers/toPrimitive.js","../node_modules/@babel/runtime/helpers/toPropertyKey.js","../node_modules/@babel/runtime/helpers/typeof.js"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport Sortable, { Options } from \"sortablejs\";\nimport { MultiDragEvent } from \"./react-sortable\";\nimport { AllMethodNames, ItemInterface, ReactSortableProps } from \"./types\";\n\n/**\n * Removes the `node` from the DOM\n * @param node\n */\nexport function removeNode(node: HTMLElement): void {\n if (node.parentElement !== null) node.parentElement.removeChild(node);\n}\n\n/**\n * Inserts the `newChild` node at the given index in a parent\n * @param parent The parent HTML Element.\n * @param newChild A HTML eement to add as a child of the parent.\n * @param index index of the parent to place the new child in.\n */\nexport function insertNodeAt(\n parent: HTMLElement,\n newChild: HTMLElement,\n index: number\n): void {\n const refChild = parent.children[index] || null;\n parent.insertBefore(newChild, refChild);\n}\n\n// @todo - create a dom handler function for arrays or not at all\n\n/** removes stuff from the dom in a nice order */\n// @todo - do I need parenElement?\nexport function handleDOMChanges<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n removeNodes(customs);\n insertNodes(customs);\n}\n\nexport function removeNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => removeNode(curr.element));\n}\n\nexport function insertNodes<T extends ItemInterface>(\n customs: Normalized<T>[]\n): void {\n customs.forEach((curr) => {\n insertNodeAt(curr.parentElement, curr.element, curr.oldIndex);\n });\n}\n\nexport function createCustoms<T extends ItemInterface>(\n evt: MultiDragEvent,\n list: T[]\n): Normalized<T>[] {\n const mode = getMode(evt);\n const parentElement = { parentElement: evt.from };\n let custom = [];\n switch (mode) {\n case \"normal\":\n /* eslint-disable */\n const item = {\n element: evt.item,\n newIndex: evt.newIndex!,\n oldIndex: evt.oldIndex!,\n parentElement: evt.from,\n };\n custom = [item];\n break;\n case \"swap\":\n const drag: Input = {\n element: evt.item,\n oldIndex: evt.oldIndex!,\n newIndex: evt.newIndex!,\n ...parentElement,\n };\n const swap: Input = {\n element: evt.swapItem!,\n oldIndex: evt.newIndex!,\n newIndex: evt.oldIndex!,\n ...parentElement,\n };\n custom = [drag, swap];\n break;\n case \"multidrag\":\n custom = evt.oldIndicies.map<Input>((curr, index) => ({\n element: curr.multiDragElement,\n oldIndex: curr.index,\n newIndex: evt.newIndicies[index].index,\n ...parentElement,\n }));\n break;\n }\n /* eslint-enable */\n\n const customs = createNormalized(custom, list);\n return customs;\n}\n\n/** moves items form old index to new index without breaking anything ideally. */\nexport function handleStateChanges<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const a = handleStateRemove(normalized, list);\n const b = handleStateAdd(normalized, a);\n return b;\n}\n\nexport function handleStateRemove<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[]\n): T[] {\n const newList = [...list];\n normalized\n .concat()\n .reverse()\n .forEach((curr) => newList.splice(curr.oldIndex, 1));\n return newList;\n}\n\nexport function handleStateAdd<T extends ItemInterface>(\n normalized: Normalized<T>[],\n list: T[],\n evt?: Sortable.SortableEvent,\n clone?: ((currentItem: T, evt: Sortable.SortableEvent) => T) | undefined\n): T[] {\n const newList = [...list];\n normalized.forEach((curr) => {\n const newItem = clone && evt && clone(curr.item, evt);\n newList.splice(curr.newIndex, 0, newItem || curr.item);\n });\n return newList;\n}\n\nexport function getMode(evt: MultiDragEvent): \"multidrag\" | \"swap\" | \"normal\" {\n if (evt.oldIndicies && evt.oldIndicies.length > 0) return \"multidrag\";\n if (evt.swapItem) return \"swap\";\n return \"normal\";\n}\n\nexport function createNormalized<T extends ItemInterface>(\n inputs: Input[],\n list: T[]\n): Normalized<T>[] {\n const normalized = inputs\n .map<Normalized<T>>((curr) => ({ ...curr, item: list[curr.oldIndex] }))\n .sort((a, b) => a.oldIndex - b.oldIndex);\n return normalized;\n}\n\nexport interface Input {\n parentElement: HTMLElement;\n element: HTMLElement;\n oldIndex: number;\n newIndex: number;\n}\n\nexport interface Normalized<T> extends Input {\n item: T;\n}\n\n/**\n * Removes the following group of properties from `props`,\n * leaving only `Sortable.Options` without any `on` methods.\n * @param props `ReactSortable.Props`\n */\nexport function destructurePropsForOptions<T>(\n props: PropsWithChildren<ReactSortableProps<T>>\n): Exclude<Options, AllMethodNames> {\n /* eslint-disable */\n const {\n // react sortable props\n list,\n setList,\n children,\n tag,\n style,\n className,\n clone,\n // sortable options that have methods we want to overwrite\n onAdd,\n onChange,\n onChoose,\n onClone,\n onEnd,\n onFilter,\n onRemove,\n onSort,\n onStart,\n onUnchoose,\n onUpdate,\n onMove,\n onSpill,\n onSelect,\n onDeselect,\n ...options\n } = props;\n /* eslint-enable */\n return options;\n}\n\n/**\n * Construct a type with the properties of T except for those in type K.\n * Including this allows for backwards compatibility with earlier versions of TS.\n */\nexport type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n","import classNames from \"classnames\";\nimport {\n Children,\n cloneElement,\n Component,\n createElement,\n createRef,\n ReactElement,\n RefObject,\n} from \"react\";\nimport Sortable, { MoveEvent, Options, SortableEvent } from \"sortablejs\";\nimport invariant from \"tiny-invariant\";\nimport {\n AllMethodsExceptMove,\n HandledMethodNames,\n ItemInterface,\n ReactSortableProps,\n Store,\n UnHandledMethodNames,\n} from \"./types\";\nimport {\n createCustoms,\n destructurePropsForOptions,\n getMode,\n handleStateAdd,\n handleStateChanges,\n handleStateRemove,\n insertNodes,\n removeNode,\n removeNodes,\n} from \"./util\";\n\n/** Holds a global reference for which react element is being dragged */\n// @todo - use context to manage this. How does one use 2 different providers?\nconst store: Store = { dragging: null };\n\nexport class ReactSortable<T extends ItemInterface> extends Component<\n ReactSortableProps<T>\n> {\n /* eslint-disable-next-line */\n static defaultProps: Partial<ReactSortableProps<any>> = {\n clone: (item) => item,\n };\n\n private ref: RefObject<HTMLElement>;\n constructor(props: ReactSortableProps<T>) {\n super(props);\n // @todo forward ref this component\n this.ref = createRef<HTMLElement>();\n\n // make all state false because we can't change sortable unless a mouse gesture is made.\n const newList = [...props.list].map((item) =>\n Object.assign(item, {\n chosen: false,\n selected: false,\n })\n );\n\n props.setList(newList, this.sortable, store);\n invariant(\n //@ts-expect-error: Doesn't exist. Will deprecate soon.\n !props.plugins,\n `\nPlugins prop is no longer supported.\nInstead, mount it with \"Sortable.mount(new MultiDrag())\"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n `\n );\n }\n\n componentDidMount(): void {\n if (this.ref.current === null) return;\n const newOptions = this.makeOptions();\n Sortable.create(this.ref.current, newOptions);\n }\n\n componentDidUpdate(prevProps: ReactSortableProps<T>): void {\n if (prevProps.disabled !== this.props.disabled && this.sortable) {\n this.sortable.option(\"disabled\", this.props.disabled);\n }\n }\n\n render(): JSX.Element {\n const { tag, style, className, id } = this.props;\n const classicProps = { style, className, id };\n\n // if no tag, default to a `div` element.\n const newTag = !tag || tag === null ? \"div\" : tag;\n return createElement(\n newTag,\n {\n // @todo - find a way (perhaps with the callback) to allow AntD components to work\n ref: this.ref,\n ...classicProps,\n },\n this.getChildren()\n );\n }\n\n private getChildren() {\n const {\n children,\n dataIdAttr,\n selectedClass = \"sortable-selected\",\n chosenClass = \"sortable-chosen\",\n /* eslint-disable */\n dragClass = \"sortable-drag\",\n fallbackClass = \"sortable-falback\",\n ghostClass = \"sortable-ghost\",\n swapClass = \"sortable-swap-highlight\",\n /* eslint-enable */\n filter = \"sortable-filter\",\n list,\n } = this.props;\n\n // if no children, don't do anything.\n if (!children || children == null) return null;\n const dataid = dataIdAttr || \"data-id\";\n /* eslint-disable-next-line */\n return Children.map(children as ReactElement<any>[], (child, index) => {\n if (child === undefined) return undefined;\n\n const item = list[index] || {};\n const { className: prevClassName } = child.props;\n\n // @todo - handle the function if avalable. I don't think anyone will be doing this soon.\n const filtered = typeof filter === \"string\" && {\n [filter.replace(\".\", \"\")]: !!item.filtered,\n };\n\n const className = classNames(prevClassName, {\n [selectedClass]: item.selected,\n [chosenClass]: item.chosen,\n ...filtered,\n // [dragClass]: true,\n // [fallbackClass]: true,\n // [ghostClass]: true,\n // [swapClass]: true\n });\n\n return cloneElement(child, {\n [dataid]: child.key,\n className,\n });\n });\n }\n\n /** Appends the `sortable` property to this component */\n private get sortable(): Sortable | null {\n const el = this.ref.current;\n if (el === null) return null;\n const key = Object.keys(el).find((k) => k.includes(\"Sortable\"));\n if (!key) return null;\n //@ts-expect-error: fix me.\n return el[key] as Sortable;\n }\n\n /** Converts all the props from `ReactSortable` into the `options` object that `Sortable.create(el, [options])` can use. */\n makeOptions(): Options {\n const DOMHandlers: HandledMethodNames[] = [\n \"onAdd\",\n \"onChoose\",\n \"onDeselect\",\n \"onEnd\",\n \"onRemove\",\n \"onSelect\",\n \"onSpill\",\n \"onStart\",\n \"onUnchoose\",\n \"onUpdate\",\n ];\n const NonDOMHandlers: UnHandledMethodNames[] = [\n \"onChange\",\n \"onClone\",\n \"onFilter\",\n \"onSort\",\n ];\n const newOptions: Options = destructurePropsForOptions(this.props);\n DOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerPropAndDOM(name))\n );\n NonDOMHandlers.forEach(\n (name) => (newOptions[name] = this.prepareOnHandlerProp(name))\n );\n\n /** onMove has 2 arguments and needs to be handled seperately. */\n const onMove = (evt: MoveEvent, originalEvt: Event) => {\n const { onMove } = this.props;\n const defaultValue = evt.willInsertAfter || -1;\n if (!onMove) return defaultValue;\n const result = onMove(evt, originalEvt, this.sortable, store);\n if (typeof result === \"undefined\") return false;\n return result;\n };\n\n return {\n ...newOptions,\n onMove,\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop & an `on[Handler]` ReactSortable method. */\n prepareOnHandlerPropAndDOM(\n evtName: HandledMethodNames\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n // calls state change\n //@ts-expect-error: until @types multidrag item is in\n this[evtName](evt);\n };\n }\n\n /** Prepares a method that will be used in the sortable options to call an `on[Handler]` prop */\n prepareOnHandlerProp(\n evtName: Exclude<AllMethodsExceptMove, HandledMethodNames>\n ): (evt: SortableEvent) => void {\n return (evt) => {\n // call the component prop\n this.callOnHandlerProp(evt, evtName);\n };\n }\n\n /** Calls the `props.on[Handler]` function */\n callOnHandlerProp(evt: SortableEvent, evtName: AllMethodsExceptMove): void {\n const propEvent = this.props[evtName];\n if (propEvent) propEvent(evt, this.sortable, store);\n }\n\n // SORTABLE DOM HANDLING\n\n onAdd(evt: MultiDragEvent): void {\n const { list, setList, clone } = this.props;\n /* eslint-disable-next-line */\n const otherList = [...store.dragging!.props.list];\n const customs = createCustoms(evt, otherList);\n removeNodes(customs);\n\n const newList = handleStateAdd(customs, list, evt, clone).map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onRemove(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const mode = getMode(evt);\n const customs = createCustoms(evt, list);\n insertNodes(customs);\n\n let newList = [...list];\n // remove state if not in clone mode. otherwise, keep.\n if (evt.pullMode !== \"clone\") newList = handleStateRemove(customs, newList);\n // if clone, it doesn't really remove. instead it clones in place.\n // @todo -\n else {\n // switch used to get the clone\n let customClones = customs;\n switch (mode) {\n case \"multidrag\":\n customClones = customs.map((item, index) => ({\n ...item,\n element: evt.clones[index],\n }));\n break;\n case \"normal\":\n customClones = customs.map((item) => ({\n ...item,\n element: evt.clone,\n }));\n break;\n case \"swap\":\n default: {\n invariant(\n true,\n `mode \"${mode}\" cannot clone. Please remove \"props.clone\" from <ReactSortable/> when using the \"${mode}\" plugin`\n );\n }\n }\n removeNodes(customClones);\n\n // replace selected items with cloned items\n customs.forEach((curr) => {\n const index = curr.oldIndex;\n /* eslint-disable-next-line */\n const newItem = this.props.clone!(curr.item, evt);\n newList.splice(index, 1, newItem);\n });\n }\n\n // remove item.selected from list\n newList = newList.map((item: T) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n setList(newList, this.sortable, store);\n }\n\n onUpdate(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const customs = createCustoms(evt, list);\n removeNodes(customs);\n insertNodes(customs);\n const newList = handleStateChanges(customs, list);\n return setList(newList, this.sortable, store);\n }\n\n onStart(): void {\n store.dragging = this;\n }\n\n onEnd(): void {\n store.dragging = null;\n }\n\n onChoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(item, {\n chosen: true,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onUnchoose(evt: SortableEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item, index) => {\n let newItem = item;\n if (index === evt.oldIndex) {\n newItem = Object.assign(newItem, {\n chosen: false,\n });\n }\n return newItem;\n });\n setList(newList, this.sortable, store);\n }\n\n onSpill(evt: SortableEvent): void {\n const { removeOnSpill, revertOnSpill } = this.props;\n if (removeOnSpill && !revertOnSpill) removeNode(evt.item);\n }\n\n onSelect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) {\n console.log(\n `\"${evt.type}\" had indice of \"${curr.index}\", which is probably -1 and doesn't usually happen here.`\n );\n console.log(evt);\n return;\n }\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n\n onDeselect(evt: MultiDragEvent): void {\n const { list, setList } = this.props;\n const newList = list.map((item) =>\n Object.assign(item, {\n selected: false,\n })\n );\n evt.newIndicies.forEach((curr) => {\n const index = curr.index;\n if (index === -1) return;\n newList[index].selected = true;\n });\n setList(newList, this.sortable, store);\n }\n}\n\n// everything below this point can be removed\n// once @types has been merged. PR submited\ninterface MultiIndices {\n multiDragElement: HTMLElement;\n index: number;\n}\n\nexport interface MultiDragEvent extends SortableEvent {\n // @todo - add this to @types\n clones: HTMLElement[];\n oldIndicies: MultiIndices[];\n newIndicies: MultiIndices[];\n swapItem: HTMLElement | null;\n}\n","var isProduction = process.env.NODE_ENV === 'production';\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n if (isProduction) {\n throw new Error(prefix);\n }\n var provided = typeof message === 'function' ? message() : message;\n var value = provided ? prefix + \": \" + provided : prefix;\n throw new Error(value);\n}\n\nexport { invariant as default };\n","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _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}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;"],"names":["$eb03e74f8f7db1f3$export$1d0aa160432dfea5","node","parentElement","removeChild","$eb03e74f8f7db1f3$export$77f49a256021c8de","customs","forEach","curr","element","$eb03e74f8f7db1f3$export$a6177d5829f70ebc","parent","newChild","index","refChild","children","insertBefore","$eb03e74f8f7db1f3$export$6d240faa51aa562f","oldIndex","$eb03e74f8f7db1f3$export$4655efe700f887a","evt","list","mode","$eb03e74f8f7db1f3$export$1fc0f6205829e19c","from","custom","item","newIndex","swapItem","oldIndicies","map","multiDragElement","newIndicies","inputs","normalized","sort","a","b","$eb03e74f8f7db1f3$export$bc06a3af7dc65f53","$eb03e74f8f7db1f3$export$c25cf8080bd305ec","$eb03e74f8f7db1f3$export$eca851ee65ae17e4","$eb03e74f8f7db1f3$export$be2da95e6167b0bd","newList","concat","reverse","splice","clone","newItem","length","$eb03e74f8f7db1f3$export$7553c81e62e31b7e","props","setList","tag","style","className","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect","options","$7fe8e3ea572bda7a$var$store","dragging","$7fe8e3ea572bda7a$export$11bbed9ee0012c13","$8zHUo$react","Component","constructor","super","this","ref","createRef","Object","assign","chosen","selected","sortable","$parcel$interopDefault","$8zHUo$tinyinvariant","plugins","componentDidMount","current","newOptions","makeOptions","$8zHUo$sortablejs","create","componentDidUpdate","prevProps","disabled","option","render","id","classicProps","newTag","createElement","getChildren","dataIdAttr","selectedClass","chosenClass","dragClass","fallbackClass","ghostClass","swapClass","filter","dataid","Children","child","undefined","prevClassName","filtered","replace","$8zHUo$classnames","cloneElement","key","el","keys","find","k","includes","name","prepareOnHandlerPropAndDOM","prepareOnHandlerProp","onMove1","originalEvt","defaultValue","willInsertAfter","result","evtName","callOnHandlerProp","propEvent","pullMode","customClones","clones","removeOnSpill","revertOnSpill","console","log","type","_defineProperty","isProduction","process","prefix","invariant","condition","message","Error","provided","toPropertyKey","module","exports","obj","value","defineProperty","enumerable","configurable","writable","__esModule","_typeof","t","r","e","Symbol","toPrimitive","i","call","TypeError","String","Number","o","iterator","prototype"],"sourceRoot":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see 3849.
|
|
2
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3849,5520,2832],{5520:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});r(46964);var n=r(79272),o=r.n(n),s=r(82496);const a=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),i=e=>{let{type:t,colorful:r,className:n,size:i,style:c,prefix:l,...p}=e;const u=((e,t,r)=>"icon-"===t||""===t?(r?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,l,r),h=o()(n,{iconfont:!r,"iconfont--color":r},u),d=Object.assign({},c,i?{fontSize:a(i)}:{});return r?(0,s.jsx)("svg",{...p,"data-testid":"components-core-iconfont",className:h,style:d,children:(0,s.jsx)("use",{xlinkHref:"#".concat(t),style:{pointerEvents:"none"}})}):(0,s.jsx)("i",{...p,"data-testid":"components-core-iconfont",className:h,style:d})};i.defaultProps={colorful:!1,prefix:""};const c=i},63849:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});const n={menu:"style_menu__gvIvn__rgnvX","all-no-start-icon":"style_all-no-start-icon__CA+zR__rgnvX","no-start-icon":"style_no-start-icon__LnC1S__rgnvX","has-children":"style_has-children__m9tce__rgnvX","has-children-node":"style_has-children-node__2bhEB__rgnvX","is-root":"style_is-root__4hhOc__rgnvX",title:"style_title__+Hcar__rgnvX",active:"style_active__WU49K__rgnvX","no-collapse":"style_no-collapse__aIZBM__rgnvX","title-content":"style_title-content__cQXpK__rgnvX",loading:"style_loading__1pU4P__rgnvX"};var o=r(79272),s=r.n(o),a=r(96164),i=r(48428),c=r(92832),l=r(75680),p=r.n(l),u=r(5520),h=r(46964),d=r(92420),_=r.n(d),f=r(84768),y=r(82496);const v=e=>{const t=(0,i.useNavigate)(),{id:r,className:o,label:l,iconType:p,path:h,request:d,onClick:_,isOpen:v,isSelected:g,onOpenChange:x,children:m,fetchOptions:b,depth:O,onLoad:j,allowCollapsed:C}=e,K=Array.isArray(m)&&m.length>0||b,{refresh:k,isLoading:w}=(0,f.useFetch)(Object.assign({},b,{auto:!C&&b,onRequestSuccess:e=>{j(e)}}));return(0,y.jsx)(c.default,{request:d,children:(0,y.jsxs)("div",{className:s()(o,n["menu-item"]),children:[(0,y.jsxs)("div",{className:s()(n.title,{[n.active]:g,[n["has-children"]]:K,[n["no-collapse"]]:K&&!C,[n["no-start-icon"]]:!p,[n["is-root"]]:0===O}),onClick:n=>{n.stopPropagation(),K||!h?K||b?C&&(b&&k({}),x(!v)):null===_||void 0===_||_(r,e):t(h)},children:[p&&(0,y.jsx)(u.default,{type:p}),(0,y.jsx)("span",{className:n["title-content"],children:l}),K&&C&&(0,y.jsx)(u.default,{type:v?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),K?!C||v&&m?(0,y.jsx)("div",{className:n["children-list"],children:m}):!C||v&&w?(0,y.jsx)("div",{className:n["children-list"],children:(0,y.jsx)(a.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},g=e=>{let{className:t,allowCollapsed:r,...o}=e;const{pathname:a,search:c}=(0,i.useLocation)(),[l,u]=p()(o,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[d,f]=p()(o,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:g,defaultOpenKeys:x,links:m,childrenKeys:b,hasStartIcon:O,hasChildren:j}=(0,h.useMemo)((()=>{var e;const{items:t,childrenKeys:r,nodeMapping:n}=(e=>{const t={},r=[],n=(e,o)=>{const{parentKey:s,depth:a}=Object.assign({parentKey:"root",depth:0,paths:[]},o);return Array.isArray(e)&&e.length>0?e.map(((e,o)=>{const i="".concat(e.key||"".concat("root"!==s?"".concat(s,"-"):"","node-").concat(o));t[s]||(t[s]=[]),t[s].push(i);const c=n(e.children,{parentKey:i,depth:a+1});t[i]&&t[s].push(...t[i]);const l=Object.assign({},e,{key:i,parentKey:s,depth:a,children:c,originItem:e});return r[i]=l,l})):null};return{items:n(e),childrenKeys:t,nodeMapping:r}})(d);let o=!1,s=!1;const a=[],i=[];return null===r||void 0===r||null===(e=r.root)||void 0===e||e.forEach((e=>{const t=n[e];t.iconType&&(o=!0),t.path&&a.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(s=!0,i.push(t.key))})),{defaultOpenKeys:i,links:a,items:t,childrenKeys:r,hasStartIcon:o,hasChildren:s}}),[d]);(0,h.useEffect)((()=>{const e=m.find((e=>{let{path:t}=e;return _()(a.replace(/[#,?].*/,""))===_()(t)||_()(a+c,"")===_()(t)}));e&&u(e.key)}),[m,a,c,u]);const[C,K]=p()(Object.assign({},o,{defaultOpenKeys:o.defaultOpenKeys||x}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),k=(0,h.useCallback)(((e,t)=>{const{parentKey:n,depth:o,selectedKey:s,openKeys:a,paths:i}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:c,originItem:l,...p}=e;return(0,h.createElement)(v,{...Object.assign({},p),id:c,parentId:n,depth:o,allowCollapsed:r,isSelected:c===s||b[c]&&b[c].indexOf(s)>-1,onClick:u,onLoad:e=>{f((t=>{const r=t=>Array.isArray(t)&&t.length>0?t.map((t=>Object.assign({},t,{children:l===t?e:r(t.children)}))):null;return r(t)}))},isOpen:(a||[]).indexOf(c)>-1,key:c,onOpenChange:()=>{K((e=>{const t=e.slice(0);return e.indexOf(c)>-1?t.splice(e.indexOf(c),1):t.push(c),t}))}},k(t,{parentKey:n,depth:o+1,selectedKey:s,openKeys:a,paths:[...i,c]}))})):null}),[f,K,u,b,r]);return(0,y.jsx)("div",{className:s()(t,n.menu,{[n["all-no-start-icon"]]:!O,[n["has-children-node"]]:j}),children:k(g,{selectedKey:l,openKeys:C})})};g.defaultProps={defaultItems:[],allowCollapsed:!0};const x=g},92832:(e,t,r)=>{"use strict";r.r(t),r.d(t,{computedIsPass:()=>h,default:()=>y,usePermissions:()=>d,usePermissionsPass:()=>_});var n=r(46964),o=r(96164),s=r(58564),a=r.n(s),i=r(79272),c=r.n(i);const l="style_outer__vbHB9__rgnvX";var p=r(94328),u=r(82496);const h=e=>{let{permissions:t,request:r}=e;return!(Array.isArray(r)&&r.length>0)||r.some((e=>(t||[]).indexOf(e)>-1))},d=()=>{const e=(0,p.useGlobalContext)();return{permissions:a()(e,"global.accountInfo.permissions",[])}},_=e=>{let{request:t}=e;const{permissions:r}=d();return h({permissions:r,request:t})},f=e=>{let{type:t,className:r,tagName:s,message:a,request:i,children:p,...h}=e;const d=_({request:i});return"function"===typeof p?p({isPass:d,type:t,request:i}):!0===d?p:"error"===t?(0,u.jsx)(o.Result,{status:"403",subTitle:a}):"tooltip"===t?(0,u.jsx)(o.Tooltip,{title:a,children:(0,n.createElement)(s,{...h,className:c()(l,r)},p)}):null};f.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const y=f},10044:(e,t,r)=>{var n=r(92992),o=r(89168),s=r(75500),a=r(62640),i=r(29008);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=i,e.exports=c},51076:(e,t,r)=>{var n=r(55628),o=r(18984),s=r(80712),a=r(18580),i=r(68288);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=i,e.exports=c},66040:(e,t,r)=>{var n=r(9976)(r(92352),"Map");e.exports=n},50448:(e,t,r)=>{var n=r(48512),o=r(70184),s=r(34128),a=r(52336),i=r(18532);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=i,e.exports=c},31728:(e,t,r)=>{var n=r(92352).Symbol;e.exports=n},49620:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},9056:(e,t,r)=>{var n=r(60016);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},56016:(e,t,r)=>{var n=r(76284),o=r(13088);e.exports=function(e,t){for(var r=0,s=(t=n(t,e)).length;null!=e&&r<s;)e=e[o(t[r++])];return r&&r==s?e:void 0}},21812:(e,t,r)=>{var n=r(31728),o=r(44328),s=r(59192),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):s(e)}},49704:(e,t,r)=>{var n=r(64600),o=r(62092),s=r(31792),a=r(20172),i=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,p=c.toString,u=l.hasOwnProperty,h=RegExp("^"+p.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||o(e))&&(n(e)?h:i).test(a(e))}},96816:(e,t,r)=>{var n=r(31728),o=r(49620),s=r(42336),a=r(4056),i=n?n.prototype:void 0,c=i?i.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},76284:(e,t,r)=>{var n=r(42336),o=r(27424),s=r(83347),a=r(41024);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:s(a(e))}},96136:(e,t,r)=>{var n=r(92352)["__core-js_shared__"];e.exports=n},23024:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},92872:(e,t,r)=>{var n=r(19995);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},9976:(e,t,r)=>{var n=r(49704),o=r(34032);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},44328:(e,t,r)=>{var n=r(31728),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(c){}var o=a.call(e);return n&&(t?e[i]=r:delete e[i]),o}},34032:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},92992:(e,t,r)=>{var n=r(71295);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},89168:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},75500:(e,t,r)=>{var n=r(71295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},62640:(e,t,r)=>{var n=r(71295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},29008:(e,t,r)=>{var n=r(71295);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},27424:(e,t,r)=>{var n=r(42336),o=r(4056),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!s.test(e)||null!=t&&e in Object(t))}},19995:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},62092:(e,t,r)=>{var n=r(96136),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},55628:e=>{e.exports=function(){this.__data__=[],this.size=0}},18984:(e,t,r)=>{var n=r(9056),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},80712:(e,t,r)=>{var n=r(9056);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},18580:(e,t,r)=>{var n=r(9056);e.exports=function(e){return n(this.__data__,e)>-1}},68288:(e,t,r)=>{var n=r(9056);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},48512:(e,t,r)=>{var n=r(10044),o=r(51076),s=r(66040);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||o),string:new n}}},70184:(e,t,r)=>{var n=r(92872);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},34128:(e,t,r)=>{var n=r(92872);e.exports=function(e){return n(this,e).get(e)}},52336:(e,t,r)=>{var n=r(92872);e.exports=function(e){return n(this,e).has(e)}},18532:(e,t,r)=>{var n=r(92872);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},61600:(e,t,r)=>{var n=r(83416);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},71295:(e,t,r)=>{var n=r(9976)(Object,"create");e.exports=n},59192:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},92352:(e,t,r)=>{var n=r(23024),o="object"==typeof self&&self&&self.Object===Object&&self,s=n||o||Function("return this")();e.exports=s},83347:(e,t,r)=>{var n=r(61600),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(s,"$1"):r||e)})),t}));e.exports=a},13088:(e,t,r)=>{var n=r(4056);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},20172:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},60016:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},58564:(e,t,r)=>{var n=r(56016);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},42336:e=>{var t=Array.isArray;e.exports=t},64600:(e,t,r)=>{var n=r(21812),o=r(31792);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},31792:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},26920:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4056:(e,t,r)=>{var n=r(21812),o=r(26920);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},83416:(e,t,r)=>{var n=r(50448);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},41024:(e,t,r)=>{var n=r(96816);e.exports=function(e){return null==e?"":n(e)}},10036:(e,t,r)=>{"use strict";var n=r(46964),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,s={},l=null,p=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(p=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:p,props:s,_owner:i.current}}t.Fragment=s,t.jsx=l,t.jsxs=l},82496:(e,t,r)=>{"use strict";e.exports=r(10036)}}]);
|
|
3
|
-
//# sourceMappingURL=3849.
|
|
1
|
+
/*! For license information please see 3849.c1935834.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3849,5520,2832],{5520:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});r(46964);var n=r(79272),o=r.n(n),s=r(82496);const a=e=>(/^[1-9]+[0-9]*]*$/.test(e.toString())&&(e+="px"),e),i=e=>{let{type:t,colorful:r,className:n,size:i,style:c,prefix:l,...p}=e;const u=((e,t,r)=>"icon-"===t||""===t?(r?"icon-color-":"icon-")+e.replace(/^icon-(color-)?/,""):t+e)(t,l,r),h=o()(n,{iconfont:!r,"iconfont--color":r},u),d=Object.assign({},c,i?{fontSize:a(i)}:{});return r?(0,s.jsx)("svg",{...p,"data-testid":"components-core-iconfont",className:h,style:d,children:(0,s.jsx)("use",{xlinkHref:"#".concat(t),style:{pointerEvents:"none"}})}):(0,s.jsx)("i",{...p,"data-testid":"components-core-iconfont",className:h,style:d})};i.defaultProps={colorful:!1,prefix:""};const c=i},63849:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});const n={menu:"style_menu__gvIvn__VH9lc","all-no-start-icon":"style_all-no-start-icon__CA+zR__VH9lc","no-start-icon":"style_no-start-icon__LnC1S__VH9lc","has-children":"style_has-children__m9tce__VH9lc","has-children-node":"style_has-children-node__2bhEB__VH9lc","is-root":"style_is-root__4hhOc__VH9lc",title:"style_title__+Hcar__VH9lc",active:"style_active__WU49K__VH9lc","no-collapse":"style_no-collapse__aIZBM__VH9lc","title-content":"style_title-content__cQXpK__VH9lc",loading:"style_loading__1pU4P__VH9lc"};var o=r(79272),s=r.n(o),a=r(96164),i=r(48428),c=r(92832),l=r(75680),p=r.n(l),u=r(5520),h=r(46964),d=r(92420),_=r.n(d),f=r(84768),y=r(82496);const v=e=>{const t=(0,i.useNavigate)(),{id:r,className:o,label:l,iconType:p,path:h,request:d,onClick:_,isOpen:v,isSelected:x,onOpenChange:g,children:m,fetchOptions:b,depth:O,onLoad:j,allowCollapsed:C}=e,K=Array.isArray(m)&&m.length>0||b,{refresh:k,isLoading:w}=(0,f.useFetch)(Object.assign({},b,{auto:!C&&b,onRequestSuccess:e=>{j(e)}}));return(0,y.jsx)(c.default,{request:d,children:(0,y.jsxs)("div",{className:s()(o,n["menu-item"]),children:[(0,y.jsxs)("div",{className:s()(n.title,{[n.active]:x,[n["has-children"]]:K,[n["no-collapse"]]:K&&!C,[n["no-start-icon"]]:!p,[n["is-root"]]:0===O}),onClick:n=>{n.stopPropagation(),K||!h?K||b?C&&(b&&k({}),g(!v)):null===_||void 0===_||_(r,e):t(h)},children:[p&&(0,y.jsx)(u.default,{type:p}),(0,y.jsx)("span",{className:n["title-content"],children:l}),K&&C&&(0,y.jsx)(u.default,{type:v?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),K?!C||v&&m?(0,y.jsx)("div",{className:n["children-list"],children:m}):!C||v&&w?(0,y.jsx)("div",{className:n["children-list"],children:(0,y.jsx)(a.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},x=e=>{let{className:t,allowCollapsed:r,...o}=e;const{pathname:a,search:c}=(0,i.useLocation)(),[l,u]=p()(o,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[d,f]=p()(o,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:x,defaultOpenKeys:g,links:m,childrenKeys:b,hasStartIcon:O,hasChildren:j}=(0,h.useMemo)((()=>{var e;const{items:t,childrenKeys:r,nodeMapping:n}=(e=>{const t={},r=[],n=(e,o)=>{const{parentKey:s,depth:a}=Object.assign({parentKey:"root",depth:0,paths:[]},o);return Array.isArray(e)&&e.length>0?e.map(((e,o)=>{const i="".concat(e.key||"".concat("root"!==s?"".concat(s,"-"):"","node-").concat(o));t[s]||(t[s]=[]),t[s].push(i);const c=n(e.children,{parentKey:i,depth:a+1});t[i]&&t[s].push(...t[i]);const l=Object.assign({},e,{key:i,parentKey:s,depth:a,children:c,originItem:e});return r[i]=l,l})):null};return{items:n(e),childrenKeys:t,nodeMapping:r}})(d);let o=!1,s=!1;const a=[],i=[];return null===r||void 0===r||null===(e=r.root)||void 0===e||e.forEach((e=>{const t=n[e];t.iconType&&(o=!0),t.path&&a.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(s=!0,i.push(t.key))})),{defaultOpenKeys:i,links:a,items:t,childrenKeys:r,hasStartIcon:o,hasChildren:s}}),[d]);(0,h.useEffect)((()=>{const e=m.find((e=>{let{path:t}=e;return _()(a.replace(/[#,?].*/,""))===_()(t)||_()(a+c,"")===_()(t)}));e&&u(e.key)}),[m,a,c,u]);const[C,K]=p()(Object.assign({},o,{defaultOpenKeys:o.defaultOpenKeys||g}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),k=(0,h.useCallback)(((e,t)=>{const{parentKey:n,depth:o,selectedKey:s,openKeys:a,paths:i}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:c,originItem:l,...p}=e;return(0,h.createElement)(v,{...Object.assign({},p),id:c,parentId:n,depth:o,allowCollapsed:r,isSelected:c===s||b[c]&&b[c].indexOf(s)>-1,onClick:u,onLoad:e=>{f((t=>{const r=t=>Array.isArray(t)&&t.length>0?t.map((t=>Object.assign({},t,{children:l===t?e:r(t.children)}))):null;return r(t)}))},isOpen:(a||[]).indexOf(c)>-1,key:c,onOpenChange:()=>{K((e=>{const t=e.slice(0);return e.indexOf(c)>-1?t.splice(e.indexOf(c),1):t.push(c),t}))}},k(t,{parentKey:n,depth:o+1,selectedKey:s,openKeys:a,paths:[...i,c]}))})):null}),[f,K,u,b,r]);return(0,y.jsx)("div",{className:s()(t,n.menu,{[n["all-no-start-icon"]]:!O,[n["has-children-node"]]:j}),children:k(x,{selectedKey:l,openKeys:C})})};x.defaultProps={defaultItems:[],allowCollapsed:!0};const g=x},92832:(e,t,r)=>{"use strict";r.r(t),r.d(t,{computedIsPass:()=>h,default:()=>y,usePermissions:()=>d,usePermissionsPass:()=>_});var n=r(46964),o=r(96164),s=r(58564),a=r.n(s),i=r(79272),c=r.n(i);const l="style_outer__vbHB9__VH9lc";var p=r(94328),u=r(82496);const h=e=>{let{permissions:t,request:r}=e;return!(Array.isArray(r)&&r.length>0)||r.some((e=>(t||[]).indexOf(e)>-1))},d=()=>{const e=(0,p.useGlobalContext)();return{permissions:a()(e,"global.accountInfo.permissions",[])}},_=e=>{let{request:t}=e;const{permissions:r}=d();return h({permissions:r,request:t})},f=e=>{let{type:t,className:r,tagName:s,message:a,request:i,children:p,...h}=e;const d=_({request:i});return"function"===typeof p?p({isPass:d,type:t,request:i}):!0===d?p:"error"===t?(0,u.jsx)(o.Result,{status:"403",subTitle:a}):"tooltip"===t?(0,u.jsx)(o.Tooltip,{title:a,children:(0,n.createElement)(s,{...h,className:c()(l,r)},p)}):null};f.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const y=f},10044:(e,t,r)=>{var n=r(92992),o=r(89168),s=r(75500),a=r(62640),i=r(29008);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=i,e.exports=c},51076:(e,t,r)=>{var n=r(55628),o=r(18984),s=r(80712),a=r(18580),i=r(68288);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=i,e.exports=c},66040:(e,t,r)=>{var n=r(9976)(r(92352),"Map");e.exports=n},50448:(e,t,r)=>{var n=r(48512),o=r(70184),s=r(34128),a=r(52336),i=r(18532);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=i,e.exports=c},31728:(e,t,r)=>{var n=r(92352).Symbol;e.exports=n},49620:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},9056:(e,t,r)=>{var n=r(60016);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},56016:(e,t,r)=>{var n=r(76284),o=r(13088);e.exports=function(e,t){for(var r=0,s=(t=n(t,e)).length;null!=e&&r<s;)e=e[o(t[r++])];return r&&r==s?e:void 0}},21812:(e,t,r)=>{var n=r(31728),o=r(44328),s=r(59192),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):s(e)}},49704:(e,t,r)=>{var n=r(64600),o=r(62092),s=r(31792),a=r(20172),i=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,p=c.toString,u=l.hasOwnProperty,h=RegExp("^"+p.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||o(e))&&(n(e)?h:i).test(a(e))}},96816:(e,t,r)=>{var n=r(31728),o=r(49620),s=r(42336),a=r(4056),i=n?n.prototype:void 0,c=i?i.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},76284:(e,t,r)=>{var n=r(42336),o=r(27424),s=r(83347),a=r(41024);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:s(a(e))}},96136:(e,t,r)=>{var n=r(92352)["__core-js_shared__"];e.exports=n},23024:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},92872:(e,t,r)=>{var n=r(19995);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},9976:(e,t,r)=>{var n=r(49704),o=r(34032);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},44328:(e,t,r)=>{var n=r(31728),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(c){}var o=a.call(e);return n&&(t?e[i]=r:delete e[i]),o}},34032:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},92992:(e,t,r)=>{var n=r(71295);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},89168:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},75500:(e,t,r)=>{var n=r(71295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},62640:(e,t,r)=>{var n=r(71295),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},29008:(e,t,r)=>{var n=r(71295);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},27424:(e,t,r)=>{var n=r(42336),o=r(4056),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!s.test(e)||null!=t&&e in Object(t))}},19995:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},62092:(e,t,r)=>{var n=r(96136),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},55628:e=>{e.exports=function(){this.__data__=[],this.size=0}},18984:(e,t,r)=>{var n=r(9056),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},80712:(e,t,r)=>{var n=r(9056);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},18580:(e,t,r)=>{var n=r(9056);e.exports=function(e){return n(this.__data__,e)>-1}},68288:(e,t,r)=>{var n=r(9056);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},48512:(e,t,r)=>{var n=r(10044),o=r(51076),s=r(66040);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||o),string:new n}}},70184:(e,t,r)=>{var n=r(92872);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},34128:(e,t,r)=>{var n=r(92872);e.exports=function(e){return n(this,e).get(e)}},52336:(e,t,r)=>{var n=r(92872);e.exports=function(e){return n(this,e).has(e)}},18532:(e,t,r)=>{var n=r(92872);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},61600:(e,t,r)=>{var n=r(83416);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},71295:(e,t,r)=>{var n=r(9976)(Object,"create");e.exports=n},59192:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},92352:(e,t,r)=>{var n=r(23024),o="object"==typeof self&&self&&self.Object===Object&&self,s=n||o||Function("return this")();e.exports=s},83347:(e,t,r)=>{var n=r(61600),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(s,"$1"):r||e)})),t}));e.exports=a},13088:(e,t,r)=>{var n=r(4056);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},20172:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},60016:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},58564:(e,t,r)=>{var n=r(56016);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},42336:e=>{var t=Array.isArray;e.exports=t},64600:(e,t,r)=>{var n=r(21812),o=r(31792);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},31792:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},26920:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4056:(e,t,r)=>{var n=r(21812),o=r(26920);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},83416:(e,t,r)=>{var n=r(50448);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},41024:(e,t,r)=>{var n=r(96816);e.exports=function(e){return null==e?"":n(e)}},10036:(e,t,r)=>{"use strict";var n=r(46964),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,s={},l=null,p=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(p=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:p,props:s,_owner:i.current}}t.Fragment=s,t.jsx=l,t.jsxs=l},82496:(e,t,r)=>{"use strict";e.exports=r(10036)}}]);
|
|
3
|
+
//# sourceMappingURL=3849.c1935834.chunk.js.map
|