iglooform 2.4.7 → 2.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.d.ts +2 -0
  3. package/es/admin-upload/index.js +43 -36
  4. package/es/admin-upload/job-list.js +85 -115
  5. package/es/admin-upload/modal.js +19 -26
  6. package/es/alert-message/index.js +11 -9
  7. package/es/amount/index.js +10 -5
  8. package/es/back-top/index.js +14 -10
  9. package/es/button/index.js +23 -28
  10. package/es/button/style/index.less +23 -19
  11. package/es/card-detail/card-group.js +16 -22
  12. package/es/card-detail/card-item.js +16 -21
  13. package/es/card-detail/card-page.js +11 -15
  14. package/es/card-detail/card.js +24 -24
  15. package/es/card-detail/style/index.less +13 -0
  16. package/es/card-detail/utils.js +6 -7
  17. package/es/checkbox/index.js +23 -22
  18. package/es/claim-list/index.js +53 -70
  19. package/es/confirmation/index.js +7 -9
  20. package/es/date-picker/buddhist.js +3 -3
  21. package/es/date-picker/index.js +10 -4
  22. package/es/declaration/index.js +16 -13
  23. package/es/detail-panel/index.js +67 -83
  24. package/es/documents/index.js +6 -8
  25. package/es/example/index.js +9 -11
  26. package/es/filter/checkBox.js +33 -45
  27. package/es/filter/customize.js +3 -4
  28. package/es/filter/index.d.ts +1 -0
  29. package/es/filter/index.js +88 -112
  30. package/es/filter/radioBox.js +23 -31
  31. package/es/filter/rangePicker.js +43 -59
  32. package/es/form/addable-section/index.d.ts +19 -0
  33. package/es/form/addable-section/index.js +211 -0
  34. package/es/form/addable-section/style/index.d.ts +1 -0
  35. package/es/form/addable-section/style/index.js +1 -0
  36. package/es/form/addable-section/style/index.less +22 -0
  37. package/es/form/divider/index.js +7 -1
  38. package/es/form/element/index.js +58 -47
  39. package/es/form/element/style/index.less +9 -0
  40. package/es/form/index.js +16 -17
  41. package/es/form/login/index.js +15 -20
  42. package/es/form/page/index.js +18 -24
  43. package/es/form/page/style/index.less +1 -1
  44. package/es/form/pages/index.js +23 -32
  45. package/es/form/pages/style/index.less +3 -1
  46. package/es/form/render/index.js +1 -1
  47. package/es/form/section/index.js +14 -17
  48. package/es/form/step/index.js +31 -42
  49. package/es/form/steps/index.js +8 -11
  50. package/es/{form/context.d.ts → form-context.d.ts} +1 -0
  51. package/es/{form/context.js → form-context.js} +0 -0
  52. package/es/free-form/addable-section/index.d.ts +18 -0
  53. package/es/free-form/addable-section/index.js +286 -0
  54. package/es/free-form/addable-section/style/index.d.ts +1 -0
  55. package/es/free-form/addable-section/style/index.js +1 -0
  56. package/es/free-form/addable-section/style/index.less +22 -0
  57. package/es/free-form/element/index.js +43 -41
  58. package/es/free-form/element/style/index.less +12 -2
  59. package/es/free-form/index.d.ts +5 -1
  60. package/es/free-form/index.js +17 -17
  61. package/es/free-form/page/index.js +36 -46
  62. package/es/free-form/page/style/index.less +3 -1
  63. package/es/free-form/pages/index.js +8 -10
  64. package/es/free-form/section/index.js +20 -22
  65. package/es/free-form/section/style/index.less +4 -0
  66. package/es/free-form/step/index.js +37 -47
  67. package/es/free-form/steps/index.js +8 -10
  68. package/es/global-message/index.js +1 -1
  69. package/es/home-menu/index.js +52 -71
  70. package/es/index.d.ts +1 -0
  71. package/es/index.js +2 -1
  72. package/es/input/amount.js +10 -5
  73. package/es/input/credit-card.js +7 -1
  74. package/es/input/email.js +8 -1
  75. package/es/input/expiry-date.js +14 -18
  76. package/es/input/input-date.js +12 -16
  77. package/es/input/input-number.js +9 -2
  78. package/es/input/input.js +9 -2
  79. package/es/input/otp.js +17 -15
  80. package/es/input/password.js +12 -6
  81. package/es/input/phone-number.js +6 -8
  82. package/es/input/style/index.less +9 -1
  83. package/es/input/text-area.js +14 -10
  84. package/es/layout/defaultFooter.js +60 -82
  85. package/es/layout/defaultHeader.js +11 -15
  86. package/es/layout/footer.js +108 -148
  87. package/es/layout/header.js +51 -60
  88. package/es/layout/index.js +16 -12
  89. package/es/locale/en-US/messages.json +2 -0
  90. package/es/locale/id-ID/messages.json +2 -0
  91. package/es/locale/locale-provider.js +8 -10
  92. package/es/locale/th-TH/messages.json +2 -0
  93. package/es/locale/vi-VN/messages.json +2 -0
  94. package/es/locale/zh-CN/messages.json +2 -0
  95. package/es/login-page/index.js +30 -42
  96. package/es/media/index.js +20 -27
  97. package/es/media/media.js +9 -12
  98. package/es/media/preview.js +8 -10
  99. package/es/mobile-insurer-detail/index.js +74 -91
  100. package/es/mobile-insurer-list/index.js +34 -38
  101. package/es/modal/index.d.ts +4 -3
  102. package/es/modal/index.js +25 -27
  103. package/es/modal/style/index.less +24 -5
  104. package/es/platform/platform-card/index.js +9 -12
  105. package/es/platform/switch-platform/index.js +24 -32
  106. package/es/policy-list/index.js +11 -14
  107. package/es/policy-list/policy-card.js +119 -153
  108. package/es/radio/index.js +33 -35
  109. package/es/select/attached-select.js +31 -34
  110. package/es/select/select.js +12 -8
  111. package/es/select/style/index.less +1 -1
  112. package/es/select/time-select.js +12 -16
  113. package/es/status-box/index.js +8 -10
  114. package/es/table/index.js +72 -96
  115. package/es/tabs/index.js +7 -1
  116. package/es/types.d.ts +4 -2
  117. package/es/typography/index.js +6 -8
  118. package/es/upload/index.d.ts +2 -1
  119. package/es/upload/index.js +169 -143
  120. package/es/upload-photo/index.d.ts +2 -1
  121. package/es/upload-photo/index.js +170 -142
  122. package/es/upload-photo/media.js +3 -4
  123. package/es/upload-preview/index.js +9 -12
  124. package/es/upload-preview/media.js +12 -16
  125. package/es/upload-preview/style/index.less +2 -2
  126. package/es/utils/form-utils.js +49 -36
  127. package/lib/admin-upload/float.js +25 -35
  128. package/lib/admin-upload/index.d.ts +2 -0
  129. package/lib/admin-upload/index.js +43 -36
  130. package/lib/admin-upload/job-list.js +85 -115
  131. package/lib/admin-upload/modal.js +19 -26
  132. package/lib/alert-message/index.js +11 -9
  133. package/lib/amount/index.js +10 -5
  134. package/lib/back-top/index.js +14 -10
  135. package/lib/button/index.js +24 -29
  136. package/lib/button/style/index.less +23 -19
  137. package/lib/card-detail/card-group.js +16 -22
  138. package/lib/card-detail/card-item.js +16 -21
  139. package/lib/card-detail/card-page.js +11 -15
  140. package/lib/card-detail/card.js +24 -24
  141. package/lib/card-detail/index.js +6 -6
  142. package/lib/card-detail/style/index.less +13 -0
  143. package/lib/card-detail/utils.js +7 -8
  144. package/lib/checkbox/index.js +24 -23
  145. package/lib/claim-list/index.js +53 -70
  146. package/lib/confirmation/index.js +7 -9
  147. package/lib/date-picker/buddhist.js +3 -3
  148. package/lib/date-picker/index.js +11 -5
  149. package/lib/declaration/index.js +16 -13
  150. package/lib/detail-panel/index.js +67 -83
  151. package/lib/documents/index.js +6 -8
  152. package/lib/example/index.js +10 -12
  153. package/lib/filter/checkBox.js +33 -45
  154. package/lib/filter/customize.js +3 -4
  155. package/lib/filter/index.d.ts +1 -0
  156. package/lib/filter/index.js +88 -112
  157. package/lib/filter/radioBox.js +23 -31
  158. package/lib/filter/rangePicker.js +43 -59
  159. package/lib/form/addable-section/index.d.ts +19 -0
  160. package/lib/form/addable-section/index.js +232 -0
  161. package/lib/form/addable-section/style/index.d.ts +1 -0
  162. package/lib/form/addable-section/style/index.js +3 -0
  163. package/lib/form/addable-section/style/index.less +22 -0
  164. package/lib/form/divider/index.js +7 -1
  165. package/lib/form/element/index.js +60 -48
  166. package/lib/form/element/style/index.less +9 -0
  167. package/lib/form/elements.js +1 -1
  168. package/lib/form/index.js +16 -17
  169. package/lib/form/login/index.js +16 -21
  170. package/lib/form/page/index.js +19 -25
  171. package/lib/form/page/style/index.less +1 -1
  172. package/lib/form/pages/index.js +24 -33
  173. package/lib/form/pages/style/index.less +3 -1
  174. package/lib/form/render/index.js +2 -2
  175. package/lib/form/section/index.js +15 -18
  176. package/lib/form/step/index.js +32 -43
  177. package/lib/form/steps/index.js +9 -12
  178. package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
  179. package/lib/{form/context.js → form-context.js} +0 -0
  180. package/lib/free-form/addable-section/index.d.ts +18 -0
  181. package/lib/free-form/addable-section/index.js +306 -0
  182. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  183. package/lib/free-form/addable-section/style/index.js +3 -0
  184. package/lib/free-form/addable-section/style/index.less +22 -0
  185. package/lib/free-form/element/index.js +44 -42
  186. package/lib/free-form/element/style/index.less +12 -2
  187. package/lib/free-form/index.d.ts +5 -1
  188. package/lib/free-form/index.js +17 -17
  189. package/lib/free-form/page/index.js +37 -47
  190. package/lib/free-form/page/style/index.less +3 -1
  191. package/lib/free-form/pages/index.js +8 -10
  192. package/lib/free-form/section/index.js +21 -23
  193. package/lib/free-form/section/style/index.less +4 -0
  194. package/lib/free-form/step/index.js +38 -48
  195. package/lib/free-form/steps/index.js +9 -11
  196. package/lib/global-message/index.js +1 -1
  197. package/lib/home-menu/index.js +52 -71
  198. package/lib/index.d.ts +1 -0
  199. package/lib/index.js +141 -132
  200. package/lib/input/amount.js +10 -5
  201. package/lib/input/credit-card.js +7 -1
  202. package/lib/input/email.js +7 -1
  203. package/lib/input/expiry-date.js +14 -18
  204. package/lib/input/index.js +18 -18
  205. package/lib/input/input-date.js +12 -16
  206. package/lib/input/input-number.js +8 -2
  207. package/lib/input/input.js +8 -2
  208. package/lib/input/otp.js +17 -15
  209. package/lib/input/password.js +11 -6
  210. package/lib/input/phone-number.js +6 -8
  211. package/lib/input/style/index.less +9 -1
  212. package/lib/input/text-area.js +14 -10
  213. package/lib/layout/defaultFooter.js +60 -82
  214. package/lib/layout/defaultHeader.js +11 -15
  215. package/lib/layout/footer.js +108 -148
  216. package/lib/layout/header.js +51 -60
  217. package/lib/layout/index.js +15 -12
  218. package/lib/locale/en-US/messages.json +2 -0
  219. package/lib/locale/format-message.js +1 -1
  220. package/lib/locale/id-ID/messages.json +2 -0
  221. package/lib/locale/index.js +4 -4
  222. package/lib/locale/locale-provider.js +9 -11
  223. package/lib/locale/th-TH/messages.json +2 -0
  224. package/lib/locale/vi-VN/messages.json +2 -0
  225. package/lib/locale/zh-CN/messages.json +2 -0
  226. package/lib/login-page/index.js +30 -42
  227. package/lib/media/index.js +20 -27
  228. package/lib/media/media.js +9 -12
  229. package/lib/media/preview.js +8 -10
  230. package/lib/mobile-insurer-detail/index.js +74 -91
  231. package/lib/mobile-insurer-list/index.js +34 -38
  232. package/lib/modal/index.d.ts +4 -3
  233. package/lib/modal/index.js +25 -27
  234. package/lib/modal/style/index.less +24 -5
  235. package/lib/platform/platform-card/index.js +9 -12
  236. package/lib/platform/switch-platform/index.js +24 -32
  237. package/lib/policy-list/index.js +11 -14
  238. package/lib/policy-list/policy-card.js +119 -153
  239. package/lib/radio/index.js +33 -35
  240. package/lib/select/attached-select.js +32 -35
  241. package/lib/select/select.js +13 -9
  242. package/lib/select/style/index.less +1 -1
  243. package/lib/select/time-select.js +12 -16
  244. package/lib/status-box/index.js +8 -10
  245. package/lib/table/index.js +72 -96
  246. package/lib/tabs/index.js +8 -2
  247. package/lib/types.d.ts +4 -2
  248. package/lib/typography/index.js +6 -8
  249. package/lib/upload/index.d.ts +2 -1
  250. package/lib/upload/index.js +170 -143
  251. package/lib/upload-photo/index.d.ts +2 -1
  252. package/lib/upload-photo/index.js +171 -142
  253. package/lib/upload-photo/media.js +3 -4
  254. package/lib/upload-preview/index.js +9 -12
  255. package/lib/upload-preview/media.js +12 -16
  256. package/lib/upload-preview/style/index.less +2 -2
  257. package/lib/utils/form-utils.js +49 -37
  258. package/package.json +1 -1
  259. package/es/free-form/context.d.ts +0 -19
  260. package/es/free-form/context.js +0 -7
  261. package/lib/free-form/context.d.ts +0 -19
  262. package/lib/free-form/context.js +0 -19
