sccoreui 5.1.3 → 5.1.5

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/App.scss CHANGED
@@ -749,7 +749,7 @@ button[aria-expanded="true"] {
749
749
 
750
750
  li {
751
751
  margin: 4px 0 !important;
752
- border-radius: 10px !important;
752
+ border-radius: 4px !important;
753
753
  padding: 8px 14px !important;
754
754
 
755
755
  .item_content {
@@ -779,4 +779,15 @@ button[aria-expanded="true"] {
779
779
  }
780
780
  }
781
781
  }
782
+
783
+ .list_box_chips {
784
+ display: inline-block;
785
+ align-items: center;
786
+ list-style: none;
787
+ li {
788
+ float: left;
789
+ height: 24px;
790
+ }
791
+ }
792
+
782
793
  /////// Custom list_box_dropdown ///////////
@@ -19,15 +19,12 @@ const InputTextField = (props) => {
19
19
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(sccoreui_1.Skeleton, { height: "20px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : 'form_field'} ` }, { children: (0, jsx_runtime_1.jsx)(sccoreui_1.Skeleton, { height: "40px" }) }))] }), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })));
20
20
  };
21
21
  const InputNumberField = (props) => {
22
- const { errors, touched, name, length, label, placeholder, optional, setFieldValue, min, max, maxLength, className, validate, disabled, isLoading, inputClassName, icon, iconPos, maxFractionDigits, minFractionDigits, useGrouping } = props;
22
+ const { errors, touched, name, length, label, placeholder, optional, setFieldValue, min, max, maxLength, className, validate, disabled, isLoading, inputClassName, icon, iconPos, maxFractionDigits, minFractionDigits } = props;
23
23
  return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex flex-column" }, { children: !isLoading ?
24
24
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [optional && (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] })), !optional && (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "font-medium text-base mb-1", htmlFor: name }, { children: label })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: icon ?
25
25
  (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `p-input-icon-${iconPos}` }, { children: [(0, jsx_runtime_1.jsx)("i", { className: `pi pi-${icon} text-base` }), (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : '', min: min, max: max, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, placeholder: placeholder }, field, { onChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${className} ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'}`, id: name }))] }))
26
26
  :
27
- (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: useGrouping && !useGrouping ?
28
- (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ inputClassName: inputClassName ? inputClassName : '', min: min, max: max, useGrouping: useGrouping, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, placeholder: placeholder }, field, { onChange: (e) => setFieldValue(name, e.value !== null ? e.value >= max ? max : e.value : min), className: ` ${className} ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'}`, id: name }))
29
- :
30
- (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : '', min: min, max: max, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, placeholder: placeholder }, field, { onChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${className} ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'}`, id: name })) }) })) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })
27
+ (0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ maxFractionDigits: maxFractionDigits ? maxFractionDigits : 0, minFractionDigits: minFractionDigits ? minFractionDigits : 0, inputClassName: inputClassName ? inputClassName : '', min: min, max: max, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, placeholder: placeholder }, field, { onChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: ` ${className} ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? 'full_form_field' : 'form_field'}`, id: name })) })) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm' }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })
31
28
  :
32
29
  (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(sccoreui_1.Skeleton, { height: "20px", className: "mb-1 w-5rem" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `${className ? className : 'form_field'} ` }, { children: (0, jsx_runtime_1.jsx)(sccoreui_1.Skeleton, { height: "40px" }) }))] }) })));
33
30
  };
@@ -5,15 +5,15 @@ const listbox_1 = require("primereact/listbox");
5
5
  const menu_1 = require("primereact/menu");
6
6
  const react_1 = require("react");
7
7
  const sccoreui_1 = require("sccoreui");
