@scaleflex/widget-pixaforge 4.8.5 → 4.8.7
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/LICENSE +21 -21
- package/README.md +124 -124
- package/lib/components/CategoriesCards/index.js +2 -2
- package/lib/components/CategoriesCards/index.scss +27 -27
- package/lib/components/CustomizeIcons/index.scss +33 -33
- package/lib/components/IconsGallery/SingleIcon.js +2 -2
- package/lib/components/IconsGallery/index.scss +53 -53
- package/lib/components/ImagesGallery/ImageCell.js +2 -2
- package/lib/components/ImagesGallery/index.scss +120 -120
- package/lib/components/TagsAndFoundLabel/index.scss +25 -25
- package/lib/components/index.scss +48 -48
- package/lib/style.scss +8 -8
- package/package.json +35 -35
- package/CHANGELOG.md +0 -7748
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 scaleflex
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 scaleflex
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
# @scaleflex/widget-pixaforge
|
|
2
|
-
|
|
3
|
-
[![Plugins][plugins-image]](#plugins)
|
|
4
|
-
[![Website][filerobot-image]][sfx-url]
|
|
5
|
-
[![Version][filerobot-version]][version-url]
|
|
6
|
-
[![Scaleflex team][made-by-image]][sfx-url]
|
|
7
|
-
[![License][license-image]][license-url]
|
|
8
|
-
[![CodeSandbox][codeSandbox-image]][codeSandbox-url]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<div align='center'>
|
|
12
|
-
<img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
Import free images & icons from Pixaforge in [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core) that has free gallery for both.
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
### NPM
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm install --save @scaleflex/widget-pixaforge
|
|
23
|
-
```
|
|
24
|
-
### YARN
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
yarn add @scaleflex/widget-pixaforge
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
then
|
|
31
|
-
|
|
32
|
-
```js
|
|
33
|
-
import Pixaforge from '@scaleflex/widget-pixaforge'
|
|
34
|
-
...
|
|
35
|
-
...
|
|
36
|
-
...
|
|
37
|
-
scaleflexWidget.use(Pixaforge, propertiesObject)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### CDN
|
|
41
|
-
|
|
42
|
-
The plugin from CDN is found inside `Scaleflex` global object `Scaleflex.Pixaforge`
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
const Pixaforge = window.ScaleflexWidget.Pixaforge
|
|
46
|
-
...
|
|
47
|
-
...
|
|
48
|
-
...
|
|
49
|
-
scaleflexWidget.use(Pixaforge, propertiesObject)
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Plugin's styles
|
|
53
|
-
|
|
54
|
-
```js
|
|
55
|
-
import '@scaleflex/widget-core/dist/style.css'
|
|
56
|
-
import '@scaleflex/widget-pixaforge/dist/style.css'
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
or if you prefer the minified version
|
|
60
|
-
|
|
61
|
-
```js
|
|
62
|
-
import '@scaleflex/widget-core/dist/style.min.css'
|
|
63
|
-
import '@scaleflex/widget-pixaforge/dist/style.min.css'
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
> The plugin's css file should be imported after the [Core's css file](../@scaleflex/widget-core/#modules-styles) for having the styles shown correctly.
|
|
67
|
-
|
|
68
|
-
## Properties
|
|
69
|
-
|
|
70
|
-
### `title`
|
|
71
|
-
|
|
72
|
-
<u>Type:</u> `string`
|
|
73
|
-
|
|
74
|
-
<u>Default:</u> `'Pixaforge'`
|
|
75
|
-
|
|
76
|
-
The title/label that would be shown & used for the plugin.
|
|
77
|
-
|
|
78
|
-
### `companionHeaders`
|
|
79
|
-
|
|
80
|
-
<u>Type:</u> `null` | `object`
|
|
81
|
-
|
|
82
|
-
<u>Default:</u> `null`
|
|
83
|
-
|
|
84
|
-
If you need to pass additional headers for in companion requests then pass them in this property(used in importing the images from pixaforge).
|
|
85
|
-
|
|
86
|
-
### `locale: object`
|
|
87
|
-
|
|
88
|
-
<u>Type:</u> `object`
|
|
89
|
-
|
|
90
|
-
<u>Default:</u> locales from scaleflexWidget's backend then default locale file with all labels is under `lib/defaultLocale.js`.
|
|
91
|
-
|
|
92
|
-
You can override some labels by specifying a translation object here, such as:
|
|
93
|
-
|
|
94
|
-
```js
|
|
95
|
-
{
|
|
96
|
-
strings: {
|
|
97
|
-
standardPortraits: 'Standard verticals' // overrides the default Standard portraits value to standard verticals
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### `noIconsGallery`
|
|
103
|
-
|
|
104
|
-
<u>Type:</u> `boolean`
|
|
105
|
-
|
|
106
|
-
<u>Default:</u> `false`
|
|
107
|
-
|
|
108
|
-
If used the icons gallery option will be removed from the plugin and only images will be available.
|
|
109
|
-
|
|
110
|
-
<!-- Variables -->
|
|
111
|
-
|
|
112
|
-
[npm-url]: https://www.npmjs.com/package/@scaleflex/widget-pixaforge
|
|
113
|
-
[license-url]: https://opensource.org/licenses/MIT
|
|
114
|
-
[sfx-url]: https://www.scaleflex.com/
|
|
115
|
-
[version-url]: https://www.npmjs.com/package/@scaleflex/widget-pixaforge
|
|
116
|
-
[codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
|
|
117
|
-
|
|
118
|
-
[npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
|
|
119
|
-
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
|
|
120
|
-
[made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
|
|
121
|
-
[plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
|
|
122
|
-
[filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
|
|
123
|
-
[filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-pixaforge?label=Version&style=for-the-badge&logo=npm
|
|
124
|
-
[codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
|
|
1
|
+
# @scaleflex/widget-pixaforge
|
|
2
|
+
|
|
3
|
+
[![Plugins][plugins-image]](#plugins)
|
|
4
|
+
[![Website][filerobot-image]][sfx-url]
|
|
5
|
+
[![Version][filerobot-version]][version-url]
|
|
6
|
+
[![Scaleflex team][made-by-image]][sfx-url]
|
|
7
|
+
[![License][license-image]][license-url]
|
|
8
|
+
[![CodeSandbox][codeSandbox-image]][codeSandbox-url]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<div align='center'>
|
|
12
|
+
<img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
Import free images & icons from Pixaforge in [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core) that has free gallery for both.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
### NPM
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install --save @scaleflex/widget-pixaforge
|
|
23
|
+
```
|
|
24
|
+
### YARN
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
yarn add @scaleflex/widget-pixaforge
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
then
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import Pixaforge from '@scaleflex/widget-pixaforge'
|
|
34
|
+
...
|
|
35
|
+
...
|
|
36
|
+
...
|
|
37
|
+
scaleflexWidget.use(Pixaforge, propertiesObject)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### CDN
|
|
41
|
+
|
|
42
|
+
The plugin from CDN is found inside `Scaleflex` global object `Scaleflex.Pixaforge`
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
const Pixaforge = window.ScaleflexWidget.Pixaforge
|
|
46
|
+
...
|
|
47
|
+
...
|
|
48
|
+
...
|
|
49
|
+
scaleflexWidget.use(Pixaforge, propertiesObject)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Plugin's styles
|
|
53
|
+
|
|
54
|
+
```js
|
|
55
|
+
import '@scaleflex/widget-core/dist/style.css'
|
|
56
|
+
import '@scaleflex/widget-pixaforge/dist/style.css'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
or if you prefer the minified version
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
import '@scaleflex/widget-core/dist/style.min.css'
|
|
63
|
+
import '@scaleflex/widget-pixaforge/dist/style.min.css'
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
> The plugin's css file should be imported after the [Core's css file](../@scaleflex/widget-core/#modules-styles) for having the styles shown correctly.
|
|
67
|
+
|
|
68
|
+
## Properties
|
|
69
|
+
|
|
70
|
+
### `title`
|
|
71
|
+
|
|
72
|
+
<u>Type:</u> `string`
|
|
73
|
+
|
|
74
|
+
<u>Default:</u> `'Pixaforge'`
|
|
75
|
+
|
|
76
|
+
The title/label that would be shown & used for the plugin.
|
|
77
|
+
|
|
78
|
+
### `companionHeaders`
|
|
79
|
+
|
|
80
|
+
<u>Type:</u> `null` | `object`
|
|
81
|
+
|
|
82
|
+
<u>Default:</u> `null`
|
|
83
|
+
|
|
84
|
+
If you need to pass additional headers for in companion requests then pass them in this property(used in importing the images from pixaforge).
|
|
85
|
+
|
|
86
|
+
### `locale: object`
|
|
87
|
+
|
|
88
|
+
<u>Type:</u> `object`
|
|
89
|
+
|
|
90
|
+
<u>Default:</u> locales from scaleflexWidget's backend then default locale file with all labels is under `lib/defaultLocale.js`.
|
|
91
|
+
|
|
92
|
+
You can override some labels by specifying a translation object here, such as:
|
|
93
|
+
|
|
94
|
+
```js
|
|
95
|
+
{
|
|
96
|
+
strings: {
|
|
97
|
+
standardPortraits: 'Standard verticals' // overrides the default Standard portraits value to standard verticals
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### `noIconsGallery`
|
|
103
|
+
|
|
104
|
+
<u>Type:</u> `boolean`
|
|
105
|
+
|
|
106
|
+
<u>Default:</u> `false`
|
|
107
|
+
|
|
108
|
+
If used the icons gallery option will be removed from the plugin and only images will be available.
|
|
109
|
+
|
|
110
|
+
<!-- Variables -->
|
|
111
|
+
|
|
112
|
+
[npm-url]: https://www.npmjs.com/package/@scaleflex/widget-pixaforge
|
|
113
|
+
[license-url]: https://opensource.org/licenses/MIT
|
|
114
|
+
[sfx-url]: https://www.scaleflex.com/
|
|
115
|
+
[version-url]: https://www.npmjs.com/package/@scaleflex/widget-pixaforge
|
|
116
|
+
[codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
|
|
117
|
+
|
|
118
|
+
[npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
|
|
119
|
+
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
|
|
120
|
+
[made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
|
|
121
|
+
[plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
|
|
122
|
+
[filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
|
|
123
|
+
[filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-pixaforge?label=Version&style=for-the-badge&logo=npm
|
|
124
|
+
[codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
|
|
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
9
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
10
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
11
11
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
12
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
// packages/@scaleflex/widget-pixaforge/src/components/CategoriesCards/index.jsx
|
|
2
|
-
.filerobot-Pixaforge-Categories {
|
|
3
|
-
display: grid;
|
|
4
|
-
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
5
|
-
padding: 8px 8px 4px;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
}
|
|
8
|
-
.filerobot-Pixaforge-CategoryCard {
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
padding: 4px 4px 8px;
|
|
11
|
-
width: 100%;
|
|
12
|
-
}
|
|
13
|
-
.filerobot-Pixaforge-CategoryCard-image {
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 120px;
|
|
16
|
-
|
|
17
|
-
img {
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
border-radius: 2px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.filerobot-Pixaforge-CategoryCard-label {
|
|
24
|
-
margin: 4px 0 2px;
|
|
25
|
-
font-size: 12px;
|
|
26
|
-
line-height: 14px;
|
|
27
|
-
}
|
|
1
|
+
// packages/@scaleflex/widget-pixaforge/src/components/CategoriesCards/index.jsx
|
|
2
|
+
.filerobot-Pixaforge-Categories {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
5
|
+
padding: 8px 8px 4px;
|
|
6
|
+
overflow: auto;
|
|
7
|
+
}
|
|
8
|
+
.filerobot-Pixaforge-CategoryCard {
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
padding: 4px 4px 8px;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
.filerobot-Pixaforge-CategoryCard-image {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 120px;
|
|
16
|
+
|
|
17
|
+
img {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
border-radius: 2px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.filerobot-Pixaforge-CategoryCard-label {
|
|
24
|
+
margin: 4px 0 2px;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
line-height: 14px;
|
|
27
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
// packages/@scaleflex/widget-pixaforge/src/components/CustomizeIcons/index.jsx
|
|
2
|
-
.filerobot-Pixaforge-CustomizeIcons {
|
|
3
|
-
padding: 12px 8px 0;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
}
|
|
8
|
-
.filerobot-Pixaforge-ColorCustomization {
|
|
9
|
-
margin: 0 4px;
|
|
10
|
-
}
|
|
11
|
-
.filerobot-Pixaforge-CustomizedIcons-title {
|
|
12
|
-
margin: 0 0 12px 4px;
|
|
13
|
-
|
|
14
|
-
svg {
|
|
15
|
-
margin-left: 6px;
|
|
16
|
-
width: 12px;
|
|
17
|
-
height: 12px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.filerobot-Pixaforge-CustomizeIcons-iconsWrapper {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-wrap: wrap;
|
|
23
|
-
overflow: auto;
|
|
24
|
-
margin: 12px 0;
|
|
25
|
-
}
|
|
26
|
-
.filerobot-Pixaforge-ColorCustomization-rgbField {
|
|
27
|
-
max-width: 80px;
|
|
28
|
-
margin-right: 4px;
|
|
29
|
-
}
|
|
30
|
-
.filerobot-Pixaforge-ColorCustomization-removeButton {
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
margin-left: 8px;
|
|
33
|
-
}
|
|
1
|
+
// packages/@scaleflex/widget-pixaforge/src/components/CustomizeIcons/index.jsx
|
|
2
|
+
.filerobot-Pixaforge-CustomizeIcons {
|
|
3
|
+
padding: 12px 8px 0;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
overflow: auto;
|
|
7
|
+
}
|
|
8
|
+
.filerobot-Pixaforge-ColorCustomization {
|
|
9
|
+
margin: 0 4px;
|
|
10
|
+
}
|
|
11
|
+
.filerobot-Pixaforge-CustomizedIcons-title {
|
|
12
|
+
margin: 0 0 12px 4px;
|
|
13
|
+
|
|
14
|
+
svg {
|
|
15
|
+
margin-left: 6px;
|
|
16
|
+
width: 12px;
|
|
17
|
+
height: 12px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.filerobot-Pixaforge-CustomizeIcons-iconsWrapper {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
overflow: auto;
|
|
24
|
+
margin: 12px 0;
|
|
25
|
+
}
|
|
26
|
+
.filerobot-Pixaforge-ColorCustomization-rgbField {
|
|
27
|
+
max-width: 80px;
|
|
28
|
+
margin-right: 4px;
|
|
29
|
+
}
|
|
30
|
+
.filerobot-Pixaforge-ColorCustomization-removeButton {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
margin-left: 8px;
|
|
33
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["isSelected", "toggleIconSelection", "loadingErrorMsg", "children"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import { memo, useCallback, useRef } from 'react';
|
|
5
5
|
import { Checkbox, SVGUrlToElement } from '@scaleflex/widget-common';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
// packages/@scaleflex/widget-pixaforge/src/components/IconsGallery/index.jsx
|
|
2
|
-
@mixin hover-and-selected-effect {
|
|
3
|
-
background-color: $hover;
|
|
4
|
-
|
|
5
|
-
.filerobot-Pixaforge-overlay {
|
|
6
|
-
display: block;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.filerobot-Pixaforge-IconsGallery {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
overflow: auto;
|
|
13
|
-
}
|
|
14
|
-
.filerobot-Pixaforge-IconsGallery-icons {
|
|
15
|
-
display: flex;
|
|
16
|
-
padding: 8px;
|
|
17
|
-
overflow: auto;
|
|
18
|
-
flex-wrap: wrap;
|
|
19
|
-
}
|
|
20
|
-
.filerobot-Pixaforge-SingleIcon {
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
position: relative;
|
|
23
|
-
width: 106px;
|
|
24
|
-
height: 106px;
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background-color: $background-primary;
|
|
29
|
-
margin: 4px;
|
|
30
|
-
|
|
31
|
-
&:hover {
|
|
32
|
-
@include hover-and-selected-effect;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
.filerobot-Pixaforge-SingleIcon--selected {
|
|
37
|
-
@include hover-and-selected-effect;
|
|
38
|
-
}
|
|
39
|
-
.filerobot-Pixaforge-SingleIcon-icon {
|
|
40
|
-
width: 50px;
|
|
41
|
-
height: 50px;
|
|
42
|
-
max-width: 50px;
|
|
43
|
-
max-height: 50px;
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
color: $active;
|
|
48
|
-
|
|
49
|
-
svg {
|
|
50
|
-
max-width: 100%;
|
|
51
|
-
max-height: 100%;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
// packages/@scaleflex/widget-pixaforge/src/components/IconsGallery/index.jsx
|
|
2
|
+
@mixin hover-and-selected-effect {
|
|
3
|
+
background-color: $hover;
|
|
4
|
+
|
|
5
|
+
.filerobot-Pixaforge-overlay {
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.filerobot-Pixaforge-IconsGallery {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
overflow: auto;
|
|
13
|
+
}
|
|
14
|
+
.filerobot-Pixaforge-IconsGallery-icons {
|
|
15
|
+
display: flex;
|
|
16
|
+
padding: 8px;
|
|
17
|
+
overflow: auto;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
}
|
|
20
|
+
.filerobot-Pixaforge-SingleIcon {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 106px;
|
|
24
|
+
height: 106px;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
background-color: $background-primary;
|
|
29
|
+
margin: 4px;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
@include hover-and-selected-effect;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
.filerobot-Pixaforge-SingleIcon--selected {
|
|
37
|
+
@include hover-and-selected-effect;
|
|
38
|
+
}
|
|
39
|
+
.filerobot-Pixaforge-SingleIcon-icon {
|
|
40
|
+
width: 50px;
|
|
41
|
+
height: 50px;
|
|
42
|
+
max-width: 50px;
|
|
43
|
+
max-height: 50px;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
color: $active;
|
|
48
|
+
|
|
49
|
+
svg {
|
|
50
|
+
max-width: 100%;
|
|
51
|
+
max-height: 100%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["isSelected", "toggleImageSelection", "showImageInfo"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
import { Checkbox, Image } from '@scaleflex/widget-common';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|