@@ -21,196 +21,163 @@ var LayoutFooter = function LayoutFooter(_ref) {
21
21
  md = _useBreakpoint.md;
22
22
 
23
23
  var topRightContent = companyInfoRender ? companyInfoRender() : _jsxs(_Fragment, {
24
- children: [_jsxs("div", Object.assign({
25
- className: "no-address-info"
26
- }, {
27
- children: [tel && _jsxs("div", Object.assign({
24
+ children: [_jsxs("div", {
25
+ className: "no-address-info",
26
+ children: [tel && _jsxs("div", {
28
27
  className: "info-container",
29
28
  style: {
30
29
  alignItems: 'center'
31
- }
32
- }, {
30
+ },
33
31
  children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
34
- children: typeof tel === 'string' ? _jsx(Typography, Object.assign({
32
+ children: typeof tel === 'string' ? _jsx(Typography, {
35
33
  level: "body2",
36
- className: "info-span"
37
- }, {
34
+ className: "info-span",
38
35
  children: tel
39
- }), void 0) : tel
36
+ }, void 0) : tel
40
37
  }, void 0)]
41
- }), void 0), email && _jsxs("div", Object.assign({
38
+ }, void 0), email && _jsxs("div", {
42
39
  className: "info-container",
43
40
  style: {
44
41
  alignItems: 'center'
45
- }
46
- }, {
42
+ },
47
43
  children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
48
- children: typeof email === 'string' ? _jsx(Typography, Object.assign({
44
+ children: typeof email === 'string' ? _jsx(Typography, {
49
45
  level: "body2",
50
- className: "info-span"
51
- }, {
46
+ className: "info-span",
52
47
  children: email
53
- }), void 0) : email
48
+ }, void 0) : email
54
49
  }, void 0)]
55
- }), void 0), workTime && _jsxs("div", Object.assign({
56
- className: "info-container"
57
- }, {
50
+ }, void 0), workTime && _jsxs("div", {
51
+ className: "info-container",
58
52
  children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
59
- children: typeof workTime === 'string' ? _jsx(Typography, Object.assign({
53
+ children: typeof workTime === 'string' ? _jsx(Typography, {
60
54
  level: "body2",
61
- className: "info-span"
62
- }, {
55
+ className: "info-span",
63
56
  children: workTime
64
- }), void 0) : workTime
57
+ }, void 0) : workTime
65
58
  }, void 0)]
66
- }), void 0)]
67
- }), void 0), address && _jsxs(_Space, Object.assign({
59
+ }, void 0)]
60
+ }, void 0), address && _jsxs(_Space, {
68
61
  size: 16,
69
- align: "start"
70
- }, {
62
+ align: "start",
71
63
  children: [_jsx(LocationOutlined, {
72
64
  style: {
73
65
  fontSize: 24
74
66
  }
75
67
  }, void 0), _jsx("div", {
76
- children: typeof address === 'string' ? _jsx(Typography, Object.assign({
68
+ children: typeof address === 'string' ? _jsx(Typography, {
77
69
  level: "body2",
78
- className: "info-span"
79
- }, {
70
+ className: "info-span",
80
71
  children: address
81
- }), void 0) : address
72
+ }, void 0) : address
82
73
  }, void 0)]
83
- }), void 0)]
74
+ }, void 0)]
84
75
  }, void 0);