8
- const ListBoxDropdown = ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName }) => {
9
- const [selectedCities, setSelectedCities] = (0, react_1.useState)();
8
+ const ListBoxDropdown = ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName, showChilps, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable }) => {
9
+ const [selectedItems, setSelectedItems] = (0, react_1.useState)([]);
10
10
  const optionsMenuRef = (0, react_1.useRef)();
11
11
  const onSelectOption = (e) => {
12
- setSelectedCities(e.value);
12
+ setSelectedItems(e.value);
13
13
  onChange(e);
14
14
  };
15
15
  (0, react_1.useEffect)(() => {
16
- setSelectedCities(values);
16
+ setSelectedItems(values);
17
17
  }, [values]);
18
18
  const handleScroll = (e) => {
19
19
  if (optionsMenuRef === null || optionsMenuRef === void 0 ? void 0 : optionsMenuRef.current)
@@ -26,13 +26,44 @@ const ListBoxDropdown = ({ onChange, footeTemplate, headerTemplate, labelIcon, l
26
26
  elm.addEventListener('scroll', handleScroll);
27
27
  }
28
28
  }, []);
29
+ const handleDragStart = (e, index) => {
30
+ e.dataTransfer.setData('text/plain', index);
31
+ };
32
+ const handleDragOver = (e) => {
33
+ e.preventDefault();
34
+ };
35
+ const handleDrop = (e, targetIndex) => {
36
+ const draggedIndex = e.dataTransfer.getData('text/plain');
37
+ const newItems = [...selectedItems];
38
+ const draggedItem = newItems[draggedIndex];
39
+ newItems.splice(draggedIndex, 1);
40
+ newItems.splice(targetIndex, 0, draggedItem);
41
+ setSelectedItems(newItems);
42
+ // const formValues = {
43
+ // values: newItems,
44
+ // isValid,
45
+ // formIndex: optionValueIndex
46
+ // }
47
+ // handleFormValues(formValues);
48
+ };
29
49
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu, { popup: true, className: menuClassName ? menuClassName : '', ref: optionsMenuRef, model: [{
30
50
  template: () => (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: listBoxParentClassName ? listBoxParentClassName + ' list_box_dropdown' : 'list_box_dropdown' }, { children: [headerTemplate &&
31
51
  (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: headerTemplate() }), (0, jsx_runtime_1.jsx)(listbox_1.ListBox, { itemTemplate: (option) => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: optionTemplate ?
32
52
  optionTemplate(option)
33
53
  :
34
- (0, jsx_runtime_1.jsx)("span", { children: option[`${optionLabel}`] }) }), listClassName: listClassName ? listClassName : '', filter: filter ? true : false, multiple: multiple ? true : false, value: selectedCities, onChange: (e) => onSelectOption(e), options: listItems, optionLabel: optionLabel, className: listBoxclassName ? listBoxclassName : '', filterPlaceholder: filterPlaceholder ? filterPlaceholder : '' }), footeTemplate &&
54
+ (0, jsx_runtime_1.jsx)("span", { children: option[`${optionLabel}`] }) }), listClassName: listClassName ? listClassName : '', filter: filter ? true : false, multiple: multiple ? true : false, value: selectedItems, onChange: (e) => onSelectOption(e), options: listItems, optionLabel: optionLabel, className: listBoxclassName ? listBoxclassName : '', filterPlaceholder: filterPlaceholder ? filterPlaceholder : '' }), footeTemplate &&
35
55
  (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: footeTemplate() })] }))
