@pisell/materials 1.0.83 → 1.0.85

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.
Files changed (58) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  12. package/es/components/table/Table/fields/text/Show/index.js +22 -2
  13. package/es/components/table/Table/fields/text/Show/index.less +9 -0
  14. package/es/components/table/Table/fields/types/index.d.ts +2 -0
  15. package/es/components/table/Table/index.js +3 -1
  16. package/es/components/table/index.d.ts +1 -0
  17. package/es/components/table/index.js +10 -0
  18. package/es/components/table/model.d.ts +1 -0
  19. package/es/components/table/model.js +6 -0
  20. package/es/components/translation/index.d.ts +13 -0
  21. package/es/components/translation/index.js +154 -0
  22. package/es/components/translation/index.less +15 -0
  23. package/es/components/translation/utils.d.ts +7 -0
  24. package/es/components/translation/utils.js +32 -0
  25. package/es/hooks/useEngineContext.d.ts +9 -0
  26. package/es/hooks/useEngineContext.js +7 -0
  27. package/es/index.d.ts +1 -0
  28. package/es/index.js +2 -1
  29. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  30. package/lib/components/table/Table/fields/text/Show/index.js +40 -1
  31. package/lib/components/table/Table/fields/text/Show/index.less +9 -0
  32. package/lib/components/table/Table/fields/types/index.d.ts +2 -0
  33. package/lib/components/table/Table/index.js +3 -1
  34. package/lib/components/table/index.d.ts +1 -0
  35. package/lib/components/table/index.js +14 -4
  36. package/lib/components/table/model.d.ts +1 -0
  37. package/lib/components/table/model.js +4 -0
  38. package/lib/components/translation/index.d.ts +13 -0
  39. package/lib/components/translation/index.js +173 -0
  40. package/lib/components/translation/index.less +15 -0
  41. package/lib/components/translation/utils.d.ts +7 -0
  42. package/lib/components/translation/utils.js +55 -0
  43. package/lib/hooks/useEngineContext.d.ts +9 -0
  44. package/lib/hooks/useEngineContext.js +33 -0
  45. package/lib/index.d.ts +1 -0
  46. package/lib/index.js +3 -0
  47. package/lowcode/translation/__screenshots__/input-1.png +0 -0
  48. package/lowcode/translation/meta.ts +186 -0
  49. package/lowcode/translation/snippets.ts +12 -0
  50. package/package.json +1 -1
  51. package/dist/umd/materials.min.css +0 -1
  52. package/dist/umd/materials.min.js +0 -1
  53. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  54. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  55. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  56. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  57. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  58. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