85
76
 
86
77
  if (md) {
87
- return _jsx("div", Object.assign({
88
- className: "igloo-layout-footer"
89
- }, {
90
- children: _jsxs("div", Object.assign({
91
- className: "footer-content"
92
- }, {
93
- children: [_jsxs(_Space, Object.assign({
78
+ return _jsx("div", {
79
+ className: "igloo-layout-footer",
80
+ children: _jsxs("div", {
81
+ className: "footer-content",
82
+ children: [_jsxs(_Space, {
94
83
  size: 32,
95
84
  align: "start",
96
- className: "footer-top"
97
- }, {
98
- children: [_jsx("div", Object.assign({
99
- className: "top-left"
100
- }, {
85
+ className: "footer-top",
86
+ children: [_jsx("div", {
87
+ className: "top-left",
101
88
  children: _jsx("div", {
102
89
  className: "igloo-logo"
103
90
  }, void 0)
104
- }), void 0), topRightContent]
105
- }), void 0), _jsx("div", {
91
+ }, void 0), topRightContent]
92
+ }, void 0), _jsx("div", {
106
93
  className: "footer-divider"
107
- }, void 0), _jsxs("div", Object.assign({
108
- className: "footer-bottom"
109
- }, {
110
- children: [copyRightRender ? copyRightRender("\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo. All Rights Reserved.")) : _jsx(Typography, Object.assign({
111
- level: "body3"
112
- }, {
94
+ }, void 0), _jsxs("div", {
95
+ className: "footer-bottom",
96
+ children: [copyRightRender ? copyRightRender("\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo. All Rights Reserved.")) : _jsx(Typography, {
97
+ level: "body3",
113
98
  children: "\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo. All Rights Reserved.")
114
- }), void 0), _jsxs(Typography, Object.assign({
115
- level: "body3"
116
- }, {
117
- children: [_jsx(Button, Object.assign({
99
+ }, void 0), _jsxs(Typography, {
100
+ level: "body3",
101
+ children: [_jsx(Button, {
118
102
  type: "text",
119
103
  onClick: function onClick() {
120
104
  return window.open('https://contents.iglooinsure.com/privacypolicy');
121
- }
122
- }, {
123
- children: _jsx(Typography, Object.assign({
124
- level: "body3"
125
- }, {
105
+ },
106
+ children: _jsx(Typography, {
107
+ level: "body3",
126
108
  children: "Privacy Policy"
127
- }), void 0)
128
- }), void 0), ' ', _jsx("span", Object.assign({
109
+ }, void 0)
110
+ }, void 0), ' ', _jsx("span", {
129
111
  style: {
130
112
  margin: '0px 16px'
131
- }
132
- }, {
113
+ },
133
114
  children: "|"
134
- }), void 0), _jsx(Button, Object.assign({
115
+ }, void 0), _jsx(Button, {
135
116
  type: "text",
136
117
  onClick: function onClick() {
137
118
  return window.open('https://contents.iglooinsure.com/termsofservice');
138
- }
139
- }, {
140
- children: _jsx(Typography, Object.assign({
141
- level: "body3"
142
- }, {
119
+ },
120
+ children: _jsx(Typography, {
121
+ level: "body3",
143
122
  children: "Terms of Service"
144
- }), void 0)
145
- }), void 0)]
146
- }), void 0)]
147
- }), void 0)]
148
- }), void 0)
149
- }), void 0);
123
+ }, void 0)
124
+ }, void 0)]
125
+ }, void 0)]
126
+ }, void 0)]
127
+ }, void 0)
128
+ }, void 0);
150
129
  } else {
151
- return _jsx("div", Object.assign({
152
- className: "igloo-layout-footer"
153
- }, {
154
- children: _jsxs("div", Object.assign({
155
- className: "footer-content"
156
- }, {
130
+ return _jsx("div", {
131
+ className: "igloo-layout-footer",
132
+ children: _jsxs("div", {
133
+ className: "footer-content",
157
134
  children: [_jsx("div", {
158
135
  className: "igloo-logo"
159
- }, void 0), _jsxs("div", Object.assign({
160
- className: "compony-info"
161
- }, {
162
- children: [tel && _jsxs("div", Object.assign({
163
- className: "info-item"
164
- }, {
136
+ }, void 0), _jsxs("div", {
137
+ className: "compony-info",
138
+ children: [tel && _jsxs("div", {
139
+ className: "info-item",
165
140
  children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
166
- children: typeof tel === 'string' ? _jsx(Typography, Object.assign({
141
+ children: typeof tel === 'string' ? _jsx(Typography, {
167
142
  level: "body3",
168
- className: "info-span"
169
- }, {
143
+ className: "info-span",
170
144
  children: tel
171
- }), void 0) : tel
145
+ }, void 0) : tel
172
146
  }, void 0)]
173
- }), void 0), email && _jsxs("div", Object.assign({
174
- className: "info-item"
175
- }, {
147
+ }, void 0), email && _jsxs("div", {
148
+ className: "info-item",
176
149
  children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
177
- children: typeof email === 'string' ? _jsx(Typography, Object.assign({
150
+ children: typeof email === 'string' ? _jsx(Typography, {
178
151
  level: "body3",
179
- className: "info-span"
180
- }, {
152
+ className: "info-span",
181
153
  children: email
182
- }), void 0) : email
154
+ }, void 0) : email
183
155
  }, void 0)]
184
- }), void 0), workTime && _jsxs("div", Object.assign({
185
- className: "info-item"
186
- }, {
156
+ }, void 0), workTime && _jsxs("div", {
157
+ className: "info-item",
187
158
  children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
188
- children: typeof workTime === 'string' ? _jsx(Typography, Object.assign({
159
+ children: typeof workTime === 'string' ? _jsx(Typography, {
189
160
  level: "body3",
190
- className: "info-span"
191
- }, {
161
+ className: "info-span",
192
162
  children: workTime
193
- }), void 0) : workTime
163
+ }, void 0) : workTime
194
164
  }, void 0)]
195
- }), void 0), address && _jsxs("div", Object.assign({
196
- className: "info-item"
197
- }, {
165
+ }, void 0), address && _jsxs("div", {
166
+ className: "info-item",
198
167
  children: [_jsx(LocationOutlined, {
199
168
  style: {
200
169
  fontSize: 24
201
170
  }
202
171
  }, void 0), _jsx("div", {
203
- children: typeof address === 'string' ? _jsx(Typography, Object.assign({
172
+ children: typeof address === 'string' ? _jsx(Typography, {
204
173
  level: "body3",
205
- className: "info-span"
206
- }, {
174
+ className: "info-span",
207
175
  children: address
208
- }), void 0) : address
176
+ }, void 0) : address
209
177
  }, void 0)]
210
- }), void 0)]
211
- }), void 0), _jsxs("div", Object.assign({
212
- className: "footer-bottom"
213
- }, {
178
+ }, void 0)]
179
+ }, void 0), _jsxs("div", {
180
+ className: "footer-bottom",
214
181
  children: [_jsx("div", {
215
182
  children: copyRightRender ? copyRightRender(_jsxs("div", {
216
183
  children: [_jsxs("div", {
@@ -218,51 +185,44 @@ var LayoutFooter = function LayoutFooter(_ref) {
218
185
  }, void 0), _jsx("div", {
219
186
  children: "All Rights Reserved."
220
187
  }, void 0)]
221
- }, void 0)) : _jsxs(Typography, Object.assign({
222
- level: "body3"
223
- }, {
188
+ }, void 0)) : _jsxs(Typography, {
189
+ level: "body3",
224
190
  children: ["\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo."), _jsx("div", {
225
191
  children: "All Rights Reserved."
226
192
  }, void 0)]
227
- }), void 0)
193
+ }, void 0)
228
194
  }, void 0), _jsx("div", {
229
- children: _jsxs(Typography, Object.assign({
230
- level: "body3"
231
- }, {
232
- children: [_jsx(Button, Object.assign({
195
+ children: _jsxs(Typography, {
196
+ level: "body3",
197
+ children: [_jsx(Button, {
233
198
  type: "text",
234
199
  onClick: function onClick() {
235
200
  return window.open('https://contents.iglooinsure.com/privacypolicy');
236
- }
237
- }, {
238
- children: _jsx(Typography, Object.assign({
239
- level: "body3"
240
- }, {
201
+ },
202
+ children: _jsx(Typography, {
203
+ level: "body3",
241
204
  children: "Privacy Policy"
242
- }), void 0)
243
- }), void 0), ' ', _jsx("span", Object.assign({
205
+ }, void 0)
206
+ }, void 0), ' ', _jsx("span", {
244
207
  style: {
245
208
  margin: '0px 16px'
246
- }
247
- }, {
209
+ },
248
210
  children: "|"
249
- }), void 0), ' ', _jsx(Button, Object.assign({
211
+ }, void 0), ' ', _jsx(Button, {
250
212
  type: "text",
251
213
  onClick: function onClick() {
252
214
  return window.open('https://contents.iglooinsure.com/termsofservice');
253
- }
254
- }, {
255
- children: _jsx(Typography, Object.assign({
256
- level: "body3"
257
- }, {
215
+ },
216
+ children: _jsx(Typography, {
217
+ level: "body3",
258
218
  children: "Terms of Service"
259
- }), void 0)
260
- }), void 0)]
261
- }), void 0)
219
+ }, void 0)
220
+ }, void 0)]
221
+ }, void 0)
262
222
  }, void 0)]