36
- }] }), (0, jsx_runtime_1.jsx)(sccoreui_1.Button, { type: "button", className: `focus:shadow-none ${buttonClassName}`, link: link ? true : false, icon: labelIcon ? labelIcon : '', size: labelIconSize ? labelIconSize : '', iconPos: labelIconPos ? labelIconPos : '', label: label, onClick: (event) => optionsMenuRef.current.toggle(event) })] })) }));
56
+ }] }), !showChilps ?
57
+ (0, jsx_runtime_1.jsx)(sccoreui_1.Button, { type: "button", className: `focus:shadow-none ${buttonClassName}`, link: link ? true : false, icon: labelIcon ? labelIcon : '', size: labelIconSize ? labelIconSize : '', iconPos: labelIconPos ? labelIconPos : '', label: label, onClick: (event) => optionsMenuRef.current.toggle(event) })
58
+ :
59
+ (0, jsx_runtime_1.jsxs)("ul", Object.assign({ className: `list_box_chips ${chipsParentClassName}` }, { children: [(0, jsx_runtime_1.jsx)("li", Object.assign({ className: `cursor-pointer min-w-max mx-2 max-w-max ${buttonClassName}` }, { children: (0, jsx_runtime_1.jsx)(sccoreui_1.Button, { type: "button", className: `focus:shadow-none p-0 h-max`, link: link ? true : false, icon: labelIcon ? labelIcon : '', size: labelIconSize ? labelIconSize : '', iconPos: labelIconPos ? labelIconPos : '', label: label, onClick: (event) => optionsMenuRef.current.toggle(event) }) })), selectedItems && (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map((item, index) => {
60
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: chipTemplate ?
61
+ (0, jsx_runtime_1.jsx)("li", { children: chipTemplate(item) })
62
+ :
63
+ (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isDraggable !== undefined ?
64
+ (0, jsx_runtime_1.jsxs)("li", Object.assign({ draggable: isDraggable, onDragStart: (e) => handleDragStart(e, index), onDragOver: (e) => handleDragOver(e), onDrop: (e) => handleDrop(e, index), className: `${chipClassName} ${showRemoveIcon ? 'pr-6 relative' : ''}` }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [" ", item[`${optionLabel}`]] }), showRemoveIcon && (0, jsx_runtime_1.jsxs)("span", Object.assign({ onClick: () => onRemoveItem(item), className: `absolute right-0 p-1 ${removeIconClassName}` }, { children: [" ", (0, jsx_runtime_1.jsx)(sccoreui_1.SvgComponent, { icon: showRemoveIcon, size: removeIconSize ? removeIconSize : 20 })] }))] }))
65
+ :
66
+ (0, jsx_runtime_1.jsxs)("li", Object.assign({ className: `${chipClassName} ${showRemoveIcon ? 'pr-6 relative' : ''}` }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [" ", item[`${optionLabel}`]] }), showRemoveIcon && (0, jsx_runtime_1.jsxs)("span", Object.assign({ onClick: () => onRemoveItem(item), className: `absolute right-0 p-1 ${removeIconClassName}` }, { children: [" ", (0, jsx_runtime_1.jsx)(sccoreui_1.SvgComponent, { icon: showRemoveIcon, size: removeIconSize ? removeIconSize : 20 })] }))] })) }) }));
67
+ }))] }))] })) }));
37
68
  };
38
69
  exports.default = ListBoxDropdown;
@@ -1,3 +1,3 @@
1
1
  import { ListBoxDropdownTypes } from "../types/type";
2
- declare const ListBoxDropdown: ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName }: ListBoxDropdownTypes) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ListBoxDropdown: ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, buttonClassName, showChilps, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable }: ListBoxDropdownTypes) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ListBoxDropdown;
@@ -206,6 +206,15 @@ export interface ListBoxDropdownTypes {
206
206
  className?: string;
207
207
  scrollElementId?: string;
208
208
  buttonClassName?: string;
209
+ showChilps?: boolean;
210
+ chipsParentClassName?: string;
211
+ chipClassName?: string;
212
+ chipTemplate?: any;
213
+ showRemoveIcon?: string;
214
+ removeIconSize?: number;
215
+ removeIconClassName?: any;
216
+ onRemoveItem?: any;
217
+ isDraggable?: boolean;
209
218
  }