@@ -0,0 +1,173 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/translation/index.tsx
30
+ var translation_exports = {};
31
+ __export(translation_exports, {
32
+ default: () => translation_default
33
+ });
34
+ module.exports = __toCommonJS(translation_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_utils = require("@pisell/utils");
38
+ var import_icons = require("@ant-design/icons");
39
+ var import_classnames = __toESM(require("classnames"));
40
+ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
41
+ var import_utils2 = require("./utils");
42
+ var import_index = require("./index.less");
43
+ var defaultGlobal = {
44
+ shopLanguages: {
45
+ primary: "en",
46
+ list: [
47
+ {
48
+ id: 1,
49
+ code: "zh-CN",
50
+ text: "简体中文",
51
+ primary: 1,
52
+ status: "published"
53
+ },
54
+ {
55
+ id: 2,
56
+ code: "en",
57
+ text: "English",
58
+ primary: 0,
59
+ status: "published"
60
+ },
61
+ {
62
+ id: 3,
63
+ code: "zh-HK",
64
+ text: "繁體中文",
65
+ primary: 0,
66
+ status: "published"
67
+ }
68
+ ]
69
+ },
70
+ primary_locale: "en"
71
+ };
72
+ var defaultObj = {};
73
+ var Translation = (props) => {
74
+ var _a, _b;
75
+ const { value = defaultObj, onChange, ...others } = props;
76
+ const context = (0, import_useEngineContext.default)();
77
+ const [open, setOpen] = (0, import_react.useState)(false);
78
+ const [_value, set_value] = (0, import_react.useState)(value);
79
+ const store = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.store;
80
+ const { shopLanguages } = ((_b = store == null ? void 0 : store.getState()) == null ? void 0 : _b.global) || defaultGlobal;
81
+ (0, import_react.useEffect)(() => {
82
+ let _newValue = { ...value };
83
+ if ((0, import_utils.isString)(value)) {
84
+ _newValue = (0, import_utils2.createTranslationText)(value);
85
+ }
86
+ set_value({ ...defaultValue, ..._newValue });
87
+ }, [value]);
88
+ const currentLocale = (0, import_react.useMemo)(() => {
89
+ return shopLanguages.primary;
90
+ }, [shopLanguages.primary]);
91
+ const inputValue = (0, import_react.useMemo)(() => {
92
+ if ((0, import_utils.isString)(value)) {
93
+ return value;
94
+ }
95
+ return value[currentLocale];
96
+ }, [value, currentLocale]);
97
+ const languageList = (0, import_react.useMemo)(() => {
98
+ return shopLanguages.list;
99
+ }, [shopLanguages.list]);
100
+ const defaultValue = (0, import_react.useMemo)(() => {
101
+ let obj = {};
102
+ for (let item in import_utils2.locales) {
103
+ obj[item] = "";
104
+ }
105
+ return obj;
106
+ }, []);
107
+ const allChange = (e) => {
108
+ let newValue = {
109
+ ...defaultValue,
110
+ ...value || {}
111
+ };
112
+ if ((0, import_utils2.checkIfAllValuesAreEqual)(newValue)) {
113
+ for (let key in newValue) {
114
+ newValue[key] = e || "";
115
+ }
116
+ } else {
117
+ newValue[currentLocale] = e || "";
118
+ }
119
+ onChange == null ? void 0 : onChange(newValue);
120
+ };
121
+ const isActive = (0, import_react.useMemo)(() => {
122
+ let bol = false;
123
+ for (let key in value) {
124
+ if (key !== currentLocale && value[key]) {
125
+ bol = true;
126
+ }
127
+ }
128
+ return bol;
129
+ }, [value, currentLocale]);
130
+ const _onOk = () => {
131
+ onChange == null ? void 0 : onChange(_value);
132
+ setOpen(false);
133
+ };
134
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
135
+ import_antd.Input,
136
+ {
137
+ ...others,
138
+ value: inputValue,
139
+ onChange: allChange,
140
+ suffix: /* @__PURE__ */ import_react.default.createElement(
141
+ import_icons.GlobalOutlined,
142
+ {
143
+ className: (0, import_classnames.default)("pisell-lowcode-translation-icon", {
144
+ active: isActive
145
+ }),
146
+ onClick: () => setOpen(true)
147
+ }
148
+ )
149
+ }
150
+ ), /* @__PURE__ */ import_react.default.createElement(
151
+ import_antd.Modal,
152
+ {
153
+ open,
154
+ onOk: _onOk,
155
+ onCancel: () => {
156
+ set_value(value || defaultValue);
157
+ setOpen(false);
158
+ }
159
+ },
160
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-translation-modal" }, languageList.map((d) => {
161
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { label: d.text, labelCol: { span: 24 }, key: d.code }, /* @__PURE__ */ import_react.default.createElement(
162
+ import_antd.Input,
163
+ {
164
+ value: _value[d.code],
165
+ onChange: (e) => {
166
+ set_value({ ..._value, [d.code]: e.target.value });
167
+ }
168
+ }
169
+ ));
170
+ }))
171
+ ));
172
+ };
173
+ var translation_default = Translation;
@@ -0,0 +1,15 @@
1
+ .pisell-lowcode-translation-icon {
2
+ cursor: pointer;
3
+ color: #d9d9d9;
4
+ :hover {
5
+ color: var(--theme-color);
6
+ }
7
+ &.active {
8
+ color: var(--theme-color);
9
+ }
10
+ }
11
+
12
+ .pisell-lowcode-translation-modal {
13
+ position: relative;
14
+ width: 100%;
15
+ }
@@ -0,0 +1,7 @@
1
+ export declare const locales: {
2
+ en: string;
3
+ "zh-CN": string;
4
+ "zh-HK": string;
5
+ };
6
+ export declare const checkIfAllValuesAreEqual: (obj: any) => boolean;
7
+ export declare const createTranslationText: (text: string, isAll?: boolean) => any;
@@ -0,0 +1,55 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/translation/utils.ts
20
+ var utils_exports = {};
21
+ __export(utils_exports, {
22
+ checkIfAllValuesAreEqual: () => checkIfAllValuesAreEqual,
23
+ createTranslationText: () => createTranslationText,
24
+ locales: () => locales
25
+ });
26
+ module.exports = __toCommonJS(utils_exports);
27
+ var locales = {
28
+ en: "",
29
+ "zh-CN": "",
30
+ "zh-HK": ""
31
+ };
32
+ var checkIfAllValuesAreEqual = (obj) => {
33
+ const valuesArray = Object.values(obj);
34
+ return valuesArray.every((value) => value === valuesArray[0]);
35
+ };
36
+ var createTranslationText = (text, isAll = true) => {
37
+ let primary = localStorage.getItem("shop_primary_locale") || "en";
38
+ let _locales = { ...locales };
39
+ if (text !== "" && text !== void 0) {
40
+ if (isAll) {
41
+ for (let key in _locales) {
42
+ _locales[key] = text;
43
+ }
44
+ } else {
45
+ _locales[primary] = text;
46
+ }
47
+ }
48
+ return _locales;
49
+ };
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ checkIfAllValuesAreEqual,
53
+ createTranslationText,
54
+ locales
55
+ });
@@ -0,0 +1,9 @@
1
+ declare type IEngineContext = {
2
+ appHelper: any;
3
+ engine: any;
4
+ blockContext: any;
5
+ components: any;
6
+ pageContext: any;
7
+ };
8
+ declare const useEngineContext: () => IEngineContext;
9
+ export default useEngineContext;
@@ -0,0 +1,33 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/hooks/useEngineContext.ts
20
+ var useEngineContext_exports = {};
21
+ __export(useEngineContext_exports, {
22
+ default: () => useEngineContext_default
23
+ });
24
+ module.exports = __toCommonJS(useEngineContext_exports);
25
+ var import_react = require("react");
26
+ var defaultContext = (0, import_react.createContext)({});
27
+ var useEngineContext = () => {
28
+ const context = (0, import_react.useContext)(
29
+ window.__appContext || defaultContext
30
+ );
31
+ return context || {};
32
+ };
33
+ var useEngineContext_default = useEngineContext;
package/lib/index.d.ts CHANGED
@@ -62,3 +62,4 @@ export { default as AutoComplete } from "./components/auto-complete";
62
62
  export { default as Div } from "./components/div";