263
- }), void 0)]
264
- }), void 0)
265
- }), void 0);
223
+ }, void 0)]
224
+ }, void 0)
225
+ }, void 0);
266
226
  }
267
227
  };
268
228
 
@@ -11,7 +11,13 @@ import _Badge from "antd/es/badge";
11
11
  import "antd/es/grid/style";
12
12
  import _Grid from "antd/es/grid";
13
13
 
14
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
+
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
+
18
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+
20
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
15
21
 
16
22
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
23
 
@@ -77,14 +83,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
77
83
  switch (_typeof(badge)) {
78
84
  case 'string':
79
85
  return _jsxs(_Fragment, {
80
- children: [_jsx(Typography, Object.assign({
86
+ children: [_jsx(Typography, {
81
87
  className: classnames({
82
88
  'active-menu': activeMenu === menuInfo.key
83
89
  }),
84
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
85
- }, {
90
+ level: activeMenu === menuInfo.key ? 'h4' : 'body1',
86
91
  children: menuInfo.title
87
- }), void 0), _jsx(_Badge, {
92
+ }, void 0), _jsx(_Badge, {
88
93
  dot: true,
89
94
  color: '#F52209'
90
95
  }, void 0)]
@@ -92,14 +97,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
92
97
 
93
98
  case 'number':
94
99
  return _jsxs(_Fragment, {
95
- children: [_jsx(Typography, Object.assign({
100
+ children: [_jsx(Typography, {
96
101
  className: classnames({
97
102
  'active-menu': activeMenu === menuInfo.key
98
103
  }),
99
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
100
- }, {
104
+ level: activeMenu === menuInfo.key ? 'h4' : 'body1',
101
105
  children: menuInfo.title
102
- }), void 0), _jsx(_Badge, {
106
+ }, void 0), _jsx(_Badge, {
103
107
  count: badge,
104
108
  style: {
105
109
  backgroundColor: '#F52209'
@@ -109,123 +113,110 @@ var LayoutHeader = function LayoutHeader(_ref) {
109
113
 
110
114
  case 'object':
111
115
  return _jsxs(_Fragment, {
112
- children: [_jsx(Typography, Object.assign({
116
+ children: [_jsx(Typography, {
113
117
  className: classnames({
114
118
  'active-menu': activeMenu === menuInfo.key
115
119
  }),
116
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
117
- }, {
120
+ level: activeMenu === menuInfo.key ? 'h4' : 'body1',
118
121
  children: menuInfo.title
119
- }), void 0), _jsx(_Badge, Object.assign({}, badge), void 0)]
122
+ }, void 0), _jsx(_Badge, _objectSpread({}, badge), void 0)]
120
123
  }, void 0);
121
124
 
122
125
  case 'undefined':
123
- return _jsx(Typography, Object.assign({
126
+ return _jsx(Typography, {
124
127
  className: classnames({
125
128
  'active-menu': activeMenu === menuInfo.key
126
129
  }),
127
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
128
- }, {
130
+ level: activeMenu === menuInfo.key ? 'h4' : 'body1',
129
131
  children: menuInfo.title
130
- }), void 0);
132
+ }, void 0);
131
133
 
132
134
  case 'function':
133
135
  return _jsxs(_Fragment, {
134
- children: [_jsx(Typography, Object.assign({
136
+ children: [_jsx(Typography, {
135
137
  className: classnames({
136
138
  'active-menu': activeMenu === menuInfo.key
137
139
  }),
138
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
139
- }, {
140
+ level: activeMenu === menuInfo.key ? 'h4' : 'body1',
140
141
  children: menuInfo.title
141
- }), void 0), badge()]
142
+ }, void 0), badge()]
142
143
  }, void 0);
143
144
  }
144
145
  }
145
146
 
146
147
  if (md) {
147
- return _jsx("div", Object.assign({
148
+ return _jsx("div", {
148
149
  className: classnames({
149
150
  'igloo-layout-header': true,
150
151
  'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
151
- })
152
- }, {
153
- children: _jsxs("div", Object.assign({
152
+ }),
153
+ children: _jsxs("div", {
154
154
  className: classnames('header-content', {
155
155
  'header-content-noSpaceBetween': children
156
- })
157
- }, {
158
- children: [_jsxs("div", Object.assign({
159
- className: "header-left"
160
- }, {
156
+ }),
157
+ children: [_jsxs("div", {
158
+ className: "header-left",
161
159
  children: [_jsx("div", {
162
160
  className: "igloo-logo"
163
161
  }, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && !children && _jsx(_Row, {
164
162
  children: menus.map(function (menu) {
165
- return _jsx(_Col, Object.assign({
163
+ return _jsx(_Col, {
166
164
  className: classnames('menu-item'),
167
165
  onClick: function onClick() {
168
166
  onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
169
- }
170
- }, {
167
+ },
171
168
  children: getMenuDom(selectedMenu || activeMenu, menu)
172
- }), menu.key);
169
+ }, menu.key);
173
170
  })
174
171
  }, void 0)]
175
- }), void 0), dropMenuConfig && !children && _jsxs(_Space, Object.assign({
176
- size: 8
177
- }, {
172
+ }, void 0), dropMenuConfig && !children && _jsxs(_Space, {
173
+ size: 8,
178
174
  children: [_jsx(_Avatar, {
179
175
  size: 32,
180
176
  src: userAvatar
181
- }, void 0), _jsx(Typography, Object.assign({
177
+ }, void 0), _jsx(Typography, {
182
178
  level: "body1",
183
179
  style: {
184
180
  color: '#666666'
185
- }
186
- }, {
181
+ },
187
182
  children: userName
188
- }), void 0), dropMenuConfig && _jsx(HomeMenu, Object.assign({}, dropMenuConfig), void 0)]
189
- }), void 0), children]
190
- }), void 0)
191
- }), void 0);
183
+ }, void 0), dropMenuConfig && _jsx(HomeMenu, _objectSpread({}, dropMenuConfig), void 0)]
184
+ }, void 0), children]
185
+ }, void 0)
186
+ }, void 0);
192
187
  } else {
193
188
  return _jsxs(_Fragment, {
194
- children: [_jsxs("div", Object.assign({
189
+ children: [_jsxs("div", {
195
190
  className: classnames({
196
191
  'igloo-layout-header': true,
197
192
  'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
198
- })
199
- }, {
193
+ }),
200
194
  children: [_jsx("div", {
201
195
  className: "igloo-logo"
202
- }, void 0), dropMenuConfig && !children && _jsx(HomeMenu, Object.assign({
196
+ }, void 0), dropMenuConfig && !children && _jsx(HomeMenu, _objectSpread({
203
197
  userAvatar: userAvatar,
204
198
  userName: userName
205
199
  }, dropMenuConfig), void 0), children]
206
- }), void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, Object.assign({
207
- className: "igloo-layout-menu"
208
- }, {
200
+ }, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, {
201
+ className: "igloo-layout-menu",
209
202
  children: menus.map(function (menu) {
210
203
  var span = 24 / menus.length;
211
- return _jsx(_Col, Object.assign({
204
+ return _jsx(_Col, {
212
205
  span: span,
213
206
  className: classnames('menu-item'),
214
207
  onClick: function onClick() {
215
208
  onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
216
- }
217
- }, {
218
- children: _jsx("div", Object.assign({
209
+ },
210
+ children: _jsx("div", {
219
211
  style: {
220
212
  display: 'flex',
221
213
  alignItems: 'flex-start'
222
- }
223
- }, {
214
+ },
224
215
  children: getMenuDom(selectedMenu || activeMenu, menu)
225
- }), void 0)
226
- }), menu.key);
216
+ }, void 0)
217
+ }, menu.key);
227
218
  })
228
- }), void 0)]
219
+ }, void 0)]
229
220
  }, void 0);
230
221
  }
231
222
  };
@@ -1,5 +1,12 @@
1
1
  import "antd/es/grid/style";
2
2
  import _Grid from "antd/es/grid";
3
+
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
+
6
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
+
8
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+
3
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
11
  import classnames from 'classnames';
5
12
  import LayoutHeader from './header';
@@ -85,20 +92,17 @@ var Layout = function Layout(props) {
85
92
  contentDom = children;
86
93
  }
87
94
 
88
- return _jsxs("div", Object.assign({
95
+ return _jsxs("div", {
89
96
  style: style,
90
- className: classnames(layoutContainerClass, className)
91
- }, {
92
- children: [!headerDom && !headerConfig && _jsx(DefaultHeader, {}, void 0), headerConfig && _jsx(LayoutHeader, Object.assign({}, headerConfig), void 0), headerDom, _jsx("div", Object.assign({
93
- className: "igloo-layout-center"
94
- }, {
95
- children: _jsx("div", Object.assign({
96
- className: "igloo-layout-content"
97
- }, {
97
+ className: classnames(layoutContainerClass, className),
98
+ children: [!headerDom && !headerConfig && _jsx(DefaultHeader, {}, void 0), headerConfig && _jsx(LayoutHeader, _objectSpread({}, headerConfig), void 0), headerDom, _jsx("div", {
99
+ className: "igloo-layout-center",
100
+ children: _jsx("div", {
101
+ className: "igloo-layout-content",
98
102
  children: contentDom
99
- }), void 0)
100
- }), void 0), !footerDom && !footerConfig && _jsx(DefaultFooter, {}, void 0), footerConfig && _jsx(LayoutFooter, Object.assign({}, footerConfig), void 0), footerDom]
101
- }), void 0);
103
+ }, void 0)
104
+ }, void 0), !footerDom && !footerConfig && _jsx(DefaultFooter, {}, void 0), footerConfig && _jsx(LayoutFooter, _objectSpread({}, footerConfig), void 0), footerDom]
105
+ }, void 0);
102
106
  };
103
107
 
104
108
  Layout.Header = LayoutHeader;
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1 file in progress...",
5
5
  "Accept": "Accept",
6
6
  "Action": "Action",
7
+ "Add": "Add",
7
8
  "Apply": "Apply",
8
9
  "Apply Columns": "Apply Columns",
9
10
  "Cancel": "Cancel",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.",
48
49
  "Quantity of files should be less than {limit}": "Quantity of files should be less than {limit}",
49
50
  "Reject": "Reject",
51
+ "Remove": "Remove",
50
52
  "Resend OTP": "Resend OTP",
51
53
  "Resend in": "Resend in",
52
54
  "Reset All Filters": "Reset All Filters",
@@ -4,6 +4,7 @@
4
4
  "1 file in progress...": "1 data dalam proses",
5
5
  "Accept": "Menerima",
6
6
  "Action": "Beroperasi",
7
+ "Add": "",
7
8
  "Apply": "Terapkan",
8
9
  "Apply Columns": "Terapkan Kolom",
9
10
  "Cancel": "Batal",
@@ -47,6 +48,7 @@
47
48
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Perkembangan terkait proses belum dapat diperbarui saat ini. Jangan khawatir! Semua data Anda masih dalam proses .",
48
49
  "Quantity of files should be less than {limit}": "Jumlah dokumen tidak bisa lebih dari {limit}",
49
50
  "Reject": "Menolak",
51
+ "Remove": "",
50
52
  "Resend OTP": "Kirim ulang OTP",
51
53
  "Resend in": "Kirim ulang",
52
54
  "Reset All Filters": "Setel ulang filter",