210
219
  export interface DatePickerTypes {
211
220
  value: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.1.3",
3
+ "version": "5.1.5",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,782 +0,0 @@
1
- @import url("./assets/theme.css");
2
- @import url("./assets/sccoreui.css");
3
- @import url("./assets/sccoreicons.css");
4
- @import url("./assets/flex.css");
5
- @import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
6
-
7
- @font-face {
8
- font-family: 'RobotoBold';
9
- src: url('./assets/fonts/Roboto-Bold.ttf') format('truetype');
10
- font-weight: 700;
11
- font-style: italic;
12
- }
13
-
14
- @font-face {
15
- font-family: 'RobotoMedium';
16
- src: url('./assets/fonts/Roboto-Medium.ttf') format('truetype');
17
- font-weight: normal;
18
- font-style: normal;
19
- }
20
-
21
- @font-face {
22
- font-family: 'RobotoItalic';
23
- src: url('./assets/fonts/Roboto-Italic.ttf') format('truetype');
24
- font-weight: normal;
25
- font-style: normal;
26
- }
27
-
28
- @font-face {
29
- font-family: 'RobotoRegular';
30
- src: url('./assets/fonts/Roboto-Regular.ttf') format('truetype');
31
- font-weight: normal;
32
- font-style: normal;
33
- }
34
-
35
- :root {
36
- --fw-600: 600;
37
- --fw-400: 400;
38
- --fs-24: 24px;
39
- --fs-18: 18px;
40
- --fs-16: 16px;
41
- --lh: 24px;
42
- --fs-14: 14px;
43
- --grey-bg: #101828;
44
- --border-none: border-none;
45
- }
46
-
47
-
48
-
49
- // @font-face {
50
- // font-family: "Lato";
51
- // }
52
-
53
- // @font-face {
54
- // font-family: "Lato";
55
- // font-weight: 600;
56
- // src: url("./assets/fonts/Lato-Regular.ttf") format("truetype");
57
- // }
58
-
59
-
60
- body {
61
- font-family: 'Lato', sans-serif;
62
- -webkit-font-smoothing: antialiased;
63
- -moz-osx-font-smoothing: grayscale;
64
- line-height: 20px;
65
- padding: 0;
66
- margin: 0;
67
- color: var(--gray-700);
68
- }
69
-
70
- code {
71
- font-family: 'Lato', sans-serif;
72
- }
73
-
74
- // h1 {
75
- // font-size: var(--fs-24);
76
- // font-weight: var(--fw-600);
77
- // }
78
-
79
- // h2 {
80
- // font-size: var(--fs-18);
81
- // font-weight: var(--fw-600);
82
- // }
83
-
84
- // h3 {
85
- // font-size: var(--fs-16);
86
- // font-weight: var(--fw-400);
87
- // }
88
-
89
- // ============= custom progress steps =============== //
90
-
91
- .progress-container {
92
- isolation: isolate;
93
-
94
- &::before {
95
- content: "";
96
- background-color: var(--gray-200);
97
- position: absolute;
98
- z-index: -1;
99
- }
100
-
101
- &.horizontal::before {
102
- height: 2px;
103
- width: 100%;
104
- top: 11%;
105
- }
106
-
107
- &.vertical::before {
108
- height: 100%;
109
- width: 2px;
110
- left: 5%;
111
- top: 0;
112
- }
113
- }
114
-
115
- .progressbar {
116
- z-index: -1;
117
- transition: all 0.6s ease;
118
-
119
- &.horizontal {
120
- left: 0;
121
- height: 2px;
122
- top: 11%;
123
- }
124
-
125
- &.vertical {
126
- width: 2px;
127
- left: 5%;
128
- top: 0;
129
- }
130
- }
131
-
132
- .progress-step-item {
133
- &.horizontal {
134
-
135
-
136
- &:nth-of-type(1) {
137
- transform: translateX(-50%);
138
- }
139
-
140
- &:last-child {
141
- transform: translateX(50%);
142
- }
143
- }
144
-
145
- &.vertical {
146
- transform: translateY(50%);
147
-
148
- &:nth-of-type(1) {
149
- transform: translateY(-5%);
150
- }
151
-
152
- &:last-child {
153
- transform: translateY(100%);
154
- }
155
- }
156
- }
157
-
158
- // CUSTOM multiselect style started
159
- .Multi_select_dropdown_panel {
160
- .p-multiselect-header {
161
- display: block;
162
- padding: 8px 0;
163
-
164
- .p-checkbox,
165
- .p-multiselect-close {
166
- display: none;
167
- }
168
-
169
- .p-multiselect-filter-container {
170
- .p-inputtext {
171
- padding-right: 12px;
172
- padding-left: 1.75rem;
173
- }
174
-
175
- .p-multiselect-filter-icon {
176
- left: 0.55rem;
177
- }
178
- }
179
- }
180
-
181
- .p-multiselect-items-wrapper {
182
- .p-multiselect-item.p-highlight {
183
- &::after {
184
- content: "";
185
- width: 14px;
186
- height: 6px;
187
- border-left: 2px solid #132067;
188
- border-bottom: 2px solid #132067;
189
- transform: rotate(-45deg);
190
- position: absolute;
191
- right: 10px;
192
- }
193
- }
194
- }
195
- }
196
-
197
- .sc_custom_multiselect {
198
-
199
- width: max-content;
200
-
201
- * {
202
- color: #344054;
203
- font-weight: 700;
204
- }
205
-
206
- .left_section_item {
207
- left: 1rem;
208
- }
209
-
210
- .right_section_item {
211
- right: 1rem;
212
- }
213
-
214
- .selected_moreThan_one {
215
- right: 40px;
216
- }
217
-
218
- .p-inputwrapper-filled {
219
- background: #F5F6FD;
220
- border: 1px solid #8190E8;
221
- }
222
-
223
- .p-multiselect {
224
- max-width: 100%;
225
- width: max-content !important;
226
-
227
- .p-multiselect-label {
228
- padding: 0;
229
- padding-left: 44px;
230
- max-width: 100%;
231
-
232
- .p-multiselect-token {
233
- border: none;
234
- width: 100%;
235
- min-width: 100%;
236
- background: none;
237
- padding-left: 0;
238
-
239
- .p-multiselect-token-label {
240
- width: 100%;
241
- white-space: nowrap;
242
- overflow: hidden;
243
- text-overflow: ellipsis;
244
- }
245
- }
246
-
247
- svg {
248
- display: none;
249
- }
250
- }
251
- }
252
-
253
-
254
-
255
- .p-multiselect-trigger {
256
- width: 2rem;
257
-
258
- svg {
259
- display: none;
260
- }
261
- }
262
- }
263
-
264
- .no_icon {
265
-
266
- .p-multiselect-label {
267
- padding-left: 16px !important;
268
- }
269
- }
270
-
271
- .status_dropdown {
272
- .p-multiselect {
273
- .p-multiselect-label {
274
- padding-left: 34px;
275
- }
276
- }
277
-
278
- .select_status_prv {
279
- ul {
280
- li {
281
- width: 10px;
282
- height: 10px;
283
- border-radius: 8px;
284
- position: absolute;
285
- transform: translateY(-50%);
286
- }
287
-
288
- li.all {
289
- background: #667085;
290
- }
291
-
292
-
293
- li:nth-child(2) {
294
- left: 6px;
295
- }
296
-
297
- li:nth-child(3) {
298
- left: 12px;
299
- }
300
-
301
- }
302
- }
303
- }
304
-
305
- .selected_multile {
306
- .p-multiselect-token-label {
307
- padding-right: 18px;
308
- }
309
- }
310
-
311
- .selected_multile.selected_num_2 {
312
- .p-multiselect .p-multiselect-label {
313
- padding-left: 44px;
314
- }
315
- }
316
-
317
- .selected_multile.selected_num_3,
318
- .selected_multile.moreThanThreeItems {
319
- .p-multiselect .p-multiselect-label {
320
- padding-left: 44px;
321
- }
322
- }
323
-
324
-
325
-
326
- .status_dropdown.selected_multile {
327
- .left_section_item {
328
- max-width: 28px;
329
- overflow: hidden;
330
- height: 11px;
331
- width: -webkit-fill-available;
332
- align-items: center;
333
- display: flex;
334
- }
335
- }
336
-
337
-
338
- .status_dropdown_item.Active::before {
339
- background: #12B76A;
340
- }
341
-
342
- .status_dropdown_item.Inactive::before {
343
- background: #F04438;
344
- }
345
-
346
- .status_dropdown_item.Draft::before {
347
- background: #162578;
348
- }
349
-
350
- .status_dropdown_item {
351
- .status_dot {
352
- width: 10px;
353
- height: 10px;
354
- border-radius: 50px;
355
- position: absolute;
356
- transform: translateY(-50%);
357
- top: 50%;
358
- left: 10px;
359
- }
360
- }
361
-
362
-
363
- .custom_date_picker_sec {
364
- .custom_date_picker {
365
-
366
-
367
- .p-inputtext {
368
- padding-right: 16px;
369
- width: 130px;
370
- }
371
-
372
- .p-inputtext {
373
- &:enabled {
374
- &:focus {
375
- box-shadow: none !important;
376
- border-color: #d0d5dd !important;
377
- }
378
- }
379
- }
380
-
381
- .p-datepicker-trigger {
382
- &:focus {
383
- box-shadow: none !important;
384
- border-color: #d0d5dd !important;
385
- }
386
- }
387
- }
388
-
389
- .custom_date_picker.multiple {
390
- .p-inputtext {
391
- width: 236px;
392
-
393
- }
394
- }
395
-
396
- .clear_icon_sec {
397
- right: 32px;
398
- }
399
- }
400
-
401
- .date_filter {
402
- margin: 0;
403
- position: absolute;
404
- top: 0;
405
- left: 0px;
406
- background: #fff;
407
- height: 100%;
408
- padding: 4px 16px;
409
-
410
- li {
411
- height: 40px;
412
-
413
- &:hover {
414
- background: #F9FAFB;
415
- }
416
- }
417
-
418
- .active {
419
- background: #F9FAFB;
420
- }
421
-
422
-
423
- }
424
-
425
- div:has(ul.date_filter) .p-datepicker-group-container {
426
- padding-left: 116px;
427
- margin: -8px;
428
- }
429
-
430
- .bottom_date_filters {
431
- width: calc(100% - 116px);
432
- border-left: 1px solid #dee2e6;
433
- }
434
-
435
- div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker table td>span {
436
- width: 40px;
437
- height: 40px;
438
- }
439
-
440
-
441
-
442
- div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker-group {
443
- width: 328px;
444
- max-width: 328px;
445
- padding: 8px 20px !important;
446
- border: 1px solid #dee2e6;
447
- border-top: 0;
448
- }
449
-
450
- div:has(ul.date_filter) .p-datepicker-group-container div:nth-child(2) {
451
- border-right: 0;
452
- }
453
-
454
- div:has(ul.date_filter) .p-datepicker-group-container table td {
455
- padding: 0;
456
-
457
- }
458
-
459
- div:has(ul.date_filter) .p-datepicker-footer {
460
- margin: -8px;
461
- }
462
-
463
- .panel_status {
464
- .p-multiselect-filter-container {
465
- display: none;
466
- }
467
-
468
- .p-multiselect-header {
469
- padding: 0 !important;
470
- border-bottom: 0;
471
- }
472
- }
473
-
474
- .p-multiselect-panel {
475
- .p-multiselect-items {
476
- padding: 6px;
477
- min-width: 140px !important;
478
-
479
- }
480
- }
481
-
482
- .panel_withIcon.p-multiselect-panel {
483
- .p-multiselect-items {
484
- .p-multiselect-item {
485
- padding: 0 10px;
486
- }
487
- }
488
- }
489
-
490
-
491
-
492
- .Multi_select_dropdown_panel.hidePanelHeader {
493
- .p-multiselect-header {
494
- display: none;
495
- }
496
- }
497
-
498
- .errorField {
499
- color: var(--red-500);
500
- height: 20px;
501
- }
502
-
503
- .full_form_field {
504
- width: 37.125rem;
505
- }
506
-
507
- .form_field {
508
- width: 18.063rem;
509
- }
510
-
511
- .PhoneInput {
512
- background: #ffffff;
513
- border: 1px solid var(--gray-300);
514
- transition: background-color 0.2s, color 0.2s, border-color 0.2s,
515
- box-shadow 0.2s;
516
- border-radius: 8px;
517
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
518
- padding-top: 10px;
519
- padding-bottom: 10px;
520
- padding-right: 12px;
521
- padding-left: 0px;
522
- height: 40px;
523
-
524
- :focus-visible {
525
- outline: none;
526
- }
527
-
528
- &:focus-within {
529
- outline: 0 none;
530
- outline-offset: 0;
531
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05),
532
- 0px 0px 0px 2px var(--primary-100);
533
- border-radius: 8px;
534
- border: 1px solid var(--primary-300);
535
- }
536
-
537
- .PhoneInputInput {
538
- border: none;
539
- }
540
- }
541
-
542
- .PhoneInputCountry {
543
- .PhoneInputCountryIcon--border {
544
- box-shadow: none;
545
- background-color: #ffffff;
546
- }
547
-
548
- .PhoneInputCountryIconImg {
549
- width: 20px;
550
- height: 20px;
551
- object-fit: cover;
552
- border-radius: 100%;
553
- position: absolute;
554
- top: 0;
555
- }
556
- }
557
-
558
- .phoneNumberClass {
559
- margin-left: 14.5rem;
560
- }
561
-
562
- #customCountryDropDown {
563
- .p-dropdown {
564
- border: none;
565
- box-shadow: none;
566
- background: none;
567
- padding: 0;
568
-
569
- .p-dropdown-label {
570
- padding: 0;
571
- padding-right: 4px;
572
- }
573
-
574
- .p-dropdown-trigger {
575
- padding-top: 20px;
576
- }
577
-
578
- .p-dropdown-trigger[aria-expanded="true"] {
579
- padding-bottom: 20px;
580
- }
581
- }
582
-
583
- }
584
-
585
- .customNumberField {
586
- .p-inputnumber-input {
587
- padding-left: 24px;
588
- }
589
- }
590
-
591
- .text-editor {
592
- button {
593
- &::after {
594
- content: none !important;
595
- }
596
- }
597
- }
598
-
599
-
600
- button#formatULOptions-1:hover::before,
601
- button#formatULOptions-1.fr-btn-hover::before,
602
- button#formatULOptions-1.fr-active::before,
603
- button#formatOLOptions-1:hover::before,
604
- button#formatOLOptions-1.fr-btn-hover::before,
605
- button#formatOLOptions-1.fr-active::before {
606
- content: '';
607
- border: 2px solid gray;
608
- border-left: 0;
609
- border-top: 0;
610
- width: 6px;
611
- height: 6px;
612
- position: absolute;
613
- left: 2px;
614
- top: 39%;
615
- transform: rotate(45deg);
616
- }
617
-
618
- .fr-toolbar .fr-btn-grp {
619
- display: inline-block;
620
- margin: 0 0px 0 12px !important;
621
- }
622
-
623
-
624
- .fr-buttons.fr-tabs{
625
- display: none;
626
- }
627
-
628
- .fr-element {
629
- padding: 12px !important;
630
- }
631
-
632
- .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active {
633
- background: #f9fafb !important;
634
- }
635
-
636
- button[data-cmd="fontFamily"]:focus{
637
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 2px var(--primary-100);
638
- border: 1px solid var(--primary-300) !important;
639
- background: none !important;
640
- }
641
- .text-editor {
642
- border: 1px solid #d0d5dd;
643
- border-radius: 10px;
644
- * {
645
- border: none !important;
646
- }
647
- }
648
-
649
- .text-editor.focus-text-editor {
650
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--primary-100);
651
- border: 1px solid var(--primary-300) !important;
652
- }
653
-
654
- .text-editor.p-invalid.focus-text-editor {
655
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--red-100);
656
- border: 1px solid var(--red-300) !important;
657
- }
658
-
659
-
660
- button[data-cmd='fontFamily']{
661
- border: 1px solid var(--gray-300) !important;
662
- &::before {
663
- content: '';
664
- border: 1.8px solid #0b0c12;
665
- border-left: 0;
666
- border-top: 0;
667
- width: 7px;
668
- height: 7px;
669
- position: absolute;
670
- right: 8px;
671
- top: 39%;
672
- transform: rotate(45deg);
673
- }
674
- }
675
-
676
- .fr-toolbar .fr-btn-grp {
677
- margin-right: 0px;
678
- margin-left: 8px;
679
- }
680
-
681
- .fr-wrapper .fr-placeholder {
682
- color: #667085 !important;
683
- }
684
-
685
- button[aria-expanded="true"] {
686
- &::before {
687
- top: 48%;
688
- transform: rotate(-136deg);
689
- }
690
- }
691
-
692
-
693
-
694
-
695
- /// Custon treeDropdownSelect style
696
- .treeNoCollaps {
697
- li {
698
- padding-left: 0 !important;
699
- padding-right: 0 !important;
700
- }
701
- .p-tree-toggler {
702
- display: none;
703
- }
704
-
705
- .treeBadge {
706
- background: var(--Gray-100, #F2F4F7) !important;
707
- }
708
-
709
- .p-treenode-content:hover{
710
- background: var(--Primary-25, #F5F6FD) !important;
711
- }
712
-
713
- .p-treenode-content:hover .treeItem,
714
- .p-treenode-content:focus .treeItem {
715
- color: var(--primary-400);
716
-
717
- .treeBadge {
718
- color: var(--Primary-400, #243DC6) !important;
719
- background: var(--Primary-50, #E2E5FA) !important;
720
- }
721
- }
722
-
723
- .p-treenode-content:hover svg path,
724
- .p-treenode-content:focus svg path {
725
- stroke: var(--primary-400) !important;
726
- }
727
-
728
- .p-treenode-content:focus {
729
- box-shadow: none !important;
730
- outline: none !important;
731
- background: var(--Primary-25, #F5F6FD) !important;
732
-
733
- .treeBadge {
734
- color: var(--Primary-400, #243DC6) !important;
735
- background: var(--Primary-50, #E2E5FA) !important;
736
- }
737
- }
738
- }
739
- /// Custon treeDropdownSelect style end /////////////////
740
-
741
- /////// Custom list_box_dropdown ///////////
742
- .list_box_dropdown {
743
- .p-listbox-header {
744
- padding: 12px !important;
745
- }
746
-
747
- ul.p-listbox-list {
748
- padding: 6px;
749
-
750
- li {
751
- margin: 4px 0 !important;
752
- border-radius: 10px !important;
753
- padding: 8px 14px !important;
754
-
755
- .item_content {
756
- max-width: 80%;
757
- white-space: nowrap;
758
- text-overflow: ellipsis;
759
- overflow: hidden;
760
- // width: 100%;
761
- }
762
-
763
- .item_icon {
764
- display: none;
765
- }
766
-
767
- &:focus {
768
- box-shadow: none !important;
769
- }
770
- }
771
-
772
- .p-highlight {
773
- background: #F5F6FD !important;
774
- color: #162578 !important;
775
-
776
- .item_icon {
777
- display: block;
778
- }
779
- }
780
- }
781
- }
782
- /////// Custom list_box_dropdown ///////////