@internetarchive/collection-browser 2.22.1-alpha1 → 2.22.1-alpha2
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
|
-
{"version":3,"file":"remove-items-modal-content.js","sourceRoot":"","sources":["../../../src/manage/remove-items-modal-content.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAA6B,MAAM,KAAK,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAIrC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU;IAAhD;;QACuB,UAAK,GAAqB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"remove-items-modal-content.js","sourceRoot":"","sources":["../../../src/manage/remove-items-modal-content.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAA6B,MAAM,KAAK,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAIrC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU;IAAhD;;QACuB,UAAK,GAAqB,EAAE,CAAC;IA4F3D,CAAC;IAxFC,MAAM;QACJ,OAAO,IAAI,CAAA;;UAEL,GAAG,CACH,IAAI,CAAC,KAAK,EACV,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA;;yCAEM,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,YAAY;wCACtB,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE;;WAEvC,CACF;;QAED,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA,sBAAsB,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,OAAO;;kDAE3B,IAAI,CAAC,qBAAqB;YAChE,GAAG,CAAC,cAAc,CAAC;;;KAG1B,CAAC;IACJ,CAAC;IAEO,qBAAqB;QAC3B,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAA8B,SAAS,EAAE;YACtD,MAAM,EAAE;gBACN,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,MAAM;QACf,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqDT,CAAC;IACJ,CAAC;CACF,CAAA;AA5F6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sDAA8B;AAE7B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAkB;AAHlC,uBAAuB;IADnC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,uBAAuB,CA6FnC","sourcesContent":["import { LitElement, html, css, nothing, TemplateResult, CSSResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { msg } from '@lit/localize';\nimport { map } from 'lit/directives/map.js';\nimport type { ManageableItem } from '../models';\n\n@customElement('remove-items-modal-content')\nexport class RemoveItemsModalContent extends LitElement {\n @property({ type: Object }) items: ManageableItem[] = [];\n\n @property({ type: String }) message?: string;\n\n render(): TemplateResult {\n return html`\n <ul>\n ${map(\n this.items,\n ({ title, date }) => html`\n <li>\n <span class=\"item-title\">${title ?? '[untitled]'}</span>\n <span class=\"item-date\">${date ?? ''}</span>\n </li>\n `,\n )}\n </ul>\n ${this.message ? html`<p class=\"message\">${this.message}</p>` : nothing}\n <div class=\"button-bar\">\n <button class=\"remove-items-btn\" @click=${this.removeItemsBtnClicked}>\n ${msg('Remove items')}\n </button>\n </div>\n `;\n }\n\n private removeItemsBtnClicked(): void {\n this.dispatchEvent(\n new CustomEvent<{ items: ManageableItem[] }>('confirm', {\n detail: {\n items: this.items,\n },\n }),\n );\n }\n\n static get styles(): CSSResult {\n return css`\n ul {\n margin: 0;\n padding: 0 10px;\n font-size: 1.4rem;\n list-style-type: none;\n max-height: min(400px, 40vh);\n overflow-y: auto;\n }\n\n li {\n display: flex;\n justify-content: space-between;\n padding: 2px 0;\n }\n li:not(:last-of-type) {\n border-bottom: 1px solid rgb(232, 232, 232);\n }\n\n .item-title {\n word-break: break-word;\n }\n\n .item-date {\n white-space: nowrap;\n }\n\n .message {\n font-size: 1.4rem;\n padding: 5px 10px;\n }\n\n .button-bar {\n display: flex;\n justify-content: center;\n margin: 10px 5px;\n }\n\n .remove-items-btn {\n padding: 10px;\n border: 1px solid var(--primaryErrorCTABorder, #d43f3a);\n border-radius: 4px;\n color: white;\n background: var(--primaryErrorCTAFill, #d9534f);\n appearance: none;\n cursor: pointer;\n }\n .remove-items-btn:hover {\n background: rgba(var(--primaryErrorCTAFillRGB, 229, 28, 38), 0.9);\n }\n .remove-items-btn:active {\n background: rgba(var(--primaryErrorCTAFillRGB, 229, 28, 38), 0.7);\n }\n `;\n }\n}\n"]}
|
package/package.json
CHANGED