63
63
  export { default as Page } from "./components/page";
64
64
  export { default as Filter } from './components/filter';
65
+ export { default as Translation } from './components/translation';
package/lib/index.js CHANGED
@@ -86,6 +86,7 @@ __export(src_exports, {
86
86
  Timeline: () => import_antd36.Timeline,
87
87
  Tooltip: () => import_antd37.Tooltip,
88
88
  Transfer: () => import_antd33.Transfer,
89
+ Translation: () => import_translation.default,
89
90
  Tree: () => import_antd34.Tree,
90
91
  TreeSelect: () => import_tree_select.default,
91
92
  Typography: () => import_antd38.Typography,
@@ -159,6 +160,7 @@ var import_auto_complete = __toESM(require("./components/auto-complete"));
159
160
  var import_div = __toESM(require("./components/div"));
160
161
  var import_page = __toESM(require("./components/page"));
161
162
  var import_filter = __toESM(require("./components/filter"));
163
+ var import_translation = __toESM(require("./components/translation"));
162
164
  // Annotate the CommonJS export names for ESM import in node:
163
165
  0 && (module.exports = {
164
166
  Affix,
@@ -218,6 +220,7 @@ var import_filter = __toESM(require("./components/filter"));
218
220
  Timeline,
219
221
  Tooltip,
220
222
  Transfer,
223
+ Translation,
221
224
  Tree,
222
225
  TreeSelect,
223
226
  Typography,
@@ -0,0 +1,186 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'Translation',
6
+ title: '多语言输入框',
7
+ category: '表单',
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Translation",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ props: [
20
+ {
21
+ name: 'defaultValue',
22
+ title: { label: '默认值', tip: '默认内容' },
23
+ setter: 'JsonSetter',
24
+ },
25
+ {
26
+ name: 'value',
27
+ title: { label: '当前值', tip: '当前值' },
28
+ setter: 'JsonSetter'
29
+ },
30
+ {
31
+ name: 'bordered',
32
+ title: { label: '显示边框', tip: '是否有边框' },
33
+ propType: 'bool',
34
+ defaultValue: true,
35
+ setter: 'BoolSetter',
36
+ },
37
+ {
38
+ name: 'disabled',
39
+ title: { label: '是否禁用', tip: '是否为禁用状态' },
40
+ propType: 'bool',
41
+ defaultValue: false,
42
+ setter: 'BoolSetter',
43
+ },
44
+ {
45
+ name: 'placeholder',
46
+ title: { label: '占位提示', tip: '占位提示' },
47
+ propType: 'string',
48
+ defaultValue: '请输入',
49
+ setter: 'PisellI18nSetter'
50
+ },
51
+ // {
52
+ // name: 'id',
53
+ // title: { label: '输入框ID', tip: '输入框的ID' },
54
+ // propType: 'string',
55
+ // },
56
+ {
57
+ name: 'maxLength',
58
+ title: { label: '最大长度', tip: '最大长度' },
59
+ propType: 'number',
60
+ setter: 'NumberSetter',
61
+ },
62
+ {
63
+ name: 'size',
64
+ title: { label: '控件大小', tip: '控件大小' },
65
+ setter: {
66
+ componentName: 'RadioGroupSetter',
67
+ props: {
68
+ options: [
69
+ {
70
+ title: '大',
71
+ value: 'large',
72
+ },
73
+ {
74
+ title: '中',
75
+ value: 'middle',
76
+ },
77
+ {
78
+ title: '小',
79
+ value: 'small',
80
+ },
81
+ ],
82
+ },
83
+ },
84
+ propType: { type: 'oneOf', value: ['large', 'middle', 'small'] },
85
+ defaultValue: 'middle',
86
+ },
87
+ {
88
+ name: 'addonAfter',
89
+ title: { label: '后置标签', tip: '后置标签' },
90
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
91
+ setter: ['PisellI18nSetter', 'SlotSetter']
92
+ },
93
+ {
94
+ name: 'addonBefore',
95
+ title: { label: '前置标签', tip: '前置标签' },
96
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
97
+ setter: ['PisellI18nSetter', 'SlotSetter']
98
+ },
99
+ {
100
+ name: 'prefix',
101
+ title: { label: '前缀', tip: '前缀' },
102
+ propType: { type: 'oneOfType', value: ['string', 'node'] },
103
+ setter: ['PisellI18nSetter', 'SlotSetter']
104
+ },
105
+ // {
106
+ // name: 'suffix',
107
+ // title: { label: '后缀', tip: '后缀' },
108
+ // propType: { type: 'oneOfType', value: ['string', 'node'] },
109
+ // setter: ['PisellI18nSetter', 'SlotSetter']
110
+ // },
111
+ {
112
+ name: 'onChange',
113
+ title: { label: '输入框内容变化时的回调', tip: '输入框内容变化时的回调' },
114
+ propType: 'func',
115
+ },
116
+ {
117
+ name: 'onPressEnter',
118
+ title: { label: '按下回车的回调', tip: '按下回车的回调' },
119
+ propType: 'func',
120
+ },
121
+ {
122
+ name: 'onFocus',
123
+ title: { label: '获取焦点回调', tip: '获取焦点回调' },
124
+ propType: 'func',
125
+ },
126
+ {
127
+ name: 'onKeyDown',
128
+ title: { label: '按键按下时的回调', tip: '按键按下时的回调' },
129
+ propType: 'func',
130
+ },
131
+ {
132
+ name: 'onKeyPress',
133
+ title: { label: '按键按下后的回调', tip: '按键按下之后释放之前的回调' },
134
+ propType: 'func',
135
+ },
136
+ {
137
+ name: 'onKeyUp',
138
+ title: { label: '按键释放回调', tip: '按键释放之后的回调' },
139
+ propType: 'func',
140
+ },
141
+ {
142
+ name: 'onBlur',
143
+ title: { label: '失去焦点回调', tip: '失去焦点回调' },
144
+ propType: 'func',
145
+ },
146
+ ],
147
+ configure: {
148
+ supports: {
149
+ style: true,
150
+ events: [
151
+ {
152
+ name: 'onChange',
153
+ template:
154
+ "onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
155
+ },
156
+ {
157
+ name: 'onPressEnter',
158
+ template:
159
+ "onPressEnter(event,${extParams}){\n// 按下回车的回调\nconsole.log('onPressEnter',event);}",
160
+ },
161
+ {
162
+ name: 'onFocus',
163
+ template: "onFocus(event,${extParams}){\n// 获取焦点回调\nconsole.log('onFocus',event);}",
164
+ },
165
+ {
166
+ name: 'onKeyDown',
167
+ template:
168
+ "onKeyDown(event,${extParams}){\n// 按键按下时的回调\nconsole.log('onKeyDown',event);}",
169
+ },
170
+ {
171
+ name: 'onKeyPress',
172
+ template:
173
+ "onKeyPress(event,${extParams}){\n// 按键按下后的回调\nconsole.log('onKeyPress',event);}",
174
+ },
175
+ {
176
+ name: 'onKeyUp',
177
+ template: "onKeyUp(event,${extParams}){\n// 按键释放回调\nconsole.log('onKeyUp',event);}",
178
+ },
179
+ {
180
+ name: 'onBlur',
181
+ template: "onBlur(event,${extParams}){\n// 按键释放回调\nconsole.log('onBlur',event);}",
182
+ },
183
+ ],
184
+ },
185
+ },
186
+ };
@@ -0,0 +1,12 @@
1
+ export default [
2
+ {
3
+ title: '多语言输入框',
4
+ screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/input-1.png',
5
+ schema: {
6
+ componentName: 'Translation',
7
+ props: {
8
+ placeholder: '请输入',
9
+ },
10
+ },
11
+ },
12
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1 +0,0 @@
1
- .materials-grid{display:flex;flex-direction:column;height:100%;width:100%}.materials-grid-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-header .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-actions .left-wrap{align-items:center;display:flex;flex:1 1}.materials-grid-actions .left-wrap .pisell-lowcode-form-item{margin-bottom:0}.materials-grid-actions .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions .right-wrap .icon{cursor:pointer;transition:.2s}.materials-grid-actions .right-wrap .icon:hover{color:var(--theme-color)}.materials-grid-actions .right-wrap .button{align-items:center;display:flex;font-size:12px;height:28px;justify-content:center}.filter-dropdown-wrap{display:flex;flex-direction:column;max-height:400px;max-width:calc(100vw - 24px);min-width:250px;padding:4px;width:400px}.filter-dropdown-wrap .filter-dropdown-wrap-content{flex:1 1;overflow:auto}.filter-dropdown-wrap .filter-dropdown-drag-item{align-items:center;background:#f9fafb;background:var(--gray-50,#f9fafb);border-radius:8px;display:flex;margin-bottom:12px;padding:8px 12px 12px}.filter-dropdown-wrap .filter-dropdown-drag-item .dots-six-icon{color:#98a2b3;cursor:pointer;font-size:24px}.filter-dropdown-wrap .filter-dropdown-drag-item .pisell-lowcode-form-item{margin-bottom:0}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right{flex:1 1;margin-left:16px}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right .filter-dropdown-drag-item-title{color:#777;color:var(--text-text-2,#777);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.filter-dropdown-container-wrap{border-bottom:1px solid #e2e2e2;border-bottom:1px solid var(--surface-surface-4,#e2e2e2);margin-bottom:20px;min-height:70px}.filter-dropdown-container-wrap:last-child{border:none}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap{align-items:center;color:#919191;color:var(--text-text-3,#919191);display:flex;font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin-bottom:12px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-title{color:#101828;color:var(--gray-900,#101828);font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-right:6px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-icon-help{color:#98a2b3;color:var(--gray-400,#98a2b3);font-size:20px}.filter-dropdown-container-wrap .filter-dropdown-container-filter-wrap{min-height:80px}.materials-sort-list-empty{color:#5a5a5a;display:block;padding-top:22px;text-align:center}.materials-grid-summary{margin-bottom:16px}.grid-view-table-wrap{position:relative}.materials-grid-paginator{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:center;margin:0!important;padding:0 20px;width:100%}.materials-grid-paginator .pisell-lowcode-pagination-total-text{color:#667085;color:var(--gray-500,#667085);font-size:14px;font-style:normal;font-weight:500;margin-right:auto}.materials-grid-paginator .pisell-lowcode-pagination-item{border:1px solid #d0d5dd;border-radius:0;border-right:0;margin:0;position:relative}.materials-grid-paginator .pisell-lowcode-pagination-jump-next,.materials-grid-paginator .pisell-lowcode-pagination-jump-prev{border:1px solid #d0d5dd;border-radius:0;border-right:none;margin:0}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover .pisell-lowcode-pagination-item-link-icon{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active:hover{border-color:#d0d5dd!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active{background-color:rgba(0,0,0,.06)}.materials-grid-paginator .pisell-lowcode-pagination-item-active a{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-prev{align-items:center;border:1px solid #d0d5dd;border-radius:8px 0 0 8px;border-right:none;display:flex;justify-content:center;margin:0;min-width:auto}.materials-grid-paginator .pisell-lowcode-pagination-next{align-items:center;border:1px solid #d0d5dd;border-radius:0 8px 8px 0;display:flex;justify-content:center;margin:0;min-width:auto}.paginator-page-btn{align-items:center;border-radius:4px 4px 4px 4px;color:#344054;color:var(--gray-700,#344054);cursor:pointer;display:flex;font-size:12px;font-weight:400;justify-content:center;padding:10px 16px;transition:.2s;-ms-user-select:none;user-select:none}.paginator-page-btn .paginator-page-btn-text{font-weight:600}.paginator-page-btn .paginator-page-btn-left-icon,.paginator-page-btn .paginator-page-btn-right-icon{font-size:20px}.paginator-page-btn .paginator-page-btn-left-icon{margin-right:8px}.paginator-page-btn .paginator-page-btn-right-icon{margin-left:8px}.paginator-page-btn.left{margin-right:auto}.paginator-page-btn.left .icon{font-size:18px;margin-right:8px}.paginator-page-btn.right{margin-left:auto}.paginator-page-btn.right .icon{font-size:18px;margin-left:8px;transform:rotate(180deg)}.materials-grid-paginator-mini{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:space-between;margin:0!important;overflow:hidden;padding:0 20px;width:100%}.materials-grid-paginator-mini .paginator-page-btn{padding:8px}.materials-grid-paginator-mini .materials-grid-paginator-center{align-items:center;display:flex;gap:4px;justify-content:center}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-text{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:400}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-value{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:500}.materials-grid-paginator-mini .pisell-lowcode-pagination-next,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev{border:1px solid #d0d5dd;border-radius:8px;margin:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-left-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-left-icon{margin-right:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-right-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-right-icon{margin-left:0}.react-resizable{position:relative}.react-resizable-handle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZaIiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+);background-origin:content-box;background-position:100% 100%;background-repeat:no-repeat;box-sizing:border-box;height:20px;padding:0 3px 3px 0;position:absolute;width:20px}.react-resizable-handle-sw{bottom:0;cursor:sw-resize;left:0;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;cursor:se-resize;right:0}.react-resizable-handle-nw{cursor:nw-resize;left:0;top:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;right:0;top:0;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;left:50%;margin-left:-10px}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.materials-grid-table-header-cell{align-items:center;display:flex;height:44px;padding:0 14px}.materials-grid-table-header-cell .field-icon{color:#777;font-size:18px}.materials-grid-table-header-cell .materials-grid-table-header-cell-content{color:#1b1b1b;flex:auto;font-size:14px;font-weight:600;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.materials-grid-table-header-cell .actions{align-items:center;display:flex;gap:8px}.materials-grid-table-header-cell .actions .action{color:#ababab;cursor:pointer;font-size:14px}.editable-cell-value-wrap{height:100%;width:100%}.materials-grid-table-cell{height:1px;padding:0!important}.cell-provider{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:100%;justify-content:center;padding:12px;position:relative;width:100%}.cell-provider.focus{box-shadow:var(--theme-color) 0 0 0 1px!important}