@licklist/design 0.44.483 → 0.44.484

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.
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),a=e(r),n=require("@licklist/core/dist/Config"),o=require("react-i18next"),i=require("react-bootstrap"),l=require("../../static/Icon.js"),s=require("@react-aria/utils"),c=e(require("clsx")),u=require("luxon");require("../../static/index.js");var m=require("lodash"),d=require("../../modals/confirmation/ConfirmModal.js");require("../../modals/dialog/Dialog.js"),require("../../modals/dialog/DialogContext.js");var p=require("../../table/MenuButton.js"),q=require("@licklist/core/dist/Services");require("../../table/FilterHelperComponent.js"),require("../../table/PaginationHelperComponent.js"),require("../../table/PerPageHelperComponent.js"),require("../../table/StaticTable.js"),require("../../table/TableHelperComponent.js");exports.TableRow=function(e){var f=e.note,E=e.onClick,b=e.onDeleteNote,g=o.useTranslation("Design").t,v=s.useId(),C=t.__read(r.useState(!1),2),j=C[0],N=C[1],T=u.DateTime.fromFormat(f.updatedAt,n.DATE_TIME_FULL_FORMAT,{zone:"utc"}).setZone(q.getClientTimeZone()).toFormat(n.DATE_TIME_FORMAT);return a.createElement("tr",{onClick:E},a.createElement("td",{className:"note-content"},f.note),a.createElement("td",{className:"note-author"},m.capitalize(f.user.firstName)," ",m.capitalize(f.user.lastName)),a.createElement("td",{className:"note-date"},T),a.createElement("td",null,a.createElement("div",{className:"controls"},a.createElement("span",{className:"btn btn-sm eye"},a.createElement(l.default,{type:"eye",width:"20"})),a.createElement(i.OverlayTrigger,{trigger:"click",placement:"bottom",rootClose:!0,overlay:a.createElement(i.Popover,{id:v,className:c("product-set-card-popover",!j&&"d-none")},a.createElement(i.Popover.Content,{as:i.ListGroup,className:"product-set-card-menu",variant:"flush"},a.createElement(i.ListGroup.Item,{action:!0,className:"text-danger",as:"div"},a.createElement(d.ConfirmModal,null,(function(e){return a.createElement(p.MenuButton,{onClick:function(){N(!1),e((function(){return b(f.id)}))},name:g("remove"),icon:"trash-alt",className:"product-set-card-menu-item-text d-flex w-100 align-items-center",rightIcon:!0})})))))},a.createElement("button",{type:"button",className:"product-set-card-menu-button",onClick:function(e){e.stopPropagation(),N(!0)}},a.createElement(l.default,{type:"ellipsis-h"}))))))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=require("react"),a=e(r),n=require("@licklist/core/dist/Config"),o=require("react-i18next"),i=require("react-bootstrap"),l=require("../../static/Icon.js"),s=require("@react-aria/utils"),c=e(require("clsx")),u=require("luxon");require("../../static/index.js");var m=require("lodash"),d=require("../../modals/confirmation/ConfirmModal.js");require("../../modals/dialog/Dialog.js"),require("../../modals/dialog/DialogContext.js");var p=require("../../table/MenuButton.js"),q=require("@licklist/core/dist/Services");require("../../table/FilterHelperComponent.js"),require("../../table/PaginationHelperComponent.js"),require("../../table/PerPageHelperComponent.js"),require("../../table/StaticTable.js"),require("../../table/TableHelperComponent.js");exports.TableRow=function(e){var f=e.note,E=e.onClick,b=e.onDeleteNote,g=o.useTranslation("Design").t,v=s.useId(),C=t.__read(r.useState(!1),2),j=C[0],N=C[1],T=u.DateTime.fromFormat(f.updatedAt,n.DATE_TIME_FULL_FORMAT,{zone:"utc"}).setZone(q.getClientTimeZone()).toFormat(n.DATE_TIME_FORMAT);return a.createElement("tr",{onClick:E},a.createElement("td",{className:"note-content"},f.note),a.createElement("td",{className:"note-author"},m.capitalize(f.user.firstName)," ",m.capitalize(f.user.lastName)),a.createElement("td",{className:"text-nowrap"},T),a.createElement("td",null,a.createElement("div",{className:"controls"},a.createElement("span",{className:"btn btn-sm eye"},a.createElement(l.default,{type:"eye",width:"20"})),a.createElement(i.OverlayTrigger,{trigger:"click",placement:"bottom",rootClose:!0,overlay:a.createElement(i.Popover,{id:v,className:c("product-set-card-popover",!j&&"d-none")},a.createElement(i.Popover.Content,{as:i.ListGroup,className:"product-set-card-menu",variant:"flush"},a.createElement(i.ListGroup.Item,{action:!0,className:"text-danger",as:"div"},a.createElement(d.ConfirmModal,null,(function(e){return a.createElement(p.MenuButton,{onClick:function(){N(!1),e((function(){return b(f.id)}))},name:g("remove"),icon:"trash-alt",className:"product-set-card-menu-item-text d-flex w-100 align-items-center",rightIcon:!0})})))))},a.createElement("button",{type:"button",className:"product-set-card-menu-button",onClick:function(e){e.stopPropagation(),N(!0)}},a.createElement(l.default,{type:"ellipsis-h"}))))))};
@@ -35,10 +35,6 @@
35
35
  .note-author {
36
36
  min-width: 8rem;
37
37
  }
38
-
39
- .note-date {
40
- min-width: 6.5rem;
41
- }
42
38
  }
43
39
 
44
40
  .notes-form {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.44.483",
3
+ "version": "0.44.484",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -38,7 +38,7 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
38
38
  <td className="note-author">
39
39
  {capitalize(note.user.firstName)} {capitalize(note.user.lastName)}
40
40
  </td>
41
- <td className="note-date">{date}</td>
41
+ <td className="text-nowrap">{date}</td>
42
42
  <td>
43
43
  <div className="controls">
44
44
  <span className="btn btn-sm eye">
@@ -35,10 +35,6 @@
35
35
  .note-author {
36
36
  min-width: 8rem;
37
37
  }
38
-
39
- .note-date {
40
- min-width: 6.5rem;
41
- }
42
38
  }
43
39
 
44
40
  .notes-form {