@assecosolutions/fox-list
Advanced tools
Comparing version 1.5.3 to 1.5.10
{ | ||
"name": "@assecosolutions/fox-list", | ||
"version": "1.5.3", | ||
"version": "1.5.10", | ||
"public": true, | ||
@@ -25,6 +25,3 @@ "lib": { | ||
"module": "./shared-ui-molecules-fox-list.esm.js", | ||
"typings": "./index.d.ts", | ||
"peerDependencies": { | ||
"lit": "^2.0.0-rc.2" | ||
} | ||
"typings": "./index.d.ts" | ||
} |
@@ -1,6 +0,4 @@ | ||
import { __decorate } from 'tslib'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { css, customElement } from 'lit-element'; | ||
import { ListBase } from '@material/mwc-list/mwc-list-base'; | ||
import { style } from '@material/mwc-list/mwc-list-css'; | ||
import { css, customElement as customElement$1 } from 'lit-element'; | ||
export { createSetFromIndex, isEventMulti, isIndexSet } from '@material/mwc-list/mwc-list-foundation'; | ||
@@ -127,2 +125,24 @@ import { ListItemBase } from '@material/mwc-list/mwc-list-item-base'; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
function __decorate(decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
} | ||
var _templateObject; | ||
@@ -200,4 +220,4 @@ var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral([":host([outline='dashed']) ::slotted(fox-list-item){border:1px dashed var(--fox-base-grey-40-color);margin:15px 0;border-radius:4px}:host([outline='solid']) ::slotted(fox-list-item){border:1px solid var(--fox-base-grey-80-color);border-radius:4px;margin:15px 0}:host{--mdc-list-item-meta-size: auto;--mdc-typography-font-family: Nunito, Roboto, sans-serif}\n"]))); | ||
FoxCheckListItem.styles = [style$1, style$2, styles$1]; | ||
FoxCheckListItem = __decorate([customElement$1('fox-check-list-item')], FoxCheckListItem); | ||
FoxCheckListItem = __decorate([customElement('fox-check-list-item')], FoxCheckListItem); | ||
export { FoxCheckListItem, FoxList, FoxListItem }; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('lit/decorators.js'), require('@material/mwc-list/mwc-list-base'), require('@material/mwc-list/mwc-list-css'), require('lit-element'), require('@material/mwc-list/mwc-list-foundation'), require('@material/mwc-list/mwc-list-item-base'), require('@material/mwc-list/mwc-list-item-css'), require('@material/mwc-list/mwc-check-list-item-base'), require('@material/mwc-list/mwc-control-list-item-css'), require('lit-html'), require('lit-html/directives/class-map')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'lit/decorators.js', '@material/mwc-list/mwc-list-base', '@material/mwc-list/mwc-list-css', 'lit-element', '@material/mwc-list/mwc-list-foundation', '@material/mwc-list/mwc-list-item-base', '@material/mwc-list/mwc-list-item-css', '@material/mwc-list/mwc-check-list-item-base', '@material/mwc-list/mwc-control-list-item-css', 'lit-html', 'lit-html/directives/class-map'], factory) : | ||
(global = global || self, factory(global.SharedUiMoleculesFoxList = {}, global.tslib, global.decorators_js, global.mwcListBase, global.mwcListCss, global.litElement, global.mwcListFoundation, global.mwcListItemBase, global.mwcListItemCss, global.mwcCheckListItemBase, global.mwcControlListItemCss, global.litHtml, global.classMap)); | ||
}(this, (function (exports, tslib, decorators_js, mwcListBase, mwcListCss, litElement, mwcListFoundation, mwcListItemBase, mwcListItemCss, mwcCheckListItemBase, mwcControlListItemCss, litHtml, classMap) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lit-element'), require('@material/mwc-list/mwc-list-base'), require('@material/mwc-list/mwc-list-css'), require('@material/mwc-list/mwc-list-foundation'), require('@material/mwc-list/mwc-list-item-base'), require('@material/mwc-list/mwc-list-item-css'), require('@material/mwc-list/mwc-check-list-item-base'), require('@material/mwc-list/mwc-control-list-item-css'), require('lit-html'), require('lit-html/directives/class-map')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'lit-element', '@material/mwc-list/mwc-list-base', '@material/mwc-list/mwc-list-css', '@material/mwc-list/mwc-list-foundation', '@material/mwc-list/mwc-list-item-base', '@material/mwc-list/mwc-list-item-css', '@material/mwc-list/mwc-check-list-item-base', '@material/mwc-list/mwc-control-list-item-css', 'lit-html', 'lit-html/directives/class-map'], factory) : | ||
(global = global || self, factory(global.SharedUiMoleculesFoxList = {}, global.litElement, global.mwcListBase, global.mwcListCss, global.mwcListFoundation, global.mwcListItemBase, global.mwcListItemCss, global.mwcCheckListItemBase, global.mwcControlListItemCss, global.litHtml, global.classMap)); | ||
}(this, (function (exports, litElement, mwcListBase, mwcListCss, mwcListFoundation, mwcListItemBase, mwcListItemCss, mwcCheckListItemBase, mwcControlListItemCss, litHtml, classMap) { 'use strict'; | ||
var styles = litElement.css(templateObject_1 || (templateObject_1 = tslib.__makeTemplateObject([":host([outline='dashed']) ::slotted(fox-list-item){border:1px dashed var(--fox-base-grey-40-color);margin:15px 0;border-radius:4px}:host([outline='solid']) ::slotted(fox-list-item){border:1px solid var(--fox-base-grey-80-color);border-radius:4px;margin:15px 0}:host{--mdc-list-item-meta-size: auto;--mdc-typography-font-family: Nunito, Roboto, sans-serif}\n"], [":host([outline='dashed']) ::slotted(fox-list-item){border:1px dashed var(--fox-base-grey-40-color);margin:15px 0;border-radius:4px}:host([outline='solid']) ::slotted(fox-list-item){border:1px solid var(--fox-base-grey-80-color);border-radius:4px;margin:15px 0}:host{--mdc-list-item-meta-size: auto;--mdc-typography-font-family: Nunito, Roboto, sans-serif}\n"]))); | ||
var templateObject_1; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
var FoxList = | ||
/** @class */ | ||
function (_super) { | ||
tslib.__extends(FoxList, _super); | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
function FoxList() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
FoxList.styles = [mwcListCss.style, styles]; | ||
FoxList = tslib.__decorate([decorators_js.customElement('fox-list')], FoxList); | ||
return FoxList; | ||
}(mwcListBase.ListBase); | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
var styles$1 = litElement.css(templateObject_1$1 || (templateObject_1$1 = tslib.__makeTemplateObject([":host{--mdc-theme-primary: var(--fox-client-base-color, #4599ff);--mdc-theme-text-primary-on-background: var(--fox-font-base-color, #003959);font-weight:var(--fox-font-weight-bold, 700);--mdc-theme-text-icon-on-background: var(\n --mdc-theme-text-primary-on-background\n );--mdc-theme-text-secondary-on-background: var(\n --fox-font-light-color,\n #738292\n )}\n"], [":host{--mdc-theme-primary: var(--fox-client-base-color, #4599ff);--mdc-theme-text-primary-on-background: var(--fox-font-base-color, #003959);font-weight:var(--fox-font-weight-bold, 700);--mdc-theme-text-icon-on-background: var(\n --mdc-theme-text-primary-on-background\n );--mdc-theme-text-secondary-on-background: var(\n --fox-font-light-color,\n #738292\n )}\n"]))); | ||
var templateObject_1$1; | ||
function __extends(d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
var FoxListItem = | ||
/** @class */ | ||
function (_super) { | ||
tslib.__extends(FoxListItem, _super); | ||
function __decorate(decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
} | ||
function FoxListItem() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
function __makeTemplateObject(cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
} | ||
FoxListItem.styles = [mwcListItemCss.style, styles$1]; | ||
FoxListItem = tslib.__decorate([decorators_js.customElement('fox-list-item')], FoxListItem); | ||
return FoxListItem; | ||
}(mwcListItemBase.ListItemBase); | ||
var styles = litElement.css(templateObject_1 || (templateObject_1 = __makeTemplateObject([":host([outline='dashed']) ::slotted(fox-list-item){border:1px dashed var(--fox-base-grey-40-color);margin:15px 0;border-radius:4px}:host([outline='solid']) ::slotted(fox-list-item){border:1px solid var(--fox-base-grey-80-color);border-radius:4px;margin:15px 0}:host{--mdc-list-item-meta-size: auto;--mdc-typography-font-family: Nunito, Roboto, sans-serif}\n"], [":host([outline='dashed']) ::slotted(fox-list-item){border:1px dashed var(--fox-base-grey-40-color);margin:15px 0;border-radius:4px}:host([outline='solid']) ::slotted(fox-list-item){border:1px solid var(--fox-base-grey-80-color);border-radius:4px;margin:15px 0}:host{--mdc-list-item-meta-size: auto;--mdc-typography-font-family: Nunito, Roboto, sans-serif}\n"]))); | ||
var templateObject_1; | ||
var FoxCheckListItem = | ||
/** @class */ | ||
function (_super) { | ||
tslib.__extends(FoxCheckListItem, _super); | ||
var FoxList = | ||
/** @class */ | ||
function (_super) { | ||
__extends(FoxList, _super); | ||
function FoxCheckListItem() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
function FoxList() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
FoxCheckListItem.prototype.render = function () { | ||
var checkboxClasses = { | ||
'mdc-deprecated-list-item__graphic': this.left, | ||
'mdc-deprecated-list-item__meta': !this.left | ||
FoxList.styles = [mwcListCss.style, styles]; | ||
FoxList = __decorate([litElement.customElement('fox-list')], FoxList); | ||
return FoxList; | ||
}(mwcListBase.ListBase); | ||
var styles$1 = litElement.css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject([":host{--mdc-theme-primary: var(--fox-client-base-color, #4599ff);--mdc-theme-text-primary-on-background: var(--fox-font-base-color, #003959);font-weight:var(--fox-font-weight-bold, 700);--mdc-theme-text-icon-on-background: var(\n --mdc-theme-text-primary-on-background\n );--mdc-theme-text-secondary-on-background: var(\n --fox-font-light-color,\n #738292\n )}\n"], [":host{--mdc-theme-primary: var(--fox-client-base-color, #4599ff);--mdc-theme-text-primary-on-background: var(--fox-font-base-color, #003959);font-weight:var(--fox-font-weight-bold, 700);--mdc-theme-text-icon-on-background: var(\n --mdc-theme-text-primary-on-background\n );--mdc-theme-text-secondary-on-background: var(\n --fox-font-light-color,\n #738292\n )}\n"]))); | ||
var templateObject_1$1; | ||
var FoxListItem = | ||
/** @class */ | ||
function (_super) { | ||
__extends(FoxListItem, _super); | ||
function FoxListItem() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
FoxListItem.styles = [mwcListItemCss.style, styles$1]; | ||
FoxListItem = __decorate([litElement.customElement('fox-list-item')], FoxListItem); | ||
return FoxListItem; | ||
}(mwcListItemBase.ListItemBase); | ||
var FoxCheckListItem = | ||
/** @class */ | ||
function (_super) { | ||
__extends(FoxCheckListItem, _super); | ||
function FoxCheckListItem() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
FoxCheckListItem.prototype.render = function () { | ||
var checkboxClasses = { | ||
'mdc-deprecated-list-item__graphic': this.left, | ||
'mdc-deprecated-list-item__meta': !this.left | ||
}; | ||
var text = this.renderText(); | ||
var graphic = this.graphic && this.graphic !== 'control' && !this.left ? this.renderGraphic() : litHtml.html(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""]))); | ||
var meta = this.hasMeta && this.left ? this.renderMeta() : litHtml.html(templateObject_2 || (templateObject_2 = __makeTemplateObject([""], [""]))); | ||
var ripple = this.renderRipple(); | ||
return litHtml.html(templateObject_3 || (templateObject_3 = __makeTemplateObject([" ", " ", " ", "\n <span class=", ">\n <fox-checkbox\n reducedTouchTarget\n tabindex=", "\n .checked=", "\n ?disabled=", "\n @change=", "\n >\n </fox-checkbox>\n </span>\n ", " ", ""], [" ", " ", " ", "\n <span class=", ">\n <fox-checkbox\n reducedTouchTarget\n tabindex=", "\n .checked=", "\n ?disabled=", "\n @change=", "\n >\n </fox-checkbox>\n </span>\n ", " ", ""])), ripple, graphic, this.left ? '' : text, classMap.classMap(checkboxClasses), this.tabindex, this.selected, this.disabled, this.onChange, this.left ? text : '', meta); | ||
}; | ||
var text = this.renderText(); | ||
var graphic = this.graphic && this.graphic !== 'control' && !this.left ? this.renderGraphic() : litHtml.html(templateObject_1$2 || (templateObject_1$2 = tslib.__makeTemplateObject([""], [""]))); | ||
var meta = this.hasMeta && this.left ? this.renderMeta() : litHtml.html(templateObject_2 || (templateObject_2 = tslib.__makeTemplateObject([""], [""]))); | ||
var ripple = this.renderRipple(); | ||
return litHtml.html(templateObject_3 || (templateObject_3 = tslib.__makeTemplateObject([" ", " ", " ", "\n <span class=", ">\n <fox-checkbox\n reducedTouchTarget\n tabindex=", "\n .checked=", "\n ?disabled=", "\n @change=", "\n >\n </fox-checkbox>\n </span>\n ", " ", ""], [" ", " ", " ", "\n <span class=", ">\n <fox-checkbox\n reducedTouchTarget\n tabindex=", "\n .checked=", "\n ?disabled=", "\n @change=", "\n >\n </fox-checkbox>\n </span>\n ", " ", ""])), ripple, graphic, this.left ? '' : text, classMap.classMap(checkboxClasses), this.tabindex, this.selected, this.disabled, this.onChange, this.left ? text : '', meta); | ||
}; | ||
FoxCheckListItem.styles = [mwcListItemCss.style, mwcControlListItemCss.style, styles$1]; | ||
FoxCheckListItem = tslib.__decorate([litElement.customElement('fox-check-list-item')], FoxCheckListItem); | ||
return FoxCheckListItem; | ||
}(mwcCheckListItemBase.CheckListItemBase); | ||
var templateObject_1$2, templateObject_2, templateObject_3; | ||
FoxCheckListItem.styles = [mwcListItemCss.style, mwcControlListItemCss.style, styles$1]; | ||
FoxCheckListItem = __decorate([litElement.customElement('fox-check-list-item')], FoxCheckListItem); | ||
return FoxCheckListItem; | ||
}(mwcCheckListItemBase.CheckListItemBase); | ||
var templateObject_1$2, templateObject_2, templateObject_3; | ||
Object.defineProperty(exports, 'createSetFromIndex', { | ||
enumerable: true, | ||
get: function () { | ||
return mwcListFoundation.createSetFromIndex; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'isEventMulti', { | ||
enumerable: true, | ||
get: function () { | ||
return mwcListFoundation.isEventMulti; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'isIndexSet', { | ||
enumerable: true, | ||
get: function () { | ||
return mwcListFoundation.isIndexSet; | ||
} | ||
}); | ||
exports.FoxCheckListItem = FoxCheckListItem; | ||
exports.FoxList = FoxList; | ||
exports.FoxListItem = FoxListItem; | ||
Object.defineProperty(exports, 'createSetFromIndex', { | ||
enumerable: true, | ||
get: function () { | ||
return mwcListFoundation.createSetFromIndex; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'isEventMulti', { | ||
enumerable: true, | ||
get: function () { | ||
return mwcListFoundation.isEventMulti; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'isIndexSet', { | ||
enumerable: true, | ||
get: function () { | ||
return mwcListFoundation.isIndexSet; | ||
} | ||
}); | ||
exports.FoxCheckListItem = FoxCheckListItem; | ||
exports.FoxList = FoxList; | ||
exports.FoxListItem = FoxListItem; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21887
3
344
0