@banch0u/core-project-test-repository 1.8.4 → 1.9.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/assets/css/antd.css +723 -0
- package/dist/assets/icons/index.js +182 -0
- package/dist/components/Button/index.module.scss +14 -2
- package/dist/components/Delete/Delete.js +22 -0
- package/dist/components/Delete/Delete.module.scss +22 -0
- package/dist/components/DeleteModal/DeleteModal.js +31 -0
- package/dist/components/DeleteModal/DeleteModal.module.scss +11 -0
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Input/index.js +1 -2
- package/dist/components/Input/index.module.scss +21 -12
- package/dist/components/ProfileOptions/index.module.scss +3 -3
- package/dist/components/Success/Success.js +19 -0
- package/dist/components/Success/Success.module.scss +26 -0
- package/dist/components/Table/index.js +4 -2
- package/dist/components/ViewModal/index.js +30 -0
- package/dist/helpers/paginationLength.js +3 -0
- package/dist/helpers/querySearch.js +22 -0
- package/dist/index.js +2 -0
- package/dist/layout/Header/AppSelect/index.js +28 -9
- package/dist/layout/Header/AppSelect/index.module.scss +6 -1
- package/dist/layout/Portal/index.js +23 -0
- package/dist/layout/QuestionnairesLayout/index.js +17 -0
- package/dist/layout/QuestionnairesLayout/index.module.scss +0 -0
- package/dist/layout/QuestionnairesSidebar/index.js +126 -0
- package/dist/layout/QuestionnairesSidebar/index.module.scss +76 -0
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +194 -0
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +255 -0
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +258 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +284 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/constant.js +82 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +331 -0
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +258 -0
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +249 -0
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/constant.js +88 -0
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +320 -0
- package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/index.js +240 -0
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +317 -0
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +271 -0
- package/dist/pages/Questionnnaires/index.js +5 -0
- package/dist/routes/QuestionnaireRoutes.js +108 -0
- package/dist/store/slices/global/index.js +96 -3
- package/dist/store/slices/questionnaire/index.js +2500 -0
- package/dist/store/slices/questionnaire/service.js +1557 -0
- package/dist/store/store.js +2 -1
- package/dist/utils/path.js +30 -1
- package/package.json +2 -1
|
@@ -456,4 +456,186 @@ export var LogOutIcon = function LogOutIcon() {
|
|
|
456
456
|
rx: "5",
|
|
457
457
|
fill: "#F50B0B"
|
|
458
458
|
}))));
|
|
459
|
+
};
|
|
460
|
+
export var ExportIcon = function ExportIcon() {
|
|
461
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
462
|
+
width: "24",
|
|
463
|
+
height: "24",
|
|
464
|
+
viewBox: "0 0 24 24",
|
|
465
|
+
fill: "none",
|
|
466
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
467
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
468
|
+
d: "M9.32007 6.49994L11.8801 3.93994L14.4401 6.49994",
|
|
469
|
+
stroke: "#F2F2F2",
|
|
470
|
+
strokeWidth: "1.5",
|
|
471
|
+
strokeMiterlimit: "10",
|
|
472
|
+
strokeLinecap: "round",
|
|
473
|
+
strokeLinejoin: "round"
|
|
474
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
475
|
+
d: "M11.8799 14.18V4.01001",
|
|
476
|
+
stroke: "#F2F2F2",
|
|
477
|
+
strokeWidth: "1.5",
|
|
478
|
+
strokeMiterlimit: "10",
|
|
479
|
+
strokeLinecap: "round",
|
|
480
|
+
strokeLinejoin: "round"
|
|
481
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
482
|
+
d: "M4 12C4 16.42 7 20 12 20C17 20 20 16.42 20 12",
|
|
483
|
+
stroke: "#F2F2F2",
|
|
484
|
+
strokeWidth: "1.5",
|
|
485
|
+
strokeMiterlimit: "10",
|
|
486
|
+
strokeLinecap: "round",
|
|
487
|
+
strokeLinejoin: "round"
|
|
488
|
+
}));
|
|
489
|
+
};
|
|
490
|
+
export var PlusIcon = function PlusIcon() {
|
|
491
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
492
|
+
width: "24",
|
|
493
|
+
height: "24",
|
|
494
|
+
viewBox: "0 0 24 24",
|
|
495
|
+
fill: "none",
|
|
496
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
497
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
498
|
+
d: "M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",
|
|
499
|
+
stroke: "white",
|
|
500
|
+
strokeWidth: "1.5",
|
|
501
|
+
strokeLinecap: "round",
|
|
502
|
+
strokeLinejoin: "round"
|
|
503
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
504
|
+
d: "M8 12H16",
|
|
505
|
+
stroke: "white",
|
|
506
|
+
strokeWidth: "1.5",
|
|
507
|
+
strokeLinecap: "round",
|
|
508
|
+
strokeLinejoin: "round"
|
|
509
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
510
|
+
d: "M12 16V8",
|
|
511
|
+
stroke: "white",
|
|
512
|
+
strokeWidth: "1.5",
|
|
513
|
+
strokeLinecap: "round",
|
|
514
|
+
strokeLinejoin: "round"
|
|
515
|
+
}));
|
|
516
|
+
};
|
|
517
|
+
export var SearchIcon = function SearchIcon() {
|
|
518
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
519
|
+
width: "22",
|
|
520
|
+
height: "22",
|
|
521
|
+
viewBox: "0 0 22 22",
|
|
522
|
+
fill: "none",
|
|
523
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
524
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
525
|
+
d: "M10.083 18.3332C14.6394 18.3332 18.333 14.6395 18.333 10.0832C18.333 5.52682 14.6394 1.83317 10.083 1.83317C5.52666 1.83317 1.83301 5.52682 1.83301 10.0832C1.83301 14.6395 5.52666 18.3332 10.083 18.3332Z",
|
|
526
|
+
stroke: "#828282",
|
|
527
|
+
strokeWidth: "1.375",
|
|
528
|
+
strokeLinecap: "round",
|
|
529
|
+
strokeLinejoin: "round"
|
|
530
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
531
|
+
d: "M17.3527 18.9655C17.8385 20.4322 18.9477 20.5788 19.8002 19.2955C20.5794 18.1222 20.066 17.1597 18.6544 17.1597C17.6094 17.1505 17.0227 17.9663 17.3527 18.9655Z",
|
|
532
|
+
stroke: "#828282",
|
|
533
|
+
strokeWidth: "1.375",
|
|
534
|
+
strokeLinecap: "round",
|
|
535
|
+
strokeLinejoin: "round"
|
|
536
|
+
}));
|
|
537
|
+
};
|
|
538
|
+
export var OkIcon = function OkIcon() {
|
|
539
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
540
|
+
width: "140",
|
|
541
|
+
height: "140",
|
|
542
|
+
viewBox: "0 0 140 140",
|
|
543
|
+
fill: "none",
|
|
544
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
545
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
546
|
+
d: "M70.0001 128.333C102.083 128.333 128.333 102.083 128.333 69.9998C128.333 37.9165 102.083 11.6665 70.0001 11.6665C37.9167 11.6665 11.6667 37.9165 11.6667 69.9998C11.6667 102.083 37.9167 128.333 70.0001 128.333Z",
|
|
547
|
+
stroke: "#219653",
|
|
548
|
+
strokeWidth: "8.75",
|
|
549
|
+
strokeLinecap: "round",
|
|
550
|
+
strokeLinejoin: "round"
|
|
551
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
552
|
+
d: "M45.2083 70L61.7166 86.5084L94.7916 53.4917",
|
|
553
|
+
stroke: "#219653",
|
|
554
|
+
strokeWidth: "8.75",
|
|
555
|
+
strokeLinecap: "round",
|
|
556
|
+
strokeLinejoin: "round"
|
|
557
|
+
}));
|
|
558
|
+
};
|
|
559
|
+
export var EditIcon = function EditIcon() {
|
|
560
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
561
|
+
width: "24",
|
|
562
|
+
height: "24",
|
|
563
|
+
viewBox: "0 0 24 24",
|
|
564
|
+
fill: "none",
|
|
565
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
566
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
567
|
+
d: "M20.5 11.3V7.04001C20.5 3.01001 19.56 2 15.78 2H8.22C4.44 2 3.5 3.01001 3.5 7.04001V18.3C3.5 20.96 4.96001 21.59 6.73001 19.69L6.73999 19.68C7.55999 18.81 8.80999 18.88 9.51999 19.83L10.53 21.18",
|
|
568
|
+
stroke: "#016DAF",
|
|
569
|
+
strokeWidth: "1.5",
|
|
570
|
+
strokeLinecap: "round",
|
|
571
|
+
strokeLinejoin: "round"
|
|
572
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
573
|
+
d: "M8 7H16",
|
|
574
|
+
stroke: "#016DAF",
|
|
575
|
+
strokeWidth: "1.5",
|
|
576
|
+
strokeLinecap: "round",
|
|
577
|
+
strokeLinejoin: "round"
|
|
578
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
579
|
+
d: "M9 11H15",
|
|
580
|
+
stroke: "#016DAF",
|
|
581
|
+
strokeWidth: "1.5",
|
|
582
|
+
strokeLinecap: "round",
|
|
583
|
+
strokeLinejoin: "round"
|
|
584
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
585
|
+
d: "M18.211 14.7703L14.671 18.3103C14.531 18.4503 14.401 18.7103 14.371 18.9003L14.181 20.2503C14.111 20.7403 14.451 21.0803 14.941 21.0103L16.291 20.8203C16.481 20.7903 16.751 20.6603 16.881 20.5203L20.421 16.9803C21.031 16.3703 21.321 15.6603 20.421 14.7603C19.531 13.8703 18.821 14.1603 18.211 14.7703Z",
|
|
586
|
+
stroke: "#016DAF",
|
|
587
|
+
strokeWidth: "1.5",
|
|
588
|
+
strokeMiterlimit: "10",
|
|
589
|
+
strokeLinecap: "round",
|
|
590
|
+
strokeLinejoin: "round"
|
|
591
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
592
|
+
d: "M17.6992 15.2803C17.9992 16.3603 18.8392 17.2003 19.9192 17.5003",
|
|
593
|
+
stroke: "#016DAF",
|
|
594
|
+
strokeWidth: "1.5",
|
|
595
|
+
strokeMiterlimit: "10",
|
|
596
|
+
strokeLinecap: "round",
|
|
597
|
+
strokeLinejoin: "round"
|
|
598
|
+
}));
|
|
599
|
+
};
|
|
600
|
+
export var DeleteIconQ = function DeleteIconQ() {
|
|
601
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
602
|
+
width: "24",
|
|
603
|
+
height: "24",
|
|
604
|
+
viewBox: "0 0 24 24",
|
|
605
|
+
fill: "none",
|
|
606
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
607
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
608
|
+
d: "M8.81043 2L5.19043 5.63",
|
|
609
|
+
stroke: "#EB5757",
|
|
610
|
+
strokeWidth: "1.5",
|
|
611
|
+
strokeMiterlimit: "10",
|
|
612
|
+
strokeLinecap: "round",
|
|
613
|
+
strokeLinejoin: "round"
|
|
614
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
615
|
+
d: "M15.1904 2L18.8104 5.63",
|
|
616
|
+
stroke: "#EB5757",
|
|
617
|
+
strokeWidth: "1.5",
|
|
618
|
+
strokeMiterlimit: "10",
|
|
619
|
+
strokeLinecap: "round",
|
|
620
|
+
strokeLinejoin: "round"
|
|
621
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
622
|
+
d: "M2 7.85C2 6 2.99 5.85 4.22 5.85H19.78C21.01 5.85 22 6 22 7.85C22 10 21.01 9.85 19.78 9.85H4.22C2.99 9.85 2 10 2 7.85Z",
|
|
623
|
+
stroke: "#EB5757",
|
|
624
|
+
strokeWidth: "1.5"
|
|
625
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
626
|
+
d: "M9.75977 14V17.55",
|
|
627
|
+
stroke: "#EB5757",
|
|
628
|
+
strokeWidth: "1.5",
|
|
629
|
+
strokeLinecap: "round"
|
|
630
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
631
|
+
d: "M14.3604 14V17.55",
|
|
632
|
+
stroke: "#EB5757",
|
|
633
|
+
strokeWidth: "1.5",
|
|
634
|
+
strokeLinecap: "round"
|
|
635
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
636
|
+
d: "M3.5 10L4.91 18.64C5.23 20.58 6 22 8.86 22H14.89C18 22 18.46 20.64 18.82 18.76L20.5 10",
|
|
637
|
+
stroke: "#EB5757",
|
|
638
|
+
strokeWidth: "1.5",
|
|
639
|
+
strokeLinecap: "round"
|
|
640
|
+
}));
|
|
459
641
|
};
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
line-height: 24px;
|
|
126
126
|
letter-spacing: 0.5px;
|
|
127
127
|
border: 1px solid #219653;
|
|
128
|
-
color: #
|
|
128
|
+
color: #219653;
|
|
129
129
|
cursor: pointer;
|
|
130
130
|
transition: 250ms;
|
|
131
131
|
|
|
@@ -136,7 +136,19 @@
|
|
|
136
136
|
svg {
|
|
137
137
|
path {
|
|
138
138
|
transition: 250ms;
|
|
139
|
-
|
|
139
|
+
stroke: #219653;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.button_green_white:hover {
|
|
144
|
+
background: gray;
|
|
145
|
+
border: 1px solid gray;
|
|
146
|
+
transition: 250ms;
|
|
147
|
+
color: grey;
|
|
148
|
+
svg {
|
|
149
|
+
path {
|
|
150
|
+
transition: 250ms;
|
|
151
|
+
stroke: gray;
|
|
140
152
|
}
|
|
141
153
|
}
|
|
142
154
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import style from "./Delete.module.scss";
|
|
3
|
+
import Button from "../Button";
|
|
4
|
+
var Delete = function Delete(_ref) {
|
|
5
|
+
var value = _ref.value,
|
|
6
|
+
onCancel = _ref.onCancel,
|
|
7
|
+
onDelete = _ref.onDelete;
|
|
8
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
className: style.container
|
|
10
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
11
|
+
className: style.value
|
|
12
|
+
}, value, " silm\u0259k ist\u0259diyinizd\u0259n \u0259minsizinmi?"), /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: style.footer
|
|
14
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
15
|
+
color: "white",
|
|
16
|
+
onClick: onCancel
|
|
17
|
+
}, "Geri"), /*#__PURE__*/React.createElement(Button, {
|
|
18
|
+
color: "red",
|
|
19
|
+
onClick: onDelete
|
|
20
|
+
}, "Soraq\xE7an\u0131 sil")));
|
|
21
|
+
};
|
|
22
|
+
export default Delete;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
.footer {
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
gap: 20px;
|
|
8
|
+
align-items: center;
|
|
9
|
+
margin-top: 9px;
|
|
10
|
+
button {
|
|
11
|
+
padding: 5px 19px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.value {
|
|
16
|
+
font-family: Inter;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
line-height: 24px;
|
|
20
|
+
text-align: left;
|
|
21
|
+
color: #1c1c1c;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Modal } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
import style from "./DeleteModal.module.scss";
|
|
5
|
+
var DeleteModal = function DeleteModal(_ref) {
|
|
6
|
+
var children = _ref.children,
|
|
7
|
+
width = _ref.width,
|
|
8
|
+
onCancel = _ref.onCancel;
|
|
9
|
+
var _useSelector = useSelector(function (state) {
|
|
10
|
+
return state.global;
|
|
11
|
+
}),
|
|
12
|
+
deleteModalVisible = _useSelector.deleteModalVisible;
|
|
13
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
14
|
+
open: deleteModalVisible,
|
|
15
|
+
width: width,
|
|
16
|
+
onCancel: onCancel,
|
|
17
|
+
okButtonProps: {
|
|
18
|
+
style: {
|
|
19
|
+
display: "none"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
cancelButtonProps: {
|
|
23
|
+
style: {
|
|
24
|
+
display: "none"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
className: style.absolute,
|
|
28
|
+
closable: false
|
|
29
|
+
}, children);
|
|
30
|
+
};
|
|
31
|
+
export default DeleteModal;
|
|
@@ -161,6 +161,6 @@ var Filter = function Filter(_ref) {
|
|
|
161
161
|
onOpenChange: handleOpenChange // Updated to use onOpenChange
|
|
162
162
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
163
163
|
color: "white"
|
|
164
|
-
}, /*#__PURE__*/React.createElement(FilterIcon, null)
|
|
164
|
+
}, /*#__PURE__*/React.createElement(FilterIcon, null)));
|
|
165
165
|
};
|
|
166
166
|
export default Filter;
|
|
@@ -36,8 +36,7 @@ var Input = function Input(_ref) {
|
|
|
36
36
|
} : false,
|
|
37
37
|
placeholder: placeholder
|
|
38
38
|
}, rest)) : /*#__PURE__*/React.createElement(AntdInput, _extends({
|
|
39
|
-
className: style.input
|
|
40
|
-
placeholder: placeholder
|
|
39
|
+
className: className ? className : size === "sm" ? style.input_sm : style.input
|
|
41
40
|
}, rest)));
|
|
42
41
|
};
|
|
43
42
|
export default Input;
|
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
height: 48px;
|
|
9
9
|
width: 100%;
|
|
10
10
|
}
|
|
11
|
+
.input_sm {
|
|
12
|
+
padding: 9px 16px !important;
|
|
13
|
+
border-radius: 6px !important;
|
|
14
|
+
font-size: 16px !important;
|
|
15
|
+
font-weight: 500 !important;
|
|
16
|
+
line-height: 24px !important;
|
|
17
|
+
text-align: left !important;
|
|
18
|
+
height: 34px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
11
21
|
.textarea {
|
|
12
22
|
padding: 9px 16px !important;
|
|
13
23
|
border-radius: 6px !important;
|
|
@@ -30,22 +40,12 @@
|
|
|
30
40
|
}
|
|
31
41
|
}
|
|
32
42
|
|
|
33
|
-
.input_sm {
|
|
34
|
-
padding: 9px 16px !important;
|
|
35
|
-
border-radius: 6px !important;
|
|
36
|
-
font-size: 16px !important;
|
|
37
|
-
font-weight: 500 !important;
|
|
38
|
-
line-height: 24px !important;
|
|
39
|
-
text-align: left !important;
|
|
40
|
-
height: 34;
|
|
41
|
-
width: 100%;
|
|
42
|
-
}
|
|
43
43
|
.date_sm {
|
|
44
44
|
padding: 8px 16px !important;
|
|
45
45
|
// border: 1px solid #bdbdbd !important;
|
|
46
46
|
border-radius: 6px !important;
|
|
47
47
|
width: 100%;
|
|
48
|
-
height:
|
|
48
|
+
height: 34px;
|
|
49
49
|
input {
|
|
50
50
|
font-size: 16px !important;
|
|
51
51
|
font-weight: 500 !important;
|
|
@@ -53,7 +53,16 @@
|
|
|
53
53
|
text-align: left !important;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
.input_sm {
|
|
57
|
+
padding: 8px 16px !important;
|
|
58
|
+
border-radius: 6px !important;
|
|
59
|
+
font-size: 16px !important;
|
|
60
|
+
font-weight: 500 !important;
|
|
61
|
+
line-height: 24px !important;
|
|
62
|
+
text-align: left !important;
|
|
63
|
+
height: 34px;
|
|
64
|
+
width: 100%;
|
|
65
|
+
}
|
|
57
66
|
.input_xs {
|
|
58
67
|
// padding: 9px 16px !important;
|
|
59
68
|
border-radius: 6px !important;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
gap: 8px;
|
|
188
188
|
padding: 7px 10px;
|
|
189
189
|
border-radius: 8px;
|
|
190
|
-
background:
|
|
190
|
+
background: var(--lightBlue);
|
|
191
191
|
cursor: pointer;
|
|
192
192
|
width: 240px;
|
|
193
193
|
|
|
@@ -229,13 +229,13 @@
|
|
|
229
229
|
position: absolute;
|
|
230
230
|
top: 100%;
|
|
231
231
|
right: -1px;
|
|
232
|
-
width:
|
|
232
|
+
width: 242px;
|
|
233
233
|
border-right: 1px solid var(--blue);
|
|
234
234
|
border-left: 1px solid var(--blue);
|
|
235
235
|
border-bottom: 1px solid var(--blue);
|
|
236
236
|
|
|
237
237
|
border-radius: 0px 0px 8px 8px;
|
|
238
|
-
background:
|
|
238
|
+
background: var(--lightBlue);
|
|
239
239
|
z-index: 100;
|
|
240
240
|
display: flex;
|
|
241
241
|
flex-direction: column;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import style from "./Success.module.scss";
|
|
3
|
+
import { OkIcon } from "../../assets/icons";
|
|
4
|
+
import Button from "../Button";
|
|
5
|
+
var Success = function Success(_ref) {
|
|
6
|
+
var value = _ref.value,
|
|
7
|
+
customValue = _ref.customValue,
|
|
8
|
+
onClick = _ref.onClick;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: style.container
|
|
11
|
+
}, /*#__PURE__*/React.createElement("figure", null, /*#__PURE__*/React.createElement(OkIcon, null)), value ? /*#__PURE__*/React.createElement("h3", {
|
|
12
|
+
className: style.value
|
|
13
|
+
}, value, " u\u011Furla \u0259lav\u0259 edildi") : /*#__PURE__*/React.createElement("h3", {
|
|
14
|
+
className: style.value
|
|
15
|
+
}, customValue), /*#__PURE__*/React.createElement(Button, {
|
|
16
|
+
onClick: onClick
|
|
17
|
+
}, "\u018Fsas s\u0259hif\u0259y\u0259 geri qay\u0131t"));
|
|
18
|
+
};
|
|
19
|
+
export default Success;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
padding: 53px;
|
|
7
|
+
padding-top: 120px;
|
|
8
|
+
button {
|
|
9
|
+
padding: 9px 19px;
|
|
10
|
+
font-family: Inter;
|
|
11
|
+
font-size: 18px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
line-height: 27px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.value {
|
|
18
|
+
margin-top: 18px;
|
|
19
|
+
font-family: Inter;
|
|
20
|
+
font-size: 20px;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
line-height: 30px;
|
|
23
|
+
text-align: left;
|
|
24
|
+
color: #0b0b0b;
|
|
25
|
+
margin-bottom: 53px;
|
|
26
|
+
}
|
|
@@ -15,7 +15,9 @@ var Table = function Table(_ref) {
|
|
|
15
15
|
dataSource = _ref.dataSource,
|
|
16
16
|
selectedColumns = _ref.selectedColumns,
|
|
17
17
|
innerW = _ref.innerW,
|
|
18
|
-
disableDrag = _ref.disableDrag
|
|
18
|
+
disableDrag = _ref.disableDrag,
|
|
19
|
+
_ref$big = _ref.big,
|
|
20
|
+
big = _ref$big === void 0 ? false : _ref$big;
|
|
19
21
|
var getSavedOrder = function getSavedOrder(id) {
|
|
20
22
|
var savedOrder = Cookies.get("columnOrder_".concat(id));
|
|
21
23
|
return savedOrder ? savedOrder.split(",") : null;
|
|
@@ -197,7 +199,7 @@ var Table = function Table(_ref) {
|
|
|
197
199
|
components: components,
|
|
198
200
|
scroll: {
|
|
199
201
|
x: innerW * (Array.isArray(selectedColumns) ? selectedColumns.length - 1 : 0),
|
|
200
|
-
y: "calc(88vh - ".concat(window.innerWidth > 1537 ? "260px" : "280px", ")")
|
|
202
|
+
y: "calc(88vh - ".concat(window.innerWidth > 1537 ? big === true ? "180px" : "260px" : big === true ? "200px" : "280px", ")")
|
|
201
203
|
}
|
|
202
204
|
}));
|
|
203
205
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Modal } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useSelector } from "react-redux";
|
|
4
|
+
var ViewModal = function ViewModal(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
width = _ref.width,
|
|
7
|
+
onCancel = _ref.onCancel,
|
|
8
|
+
isEditing = _ref.isEditing;
|
|
9
|
+
var _useSelector = useSelector(function (state) {
|
|
10
|
+
return state.global;
|
|
11
|
+
}),
|
|
12
|
+
viewModalVisible = _useSelector.viewModalVisible;
|
|
13
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
14
|
+
centered: true,
|
|
15
|
+
okButtonProps: {
|
|
16
|
+
style: {
|
|
17
|
+
display: "none"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
cancelButtonProps: {
|
|
21
|
+
style: {
|
|
22
|
+
display: "none"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
width: width,
|
|
26
|
+
open: viewModalVisible,
|
|
27
|
+
onCancel: onCancel
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
export default ViewModal;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
export var queryString = function queryString(data) {
|
|
3
|
+
var query = Object.entries(data).map(function (_ref) {
|
|
4
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
5
|
+
key = _ref2[0],
|
|
6
|
+
value = _ref2[1];
|
|
7
|
+
if (value === undefined || value === null || value === "") {
|
|
8
|
+
return null; // Ignore undefined, null, or empty values
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Check if value is a string representing an array, e.g., "[0,19]"
|
|
12
|
+
if (typeof value === "string" && value.startsWith("[") && value.endsWith("]")) {
|
|
13
|
+
value = value.slice(1, -1); // Remove the brackets without encoding
|
|
14
|
+
return "".concat(key, "=").concat(value); // Skip encoding for this case
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Default case: encode the key and value
|
|
18
|
+
return "".concat(encodeURIComponent(key), "=").concat(encodeURIComponent(value));
|
|
19
|
+
}).filter(Boolean) // Filter out any null values
|
|
20
|
+
.join("&");
|
|
21
|
+
return query ? "".concat(query) : "";
|
|
22
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,8 @@ export { default as Select } from "./components/Select";
|
|
|
15
15
|
export { default as Input } from "./components/Input";
|
|
16
16
|
export { default as api } from "./utils/axios";
|
|
17
17
|
export { default as NotFound } from "./pages/NotFound";
|
|
18
|
+
export { questionnairesRoutes } from "./routes/QuestionnaireRoutes";
|
|
19
|
+
export { CoreProvider } from "./store/coreProvider";
|
|
18
20
|
import LoginPage from "./pages/Login";
|
|
19
21
|
import PlatformPage from "./pages/Platform";
|
|
20
22
|
import HeaderLayout from "./layout/Header";
|
|
@@ -6,6 +6,7 @@ import { Collapse } from "antd";
|
|
|
6
6
|
import { RightOutlined } from "@ant-design/icons";
|
|
7
7
|
import style from "./index.module.scss";
|
|
8
8
|
import { entryData } from "../../../pages/Platform/constant";
|
|
9
|
+
import Portal from "../../Portal";
|
|
9
10
|
var Panel = Collapse.Panel;
|
|
10
11
|
var AppSelect = function AppSelect() {
|
|
11
12
|
var location = useLocation();
|
|
@@ -14,11 +15,15 @@ var AppSelect = function AppSelect() {
|
|
|
14
15
|
}),
|
|
15
16
|
scopesData = _useSelector.scopesData;
|
|
16
17
|
var accordionRef = useRef(null);
|
|
18
|
+
var dropdownRef = useRef(null);
|
|
17
19
|
var _useState = useState([]),
|
|
18
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19
21
|
activeKey = _useState2[0],
|
|
20
|
-
setActiveKey = _useState2[1];
|
|
21
|
-
|
|
22
|
+
setActiveKey = _useState2[1];
|
|
23
|
+
var _useState3 = useState({}),
|
|
24
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
25
|
+
dropdownStyle = _useState4[0],
|
|
26
|
+
setDropdownStyle = _useState4[1];
|
|
22
27
|
var filteredOptions = useMemo(function () {
|
|
23
28
|
return entryData.filter(function (item) {
|
|
24
29
|
return item.scopes === "account" || scopesData === "*" || (scopesData === null || scopesData === void 0 ? void 0 : scopesData.includes(item.scopes));
|
|
@@ -32,12 +37,11 @@ var AppSelect = function AppSelect() {
|
|
|
32
37
|
return opt.pathname.includes("/".concat(baseSegment));
|
|
33
38
|
}) || filteredOptions[0];
|
|
34
39
|
}, [filteredOptions, baseSegment]);
|
|
35
|
-
|
|
36
|
-
// ✨ Outside click listener
|
|
37
40
|
useEffect(function () {
|
|
38
41
|
var handleClickOutside = function handleClickOutside(e) {
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
var _dropdownRef$current;
|
|
43
|
+
if (accordionRef.current && !accordionRef.current.contains(e.target) && !((_dropdownRef$current = dropdownRef.current) !== null && _dropdownRef$current !== void 0 && _dropdownRef$current.contains(e.target))) {
|
|
44
|
+
setActiveKey([]);
|
|
41
45
|
}
|
|
42
46
|
};
|
|
43
47
|
document.addEventListener("mousedown", handleClickOutside);
|
|
@@ -45,6 +49,18 @@ var AppSelect = function AppSelect() {
|
|
|
45
49
|
return document.removeEventListener("mousedown", handleClickOutside);
|
|
46
50
|
};
|
|
47
51
|
}, []);
|
|
52
|
+
useEffect(function () {
|
|
53
|
+
if (activeKey.length > 0 && accordionRef.current) {
|
|
54
|
+
var rect = accordionRef.current.getBoundingClientRect();
|
|
55
|
+
setDropdownStyle({
|
|
56
|
+
position: "absolute",
|
|
57
|
+
top: rect.bottom + window.scrollY + 4,
|
|
58
|
+
left: rect.left + window.scrollX,
|
|
59
|
+
width: rect.width,
|
|
60
|
+
zIndex: 9999
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}, [activeKey]);
|
|
48
64
|
return /*#__PURE__*/React.createElement("div", {
|
|
49
65
|
ref: accordionRef
|
|
50
66
|
}, /*#__PURE__*/React.createElement(Collapse, {
|
|
@@ -73,8 +89,11 @@ var AppSelect = function AppSelect() {
|
|
|
73
89
|
className: style.accordionHeader
|
|
74
90
|
}, /*#__PURE__*/React.createElement("div", null, active === null || active === void 0 ? void 0 : active.icon), /*#__PURE__*/React.createElement("span", null, active === null || active === void 0 ? void 0 : active.value)),
|
|
75
91
|
key: "1"
|
|
76
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
77
|
-
|
|
92
|
+
})), activeKey.length > 0 && /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
"data-no-invert": true,
|
|
94
|
+
ref: dropdownRef,
|
|
95
|
+
className: style.accordionBody,
|
|
96
|
+
style: dropdownStyle
|
|
78
97
|
}, filteredOptions.filter(function (opt) {
|
|
79
98
|
return opt.pathname !== (active === null || active === void 0 ? void 0 : active.pathname);
|
|
80
99
|
}).map(function (option) {
|
|
@@ -83,6 +102,6 @@ var AppSelect = function AppSelect() {
|
|
|
83
102
|
href: option.pathname,
|
|
84
103
|
className: style.accordionOption
|
|
85
104
|
}, option.icon, /*#__PURE__*/React.createElement("span", null, option.value));
|
|
86
|
-
}))))
|
|
105
|
+
}))));
|
|
87
106
|
};
|
|
88
107
|
export default AppSelect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.accordion {
|
|
2
2
|
background: var(--blue);
|
|
3
|
-
width:
|
|
3
|
+
width: 270px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.accordionHeader {
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
gap: 8px;
|
|
30
|
+
background-color: var(--blue);
|
|
31
|
+
padding: 10px;
|
|
32
|
+
top: 81px !important;
|
|
33
|
+
width: 250px !important;
|
|
34
|
+
border-radius: 0 0 6px 6px;
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
.accordionOption {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
// src/components/Portal.js
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { createPortal } from "react-dom";
|
|
5
|
+
var Portal = function Portal(_ref) {
|
|
6
|
+
var children = _ref.children;
|
|
7
|
+
var elRef = useRef(null);
|
|
8
|
+
var _useState = useState(false),
|
|
9
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10
|
+
mounted = _useState2[0],
|
|
11
|
+
setMounted = _useState2[1];
|
|
12
|
+
useEffect(function () {
|
|
13
|
+
var el = document.createElement("div");
|
|
14
|
+
elRef.current = el;
|
|
15
|
+
document.body.appendChild(el);
|
|
16
|
+
setMounted(true);
|
|
17
|
+
return function () {
|
|
18
|
+
document.body.removeChild(el);
|
|
19
|
+
};
|
|
20
|
+
}, []);
|
|
21
|
+
return mounted ? /*#__PURE__*/createPortal(children, elRef.current) : null;
|
|
22
|
+
};
|
|
23
|
+
export default Portal;
|