@zywave/zui-table 4.0.6 → 4.0.7

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.7](https://gitlab.com/zywave/app-platform/devkit/web-sdk/zui/compare/@zywave/zui-table@4.0.7-pre.0...@zywave/zui-table@4.0.7) (2022-09-30)
7
+
8
+ **Note:** Version bump only for package @zywave/zui-table
9
+
10
+
11
+
12
+
13
+
6
14
  ## [4.0.6](https://gitlab.com/zywave/devkit/web-sdk/zui/compare/@zywave/zui-table@4.0.6-pre.2...@zywave/zui-table@4.0.6) (2022-08-12)
7
15
 
8
16
  **Note:** Version bump only for package @zywave/zui-table
package/dist/base.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,UAAU;IAMd,YAAY,IAAqB;QALjC,aAAQ,GAA6B,IAAI,GAAG,EAAE,CAAC;QAG/C,YAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAG1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,MAAM,OAAgB,mBAAoB,SAAQ,cAAc;IAuB9D;QACE,KAAK,EAAE,CAAC;QAER,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,uBAAA,mBAAmB,uCAAQ,CAAC,GAAG,CAC7B,IAAkC,EAClC,IAAI,UAAU,CAAC,IAAkC,CAAC,CACnD,CAAC;SACH;IACH,CAAC;IA1BD;;OAEG;IACH,IAAc,MAAM;QAClB,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,OAAO,uBAAA,mBAAmB,uCAAQ,CAAC,GAAG,CAAC,IAAkC,CAAC,CAAC;SAC5E;QACD,MAAM,KAAK,GAAG,uBAAA,mBAAmB,kDAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,KAAK,EAAE;YACT,OAAO,uBAAA,mBAAmB,uCAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC/C;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAgBD,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,mBAAmB,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;SAC/G;IACH,CAAC;IAED,oBAAoB;;QAClB,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAE7B,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,uBAAA,mBAAmB,uCAAQ,CAAC,MAAM,CAAC,IAAkC,CAAC,CAAC;SACxE;aAAM;YACL,uBAAA,mBAAmB,kDAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACpD,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SACpC;IACH,CAAC;IAES,iBAAiB,CAAC,OAA4B;QACtD,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,OAAO,KAAK,WAAW,EAAE;YACnE,OAAO;SACR;QAED,uBAAA,mBAAmB,kDAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,IAAkC,CAAC,CAAC;QACxF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;;;AA3DD;;GAEG;AACc,kCAAc,GAAG,IAAI,WAAW,EAAG,CAAA;AAgBpD,uCAAiB,IAAI,OAAO,EAA+B,EAAC,CAAA;AAC5D,kDAA4B,IAAI,OAAO,EAAwC,EAAC,CAAA","sourcesContent":["import { ZuiBaseElement } from '@zywave/zui-base';\nimport type { ZuiTableElement } from './zui-table';\nimport type { ZuiTableCellElement } from './zui-table-cell';\n\nclass TableState {\n elements: Set<ZuiTableBaseElement> = new Set();\n root: ZuiTableElement;\n sortedCell?: ZuiTableCellElement;\n channel = new EventTarget();\n\n constructor(root: ZuiTableElement) {\n this.root = root;\n }\n}\n\nexport abstract class ZuiTableBaseElement extends ZuiBaseElement {\n /**\n * This represents a common eventing ecosystem for all ZuiTableBaseElements, regardless of association\n */\n protected static _globalChannel = new EventTarget();\n\n /**\n * Accessor for the associated table state\n */\n protected get _state() {\n if (this.tagName === 'ZUI-TABLE') {\n return ZuiTableBaseElement.#states.get(this as unknown as ZuiTableElement);\n }\n const table = ZuiTableBaseElement.#tableAssociations.get(this);\n if (table) {\n return ZuiTableBaseElement.#states.get(table);\n }\n return undefined;\n }\n\n static #states = new WeakMap<ZuiTableElement, TableState>();\n static #tableAssociations = new WeakMap<ZuiTableBaseElement, ZuiTableElement>();\n\n constructor() {\n super();\n\n if (this.tagName === 'ZUI-TABLE') {\n ZuiTableBaseElement.#states.set(\n this as unknown as ZuiTableElement,\n new TableState(this as unknown as ZuiTableElement)\n );\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n if (this.tagName !== 'ZUI-TABLE') {\n ZuiTableBaseElement._globalChannel.dispatchEvent(new CustomEvent('connected', { detail: { element: this } }));\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n if (this.tagName === 'ZUI-TABLE') {\n ZuiTableBaseElement.#states.delete(this as unknown as ZuiTableElement);\n } else {\n ZuiTableBaseElement.#tableAssociations.delete(this);\n this._state?.elements.delete(this);\n }\n }\n\n protected _associateElement(element: ZuiTableBaseElement) {\n if (this.tagName !== 'ZUI-TABLE' || element.tagName === 'ZUI-TABLE') {\n return;\n }\n\n ZuiTableBaseElement.#tableAssociations.set(element, this as unknown as ZuiTableElement);\n this._state.elements.add(element);\n }\n}\n\nexport type TableElementConnectedEvent = CustomEvent<{ element: ZuiTableBaseElement }>;\n"]}
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,UAAU;IAMd,YAAY,IAAqB;QALjC,aAAQ,GAA6B,IAAI,GAAG,EAAE,CAAC;QAG/C,YAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAG1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,MAAM,OAAgB,mBAAoB,SAAQ,cAAc;IAuB9D;QACE,KAAK,EAAE,CAAC;QAER,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,uBAAA,mBAAmB,uCAAQ,CAAC,GAAG,CAC7B,IAAkC,EAClC,IAAI,UAAU,CAAC,IAAkC,CAAC,CACnD,CAAC;SACH;IACH,CAAC;IA1BD;;OAEG;IACH,IAAc,MAAM;QAClB,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,OAAO,uBAAA,mBAAmB,uCAAQ,CAAC,GAAG,CAAC,IAAkC,CAAC,CAAC;SAC5E;QACD,MAAM,KAAK,GAAG,uBAAA,mBAAmB,kDAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,KAAK,EAAE;YACT,OAAO,uBAAA,mBAAmB,uCAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC/C;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAgBD,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,mBAAmB,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;SAC/G;IACH,CAAC;IAED,oBAAoB;;QAClB,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAE7B,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,EAAE;YAChC,uBAAA,mBAAmB,uCAAQ,CAAC,MAAM,CAAC,IAAkC,CAAC,CAAC;SACxE;aAAM;YACL,uBAAA,mBAAmB,kDAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACpD,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SACpC;IACH,CAAC;IAES,iBAAiB,CAAC,OAA4B;QACtD,IAAI,IAAI,CAAC,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,OAAO,KAAK,WAAW,EAAE;YACnE,OAAO;SACR;QAED,uBAAA,mBAAmB,kDAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,IAAkC,CAAC,CAAC;QACxF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;;;AA3DD;;GAEG;AACc,kCAAc,GAAG,IAAI,WAAW,EAAE,CAAC;AAgB7C,uCAAU,IAAI,OAAO,EAA+B,GAAC;AACrD,kDAAqB,IAAI,OAAO,EAAwC,GAAC","sourcesContent":["import { ZuiBaseElement } from '@zywave/zui-base';\nimport type { ZuiTableElement } from './zui-table';\nimport type { ZuiTableCellElement } from './zui-table-cell';\n\nclass TableState {\n elements: Set<ZuiTableBaseElement> = new Set();\n root: ZuiTableElement;\n sortedCell?: ZuiTableCellElement;\n channel = new EventTarget();\n\n constructor(root: ZuiTableElement) {\n this.root = root;\n }\n}\n\nexport abstract class ZuiTableBaseElement extends ZuiBaseElement {\n /**\n * This represents a common eventing ecosystem for all ZuiTableBaseElements, regardless of association\n */\n protected static _globalChannel = new EventTarget();\n\n /**\n * Accessor for the associated table state\n */\n protected get _state() {\n if (this.tagName === 'ZUI-TABLE') {\n return ZuiTableBaseElement.#states.get(this as unknown as ZuiTableElement);\n }\n const table = ZuiTableBaseElement.#tableAssociations.get(this);\n if (table) {\n return ZuiTableBaseElement.#states.get(table);\n }\n return undefined;\n }\n\n static #states = new WeakMap<ZuiTableElement, TableState>();\n static #tableAssociations = new WeakMap<ZuiTableBaseElement, ZuiTableElement>();\n\n constructor() {\n super();\n\n if (this.tagName === 'ZUI-TABLE') {\n ZuiTableBaseElement.#states.set(\n this as unknown as ZuiTableElement,\n new TableState(this as unknown as ZuiTableElement)\n );\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n if (this.tagName !== 'ZUI-TABLE') {\n ZuiTableBaseElement._globalChannel.dispatchEvent(new CustomEvent('connected', { detail: { element: this } }));\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n if (this.tagName === 'ZUI-TABLE') {\n ZuiTableBaseElement.#states.delete(this as unknown as ZuiTableElement);\n } else {\n ZuiTableBaseElement.#tableAssociations.delete(this);\n this._state?.elements.delete(this);\n }\n }\n\n protected _associateElement(element: ZuiTableBaseElement) {\n if (this.tagName !== 'ZUI-TABLE' || element.tagName === 'ZUI-TABLE') {\n return;\n }\n\n ZuiTableBaseElement.#tableAssociations.set(element, this as unknown as ZuiTableElement);\n this._state.elements.add(element);\n }\n}\n\nexport type TableElementConnectedEvent = CustomEvent<{ element: ZuiTableBaseElement }>;\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const style = css `:host{contain:none;display:block}:host([banded]) ::slotted(zui-table-row:not([header]):nth-child(even)){background-color:var(--zui-gray-25)}:host([banded]) ::slotted(zui-table-row:not([header])){border:0}:host([no-results]) .no-results{padding:.75rem 1.25rem;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){:host([no-results]) .no-results{background-color:transparent;box-shadow:none}}::slotted(zui-table-row:not([header])){border-bottom:2px solid var(--zui-gray-100)}@media(min-width: 45em){::slotted(zui-table-row:not([header])){border-bottom-width:1px}}::slotted(zui-table-row:not([header]):last-of-type){border-bottom:0}.table{display:flex;width:100%;flex-direction:column;border-collapse:collapse;border-spacing:0}@media(min-width: 45em){.table{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}}`;
2
+ export const style = css `:host{contain:none;display:block}:host([banded]) ::slotted(zui-table-row:not([header]):nth-child(even)){background-color:var(--zui-gray-25)}:host([banded]) ::slotted(zui-table-row:not([header])){border:0}:host([no-results]) .no-results{padding:.75rem 1.25rem;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){:host([no-results]) .no-results{background-color:rgba(0,0,0,0);box-shadow:none}}::slotted(zui-table-row:not([header])){border-bottom:2px solid var(--zui-gray-100)}@media(min-width: 45em){::slotted(zui-table-row:not([header])){border-bottom-width:1px}}::slotted(zui-table-row:not([header]):last-of-type){border-bottom:0}.table{display:flex;width:100%;flex-direction:column;border-collapse:collapse;border-spacing:0}@media(min-width: 45em){.table{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}}`;
3
3
  //# sourceMappingURL=zui-table-css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"zui-table-css.js","sourceRoot":"","sources":["../src/zui-table-css.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA,+0BAA+0B,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const style = css`:host{contain:none;display:block}:host([banded]) ::slotted(zui-table-row:not([header]):nth-child(even)){background-color:var(--zui-gray-25)}:host([banded]) ::slotted(zui-table-row:not([header])){border:0}:host([no-results]) .no-results{padding:.75rem 1.25rem;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){:host([no-results]) .no-results{background-color:transparent;box-shadow:none}}::slotted(zui-table-row:not([header])){border-bottom:2px solid var(--zui-gray-100)}@media(min-width: 45em){::slotted(zui-table-row:not([header])){border-bottom-width:1px}}::slotted(zui-table-row:not([header]):last-of-type){border-bottom:0}.table{display:flex;width:100%;flex-direction:column;border-collapse:collapse;border-spacing:0}@media(min-width: 45em){.table{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}}`;\n"]}
1
+ {"version":3,"file":"zui-table-css.js","sourceRoot":"","sources":["../src/zui-table-css.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA,i1BAAi1B,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const style = css`:host{contain:none;display:block}:host([banded]) ::slotted(zui-table-row:not([header]):nth-child(even)){background-color:var(--zui-gray-25)}:host([banded]) ::slotted(zui-table-row:not([header])){border:0}:host([no-results]) .no-results{padding:.75rem 1.25rem;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){:host([no-results]) .no-results{background-color:rgba(0,0,0,0);box-shadow:none}}::slotted(zui-table-row:not([header])){border-bottom:2px solid var(--zui-gray-100)}@media(min-width: 45em){::slotted(zui-table-row:not([header])){border-bottom-width:1px}}::slotted(zui-table-row:not([header]):last-of-type){border-bottom:0}.table{display:flex;width:100%;flex-direction:column;border-collapse:collapse;border-spacing:0}@media(min-width: 45em){.table{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}}`;\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const style = css `:host{contain:none}:host(:last-of-type:not([summary])) div,:host([summary]) div{margin-bottom:0}:host([header]){display:none;background-color:#fff;border-bottom:1px solid var(--zui-gray-200)}@media(min-width: 45em){:host([header]){display:block}}:host([header]) div{box-shadow:none}:host([header]) ::slotted(zui-table-cell){--zui-table-cell-padding: 0.53125rem 1.25rem;font-weight:600;user-select:none}div{display:grid;grid-template-columns:auto;margin-bottom:0;padding:.625rem 0;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){div{grid-template-columns:var(--zui-table-columns-template, repeat(auto-fit, minmax(0, 1fr)));padding:0;background-color:transparent;box-shadow:none}}:host([summary]){background-color:var(--zui-table-summary-background-color, var(--zui-gray-600)) !important}:host([summary]) div{margin-bottom:0;background-color:transparent}:host([summary]) ::slotted(zui-table-cell){font-weight:600;color:var(--zui-table-summary-text-color, #fff)}`;
2
+ export const style = css `:host{contain:none}:host(:last-of-type:not([summary])) div,:host([summary]) div{margin-bottom:0}:host([header]){display:none;background-color:#fff;border-bottom:1px solid var(--zui-gray-200)}@media(min-width: 45em){:host([header]){display:block}}:host([header]) div{box-shadow:none}:host([header]) ::slotted(zui-table-cell){--zui-table-cell-padding: 0.53125rem 1.25rem;font-weight:600;user-select:none}div{display:grid;grid-template-columns:auto;margin-bottom:0;padding:.625rem 0;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){div{grid-template-columns:var(--zui-table-columns-template, repeat(auto-fit, minmax(0, 1fr)));padding:0;background-color:rgba(0,0,0,0);box-shadow:none}}:host([summary]){background-color:var(--zui-table-summary-background-color, var(--zui-gray-600)) !important}:host([summary]) div{margin-bottom:0;background-color:rgba(0,0,0,0)}:host([summary]) ::slotted(zui-table-cell){font-weight:600;color:var(--zui-table-summary-text-color, #fff)}`;
3
3
  //# sourceMappingURL=zui-table-row-css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"zui-table-row-css.js","sourceRoot":"","sources":["../src/zui-table-row-css.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA,o+BAAo+B,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const style = css`:host{contain:none}:host(:last-of-type:not([summary])) div,:host([summary]) div{margin-bottom:0}:host([header]){display:none;background-color:#fff;border-bottom:1px solid var(--zui-gray-200)}@media(min-width: 45em){:host([header]){display:block}}:host([header]) div{box-shadow:none}:host([header]) ::slotted(zui-table-cell){--zui-table-cell-padding: 0.53125rem 1.25rem;font-weight:600;user-select:none}div{display:grid;grid-template-columns:auto;margin-bottom:0;padding:.625rem 0;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){div{grid-template-columns:var(--zui-table-columns-template, repeat(auto-fit, minmax(0, 1fr)));padding:0;background-color:transparent;box-shadow:none}}:host([summary]){background-color:var(--zui-table-summary-background-color, var(--zui-gray-600)) !important}:host([summary]) div{margin-bottom:0;background-color:transparent}:host([summary]) ::slotted(zui-table-cell){font-weight:600;color:var(--zui-table-summary-text-color, #fff)}`;\n"]}
1
+ {"version":3,"file":"zui-table-row-css.js","sourceRoot":"","sources":["../src/zui-table-row-css.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA,w+BAAw+B,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const style = css`:host{contain:none}:host(:last-of-type:not([summary])) div,:host([summary]) div{margin-bottom:0}:host([header]){display:none;background-color:#fff;border-bottom:1px solid var(--zui-gray-200)}@media(min-width: 45em){:host([header]){display:block}}:host([header]) div{box-shadow:none}:host([header]) ::slotted(zui-table-cell){--zui-table-cell-padding: 0.53125rem 1.25rem;font-weight:600;user-select:none}div{display:grid;grid-template-columns:auto;margin-bottom:0;padding:.625rem 0;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){div{grid-template-columns:var(--zui-table-columns-template, repeat(auto-fit, minmax(0, 1fr)));padding:0;background-color:rgba(0,0,0,0);box-shadow:none}}:host([summary]){background-color:var(--zui-table-summary-background-color, var(--zui-gray-600)) !important}:host([summary]) div{margin-bottom:0;background-color:rgba(0,0,0,0)}:host([summary]) ::slotted(zui-table-cell){font-weight:600;color:var(--zui-table-summary-text-color, #fff)}`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zywave/zui-table",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "license": "UNLICENSED",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "customElements": "dist/custom-elements.json",
24
24
  "dependencies": {
25
- "@zywave/zui-base": "^4.1.24",
26
- "@zywave/zui-icons": "^4.0.30"
25
+ "@zywave/zui-base": "^4.1.25",
26
+ "@zywave/zui-icons": "^4.0.31"
27
27
  },
28
28
  "devDependencies": {
29
- "@zywave/zui-button": "^4.0.30"
29
+ "@zywave/zui-button": "^4.0.31"
30
30
  },
31
- "gitHead": "315c94a77538cc82191a2044c0a0b55d115e2545"
31
+ "gitHead": "1124138127212f2a92375b58fa2337e63dcb5e85"
32
32
  }
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
2
 
3
- export const style = css`:host{contain:none;display:block}:host([banded]) ::slotted(zui-table-row:not([header]):nth-child(even)){background-color:var(--zui-gray-25)}:host([banded]) ::slotted(zui-table-row:not([header])){border:0}:host([no-results]) .no-results{padding:.75rem 1.25rem;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){:host([no-results]) .no-results{background-color:transparent;box-shadow:none}}::slotted(zui-table-row:not([header])){border-bottom:2px solid var(--zui-gray-100)}@media(min-width: 45em){::slotted(zui-table-row:not([header])){border-bottom-width:1px}}::slotted(zui-table-row:not([header]):last-of-type){border-bottom:0}.table{display:flex;width:100%;flex-direction:column;border-collapse:collapse;border-spacing:0}@media(min-width: 45em){.table{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}}`;
3
+ export const style = css`:host{contain:none;display:block}:host([banded]) ::slotted(zui-table-row:not([header]):nth-child(even)){background-color:var(--zui-gray-25)}:host([banded]) ::slotted(zui-table-row:not([header])){border:0}:host([no-results]) .no-results{padding:.75rem 1.25rem;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){:host([no-results]) .no-results{background-color:rgba(0,0,0,0);box-shadow:none}}::slotted(zui-table-row:not([header])){border-bottom:2px solid var(--zui-gray-100)}@media(min-width: 45em){::slotted(zui-table-row:not([header])){border-bottom-width:1px}}::slotted(zui-table-row:not([header]):last-of-type){border-bottom:0}.table{display:flex;width:100%;flex-direction:column;border-collapse:collapse;border-spacing:0}@media(min-width: 45em){.table{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}}`;
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
2
 
3
- export const style = css`:host{contain:none}:host(:last-of-type:not([summary])) div,:host([summary]) div{margin-bottom:0}:host([header]){display:none;background-color:#fff;border-bottom:1px solid var(--zui-gray-200)}@media(min-width: 45em){:host([header]){display:block}}:host([header]) div{box-shadow:none}:host([header]) ::slotted(zui-table-cell){--zui-table-cell-padding: 0.53125rem 1.25rem;font-weight:600;user-select:none}div{display:grid;grid-template-columns:auto;margin-bottom:0;padding:.625rem 0;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){div{grid-template-columns:var(--zui-table-columns-template, repeat(auto-fit, minmax(0, 1fr)));padding:0;background-color:transparent;box-shadow:none}}:host([summary]){background-color:var(--zui-table-summary-background-color, var(--zui-gray-600)) !important}:host([summary]) div{margin-bottom:0;background-color:transparent}:host([summary]) ::slotted(zui-table-cell){font-weight:600;color:var(--zui-table-summary-text-color, #fff)}`;
3
+ export const style = css`:host{contain:none}:host(:last-of-type:not([summary])) div,:host([summary]) div{margin-bottom:0}:host([header]){display:none;background-color:#fff;border-bottom:1px solid var(--zui-gray-200)}@media(min-width: 45em){:host([header]){display:block}}:host([header]) div{box-shadow:none}:host([header]) ::slotted(zui-table-cell){--zui-table-cell-padding: 0.53125rem 1.25rem;font-weight:600;user-select:none}div{display:grid;grid-template-columns:auto;margin-bottom:0;padding:.625rem 0;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.29)}@media(min-width: 45em){div{grid-template-columns:var(--zui-table-columns-template, repeat(auto-fit, minmax(0, 1fr)));padding:0;background-color:rgba(0,0,0,0);box-shadow:none}}:host([summary]){background-color:var(--zui-table-summary-background-color, var(--zui-gray-600)) !important}:host([summary]) div{margin-bottom:0;background-color:rgba(0,0,0,0)}:host([summary]) ::slotted(zui-table-cell){font-weight:600;color:var(--zui-table-summary-text-color, #fff)}`;