@kingteza/crud-component 1.34.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/rich/index.cjs.js +2 -2
- package/dist/common/rich/index.d.ts +2 -0
- package/dist/common/rich/index.es.js +97 -81
- package/dist/crud/CrudTextAreaComponent.cjs.js +1 -1
- package/dist/crud/CrudTextAreaComponent.d.ts +1 -1
- package/dist/crud/CrudTextAreaComponent.es.js +35 -31
- package/dist/crud/actions/index.cjs.js +1 -1
- package/dist/crud/actions/index.d.ts +4 -1
- package/dist/crud/actions/index.es.js +82 -63
- package/dist/crud/view/CrudDecListView.cjs.js +1 -1
- package/dist/crud/view/CrudDecListView.es.js +40 -36
- package/dist/crud/view/CrudViewer.cjs.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/style.css +1 -1
- package/dist/util/crud/crud-action.util.cjs.js +1 -0
- package/dist/util/crud/crud-action.util.d.ts +2 -0
- package/dist/util/crud/crud-action.util.es.js +20 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`)&&d.push(
|
|
1
|
+
"use strict";var U=Object.create;var P=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var K=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var Y=(i,n,s,h)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of $(n))!J.call(i,c)&&c!==s&&P(i,c,{get:()=>n[c],enumerable:!(h=W(n,c))||h.enumerable});return i};var _=(i,n,s)=>(s=i!=null?U(K(i)):{},Y(n||!i||!i.__esModule?P(s,"default",{value:i,enumerable:!0}):s,i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),v=require("antd"),l=require("react"),Z=require("../../util/ValidationUtil.cjs.js"),ee=async()=>{const{Quill:i}=await import("react-quill-new"),n=i.import("blots/block");n.tagName="div",i.register(n)},te=22,ne=8,ie=(i,n)=>{const s={};return i!=null&&i>0&&(s["--rich-editor-min-height"]=`${i*te+ne}px`),n!=null&&n>0&&(s.width=`min(100%, ${n}ch)`),s},re=({formLayoutProps:i,name:n,label:s,required:h,rules:c=[],disabled:V,help:j,rows:k,cols:q})=>{const a=v.Form.useFormInstance(),[T,g]=l.useState(""),[b,w]=l.useState(!1),[R,N]=l.useState(null),p=l.useRef(!1),r=" ";l.useEffect(()=>{w(!0)},[]),l.useEffect(()=>{if(!b)return;let t=!1;return(async()=>{await ee();const{default:e}=await import("react-quill-new");t||N(()=>e)})(),()=>{t=!0}},[b]);const f=t=>{if(!t)return"";if(typeof t=="string")return t;try{return String(t)}catch{return""}},Q=()=>function(t){const e=this.quill,u=e.getSelection(!0);if(u){const x=u.index,E=u.index+u.length,D=e.getText(),d=[];for(let o=x;o<=E;o++)(o===0||D[o-1]===`
|
|
2
|
+
`)&&d.push(o);if(d.length===0&&d.push(x),t>0){let o=0;d.forEach(m=>{e.insertText(m+o,r),o+=r.length}),e.setSelection(x+r.length,E+d.length*r.length)}else{let o=0;d.forEach(O=>{const C=O-o;e.getText(C,r.length)===r&&(e.deleteText(C,r.length),o+=r.length)});const m=Math.max(0,x-r.length),G=Math.max(m,E-o);e.setSelection(m,G)}}},X=()=>function(){const t=this.quill,e=t.getSelection(!0);return e?(t.insertText(e.index,r),t.setSelection(e.index+r.length),!1):!0},B=()=>function(){const t=this.quill,e=t.getSelection(!0);return e&&e.index>=r.length&&t.getText(e.index-r.length,r.length)===r?(t.deleteText(e.index-r.length,r.length),t.setSelection(e.index-r.length),!1):!0},M=l.useMemo(()=>{const t=Q(),e=X(),u=B();return{toolbar:{container:[["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],["link"],["clean"]],handlers:{indent:t}},keyboard:{bindings:{tab:{key:"Tab",handler:e},"shift-tab":{key:"Tab",shiftKey:!0,handler:u}}}}},[]),H=l.useMemo(()=>["bold","italic","underline","strike","blockquote","list","bullet","link"],[]);l.useEffect(()=>{const t=a.getFieldValue(n),e=f(t);e&&e!=="<p></p>"&&e!=="<p><br></p>"&&e!=="<div></div>"&&g(e)},[a,n]);const F=v.Form.useWatch(n,a);l.useEffect(()=>{if(p.current)return;const t=f(F),e=f(T);t!==e&&g(!t||t==="<p></p>"||t==="<p><br></p>"||t==="<div></div>"?"":t)},[F]);const I=l.useCallback(t=>{const e=f(t);p.current=!0,g(e);const u=!e||e==="<p></p>"||e.trim()==="<p><br></p>"||e==="<div></div>"||e.trim()==="<div></div>"?void 0:e;a.setFieldValue(n,u),setTimeout(()=>{p.current=!1},0),a.validateFields([n]).catch(()=>{})},[a,n]),L=l.useMemo(()=>h?[...c,...Z.required(s??"")]:c,[h,c,s]),A=l.useMemo(()=>f(T)||"",[T]),S=l.useMemo(()=>ie(k,q),[k,q]),z=l.useMemo(()=>({readOnly:!!V,value:String(A||""),onChange:I,theme:"snow",className:"rich-text-editor",style:S,modules:M,formats:H}),[V,A,I,M,H,S]);return y.jsx(v.Form.Item,{help:j,name:n,label:s,rules:L,...i,children:b&&R?y.jsx(R,{...z}):y.jsx("div",{className:"rich-text-editor rich-text-editor--loading",style:S,children:"Loading editor..."})})};exports.RichTextEditor=re;
|
|
@@ -10,5 +10,7 @@ export interface RichTextEditorProps {
|
|
|
10
10
|
rules?: Rule[];
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
formLayoutProps?: Pick<FormItemProps, "layout" | "labelCol" | "wrapperCol">;
|
|
13
|
+
rows?: number;
|
|
14
|
+
cols?: number;
|
|
13
15
|
}
|
|
14
16
|
export declare const RichTextEditor: FC<RichTextEditorProps>;
|
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Form as
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
const { Quill:
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as V } from "react/jsx-runtime";
|
|
2
|
+
import { Form as k } from "antd";
|
|
3
|
+
import { useState as v, useRef as $, useEffect as x, useMemo as u, useCallback as j } from "react";
|
|
4
|
+
import K from "../../util/ValidationUtil.es.js";
|
|
5
|
+
const O = async () => {
|
|
6
|
+
const { Quill: o } = await import("react-quill-new"), i = o.import("blots/block");
|
|
7
|
+
i.tagName = "div", o.register(i);
|
|
8
|
+
}, J = 22, Y = 8, Z = (o, i) => {
|
|
9
|
+
const s = {};
|
|
10
|
+
return o != null && o > 0 && (s["--rich-editor-min-height"] = `${o * J + Y}px`), i != null && i > 0 && (s.width = `min(100%, ${i}ch)`), s;
|
|
11
|
+
}, lt = ({
|
|
12
|
+
formLayoutProps: o,
|
|
13
|
+
name: i,
|
|
14
|
+
label: s,
|
|
15
|
+
required: y,
|
|
13
16
|
rules: p = [],
|
|
14
|
-
disabled:
|
|
15
|
-
help:
|
|
17
|
+
disabled: q,
|
|
18
|
+
help: P,
|
|
19
|
+
rows: R,
|
|
20
|
+
cols: H
|
|
16
21
|
}) => {
|
|
17
|
-
const
|
|
22
|
+
const c = k.useFormInstance(), [m, h] = v(""), [T, Q] = v(!1), [I, M] = v(
|
|
18
23
|
null
|
|
19
|
-
),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, []),
|
|
23
|
-
if (!
|
|
24
|
+
), b = $(!1), n = " ";
|
|
25
|
+
x(() => {
|
|
26
|
+
Q(!0);
|
|
27
|
+
}, []), x(() => {
|
|
28
|
+
if (!T) return;
|
|
24
29
|
let e = !1;
|
|
25
30
|
return (async () => {
|
|
26
|
-
await
|
|
31
|
+
await O();
|
|
27
32
|
const { default: t } = await import("react-quill-new");
|
|
28
|
-
e ||
|
|
33
|
+
e || M(() => t);
|
|
29
34
|
})(), () => {
|
|
30
35
|
e = !0;
|
|
31
36
|
};
|
|
32
|
-
}, [
|
|
33
|
-
const
|
|
37
|
+
}, [T]);
|
|
38
|
+
const d = (e) => {
|
|
34
39
|
if (!e) return "";
|
|
35
40
|
if (typeof e == "string") return e;
|
|
36
41
|
try {
|
|
@@ -38,35 +43,35 @@ const G = async () => {
|
|
|
38
43
|
} catch {
|
|
39
44
|
return "";
|
|
40
45
|
}
|
|
41
|
-
},
|
|
46
|
+
}, X = () => function(e) {
|
|
42
47
|
const t = this.quill, l = t.getSelection(!0);
|
|
43
48
|
if (l) {
|
|
44
|
-
const
|
|
45
|
-
for (let
|
|
46
|
-
(
|
|
47
|
-
`) &&
|
|
48
|
-
if (
|
|
49
|
-
let
|
|
50
|
-
|
|
51
|
-
t.insertText(
|
|
49
|
+
const f = l.index, E = l.index + l.length, G = t.getText(), a = [];
|
|
50
|
+
for (let r = f; r <= E; r++)
|
|
51
|
+
(r === 0 || G[r - 1] === `
|
|
52
|
+
`) && a.push(r);
|
|
53
|
+
if (a.length === 0 && a.push(f), e > 0) {
|
|
54
|
+
let r = 0;
|
|
55
|
+
a.forEach((g) => {
|
|
56
|
+
t.insertText(g + r, n), r += n.length;
|
|
52
57
|
}), t.setSelection(
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
f + n.length,
|
|
59
|
+
E + a.length * n.length
|
|
55
60
|
);
|
|
56
61
|
} else {
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
t.getText(
|
|
62
|
+
let r = 0;
|
|
63
|
+
a.forEach((W) => {
|
|
64
|
+
const N = W - r;
|
|
65
|
+
t.getText(N, n.length) === n && (t.deleteText(N, n.length), r += n.length);
|
|
61
66
|
});
|
|
62
|
-
const
|
|
63
|
-
t.setSelection(
|
|
67
|
+
const g = Math.max(0, f - n.length), U = Math.max(g, E - r);
|
|
68
|
+
t.setSelection(g, U);
|
|
64
69
|
}
|
|
65
70
|
}
|
|
66
|
-
},
|
|
71
|
+
}, B = () => function() {
|
|
67
72
|
const e = this.quill, t = e.getSelection(!0);
|
|
68
73
|
return t ? (e.insertText(t.index, n), e.setSelection(t.index + n.length), !1) : !0;
|
|
69
|
-
},
|
|
74
|
+
}, L = () => function() {
|
|
70
75
|
const e = this.quill, t = e.getSelection(!0);
|
|
71
76
|
return t && t.index >= n.length && e.getText(
|
|
72
77
|
t.index - n.length,
|
|
@@ -75,8 +80,8 @@ const G = async () => {
|
|
|
75
80
|
t.index - n.length,
|
|
76
81
|
n.length
|
|
77
82
|
), e.setSelection(t.index - n.length), !1) : !0;
|
|
78
|
-
},
|
|
79
|
-
const e =
|
|
83
|
+
}, A = u(() => {
|
|
84
|
+
const e = X(), t = B(), l = L();
|
|
80
85
|
return {
|
|
81
86
|
toolbar: {
|
|
82
87
|
container: [
|
|
@@ -104,7 +109,7 @@ const G = async () => {
|
|
|
104
109
|
}
|
|
105
110
|
}
|
|
106
111
|
};
|
|
107
|
-
}, []),
|
|
112
|
+
}, []), C = u(
|
|
108
113
|
() => [
|
|
109
114
|
"bold",
|
|
110
115
|
"italic",
|
|
@@ -117,55 +122,66 @@ const G = async () => {
|
|
|
117
122
|
],
|
|
118
123
|
[]
|
|
119
124
|
);
|
|
120
|
-
|
|
121
|
-
const e =
|
|
122
|
-
t && t !== "<p></p>" && t !== "<p><br></p>" && t !== "<div></div>" &&
|
|
123
|
-
}, [
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
if (
|
|
125
|
+
x(() => {
|
|
126
|
+
const e = c.getFieldValue(i), t = d(e);
|
|
127
|
+
t && t !== "<p></p>" && t !== "<p><br></p>" && t !== "<div></div>" && h(t);
|
|
128
|
+
}, [c, i]);
|
|
129
|
+
const _ = k.useWatch(i, c);
|
|
130
|
+
x(() => {
|
|
131
|
+
if (b.current)
|
|
127
132
|
return;
|
|
128
|
-
const e =
|
|
129
|
-
e !== t &&
|
|
130
|
-
}, [
|
|
131
|
-
const
|
|
133
|
+
const e = d(_), t = d(m);
|
|
134
|
+
e !== t && h(!e || e === "<p></p>" || e === "<p><br></p>" || e === "<div></div>" ? "" : e);
|
|
135
|
+
}, [_]);
|
|
136
|
+
const w = j(
|
|
132
137
|
(e) => {
|
|
133
|
-
const t =
|
|
134
|
-
|
|
138
|
+
const t = d(e);
|
|
139
|
+
b.current = !0, h(t);
|
|
135
140
|
const l = !t || t === "<p></p>" || t.trim() === "<p><br></p>" || t === "<div></div>" || t.trim() === "<div></div>" ? void 0 : t;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}, 0),
|
|
141
|
+
c.setFieldValue(i, l), setTimeout(() => {
|
|
142
|
+
b.current = !1;
|
|
143
|
+
}, 0), c.validateFields([i]).catch(() => {
|
|
139
144
|
});
|
|
140
145
|
},
|
|
141
|
-
[
|
|
142
|
-
),
|
|
143
|
-
() =>
|
|
144
|
-
[
|
|
145
|
-
), F =
|
|
146
|
+
[c, i]
|
|
147
|
+
), z = u(
|
|
148
|
+
() => y ? [...p, ...K.required(s ?? "")] : p,
|
|
149
|
+
[y, p, s]
|
|
150
|
+
), F = u(() => d(m) || "", [m]), S = u(
|
|
151
|
+
() => Z(R, H),
|
|
152
|
+
[R, H]
|
|
153
|
+
), D = u(
|
|
146
154
|
() => ({
|
|
147
|
-
readOnly: !!
|
|
155
|
+
readOnly: !!q,
|
|
148
156
|
value: String(F || ""),
|
|
149
|
-
onChange:
|
|
157
|
+
onChange: w,
|
|
150
158
|
theme: "snow",
|
|
151
159
|
className: "rich-text-editor",
|
|
152
|
-
|
|
153
|
-
|
|
160
|
+
style: S,
|
|
161
|
+
modules: A,
|
|
162
|
+
formats: C
|
|
154
163
|
}),
|
|
155
|
-
[
|
|
164
|
+
[q, F, w, A, C, S]
|
|
156
165
|
);
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
|
|
166
|
+
return /* @__PURE__ */ V(
|
|
167
|
+
k.Item,
|
|
159
168
|
{
|
|
160
|
-
help:
|
|
161
|
-
name:
|
|
162
|
-
label:
|
|
163
|
-
rules:
|
|
164
|
-
...
|
|
165
|
-
children:
|
|
169
|
+
help: P,
|
|
170
|
+
name: i,
|
|
171
|
+
label: s,
|
|
172
|
+
rules: z,
|
|
173
|
+
...o,
|
|
174
|
+
children: T && I ? /* @__PURE__ */ V(I, { ...D }) : /* @__PURE__ */ V(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
className: "rich-text-editor rich-text-editor--loading",
|
|
178
|
+
style: S,
|
|
179
|
+
children: "Loading editor..."
|
|
180
|
+
}
|
|
181
|
+
)
|
|
166
182
|
}
|
|
167
183
|
);
|
|
168
184
|
};
|
|
169
185
|
export {
|
|
170
|
-
|
|
186
|
+
lt as RichTextEditor
|
|
171
187
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),w=require("../common/text-field/TextArea.cjs.js"),F=require("../common/rich/index.cjs.js"),R=require("antd"),g=require("../util/CrudUtil.cjs.js"),p=({onChange:r,label:s,required:i,rules:o,name:c,updatable:l=!0,formLayoutProps:n,maxLength:a,rows:m,cols:x,...e})=>{const f=R.Form.useFormInstance(),h=g.getRealName(c,"upsertFieldName");if(e.rich)return u.jsx(F.RichTextEditor,{name:h,label:s,required:i,rules:o,disabled:!l,help:e.fieldHelper,formLayoutProps:n,rows:m,cols:x});{const{placeholder:N,rows:q,cols:C,fieldClassName:T,fieldTooltip:j}=e;return u.jsx(w.default,{...n,maxLength:a,rules:o,placeholder:N,onChange:r?t=>{var d;return r((d=t==null?void 0:t.target)==null?void 0:d.value,f)}:void 0,tooltip:j,required:i,disabled:!l,name:c,label:s,className:T,rows:q,cols:C,help:e.fieldHelper})}};module.exports=p;
|
|
@@ -20,5 +20,5 @@ interface RichTextAreaProps<T> extends InitialTextAreaProps<T> {
|
|
|
20
20
|
rich?: true;
|
|
21
21
|
}
|
|
22
22
|
export type TextAreaBasedFieldProps<T> = TextAreaProps<T> & RichTextAreaProps<T> & Copyable<false>;
|
|
23
|
-
declare const CrudTextAreaComponent: <T>({ onChange, label, required, rules, name, updatable, formLayoutProps, maxLength, ...props }: TextAreaBasedFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const CrudTextAreaComponent: <T>({ onChange, label, required, rules, name, updatable, formLayoutProps, maxLength, rows, cols, ...props }: TextAreaBasedFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export default CrudTextAreaComponent;
|
|
@@ -1,59 +1,63 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { RichTextEditor as
|
|
4
|
-
import { Form as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
onChange:
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import F from "../common/text-field/TextArea.es.js";
|
|
3
|
+
import { RichTextEditor as g } from "../common/rich/index.es.js";
|
|
4
|
+
import { Form as A } from "antd";
|
|
5
|
+
import H from "../util/CrudUtil.es.js";
|
|
6
|
+
const b = ({
|
|
7
|
+
onChange: t,
|
|
8
8
|
label: r,
|
|
9
9
|
required: i,
|
|
10
10
|
rules: m,
|
|
11
11
|
name: l,
|
|
12
|
-
updatable:
|
|
13
|
-
formLayoutProps:
|
|
14
|
-
maxLength:
|
|
12
|
+
updatable: s = !0,
|
|
13
|
+
formLayoutProps: d,
|
|
14
|
+
maxLength: a,
|
|
15
|
+
rows: f,
|
|
16
|
+
cols: p,
|
|
15
17
|
...e
|
|
16
18
|
}) => {
|
|
17
|
-
const
|
|
19
|
+
const h = A.useFormInstance(), u = H.getRealName(l, "upsertFieldName");
|
|
18
20
|
if (e.rich)
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
21
|
+
return /* @__PURE__ */ n(
|
|
22
|
+
g,
|
|
21
23
|
{
|
|
22
|
-
name:
|
|
24
|
+
name: u,
|
|
23
25
|
label: r,
|
|
24
26
|
required: i,
|
|
25
27
|
rules: m,
|
|
26
|
-
disabled: !
|
|
28
|
+
disabled: !s,
|
|
27
29
|
help: e.fieldHelper,
|
|
28
|
-
formLayoutProps:
|
|
30
|
+
formLayoutProps: d,
|
|
31
|
+
rows: f,
|
|
32
|
+
cols: p
|
|
29
33
|
}
|
|
30
34
|
);
|
|
31
35
|
{
|
|
32
|
-
const { placeholder:
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
|
|
36
|
+
const { placeholder: x, rows: C, cols: N, fieldClassName: T, fieldTooltip: w } = e;
|
|
37
|
+
return /* @__PURE__ */ n(
|
|
38
|
+
F,
|
|
35
39
|
{
|
|
36
|
-
...
|
|
37
|
-
maxLength:
|
|
40
|
+
...d,
|
|
41
|
+
maxLength: a,
|
|
38
42
|
rules: m,
|
|
39
|
-
placeholder:
|
|
40
|
-
onChange:
|
|
41
|
-
var
|
|
42
|
-
return
|
|
43
|
+
placeholder: x,
|
|
44
|
+
onChange: t ? (o) => {
|
|
45
|
+
var c;
|
|
46
|
+
return t((c = o == null ? void 0 : o.target) == null ? void 0 : c.value, h);
|
|
43
47
|
} : void 0,
|
|
44
|
-
tooltip:
|
|
48
|
+
tooltip: w,
|
|
45
49
|
required: i,
|
|
46
|
-
disabled: !
|
|
50
|
+
disabled: !s,
|
|
47
51
|
name: l,
|
|
48
52
|
label: r,
|
|
49
|
-
className:
|
|
50
|
-
rows:
|
|
51
|
-
cols:
|
|
53
|
+
className: T,
|
|
54
|
+
rows: C,
|
|
55
|
+
cols: N,
|
|
52
56
|
help: e.fieldHelper
|
|
53
57
|
}
|
|
54
58
|
);
|
|
55
59
|
}
|
|
56
60
|
};
|
|
57
61
|
export {
|
|
58
|
-
|
|
62
|
+
b as default
|
|
59
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),b=require("react"),$=require("../../common/button/CloneButtonTable.cjs.js"),H=require("../../common/button/DeleteButtonTable.cjs.js"),w=require("../../common/button/ExportButton.cjs.js"),B=require("../../common/button/HideButtonTable.cjs.js"),C=require("../../common/button/UpdateButtonTable.cjs.js"),k=require("../../util/crud/crud-action.util.cjs.js"),V=require("../modal/index.cjs.js");function K({data:u,idField:r="id",extraAction:c,onUpdate:L,onClickUpdate:v,onClickClone:m,onDelete:y,onHide:g,onExport:_,isHiding:o,isDeleting:S,confirmHiding:N,confirmDeleting:Q,closeViewOnClickUpdate:n,recentUpdateOrDeleteId:A,setRecentUpdateOrDeleteId:j,setOpenView:x,inBuiltModalProps:q,updatable:T,deletable:h}){const W=c==null?void 0:c(u),E=b.useRef(null),z=b.useCallback((f,Z=!0,G=!1)=>{var J;j==null||j(f[r]),q?(J=E.current)==null||J.update(f,Z,G):G?m==null||m(f):v==null||v(f),n&&(x==null||x(void 0))},[r,q,m,v,n,x,j]),X=b.useMemo(()=>!!(!T||T(u)),[T,u]),Y=b.useMemo(()=>!!(!h||h(u)),[h,u]);return s.jsxs(s.Fragment,{children:[q&&s.jsx(V,{ref:E,...q}),W,(L||v||(q==null?void 0:q.onUpdate))&&X&&s.jsx(C,{value:u,onClick:f=>z(f)}),(m||(q==null?void 0:q.onCreate))&&s.jsx($,{value:u,onClick:f=>z(f,!1,!0)}),_&&s.jsx(w.ExportButton,{value:u,onClick:async f=>await _(f)}),g&&s.jsx(B,{value:u,disabled:o,shouldConfirm:N,loading:o&&u[r]===A,onClick:async f=>{j==null||j(f[r]),await g({[r]:f[r]})}}),y&&Y&&s.jsx(H,{value:u,disabled:S,shouldConfirm:Q,loading:S&&u[r]===A,onClick:async f=>{j==null||j(f[r]),await y({[r]:f[r]})}})]})}function F(u){if(k.hasCrudActions(u,u.data))return s.jsx(K,{...u})}exports.CrudActionsInternal=K;exports.default=F;
|
|
@@ -22,7 +22,10 @@ export interface CrudActionsProps<T, FormType> {
|
|
|
22
22
|
setOpenView?: (data: T | undefined) => void;
|
|
23
23
|
inBuiltModalProps?: CrudModalProps<T, FormType>;
|
|
24
24
|
}
|
|
25
|
-
declare function
|
|
25
|
+
export declare function CrudActionsInternal<T, FormType>({ data, idField, extraAction, onUpdate, onClickUpdate, onClickClone, onDelete, onHide, onExport, isHiding, isDeleting, confirmHiding, confirmDeleting, closeViewOnClickUpdate, recentUpdateOrDeleteId, setRecentUpdateOrDeleteId, setOpenView, inBuiltModalProps, updatable, deletable, }: CrudActionsProps<T, FormType> & {
|
|
26
|
+
data: T;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function CrudActions<T, FormType>(props: CrudActionsProps<T, FormType> & {
|
|
26
29
|
data: T;
|
|
27
30
|
}): import("react/jsx-runtime").JSX.Element | undefined;
|
|
28
31
|
export default CrudActions;
|
|
@@ -1,85 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { ExportButton as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as h, jsxs as w, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as k, useCallback as B, useMemo as W } from "react";
|
|
3
|
+
import V from "../../common/button/CloneButtonTable.es.js";
|
|
4
|
+
import F from "../../common/button/DeleteButtonTable.es.js";
|
|
5
|
+
import { ExportButton as c } from "../../common/button/ExportButton.es.js";
|
|
6
|
+
import M from "../../common/button/HideButtonTable.es.js";
|
|
7
|
+
import s from "../../common/button/UpdateButtonTable.es.js";
|
|
8
|
+
import { hasCrudActions as P } from "../../util/crud/crud-action.util.es.js";
|
|
9
|
+
import R from "../modal/index.es.js";
|
|
10
|
+
function I({
|
|
11
|
+
data: f,
|
|
12
|
+
idField: u = "id",
|
|
13
|
+
extraAction: y,
|
|
14
|
+
onUpdate: X,
|
|
14
15
|
onClickUpdate: T,
|
|
15
|
-
onClickClone:
|
|
16
|
-
onDelete:
|
|
17
|
-
onHide:
|
|
18
|
-
onExport:
|
|
19
|
-
isHiding:
|
|
20
|
-
isDeleting:
|
|
21
|
-
confirmHiding:
|
|
22
|
-
confirmDeleting:
|
|
23
|
-
closeViewOnClickUpdate:
|
|
24
|
-
recentUpdateOrDeleteId:
|
|
25
|
-
setRecentUpdateOrDeleteId:
|
|
26
|
-
setOpenView:
|
|
27
|
-
inBuiltModalProps:
|
|
28
|
-
updatable:
|
|
29
|
-
deletable:
|
|
16
|
+
onClickClone: b,
|
|
17
|
+
onDelete: q,
|
|
18
|
+
onHide: x,
|
|
19
|
+
onExport: z,
|
|
20
|
+
isHiding: E,
|
|
21
|
+
isDeleting: G,
|
|
22
|
+
confirmHiding: Y,
|
|
23
|
+
confirmDeleting: Z,
|
|
24
|
+
closeViewOnClickUpdate: J,
|
|
25
|
+
recentUpdateOrDeleteId: K,
|
|
26
|
+
setRecentUpdateOrDeleteId: r,
|
|
27
|
+
setOpenView: o,
|
|
28
|
+
inBuiltModalProps: v,
|
|
29
|
+
updatable: j,
|
|
30
|
+
deletable: g
|
|
30
31
|
}) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
h == null || h(m[y]), f ? (u = Z.current) == null || u.update(m, k, E) : E ? q == null || q(m) : T == null || T(m), b && (Q == null || Q(void 0));
|
|
32
|
+
const _ = y == null ? void 0 : y(f), L = k(null), N = B(
|
|
33
|
+
(m, H = !0, Q = !1) => {
|
|
34
|
+
var S;
|
|
35
|
+
r == null || r(m[u]), v ? (S = L.current) == null || S.update(m, H, Q) : Q ? b == null || b(m) : T == null || T(m), J && (o == null || o(void 0));
|
|
36
36
|
},
|
|
37
|
-
[
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
[
|
|
38
|
+
u,
|
|
39
|
+
v,
|
|
40
|
+
b,
|
|
41
|
+
T,
|
|
42
|
+
J,
|
|
43
|
+
o,
|
|
44
|
+
r
|
|
45
|
+
]
|
|
46
|
+
), $ = W(
|
|
47
|
+
() => !!(!j || j(f)),
|
|
48
|
+
[j, f]
|
|
49
|
+
), A = W(
|
|
50
|
+
() => !!(!g || g(f)),
|
|
51
|
+
[g, f]
|
|
52
|
+
);
|
|
53
|
+
return /* @__PURE__ */ w(C, { children: [
|
|
54
|
+
v && /* @__PURE__ */ h(R, { ref: L, ...v }),
|
|
55
|
+
_,
|
|
56
|
+
(X || T || (v == null ? void 0 : v.onUpdate)) && $ && /* @__PURE__ */ h(s, { value: f, onClick: (m) => N(m) }),
|
|
57
|
+
(b || (v == null ? void 0 : v.onCreate)) && /* @__PURE__ */ h(
|
|
58
|
+
V,
|
|
45
59
|
{
|
|
46
|
-
value:
|
|
47
|
-
onClick: (m) =>
|
|
60
|
+
value: f,
|
|
61
|
+
onClick: (m) => N(m, !1, !0)
|
|
48
62
|
}
|
|
49
63
|
),
|
|
50
|
-
|
|
51
|
-
|
|
64
|
+
z && /* @__PURE__ */ h(
|
|
65
|
+
c,
|
|
52
66
|
{
|
|
53
|
-
value:
|
|
54
|
-
onClick: async (m) => await
|
|
67
|
+
value: f,
|
|
68
|
+
onClick: async (m) => await z(m)
|
|
55
69
|
}
|
|
56
70
|
),
|
|
57
|
-
|
|
58
|
-
|
|
71
|
+
x && /* @__PURE__ */ h(
|
|
72
|
+
M,
|
|
59
73
|
{
|
|
60
|
-
value:
|
|
61
|
-
disabled:
|
|
62
|
-
shouldConfirm:
|
|
63
|
-
loading:
|
|
74
|
+
value: f,
|
|
75
|
+
disabled: E,
|
|
76
|
+
shouldConfirm: Y,
|
|
77
|
+
loading: E && f[u] === K,
|
|
64
78
|
onClick: async (m) => {
|
|
65
|
-
|
|
79
|
+
r == null || r(m[u]), await x({ [u]: m[u] });
|
|
66
80
|
}
|
|
67
81
|
}
|
|
68
82
|
),
|
|
69
|
-
|
|
70
|
-
|
|
83
|
+
q && A && /* @__PURE__ */ h(
|
|
84
|
+
F,
|
|
71
85
|
{
|
|
72
|
-
value:
|
|
73
|
-
disabled:
|
|
74
|
-
shouldConfirm:
|
|
75
|
-
loading:
|
|
86
|
+
value: f,
|
|
87
|
+
disabled: G,
|
|
88
|
+
shouldConfirm: Z,
|
|
89
|
+
loading: G && f[u] === K,
|
|
76
90
|
onClick: async (m) => {
|
|
77
|
-
|
|
91
|
+
r == null || r(m[u]), await q({ [u]: m[u] });
|
|
78
92
|
}
|
|
79
93
|
}
|
|
80
94
|
)
|
|
81
|
-
] })
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
function d(f) {
|
|
98
|
+
if (P(f, f.data))
|
|
99
|
+
return /* @__PURE__ */ h(I, { ...f });
|
|
82
100
|
}
|
|
83
101
|
export {
|
|
84
|
-
|
|
102
|
+
I as CrudActionsInternal,
|
|
103
|
+
d as default
|
|
85
104
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),C=require("../../common/description/DescList.cjs.js"),h=require("react"),x=require("../../locale/index.cjs.js"),j=require("./CrudViewerUtil.cjs.js"),w=require("../../util/CrudUtil.cjs.js"),V=require("../actions/index.cjs.js"),v=require("../../util/ObjectUtil.cjs.js"),f=require("../../util/crud/crud-action.util.cjs.js");function L({className:a,fields:n,data:e,descListColumn:d={xs:1,md:3,sm:2,lg:4},layout:m,keepEmptyValues:q,inBuiltModalProps:o,...i}){const{t:s}=x.useTranslationLib(),b=h.useMemo(()=>{const c=n.filter(({hidden:t,hideInDescList:u})=>!t&&!u).map((t,u)=>{const g=w.getRealName(t.name);return{label:t.label,noFormatting:!0,value:j.getRendererValueCrudViewer(t)(v.getValueByPath(e,g),e,u)}}),l=f.hasCrudActions(i,e)?r.jsx(V.CrudActionsInternal,{data:e,...i,inBuiltModalProps:o?{...o,fields:n}:void 0}):void 0;return l&&c.push({label:s("str.action"),value:l}),c},[e,n,s,i]);return e?r.jsx(C,{keepEmptyValues:q,bordered:!0,column:d,className:a,layout:m,list:b}):r.jsx(r.Fragment,{})}exports.CrudDecListView=L;
|
|
@@ -1,57 +1,61 @@
|
|
|
1
|
-
import { jsx as m, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { useTranslationLib as
|
|
5
|
-
import { getRendererValueCrudViewer as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { getValueByPath as
|
|
1
|
+
import { jsx as m, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import C from "../../common/description/DescList.es.js";
|
|
3
|
+
import { useMemo as b } from "react";
|
|
4
|
+
import { useTranslationLib as v } from "../../locale/index.es.js";
|
|
5
|
+
import { getRendererValueCrudViewer as w } from "./CrudViewerUtil.es.js";
|
|
6
|
+
import V from "../../util/CrudUtil.es.js";
|
|
7
|
+
import { CrudActionsInternal as x } from "../actions/index.es.js";
|
|
8
|
+
import { getValueByPath as F } from "../../util/ObjectUtil.es.js";
|
|
9
|
+
import { hasCrudActions as L } from "../../util/crud/crud-action.util.es.js";
|
|
9
10
|
function T({
|
|
10
|
-
className:
|
|
11
|
+
className: c,
|
|
11
12
|
fields: t,
|
|
12
|
-
data:
|
|
13
|
+
data: o,
|
|
13
14
|
descListColumn: f = { xs: 1, md: 3, sm: 2, lg: 4 },
|
|
14
|
-
layout:
|
|
15
|
+
layout: p,
|
|
15
16
|
keepEmptyValues: a,
|
|
16
|
-
inBuiltModalProps:
|
|
17
|
-
...
|
|
17
|
+
inBuiltModalProps: n,
|
|
18
|
+
...e
|
|
18
19
|
}) {
|
|
19
|
-
const { t:
|
|
20
|
-
const l = t.filter(({ hidden:
|
|
21
|
-
const
|
|
20
|
+
const { t: s } = v(), h = b(() => {
|
|
21
|
+
const l = t.filter(({ hidden: r, hideInDescList: i }) => !r && !i).map((r, i) => {
|
|
22
|
+
const d = V.getRealName(r.name);
|
|
22
23
|
return {
|
|
23
|
-
label:
|
|
24
|
+
label: r.label,
|
|
24
25
|
noFormatting: !0,
|
|
25
|
-
value:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
value: w(r)(
|
|
27
|
+
F(o, d),
|
|
28
|
+
o,
|
|
29
|
+
i
|
|
29
30
|
)
|
|
30
31
|
};
|
|
31
|
-
}),
|
|
32
|
-
|
|
32
|
+
}), u = L(
|
|
33
|
+
e,
|
|
34
|
+
o
|
|
35
|
+
) ? /* @__PURE__ */ m(
|
|
36
|
+
x,
|
|
33
37
|
{
|
|
34
|
-
data:
|
|
35
|
-
...
|
|
36
|
-
inBuiltModalProps:
|
|
38
|
+
data: o,
|
|
39
|
+
...e,
|
|
40
|
+
inBuiltModalProps: n ? { ...n, fields: t } : void 0
|
|
37
41
|
}
|
|
38
42
|
) : void 0;
|
|
39
|
-
return
|
|
40
|
-
label:
|
|
41
|
-
value:
|
|
43
|
+
return u && l.push({
|
|
44
|
+
label: s("str.action"),
|
|
45
|
+
value: u
|
|
42
46
|
}), l;
|
|
43
|
-
}, [
|
|
44
|
-
return
|
|
45
|
-
|
|
47
|
+
}, [o, t, s, e]);
|
|
48
|
+
return o ? /* @__PURE__ */ m(
|
|
49
|
+
C,
|
|
46
50
|
{
|
|
47
51
|
keepEmptyValues: a,
|
|
48
52
|
bordered: !0,
|
|
49
53
|
column: f,
|
|
50
|
-
className:
|
|
51
|
-
layout:
|
|
52
|
-
list:
|
|
54
|
+
className: c,
|
|
55
|
+
layout: p,
|
|
56
|
+
list: h
|
|
53
57
|
}
|
|
54
|
-
) : /* @__PURE__ */ m(
|
|
58
|
+
) : /* @__PURE__ */ m(g, {});
|
|
55
59
|
}
|
|
56
60
|
export {
|
|
57
61
|
T as CrudDecListView
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),qt=require("antd"),Ct=require("@dnd-kit/core"),St=require("@dnd-kit/modifiers"),It=require("@dnd-kit/utilities"),T=require("@dnd-kit/sortable"),Rt=require("../../common/button/Button.cjs.js"),lt=require("../../common/button/RefreshButton.cjs.js"),
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),qt=require("antd"),Ct=require("@dnd-kit/core"),St=require("@dnd-kit/modifiers"),It=require("@dnd-kit/utilities"),T=require("@dnd-kit/sortable"),Rt=require("../../common/button/Button.cjs.js"),lt=require("../../common/button/RefreshButton.cjs.js"),dt=require("../../common/button/ViewButtonTable.cjs.js"),Mt=require("../actions/index.cjs.js"),Tt=require("../../common/table/table.cjs.js"),s=require("react"),Vt=require("../../locale/index.cjs.js"),Bt=require("../CrudSearchComponent.cjs.js"),Dt=require("./CrudDecListView.cjs.js"),st=require("./CrudViewerUtil.cjs.js"),Ot=require("@ant-design/icons"),rt=require("../../util/CrudUtil.cjs.js"),Nt=require("../../common/layout/VerticalSpace.cjs.js"),kt=s.memo(Tt);function Et({summary:j,idField:o="id",loadingData:q,fields:h,isDeleting:l,isHiding:V,viewable:c=!1,paginateProps:f,onDelete:S,deletable:d,updatable:k,onHide:z,onUpdate:B,data:I=[],extraAction:D,onClickUpdate:O,minusHeight:E,scroll:$,onClickClone:A,className:_,expandable:G,size:J,bordered:K,descListColumn:ut,extraView:L,decListLayout:it,scrollToTop:zt,onClickRefresh:Q,closeViewOnClickUpdate:X,onExport:Y,confirmHiding:Z,confirmDeleting:W,rowClassName:P,actionWidth:H=190,draggable:t,rowSelection:U,...ft}){const{t:w}=Vt.useTranslationLib(),p=s.useMemo(()=>h.map(({hideInTable:e,hidden:r,width:u,label:m,halign:R,...C})=>{const N=rt.getRealName(C.name);return{title:m,width:u,key:N,dataIndex:N,hidden:e||r,align:R??(C.type==="number"?"right":void 0),render:st.getRendererValueCrudViewer(C),sorter:C.sorter,defaultSortOrder:C.defaultSortOrder}}),[h]),[i,M]=s.useState(),[F,a]=s.useState(),[y,b]=s.useState([]),mt=s.useCallback(e=>{M(e)},[]);s.useEffect(()=>{I&&b(I)},[I]),s.useEffect(()=>{I&&M(e=>{if(e)return I.find(r=>r[o]===e[o])})},[I,o,i]);const g=s.useCallback(e=>{var m;const{active:r,over:u}=e;if(t!=null&&t.onDragEnd&&(t==null||t.onDragEnd(e)),r.id!==(u==null?void 0:u.id)){const R=y.findIndex(x=>x[o]===r.id),C=y.findIndex(x=>x[o]===(u==null?void 0:u.id)),N=T.arrayMove(y,R,C);b(x=>{const ht=x.findIndex(v=>v[o]===(r==null?void 0:r.id)),yt=x.findIndex(v=>v[o]===(u==null?void 0:u.id));return T.arrayMove(x,ht,yt)}),(m=t==null?void 0:t.onDrag)==null||m.call(t,{newOrder:N.map(x=>x[o])})}},[y,o,t]),xt=s.useMemo(()=>{let e=typeof c=="string"?i==null?void 0:i[c]:void 0;if(typeof e=="object"){const r=h.find(u=>rt.getRealName(u.name)===c);e=st.getRendererValueCrudViewer(r)(e,i,0)}return e},[c,i,h]),tt=s.useMemo(()=>({rowSelection:U,rowClassName:P,className:_,scroll:$??(E?{y:`calc(100vh - ${E})`}:void 0),id:"crud-table",bordered:K,size:J,expandable:G}),[U,P,_,$,E,K,J,G]),et=s.useMemo(()=>f?{...f,total:f.count,onChange:f.setPage,current:f.page,pageSize:f.pageSize}:void 0,[f]),nt=s.useMemo(()=>{const e=B||O||S||D||c,r=[];return t&&r.push({key:"key",align:"center",width:5,title:t==null?void 0:t.columnLabel,render:()=>n.jsx(Lt,{tooltip:t==null?void 0:t.tooltip})}),r.push(...p),e&&e&&r.push({title:w("str.action"),fixed:"right",width:H,render:(u,m)=>n.jsxs(n.Fragment,{children:[c&&n.jsx(dt,{value:m,onClick:typeof c=="object"?()=>{var R;return(R=c.onClick)==null?void 0:R.call(c,m)}:mt}),n.jsx(Mt.default,{data:m,idField:o,extraAction:D,onUpdate:B,onClickUpdate:O,onClickClone:A,onDelete:S,deletable:d,updatable:k,onHide:z,onExport:Y,isHiding:V,isDeleting:l,confirmHiding:Z,confirmDeleting:W,closeViewOnClickUpdate:X,recentUpdateOrDeleteId:F,setRecentUpdateOrDeleteId:a,setOpenView:M})]})}),r},[p,B,O,S,d,k,D,c,w,H]),ot=s.useMemo(()=>y.map(e=>e[o]),[y,o]),jt=s.useCallback(()=>{const e=n.jsx(kt,{...tt,summary:j,dataSource:y,loading:q,components:t?{body:{row:vt}}:void 0,pagination:et,columns:nt});return t?n.jsx(Ct.DndContext,{modifiers:[St.restrictToVerticalAxis],onDragEnd:g,children:n.jsx(T.SortableContext,{items:ot,strategy:T.verticalListSortingStrategy,children:e})}):e},[tt,y,q,et,nt,j,t,ot,g]);return n.jsxs("div",{children:[(typeof c=="boolean"||typeof c=="string")&&n.jsx(qt.Modal,{width:"100%",open:!!i,title:xt??n.jsx("div",{children:" "}),footer:n.jsx(n.Fragment,{}),closable:!0,onCancel:()=>M(void 0),children:!!i&&n.jsxs("div",{children:[n.jsx(Dt.CrudDecListView,{layout:it,descListColumn:ut,data:i,fields:h,idField:o,extraAction:D,onUpdate:B,onClickUpdate:O,onClickClone:A,onDelete:S,deletable:d,updatable:k,onHide:z,onExport:Y,isHiding:V,isDeleting:l,confirmHiding:Z,confirmDeleting:W,closeViewOnClickUpdate:X,recentUpdateOrDeleteId:F,setRecentUpdateOrDeleteId:a,setOpenView:M}),L==null?void 0:L(i)]},i==null?void 0:i[o])}),n.jsx(Bt,{fields:h,...ft}),n.jsxs(Nt,{children:[!!Q&&n.jsx(lt.RefreshButton,{onClick:Q}),jt()]})]})}const ct=s.createContext({}),Lt=({tooltip:j})=>{const{setActivatorNodeRef:o,listeners:q}=s.useContext(ct);return n.jsx(Rt,{type:"text",size:"small",tooltip:j,icon:n.jsx(Ot.HolderOutlined,{}),style:{cursor:"move",border:"none"},ref:o,...q})},vt=j=>{const{attributes:o,listeners:q,setNodeRef:h,setActivatorNodeRef:l,transform:V,transition:c,isDragging:f}=T.useSortable({id:j["data-row-key"]}),S={...j.style,transform:It.CSS.Translate.toString(V),transition:c,...f?{position:"relative",zIndex:9999}:{}},d=s.useMemo(()=>({setActivatorNodeRef:l,listeners:q}),[l,q]);return n.jsx(ct.Provider,{value:d,children:n.jsx("tr",{...j,ref:h,style:S,...o})})};module.exports=Et;
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const i=require("./locale/hooks/translation-constants.cjs.js"),u=require("./locale/index.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const i=require("./locale/hooks/translation-constants.cjs.js"),u=require("./locale/index.cjs.js"),t=require("./crud/CrudComponent.cjs.js"),r=require("./crud/CrudField.cjs.js"),C=require("./crud/CrudFormWizard.cjs.js"),n=require("./crud/CrudReportComponent.cjs.js"),l=require("./crud/CrudSearchComponent.cjs.js"),e=require("./crud/ImageCrudField.cjs.js"),o=require("./crud/FileCrudField.cjs.js"),a=require("./crud/FileCrudDragNDropField.cjs.js"),s=require("./crud/CrudTextAreaComponent.cjs.js"),m=require("./crud/import/CrudImportComponent.cjs.js"),F=require("./crud/import/CrudImportButton.cjs.js"),p=require("./crud/actions/index.cjs.js"),c=require("./crud/view/CrudViewer.cjs.js"),q=require("./context/CrudComponentProvider.cjs.js"),d=require("./crud/CrudForm.cjs.js"),V=require("./crud/modal/index.cjs.js"),I=require("./crud/view/CrudDecListView.cjs.js"),g=require("./crud/view/CrudViewerUtil.cjs.js");exports.TRANSLATION_NAMESPACE=i.TRANSLATION_NAMESPACE;exports.setupI18n=u.setupI18n;exports.updateTranslations=u.updateTranslations;exports.CrudComponent=t;exports.ColorCrudFieldComponent=r.ColorCrudFieldComponent;exports.CrudField=r.default;exports.SelectCrudFieldComponent=r.SelectCrudFieldComponent;exports.CrudFormWizard=C;exports.CrudReportComponent=n;exports.CrudSearchComponent=l;exports.FileDownloadProvider=e.FileDownloadProvider;exports.FileUploadProvider=e.FileUploadProvider;exports.ImageCellValue=e.ImageCellValue;exports.ImageCrudCellValue=e.ImageCrudCellValue;exports.ImageCrudField=e.default;exports.FileCellValue=o.FileCellValue;exports.FileCrudCellValue=o.FileCrudCellValue;exports.FileCrudField=o.default;exports.FileCrudDragNDropField=a;exports.CrudTextAreaComponent=s;exports.CrudImportComponent=m;exports.CrudImportButton=F;exports.CrudActions=p.default;exports.CrudViewer=c;exports.CrudComponentProvider=q.CrudComponentProvider;exports.CrudForm=d.CrudForm;exports.CrudFormFields=d.CrudFormFields;exports.CrudModal=V;exports.CrudDecListView=I.CrudDecListView;exports.getRendererValueCrudViewer=g.getRendererValueCrudViewer;
|
package/dist/style.css
CHANGED
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* Copyright (c) 2017-2024, Slab
|
|
10
10
|
* Copyright (c) 2014, Jason Chen
|
|
11
11
|
* Copyright (c) 2013, salesforce.com
|
|
12
|
-
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}html.dark .ql-toolbar.ql-snow,html[data-theme=dark] .ql-toolbar.ql-snow,body.dark .ql-toolbar.ql-snow,html.dark .ql-container.ql-snow,html[data-theme=dark] .ql-container.ql-snow,body.dark .ql-container.ql-snow{border:1px solid #424242}html.dark .rich-text-editor,html[data-theme=dark] .rich-text-editor,body.dark .rich-text-editor{background-color:#141414!important;color:#fff!important}html.dark .rich-text-editor svg,html[data-theme=dark] .rich-text-editor svg,body.dark .rich-text-editor svg{fill:#fff!important}.ql-toolbar.ql-snow{border-top-left-radius:6px;border-top-right-radius:6px;border:1px solid #d9d9d9}.ql-container.ql-snow{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border:1px solid #d9d9d9}.quill{border-radius:6px}.rich-text-editor{background-color:#fff}.rich-text-editor--loading{min-height:120px;display:flex;align-items:center;justify-content:center;border:1px solid #d9d9d9;border-radius:6px;color:#00000073}:root{--PhoneInput-color--focus: #03b2cb;--PhoneInputInternationalIconPhone-opacity: .8;--PhoneInputInternationalIconGlobe-opacity: .65;--PhoneInputCountrySelect-marginRight: .35em;--PhoneInputCountrySelectArrow-width: .3em;--PhoneInputCountrySelectArrow-marginLeft: var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth: 1px;--PhoneInputCountrySelectArrow-opacity: .45;--PhoneInputCountrySelectArrow-color: currentColor;--PhoneInputCountrySelectArrow-color--focus: var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform: rotate(45deg);--PhoneInputCountryFlag-aspectRatio: 1.5;--PhoneInputCountryFlag-height: 1em;--PhoneInputCountryFlag-borderWidth: 1px;--PhoneInputCountryFlag-borderColor: rgba(0,0,0,.5);--PhoneInputCountryFlag-borderColor--focus: var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading: rgba(0,0,0,.1)}.PhoneInput{display:flex;align-items:center}.PhoneInputInput{flex:1;min-width:0}.PhoneInputCountryIcon{width:calc(var(--PhoneInputCountryFlag-height) * var(--PhoneInputCountryFlag-aspectRatio));height:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--square{width:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--border{background-color:var(--PhoneInputCountryFlag-backgroundColor--loading);box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor)}.PhoneInputCountryIconImg{display:block;width:100%;height:100%}.PhoneInputInternationalIconPhone{opacity:var(--PhoneInputInternationalIconPhone-opacity)}.PhoneInputInternationalIconGlobe{opacity:var(--PhoneInputInternationalIconGlobe-opacity)}.PhoneInputCountry{position:relative;align-self:stretch;display:flex;align-items:center;margin-right:var(--PhoneInputCountrySelect-marginRight)}.PhoneInputCountrySelect{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1;border:0;opacity:0;cursor:pointer}.PhoneInputCountrySelect[disabled],.PhoneInputCountrySelect[readonly]{cursor:default}.PhoneInputCountrySelectArrow{display:block;content:"";width:var(--PhoneInputCountrySelectArrow-width);height:var(--PhoneInputCountrySelectArrow-width);margin-left:var(--PhoneInputCountrySelectArrow-marginLeft);border-style:solid;border-color:var(--PhoneInputCountrySelectArrow-color);border-top-width:0;border-bottom-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-left-width:0;border-right-width:var(--PhoneInputCountrySelectArrow-borderWidth);transform:var(--PhoneInputCountrySelectArrow-transform);opacity:var(--PhoneInputCountrySelectArrow-opacity)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon+.PhoneInputCountrySelectArrow{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon--border{box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon .PhoneInputInternationalIconGlobe{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.PhoneInputCountryIcon svg{margin-top:-11px}.PhoneInputCountryIconImg{margin-top:0!important}.ant-avatar-string{left:0!important;position:relative!important}.hide-upload div.ant-upload-select{display:none!important}.max-width{width:100%}.crud-excel-export-btn{background-color:#15803d!important;color:#fff!important;border-color:#15803d!important}.crud-excel-export-btn:hover{background-color:#16a34a!important;border-color:#16a34a!important}.ant-btn:focus{outline:none!important;box-shadow:none!important}.ant-btn:active{outline:none!important;border-color:inherit!important}input:focus{outline:none!important}
|
|
12
|
+
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}html.dark .ql-toolbar.ql-snow,html[data-theme=dark] .ql-toolbar.ql-snow,body.dark .ql-toolbar.ql-snow,html.dark .ql-container.ql-snow,html[data-theme=dark] .ql-container.ql-snow,body.dark .ql-container.ql-snow{border:1px solid #424242}html.dark .rich-text-editor,html[data-theme=dark] .rich-text-editor,body.dark .rich-text-editor{background-color:#141414!important;color:#fff!important}html.dark .rich-text-editor svg,html[data-theme=dark] .rich-text-editor svg,body.dark .rich-text-editor svg{fill:#fff!important}.ql-toolbar.ql-snow{border-top-left-radius:6px;border-top-right-radius:6px;border:1px solid #d9d9d9}.ql-container.ql-snow{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border:1px solid #d9d9d9}.quill{border-radius:6px}.rich-text-editor{background-color:#fff}.rich-text-editor .ql-editor{min-height:var(--rich-editor-min-height, 10em)}.rich-text-editor--loading{min-height:var(--rich-editor-min-height, 120px);display:flex;align-items:center;justify-content:center;border:1px solid #d9d9d9;border-radius:6px;color:#00000073}:root{--PhoneInput-color--focus: #03b2cb;--PhoneInputInternationalIconPhone-opacity: .8;--PhoneInputInternationalIconGlobe-opacity: .65;--PhoneInputCountrySelect-marginRight: .35em;--PhoneInputCountrySelectArrow-width: .3em;--PhoneInputCountrySelectArrow-marginLeft: var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth: 1px;--PhoneInputCountrySelectArrow-opacity: .45;--PhoneInputCountrySelectArrow-color: currentColor;--PhoneInputCountrySelectArrow-color--focus: var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform: rotate(45deg);--PhoneInputCountryFlag-aspectRatio: 1.5;--PhoneInputCountryFlag-height: 1em;--PhoneInputCountryFlag-borderWidth: 1px;--PhoneInputCountryFlag-borderColor: rgba(0,0,0,.5);--PhoneInputCountryFlag-borderColor--focus: var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading: rgba(0,0,0,.1)}.PhoneInput{display:flex;align-items:center}.PhoneInputInput{flex:1;min-width:0}.PhoneInputCountryIcon{width:calc(var(--PhoneInputCountryFlag-height) * var(--PhoneInputCountryFlag-aspectRatio));height:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--square{width:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--border{background-color:var(--PhoneInputCountryFlag-backgroundColor--loading);box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor)}.PhoneInputCountryIconImg{display:block;width:100%;height:100%}.PhoneInputInternationalIconPhone{opacity:var(--PhoneInputInternationalIconPhone-opacity)}.PhoneInputInternationalIconGlobe{opacity:var(--PhoneInputInternationalIconGlobe-opacity)}.PhoneInputCountry{position:relative;align-self:stretch;display:flex;align-items:center;margin-right:var(--PhoneInputCountrySelect-marginRight)}.PhoneInputCountrySelect{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1;border:0;opacity:0;cursor:pointer}.PhoneInputCountrySelect[disabled],.PhoneInputCountrySelect[readonly]{cursor:default}.PhoneInputCountrySelectArrow{display:block;content:"";width:var(--PhoneInputCountrySelectArrow-width);height:var(--PhoneInputCountrySelectArrow-width);margin-left:var(--PhoneInputCountrySelectArrow-marginLeft);border-style:solid;border-color:var(--PhoneInputCountrySelectArrow-color);border-top-width:0;border-bottom-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-left-width:0;border-right-width:var(--PhoneInputCountrySelectArrow-borderWidth);transform:var(--PhoneInputCountrySelectArrow-transform);opacity:var(--PhoneInputCountrySelectArrow-opacity)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon+.PhoneInputCountrySelectArrow{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon--border{box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon .PhoneInputInternationalIconGlobe{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.PhoneInputCountryIcon svg{margin-top:-11px}.PhoneInputCountryIconImg{margin-top:0!important}.ant-avatar-string{left:0!important;position:relative!important}.hide-upload div.ant-upload-select{display:none!important}.max-width{width:100%}.crud-excel-export-btn{background-color:#15803d!important;color:#fff!important;border-color:#15803d!important}.crud-excel-export-btn:hover{background-color:#16a34a!important;border-color:#16a34a!important}.ant-btn:focus{outline:none!important;box-shadow:none!important}.ant-btn:active{outline:none!important;border-color:inherit!important}input:focus{outline:none!important}.ant-form-item-label{padding-bottom:0!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function p(a,n){const{extraAction:t,onUpdate:l,onClickUpdate:s,onClickClone:u,onDelete:C,onHide:d,onExport:f,inBuiltModalProps:e,updatable:r,deletable:c}=a;if(!n)return!1;const o=t==null?void 0:t(n),i=r?r(n):!0,b=c?c(n):!0;return!!((Array.isArray(o)?o.filter(Boolean).length:o)||l||i&&s||e!=null&&e.onUpdate||u||e!=null&&e.onCreate||b&&C||f||d)}exports.hasCrudActions=p;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function d(a, n) {
|
|
2
|
+
const {
|
|
3
|
+
extraAction: t,
|
|
4
|
+
onUpdate: l,
|
|
5
|
+
onClickUpdate: s,
|
|
6
|
+
onClickClone: C,
|
|
7
|
+
onDelete: f,
|
|
8
|
+
onHide: p,
|
|
9
|
+
onExport: u,
|
|
10
|
+
inBuiltModalProps: e,
|
|
11
|
+
updatable: r,
|
|
12
|
+
deletable: c
|
|
13
|
+
} = a;
|
|
14
|
+
if (!n) return !1;
|
|
15
|
+
const o = t == null ? void 0 : t(n), U = r ? r(n) : !0, b = c ? c(n) : !0;
|
|
16
|
+
return !!((Array.isArray(o) ? o.filter(Boolean).length : o) || l || U && s || e != null && e.onUpdate || C || e != null && e.onCreate || b && f || u || p);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
d as hasCrudActions
|
|
20
|
+
};
|