@ifsworld/granite-components 2.1.0 → 2.1.1
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/README.md +3 -23
- package/bundles/ifsworld-granite-components.umd.js +1 -0
- package/bundles/ifsworld-granite-components.umd.js.map +1 -1
- package/bundles/ifsworld-granite-components.umd.min.js.map +1 -1
- package/esm2015/ifsworld-granite-components.js +2 -2
- package/esm2015/ifsworld-granite-components.js.map +1 -0
- package/esm2015/ifsworld-granite-components.metadata.json +1 -0
- package/esm2015/index.js +36 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/index.metadata.json +1 -0
- package/esm2015/lib/arrange-grid/arrange-grid-item.component.js +1 -1
- package/esm2015/lib/arrange-grid/arrange-grid-item.component.js.map +1 -0
- package/esm2015/lib/arrange-grid/arrange-grid-item.component.metadata.json +1 -0
- package/esm2015/lib/arrange-grid/arrange-grid.component.js +2 -2
- package/esm2015/lib/arrange-grid/arrange-grid.component.js.map +1 -0
- package/esm2015/lib/arrange-grid/arrange-grid.component.metadata.json +1 -0
- package/esm2015/lib/arrange-grid/arrange-grid.module.js +1 -1
- package/esm2015/lib/arrange-grid/arrange-grid.module.js.map +1 -0
- package/esm2015/lib/arrange-grid/arrange-grid.module.metadata.json +1 -0
- package/esm2015/lib/badge/badge.component.js +1 -1
- package/esm2015/lib/badge/badge.component.js.map +1 -0
- package/esm2015/lib/badge/badge.component.metadata.json +1 -0
- package/esm2015/lib/badge/badge.module.js +1 -1
- package/esm2015/lib/badge/badge.module.js.map +1 -0
- package/esm2015/lib/badge/badge.module.metadata.json +1 -0
- package/esm2015/lib/badge/testing/badge.harness.js +1 -1
- package/esm2015/lib/badge/testing/badge.harness.js.map +1 -0
- package/esm2015/lib/badge/testing/badge.harness.metadata.json +1 -0
- package/esm2015/lib/button/button.component.js +1 -1
- package/esm2015/lib/button/button.component.js.map +1 -0
- package/esm2015/lib/button/button.component.metadata.json +1 -0
- package/esm2015/lib/button/button.module.js +1 -1
- package/esm2015/lib/button/button.module.js.map +1 -0
- package/esm2015/lib/button/button.module.metadata.json +1 -0
- package/esm2015/lib/core/animation.js +1 -1
- package/esm2015/lib/core/animation.js.map +1 -0
- package/esm2015/lib/core/animation.metadata.json +1 -0
- package/esm2015/lib/core/client-environment.js +1 -1
- package/esm2015/lib/core/client-environment.js.map +1 -0
- package/esm2015/lib/core/client-environment.metadata.json +1 -0
- package/esm2015/lib/core/common-behaviors/disabled.js +1 -1
- package/esm2015/lib/core/common-behaviors/disabled.js.map +1 -0
- package/esm2015/lib/core/common-behaviors/disabled.metadata.json +1 -0
- package/esm2015/lib/core/core.module.js +1 -1
- package/esm2015/lib/core/core.module.js.map +1 -0
- package/esm2015/lib/core/core.module.metadata.json +1 -0
- package/esm2015/lib/core/devices/client-input-desktop.directive.js +1 -1
- package/esm2015/lib/core/devices/client-input-desktop.directive.js.map +1 -0
- package/esm2015/lib/core/devices/client-input-desktop.directive.metadata.json +1 -0
- package/esm2015/lib/core/devices/client-input-touch.directive.js +1 -1
- package/esm2015/lib/core/devices/client-input-touch.directive.js.map +1 -0
- package/esm2015/lib/core/devices/client-input-touch.directive.metadata.json +1 -0
- package/esm2015/lib/core/devices/client-output-desktop.directive.js +1 -1
- package/esm2015/lib/core/devices/client-output-desktop.directive.js.map +1 -0
- package/esm2015/lib/core/devices/client-output-desktop.directive.metadata.json +1 -0
- package/esm2015/lib/core/devices/client-output-touch.directive.js +1 -1
- package/esm2015/lib/core/devices/client-output-touch.directive.js.map +1 -0
- package/esm2015/lib/core/devices/client-output-touch.directive.metadata.json +1 -0
- package/esm2015/lib/core/theme.library.js +1 -1
- package/esm2015/lib/core/theme.library.js.map +1 -0
- package/esm2015/lib/core/theme.library.metadata.json +1 -0
- package/esm2015/lib/grid/grid.component.js +1 -1
- package/esm2015/lib/grid/grid.component.js.map +1 -0
- package/esm2015/lib/grid/grid.component.metadata.json +1 -0
- package/esm2015/lib/grid/grid.module.js +1 -1
- package/esm2015/lib/grid/grid.module.js.map +1 -0
- package/esm2015/lib/grid/grid.module.metadata.json +1 -0
- package/esm2015/lib/icon/icon.component.js +1 -1
- package/esm2015/lib/icon/icon.component.js.map +1 -0
- package/esm2015/lib/icon/icon.component.metadata.json +1 -0
- package/esm2015/lib/icon/icon.module.js +1 -1
- package/esm2015/lib/icon/icon.module.js.map +1 -0
- package/esm2015/lib/icon/icon.module.metadata.json +1 -0
- package/esm2015/lib/menu/divider.directive.js +1 -1
- package/esm2015/lib/menu/divider.directive.js.map +1 -0
- package/esm2015/lib/menu/divider.directive.metadata.json +1 -0
- package/esm2015/lib/menu/menu-desktop-animations.js +1 -1
- package/esm2015/lib/menu/menu-desktop-animations.js.map +1 -0
- package/esm2015/lib/menu/menu-desktop-animations.metadata.json +1 -0
- package/esm2015/lib/menu/menu-errors.js +1 -1
- package/esm2015/lib/menu/menu-errors.js.map +1 -0
- package/esm2015/lib/menu/menu-errors.metadata.json +1 -0
- package/esm2015/lib/menu/menu-item.component.js +1 -1
- package/esm2015/lib/menu/menu-item.component.js.map +1 -0
- package/esm2015/lib/menu/menu-item.component.metadata.json +1 -0
- package/esm2015/lib/menu/menu-panel.js +1 -1
- package/esm2015/lib/menu/menu-panel.js.map +1 -0
- package/esm2015/lib/menu/menu-panel.metadata.json +1 -0
- package/esm2015/lib/menu/menu-positions.js +1 -1
- package/esm2015/lib/menu/menu-positions.js.map +1 -0
- package/esm2015/lib/menu/menu-positions.metadata.json +1 -0
- package/esm2015/lib/menu/menu-touch-animations.js +1 -1
- package/esm2015/lib/menu/menu-touch-animations.js.map +1 -0
- package/esm2015/lib/menu/menu-touch-animations.metadata.json +1 -0
- package/esm2015/lib/menu/menu-touch-close.component.js +1 -1
- package/esm2015/lib/menu/menu-touch-close.component.js.map +1 -0
- package/esm2015/lib/menu/menu-touch-close.component.metadata.json +1 -0
- package/esm2015/lib/menu/menu-touch-title.component.js +1 -1
- package/esm2015/lib/menu/menu-touch-title.component.js.map +1 -0
- package/esm2015/lib/menu/menu-touch-title.component.metadata.json +1 -0
- package/esm2015/lib/menu/menu-trigger-for.directive.js +1 -1
- package/esm2015/lib/menu/menu-trigger-for.directive.js.map +1 -0
- package/esm2015/lib/menu/menu-trigger-for.directive.metadata.json +1 -0
- package/esm2015/lib/menu/menu.component.js +2 -1
- package/esm2015/lib/menu/menu.component.js.map +1 -0
- package/esm2015/lib/menu/menu.component.metadata.json +1 -0
- package/esm2015/lib/menu/menu.module.js +1 -1
- package/esm2015/lib/menu/menu.module.js.map +1 -0
- package/esm2015/lib/menu/menu.module.metadata.json +1 -0
- package/esm2015/lib/menu/testing/menu.harness.js +1 -1
- package/esm2015/lib/menu/testing/menu.harness.js.map +1 -0
- package/esm2015/lib/menu/testing/menu.harness.metadata.json +1 -0
- package/esm2015/lib/toggle-switch/toggle-switch.component.js +2 -2
- package/esm2015/lib/toggle-switch/toggle-switch.component.js.map +1 -0
- package/esm2015/lib/toggle-switch/toggle-switch.component.metadata.json +1 -0
- package/esm2015/lib/toggle-switch/toggle-switch.module.js +1 -1
- package/esm2015/lib/toggle-switch/toggle-switch.module.js.map +1 -0
- package/esm2015/lib/toggle-switch/toggle-switch.module.metadata.json +1 -0
- package/fesm2015/ifsworld-granite-components.js +1 -0
- package/fesm2015/ifsworld-granite-components.js.map +1 -1
- package/ifsworld-granite-components.d.ts +1 -1
- package/ifsworld-granite-components.metadata.json +1 -1
- package/{public-api.d.ts → index.d.ts} +0 -0
- package/package.json +8 -11
- package/src/lib/core/style/_mixins.scss +1 -0
- package/esm2015/public-api.js +0 -36
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './index';
|
|
5
5
|
export { getEaseLinear as ɵd, getEaseOutSteep as ɵc } from './lib/core/animation';
|
|
6
6
|
export { GRANITE_MENU_PANEL as ɵa } from './lib/menu/menu-panel';
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=ifsworld-granite-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ifsworld-granite-components.js","sourceRoot":"","sources":["../../../../libs/granite-components/src/ifsworld-granite-components.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AAExB,OAAO,EAAC,aAAa,IAAI,EAAE,EAAC,eAAe,IAAI,EAAE,EAAC,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAC,kBAAkB,IAAI,EAAE,EAAiC,MAAM,uBAAuB,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {getEaseLinear as ɵd,getEaseOutSteep as ɵc} from './lib/core/animation';\nexport {GRANITE_MENU_PANEL as ɵa,GraniteMenuPanelInterface as ɵb} from './lib/menu/menu-panel';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/core/animation","export":[{"name":"getEaseLinear","as":"ɵd"},{"name":"getEaseOutSteep","as":"ɵc"}]},{"from":"./lib/menu/menu-panel","export":[{"name":"GRANITE_MENU_PANEL","as":"ɵa"},{"name":"GraniteMenuPanelInterface","as":"ɵb"}]}]}]
|
package/esm2015/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of ui
|
|
3
|
+
*/
|
|
4
|
+
export * from './lib/arrange-grid/arrange-grid.module';
|
|
5
|
+
export * from './lib/arrange-grid/arrange-grid.component';
|
|
6
|
+
export * from './lib/arrange-grid/arrange-grid-item.component';
|
|
7
|
+
export * from './lib/grid/grid.module';
|
|
8
|
+
export * from './lib/grid/grid.component';
|
|
9
|
+
export * from './lib/badge/badge.module';
|
|
10
|
+
export * from './lib/badge/badge.component';
|
|
11
|
+
export * from './lib/badge/testing/badge.harness';
|
|
12
|
+
export * from './lib/menu/menu.module';
|
|
13
|
+
export * from './lib/menu/menu.component';
|
|
14
|
+
export * from './lib/menu/menu-desktop-animations';
|
|
15
|
+
export * from './lib/menu/menu-touch-animations';
|
|
16
|
+
export * from './lib/menu/menu-item.component';
|
|
17
|
+
export * from './lib/menu/menu-trigger-for.directive';
|
|
18
|
+
export * from './lib/menu/testing/menu.harness';
|
|
19
|
+
export * from './lib/menu/divider.directive';
|
|
20
|
+
export * from './lib/menu/menu-touch-close.component';
|
|
21
|
+
export * from './lib/menu/menu-touch-title.component';
|
|
22
|
+
export * from './lib/icon/icon.module';
|
|
23
|
+
export * from './lib/icon/icon.component';
|
|
24
|
+
export * from './lib/toggle-switch/toggle-switch.module';
|
|
25
|
+
export * from './lib/toggle-switch/toggle-switch.component';
|
|
26
|
+
export * from './lib/button/button.module';
|
|
27
|
+
export * from './lib/button/button.component';
|
|
28
|
+
// Temporary
|
|
29
|
+
export * from './lib/core/client-environment';
|
|
30
|
+
export * from './lib/core/core.module';
|
|
31
|
+
export * from './lib/core/devices/client-output-touch.directive';
|
|
32
|
+
export * from './lib/core/devices/client-output-desktop.directive';
|
|
33
|
+
export * from './lib/core/devices/client-input-touch.directive';
|
|
34
|
+
export * from './lib/core/devices/client-input-desktop.directive';
|
|
35
|
+
export * from './lib/core/common-behaviors/disabled';
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/granite-components/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gDAAgD,CAAC;AAE/D,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAElD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAE5D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAE9C,YAAY;AACZ,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC","sourcesContent":["/*\n * Public API Surface of ui\n */\n\nexport * from './lib/arrange-grid/arrange-grid.module';\nexport * from './lib/arrange-grid/arrange-grid.component';\nexport * from './lib/arrange-grid/arrange-grid-item.component';\n\nexport * from './lib/grid/grid.module';\nexport * from './lib/grid/grid.component';\n\nexport * from './lib/badge/badge.module';\nexport * from './lib/badge/badge.component';\nexport * from './lib/badge/testing/badge.harness';\n\nexport * from './lib/menu/menu.module';\nexport * from './lib/menu/menu.component';\nexport * from './lib/menu/menu-desktop-animations';\nexport * from './lib/menu/menu-touch-animations';\nexport * from './lib/menu/menu-item.component';\nexport * from './lib/menu/menu-trigger-for.directive';\nexport * from './lib/menu/testing/menu.harness';\nexport * from './lib/menu/divider.directive';\nexport * from './lib/menu/menu-touch-close.component';\nexport * from './lib/menu/menu-touch-title.component';\n\nexport * from './lib/icon/icon.module';\nexport * from './lib/icon/icon.component';\n\nexport * from './lib/toggle-switch/toggle-switch.module';\nexport * from './lib/toggle-switch/toggle-switch.component';\n\nexport * from './lib/button/button.module';\nexport * from './lib/button/button.component';\n\n// Temporary\nexport * from './lib/core/client-environment';\nexport * from './lib/core/core.module';\nexport * from './lib/core/devices/client-output-touch.directive';\nexport * from './lib/core/devices/client-output-desktop.directive';\nexport * from './lib/core/devices/client-input-touch.directive';\nexport * from './lib/core/devices/client-input-desktop.directive';\nexport * from './lib/core/common-behaviors/disabled';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./lib/arrange-grid/arrange-grid.module"},{"from":"./lib/arrange-grid/arrange-grid.component"},{"from":"./lib/arrange-grid/arrange-grid-item.component"},{"from":"./lib/grid/grid.module"},{"from":"./lib/grid/grid.component"},{"from":"./lib/badge/badge.module"},{"from":"./lib/badge/badge.component"},{"from":"./lib/badge/testing/badge.harness"},{"from":"./lib/menu/menu.module"},{"from":"./lib/menu/menu.component"},{"from":"./lib/menu/menu-desktop-animations"},{"from":"./lib/menu/menu-touch-animations"},{"from":"./lib/menu/menu-item.component"},{"from":"./lib/menu/menu-trigger-for.directive"},{"from":"./lib/menu/testing/menu.harness"},{"from":"./lib/menu/divider.directive"},{"from":"./lib/menu/menu-touch-close.component"},{"from":"./lib/menu/menu-touch-title.component"},{"from":"./lib/icon/icon.module"},{"from":"./lib/icon/icon.component"},{"from":"./lib/toggle-switch/toggle-switch.module"},{"from":"./lib/toggle-switch/toggle-switch.component"},{"from":"./lib/button/button.module"},{"from":"./lib/button/button.component"},{"from":"./lib/core/client-environment"},{"from":"./lib/core/core.module"},{"from":"./lib/core/devices/client-output-touch.directive"},{"from":"./lib/core/devices/client-output-desktop.directive"},{"from":"./lib/core/devices/client-input-touch.directive"},{"from":"./lib/core/devices/client-input-desktop.directive"},{"from":"./lib/core/common-behaviors/disabled"}]}]
|
|
@@ -45,4 +45,4 @@ GraniteArrangeGridItemComponent.decorators = [
|
|
|
45
45
|
GraniteArrangeGridItemComponent.ctorParameters = () => [
|
|
46
46
|
{ type: ElementRef }
|
|
47
47
|
];
|
|
48
|
-
//# sourceMappingURL=
|
|
48
|
+
//# sourceMappingURL=arrange-grid-item.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrange-grid-item.component.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/arrange-grid/arrange-grid-item.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ/E,MAAM,OAAO,+BAA+B;IAiB1C,YAAoB,OAAgC;QAAhC,YAAO,GAAP,OAAO,CAAyB;QAPpD;;;;WAIG;QACH,gBAAW,GAAkB,IAAI,CAAC;QAGhC,WAAW;IACb,CAAC;IAlBD;;;OAGG;IACH,IAAI,UAAU,CAAC,KAAoB;QACjC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAaD;;OAEG;IACH,YAAY;QACV,IAAI,CAAC,cAAc,CACjB,cAAc,EACd,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CACtD,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACO,cAAc,CAAC,QAAgB,EAAE,KAAoB;QAC7D,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;;;YA7CF,SAAS,SAAC;gBACT,QAAQ,EAAE,2BAA2B;gBACrC,QAAQ,EAAE,2BAA2B;gBAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YAP4C,UAAU","sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef } from '@angular/core';\n\n@Component({\n selector: 'granite-arrange-grid-item',\n template: '<ng-content></ng-content>',\n styleUrls: ['arrange-grid-item.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GraniteArrangeGridItemComponent {\n /**\n * Number of cells the item would span. Used by arrange grid in column\n * orientation to fill any unused space caused by wrapped items.\n */\n set columnSpan(value: number | null) {\n this._columnSpan = value;\n this.updateStyles();\n }\n\n /**\n * Column span to render.\n * For use in template only. Do not use outside of this component.\n * @ignore\n */\n _columnSpan: number | null = null;\n\n constructor(private element: ElementRef<HTMLElement>) {\n /* no-op */\n }\n\n /**\n * Update element styles\n */\n updateStyles(): void {\n this.setCssProperty(\n '--columnSpan',\n this._columnSpan ? this._columnSpan.toString() : null\n );\n }\n\n /**\n * Set CSS variable value or remove it if a null value is given.\n * Would of course rather have used property binding but that is not\n * supported until (perhaps) Angular 9.\n * See: https://github.com/angular/angular/issues/9343\n */\n protected setCssProperty(variable: string, value: string | null): void {\n this.element.nativeElement.style.setProperty(variable, value);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteArrangeGridItemComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"granite-arrange-grid-item","template":"<ng-content></ng-content>","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":6,"character":19},"member":"OnPush"},"styles":[":host{--columnSpan:$default-column-span;display:grid;grid-column:span var(--columnSpan,1)}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":25,"character":31,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":25,"character":42,"context":{"typeName":"HTMLElement"}}]}]}],"updateStyles":[{"__symbolic":"method"}],"setCssProperty":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ContentChildren, ElementRef, HostBinding, Input, } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChildren, ElementRef, HostBinding, Input, QueryList, } from '@angular/core';
|
|
2
2
|
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { takeUntil } from 'rxjs/operators';
|
|
@@ -120,4 +120,4 @@ GraniteArrangeGridComponent.propDecorators = {
|
|
|
120
120
|
arrangeGridItemComponents: [{ type: ContentChildren, args: [GraniteArrangeGridItemComponent,] }],
|
|
121
121
|
cols: [{ type: Input }]
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYW5nZS1ncmlkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VpL3NyYy9saWIvYXJyYW5nZS1ncmlkL2FycmFuZ2UtZ3JpZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsZUFBZSxFQUNmLFVBQVUsRUFDVixXQUFXLEVBQ1gsS0FBSyxHQUtOLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRTdELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTNDLE9BQU8sRUFBRSwrQkFBK0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBRWhGLE1BQU0sQ0FBTixJQUFZLDZCQUdYO0FBSEQsV0FBWSw2QkFBNkI7SUFDdkMsb0RBQW1CLENBQUE7SUFDbkIsOENBQWEsQ0FBQTtBQUNmLENBQUMsRUFIVyw2QkFBNkIsS0FBN0IsNkJBQTZCLFFBR3hDO0FBUUQsTUFBTSxPQUFPLD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EFuZ3VsYXIgOS5cbiAgICogU2VlOiBodHRwczovL2dpdGh1Yi5jb20vYW5ndWxhci9hbmd1bGFyL2lzc3Vlcy85MzQzXG4gICAqXG4gICAqIFRPRE86IFJlcGxhY2Ugd2l0aCBwcm9wZXJ0eSBiaW5kaW5nIHdpdGggQW5ndWxhciA5IHVwZ3JhZGVcbiAgICovXG4gIHByb3RlY3RlZCBzZXRDc3NQcm9wZXJ0eSh2YXJpYWJsZTogc3RyaW5nLCB2YWx1ZTogc3RyaW5nIHwgbnVsbCk6IHZvaWQge1xuICAgIHRoaXMuZWxlbWVudC5uYXRpdmVFbGVtZW50LnN0eWxlLnNldFByb3BlcnR5KHZhcmlhYmxlLCB2YWx1ZSk7XG4gIH1cbn1cbiJdfQ==
|
|
123
|
+
//# sourceMappingURL=arrange-grid.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrange-grid.component.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/arrange-grid/arrange-grid.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EACvB,SAAS,EACT,eAAe,EACf,UAAU,EACV,WAAW,EACX,KAAK,EAGL,SAAS,GAEV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,MAAM,CAAN,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,oDAAmB,CAAA;IACnB,8CAAa,CAAA;AACf,CAAC,EAHW,6BAA6B,KAA7B,6BAA6B,QAGxC;AAQD,MAAM,OAAO,2BAA2B;IAyDtC,YAAoB,OAAgC;QAAhC,YAAO,GAAP,OAAO,CAAyB;QApDpD,+DAA+D;QAE/D,gBAAW,G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C,CAAC;IACvD,CAAC;IAED;;;;;;;OAOG;IACO,cAAc,CAAC,QAAgB,EAAE,KAAoB;QAC7D,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;;AA9HD,6DAA6D;AAC7C,uCAAW,GAAW,CAAC,CAAC;;YATzC,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,4EAA0C;gBAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YA1BC,UAAU;;;0BAiCT,KAAK;qCAKL,WAAW,SAAC,0BAA0B;kCAItC,WAAW,SAAC,uBAAuB;wCAGnC,eAAe,SAAC,+BAA+B;mBAO/C,KAAK","sourcesContent":["import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n HostBinding,\n Input,\n OnChanges,\n OnDestroy,\n QueryList,\n SimpleChanges,\n} from '@angular/core';\n\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\n\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { GraniteArrangeGridItemComponent } from './arrange-grid-item.component';\n\nexport enum GraniteArrangeGridOrientation {\n columns = 'columns',\n rows = 'rows',\n}\n\n@Component({\n selector: 'granite-arrange-grid',\n templateUrl: 'arrange-grid.component.html',\n styleUrls: ['arrange-grid.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GraniteArrangeGridComponent\n implements OnChanges, AfterContentInit, OnDestroy {\n /** Default number of columns to use in column orientation */\n static readonly defaultCols: number = 2;\n\n /** How to present grid items; `columns` (default) or `rows` */\n @Input()\n orientation: GraniteArrangeGridOrientation =\n GraniteArrangeGridOrientation.columns;\n\n /** Exposes column orientation to template */\n @HostBinding('class.column-orientation')\n classColumnOrientation = false;\n\n /** Exposes row orientation to template */\n @HostBinding('class.row-orientation')\n classRowOrientation = false;\n\n @ContentChildren(GraniteArrangeGridItemComponent)\n arrangeGridItemComponents: QueryList<GraniteArrangeGridItemComponent>;\n\n /**\n * Number of grid columns to use when orientation is set to `column`. The\n * default is two columns.\n */\n @Input()\n set cols(value: number) {\n this._cols = Math.max(1, Math.round(coerceNumberProperty(value)));\n }\n\n get cols(): number {\n return this._cols;\n }\n\n /** Number of columns to render */\n protected _cols: number = GraniteArrangeGridComponent.defaultCols;\n\n /**\n * Number of rows to render. Will be set internally taking column count,\n * the number of items and any cell wrapping into consideration.\n */\n protected _rows: number;\n\n set rows(value: number) {\n // Prevent pointless usage\n throw Error(\n 'Explicitly setting rows value for arrange grid is unsupported'\n );\n }\n\n get rows(): number {\n return this._rows;\n }\n\n /** Nexted on component destruction to complete other observables. */\n private destroy$: Subject<void> = new Subject();\n\n constructor(private element: ElementRef<HTMLElement>) {\n /* no-op */\n }\n\n ngAfterContentInit(): void {\n // Update style whenever grid item components change in content\n this.arrangeGridItemComponents.changes\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => this.updateStyles());\n\n this.updateStyles();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (\n (changes.orientation && !changes.orientation.isFirstChange()) ||\n (changes.cols && !changes.cols.isFirstChange())\n ) {\n this.updateStyles();\n }\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n }\n\n /**\n * Update grid row template style.\n *\n * Use content height of all but last row and let the last grow\n * to take up any remaining space.\n */\n updateStyles(): void {\n const children: number = (this.arrangeGridItemComponents || []).length;\n\n if (this.orientation === GraniteArrangeGridOrientation.columns) {\n // If too many items was placed into too few colums, there would\n // be some wrapping. Take that into account when calculating the\n // number of rows.\n this._rows = Math.trunc((children - 1) / (this._cols || 1)) + 1;\n this.classColumnOrientation = true;\n this.classRowOrientation = false;\n\n if (children > 0) {\n // Fill any unused space caused by wrapped items by making the\n // last item also span over remaining cells.\n this.arrangeGridItemComponents.forEach((c) => (c.columnSpan = null));\n this.arrangeGridItemComponents.last.columnSpan =\n this._rows * this._cols - children + 1;\n }\n } else {\n this._cols = 1; // In row orientation, there is just a single column\n this._rows = children;\n this.classColumnOrientation = false;\n this.classRowOrientation = true;\n }\n\n this.setCssProperty('--cols', this._cols.toString());\n this.setCssProperty('--rows', this._rows.toString());\n }\n\n /**\n * Set CSS variable value or remove it if a null value is given.\n * Would of course rather have used property binding but that is not\n * supported until (perhaps) Angular 9.\n * See: https://github.com/angular/angular/issues/9343\n *\n * TODO: Replace with property binding with Angular 9 upgrade\n */\n protected setCssProperty(variable: string, value: string | null): void {\n this.element.nativeElement.style.setProperty(variable, value);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteArrangeGridOrientation":{"columns":"columns","rows":"rows"},"GraniteArrangeGridComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":26,"character":1},"arguments":[{"selector":"granite-arrange-grid","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":30,"character":19},"member":"OnPush"},"template":"<ng-content select=\"granite-arrange-grid-item\"></ng-content>\n","styles":["@media only screen and (min-width:960px){:host{--cols:1;--rows:1;display:grid;grid-template-columns:repeat(var(--cols,1),1fr);-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem}:host.row-orientation{grid-template-columns:auto;grid-template-rows:repeat(calc(var(--rows, 1) - 1),-webkit-max-content);grid-template-rows:repeat(calc(var(--rows, 1) - 1),max-content)}}"]}]}],"members":{"orientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"classColumnOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":43,"character":3},"arguments":["class.column-orientation"]}]}],"classRowOrientation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":47,"character":3},"arguments":["class.row-orientation"]}]}],"arrangeGridItemComponents":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":50,"character":3},"arguments":[{"__symbolic":"reference","module":"./arrange-grid-item.component","name":"GraniteArrangeGridItemComponent","line":50,"character":19}]}]}],"cols":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":89,"character":31,"arguments":[{"__symbolic":"error","message":"Could not resolve type","line":89,"character":42,"context":{"typeName":"HTMLElement"}}]}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"updateStyles":[{"__symbolic":"method"}],"setCssProperty":[{"__symbolic":"method"}]},"statics":{"defaultCols":2}}}}]
|
|
@@ -11,4 +11,4 @@ GraniteArrangeGridModule.decorators = [
|
|
|
11
11
|
exports: [GraniteArrangeGridComponent, GraniteArrangeGridItemComponent],
|
|
12
12
|
},] }
|
|
13
13
|
];
|
|
14
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=arrange-grid.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrange-grid.module.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/arrange-grid/arrange-grid.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAOhF,MAAM,OAAO,wBAAwB;;;YALpC,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,2BAA2B,EAAE,+BAA+B,CAAC;gBAC5E,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,OAAO,EAAE,CAAC,2BAA2B,EAAE,+BAA+B,CAAC;aACxE","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { GraniteArrangeGridComponent } from './arrange-grid.component';\nimport { GraniteArrangeGridItemComponent } from './arrange-grid-item.component';\n\n@NgModule({\n declarations: [GraniteArrangeGridComponent, GraniteArrangeGridItemComponent],\n imports: [CommonModule],\n exports: [GraniteArrangeGridComponent, GraniteArrangeGridItemComponent],\n})\nexport class GraniteArrangeGridModule {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteArrangeGridModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./arrange-grid.component","name":"GraniteArrangeGridComponent","line":7,"character":17},{"__symbolic":"reference","module":"./arrange-grid-item.component","name":"GraniteArrangeGridItemComponent","line":7,"character":46}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"exports":[{"__symbolic":"reference","module":"./arrange-grid.component","name":"GraniteArrangeGridComponent","line":9,"character":12},{"__symbolic":"reference","module":"./arrange-grid-item.component","name":"GraniteArrangeGridItemComponent","line":9,"character":41}]}]}]}}}]
|
|
@@ -41,4 +41,4 @@ GraniteBadgeComponent.propDecorators = {
|
|
|
41
41
|
color: [{ type: Input }],
|
|
42
42
|
pill: [{ type: Input }]
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=
|
|
44
|
+
//# sourceMappingURL=badge.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.component.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/badge/badge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,KAAK,EAGL,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAazD,MAAM,OAAO,qBAAqB;IAiBhC,YAAoB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QAJ1C,uBAAuB;QAEvB,SAAI,GAAY,KAAK,CAAC;IAEuB,CAAC;IAE9C,WAAW,CAAC,OAAsB;QAChC,IAAI,OAAO,CAAC,eAAe,EAAE;YAC3B,IACE,OAAO,CAAC,eAAe,CAAC,aAAa;gBACrC,OAAO,CAAC,eAAe,CAAC,YAAY,EACpC;gBACA,gBAAgB,CACd,kBAAkB,EAClB,OAAO,CAAC,eAAe,CAAC,YAAY,EACpC,IAAI,CAAC,UAAU,CAAC,aAAa,CAC9B,CAAC;aACH;SACF;QACD,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,IAAI,OAAO,CAAC,KAAK,CAAC,aAAa,KAAK,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE;gBAC9D,gBAAgB,CACd,OAAO,EACP,OAAO,CAAC,KAAK,CAAC,YAAY,EAC1B,IAAI,CAAC,UAAU,CAAC,aAAa,CAC9B,CAAC;aACH;SACF;IACH,CAAC;;;YApDF,SAAS,SAAC;gBACT,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,cAAc;gBACxB,IAAI,EAAE;oBACJ,KAAK,EAAE,eAAe;oBACtB,4BAA4B,EAAE,MAAM;iBACrC;gBACD,QAAQ,EAAE,2BAA2B;gBAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YAdC,UAAU;;;8BAmBT,KAAK;oBAML,KAAK;mBAIL,KAAK","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Input,\n OnChanges,\n SimpleChanges,\n ElementRef,\n} from '@angular/core';\nimport { setPropertyValue } from '../core/theme.library';\n\n@Component({\n selector: 'granite-badge',\n exportAs: 'graniteBadge',\n host: {\n class: 'granite-badge',\n '[class.granite-badge-pill]': 'pill',\n },\n template: '<ng-content></ng-content>',\n styleUrls: ['./badge.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GraniteBadgeComponent implements OnChanges {\n /**\n * Design token name to get the value for the Background color\n */\n @Input()\n backgroundColor: string;\n\n /**\n * Design token name to get the value for the Font color\n */\n @Input()\n color: string;\n\n /** Pill style badge */\n @Input()\n pill: boolean = false;\n\n constructor(private elementRef: ElementRef) {}\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.backgroundColor) {\n if (\n changes.backgroundColor.previousValue !==\n changes.backgroundColor.currentValue\n ) {\n setPropertyValue(\n 'background-color',\n changes.backgroundColor.currentValue,\n this.elementRef.nativeElement\n );\n }\n }\n if (changes.color) {\n if (changes.color.previousValue !== changes.color.currentValue) {\n setPropertyValue(\n 'color',\n changes.color.currentValue,\n this.elementRef.nativeElement\n );\n }\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteBadgeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"granite-badge","exportAs":"graniteBadge","host":{"class":"granite-badge","[class.granite-badge-pill]":"pill","$quoted$":["[class.granite-badge-pill]"]},"template":"<ng-content></ng-content>","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":19,"character":19},"member":"OnPush"},"styles":[":host{display:-moz-inline-flex;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;align-items:center;background-color:var(--granite-color-signal-neutral);color:var(--granite-color-text-static-light);padding:5px;border-radius:5px;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px}:host(.granite-badge-pill){border-radius:25px}"]}]}],"members":{"backgroundColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"color":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"pill":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":38,"character":34}]}],"ngOnChanges":[{"__symbolic":"method"}]}}}}]
|
|
@@ -10,4 +10,4 @@ GraniteBadgeModule.decorators = [
|
|
|
10
10
|
exports: [GraniteBadgeComponent],
|
|
11
11
|
},] }
|
|
12
12
|
];
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=badge.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.module.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/badge/badge.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAO1D,MAAM,OAAO,kBAAkB;;;YAL9B,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;gBACrC,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,OAAO,EAAE,CAAC,qBAAqB,CAAC;aACjC","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { GraniteBadgeComponent } from './badge.component';\n\n@NgModule({\n declarations: [GraniteBadgeComponent],\n imports: [CommonModule],\n exports: [GraniteBadgeComponent],\n})\nexport class GraniteBadgeModule {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteBadgeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./badge.component","name":"GraniteBadgeComponent","line":5,"character":17}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":12}],"exports":[{"__symbolic":"reference","module":"./badge.component","name":"GraniteBadgeComponent","line":7,"character":12}]}]}]}}}]
|
|
@@ -27,4 +27,4 @@ export class GraniteBadgeHarness extends ComponentHarness {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
GraniteBadgeHarness.hostSelector = 'granite-badge';
|
|
30
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=badge.harness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.harness.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/badge/testing/badge.harness.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,gBAAgB,EAEhB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,OAAO,mBAAoB,SAAQ,gBAAgB;IAGvD;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CACT,UAAsC,EAAE;QAExC,MAAM,SAAS,GAA0C,IAAI,gBAAgB,CAC3E,mBAAmB,EACnB,OAAO,CACR,CAAC;QACF,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAC3D,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CACzD,CAAC;QACF,SAAS,CAAC,SAAS,CACjB,MAAM,EACN,OAAO,CAAC,IAAI,EACZ,CAAO,OAAO,EAAE,IAAI,EAAE,EAAE,gDAAC,OAAA,CAAC,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA,GAAA,CAC3D,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,2BAA2B;IACrB,OAAO;;YACX,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACpC,CAAC;KAAA;IAED,sCAAsC;IAChC,MAAM;;YACV,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;QAC5D,CAAC;KAAA;;AAlCM,gCAAY,GAAG,eAAe,CAAC","sourcesContent":["import {\n ComponentHarness,\n BaseHarnessFilters,\n HarnessPredicate,\n} from '@angular/cdk/testing';\n\nexport class GraniteBadgeHarness extends ComponentHarness {\n static hostSelector = 'granite-badge';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `GraniteBadgeHarness` that meets\n * certain criteria.\n * @param options Options for filtering which badge instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: GraniteBadgeHarnessFilters = {}\n ): HarnessPredicate<GraniteBadgeHarness> {\n const predicate: HarnessPredicate<GraniteBadgeHarness> = new HarnessPredicate(\n GraniteBadgeHarness,\n options\n );\n predicate.addOption('text', options.text, (harness, label) =>\n HarnessPredicate.stringMatches(harness.getText(), label)\n );\n predicate.addOption(\n 'pill',\n options.pill,\n async (harness, pill) => (await harness.isPill()) === pill\n );\n return predicate;\n }\n\n /** Gets the Badge text. */\n async getText(): Promise<string> {\n return (await this.host()).text();\n }\n\n /** Whether it's a Pill type badge. */\n async isPill(): Promise<boolean> {\n return (await this.host()).hasClass('granite-badge-pill');\n }\n}\n\n/** A set of criteria that can be used to filter a list of `GraniteBadgeHarness` instances. */\nexport interface GraniteBadgeHarnessFilters extends BaseHarnessFilters {\n /** Only find instances whose text matches the given value. */\n text?: string | RegExp;\n pill?: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteBadgeHarness":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/cdk/testing","name":"ComponentHarness","line":6,"character":41},"members":{"getText":[{"__symbolic":"method"}],"isPill":[{"__symbolic":"method"}]},"statics":{"hostSelector":"granite-badge"}},"GraniteBadgeHarnessFilters":{"__symbolic":"interface"}}}]
|
|
@@ -90,4 +90,4 @@ GraniteAnchorComponent.ctorParameters = () => [
|
|
|
90
90
|
GraniteAnchorComponent.propDecorators = {
|
|
91
91
|
_anchorClick: [{ type: HostListener, args: ['click', ['$event'],] }]
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=
|
|
93
|
+
//# sourceMappingURL=button.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,YAAY,GAGb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,IAAK,eAIJ;AAJD,WAAK,eAAe;IAClB,mDAAgC,CAAA;IAChC,kEAA+C,CAAA;IAC/C,4DAAyC,CAAA;AAC3C,CAAC,EAJI,eAAe,KAAf,eAAe,QAInB;AAED,MAAM,oBAAoB,GAAG,aAAa,EAAE,CAAC;AAmB7C,MAAM,OAAO,sBACX,SAAQ,oBAAoB;IAE5B,YACY,aAA2B,EAC3B,WAAuB;QAEjC,KAAK,EAAE,CAAC;QAHE,kBAAa,GAAb,aAAa,CAAc;QAC3B,gBAAW,GAAX,WAAW,CAAY;QAIjC,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE;YACnD,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC,YA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SAAC;gBACT,8DAA8D;gBAC9D,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,KAAK,EAAE,qBAAqB;oBAC5B,iBAAiB,EAAE,mBAAmB;oBACtC,iCAAiC,EAAE,UAAU;iBAC9C;gBACD,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,2BAA2B;gBAErC,MAAM,EAAE,CAAC,UAAU,CAAC;gBACpB,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YA/EQ,YAAY;YAInB,UAAU;;;2BAsFT,YAAY,SAAC,OAAO,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostListener,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\n\nimport { disabledMixin } from '../core/common-behaviors/disabled';\n\nenum ButtonSelectors {\n graniteButton = 'granite-button',\n granitePrimaryButton = 'granite-primary-button',\n graniteFlatButton = 'granite-flat-button',\n}\n\nconst ButtonComponentMixin = disabledMixin();\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: `button[graniteButton],\n button[granitePrimaryButton],\n button[graniteFlatButton]\n `,\n host: {\n class: 'granite-button-base',\n '[class.granite-button-disabled]': 'disabled',\n '[attr.disabled]': 'disabled || null',\n },\n exportAs: 'graniteButton',\n template: '<ng-content></ng-content>',\n styleUrls: ['./button.component.scss'],\n inputs: ['disabled'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GraniteButtonComponent\n extends ButtonComponentMixin\n implements OnChanges {\n constructor(\n protected _focusMonitor: FocusMonitor,\n protected _elementRef: ElementRef\n ) {\n super();\n\n for (const selector of Object.keys(ButtonSelectors)) {\n if (this._getHostElement().hasAttribute(selector)) {\n this._getHostElement().classList.add(ButtonSelectors[selector]);\n }\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n super.ngOnChanges(changes);\n }\n\n focus(origin: FocusOrigin = 'program', options?: FocusOptions): void {\n this._focusMonitor.focusVia(this._getHostElement(), origin, options);\n }\n\n private _getHostElement(): HTMLButtonElement | HTMLAnchorElement {\n return this._elementRef.nativeElement;\n }\n}\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'a[graniteButton]',\n host: {\n class: 'granite-button-base',\n '[attr.tabindex]': 'disabled ? -1 : 0',\n '[class.granite-button-disabled]': 'disabled',\n },\n exportAs: 'graniteAnchor',\n template: '<ng-content></ng-content>',\n styleUrls: ['./button.component.scss'],\n inputs: ['disabled'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GraniteAnchorComponent\n extends GraniteButtonComponent\n implements OnChanges {\n constructor(\n protected _focusMonitor: FocusMonitor,\n protected _elementRef: ElementRef\n ) {\n super(_focusMonitor, _elementRef);\n }\n\n @HostListener('click', ['$event'])\n _anchorClick(event: Event): void {\n if (this.disabled) {\n event.preventDefault();\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n super.ngOnChanges(changes);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteButtonComponent":{"__symbolic":"class","extends":{"__symbolic":"error","message":"Symbol reference expected","line":38,"character":10},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"button[graniteButton],\n button[granitePrimaryButton],\n button[graniteFlatButton]\n ","host":{"class":"granite-button-base","[class.granite-button-disabled]":"disabled","[attr.disabled]":"disabled || null","$quoted$":["[class.granite-button-disabled]","[attr.disabled]"]},"exportAs":"graniteButton","template":"<ng-content></ng-content>","inputs":["disabled"],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":35,"character":19},"member":"OnPush"},"styles":[":host{box-sizing:border-box}:host *,:host :after,:host :before{box-sizing:inherit;cursor:pointer}button:host{background-color:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;font:inherit;border-radius:inherit;height:inherit;font-weight:inherit;line-height:inherit;color:inherit;margin:inherit;cursor:pointer;padding:inherit}a:host,button:host{outline:none}:host.granite-button-base{height:var(--granite-spacing-xl);border-radius:var(--granite-spacing-xs);font-size:var(--granite-font-size-body-small);font-weight:var(--granite-font-weight-regular);padding:var(--granite-spacing-s) var(--granite-spacing-s);position:relative;line-height:var(--granite-line-height-regular);display:flex;justify-content:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host:focus:not(.granite-button-disabled):not(:active){border:1px solid var(--granite-color-focus)}button:host.granite-primary-button{background-color:var(--granite-color-background-active);color:var(--granite-color-text-on-active);border:1px solid transparent}button:host.granite-primary-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-active-hover);color:none}button:host.granite-primary-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-active-selected);color:none}button:host.granite-button{background-color:var(--granite-color-background-variant);color:var(--granite-color-text);border:1px solid var(--granite-color-border-soft)}button:host.granite-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-active-hover);color:var(--granite-color-text-on-active)}button:host.granite-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-active-selected);color:var(--granite-color-text-on-active)}button:host.granite-flat-button{background-color:transparent;color:var(--granite-color-text);border:1px solid transparent}button:host.granite-flat-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-hover);color:var(--granite-color-text)}button:host.granite-flat-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-selected);color:var(--granite-color-text)}button:host.granite-button-disabled,button:host.granite-button-disabled:active,button:host.granite-button-disabled:focus,button:host.granite-button-disabled:hover{opacity:.4;cursor:default}a:host.granite-button{background-color:var(--granite-color-background-variant);color:var(--granite-color-text-link);border:1px solid var(--granite-color-border-soft)}a:host.granite-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-active-hover);color:var(--granite-color-text-on-active)}a:host.granite-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-active-selected);color:var(--granite-color-text-on-active)}a:host.granite-button-disabled,a:host.granite-button-disabled:active,a:host.granite-button-disabled:focus,a:host.granite-button-disabled:hover{opacity:.4;text-decoration:none;cursor:default;border:1px solid var(--granite-color-border-soft);pointer-events:none}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/cdk/a11y","name":"FocusMonitor","line":41,"character":29},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":42,"character":27}]}],"ngOnChanges":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"_getHostElement":[{"__symbolic":"method"}]}},"GraniteAnchorComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"GraniteButtonComponent"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":66,"character":1},"arguments":[{"selector":"a[graniteButton]","host":{"class":"granite-button-base","[attr.tabindex]":"disabled ? -1 : 0","[class.granite-button-disabled]":"disabled","$quoted$":["[attr.tabindex]","[class.granite-button-disabled]"]},"exportAs":"graniteAnchor","template":"<ng-content></ng-content>","inputs":["disabled"],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":78,"character":19},"member":"OnPush"},"styles":[":host{box-sizing:border-box}:host *,:host :after,:host :before{box-sizing:inherit;cursor:pointer}button:host{background-color:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;font:inherit;border-radius:inherit;height:inherit;font-weight:inherit;line-height:inherit;color:inherit;margin:inherit;cursor:pointer;padding:inherit}a:host,button:host{outline:none}:host.granite-button-base{height:var(--granite-spacing-xl);border-radius:var(--granite-spacing-xs);font-size:var(--granite-font-size-body-small);font-weight:var(--granite-font-weight-regular);padding:var(--granite-spacing-s) var(--granite-spacing-s);position:relative;line-height:var(--granite-line-height-regular);display:flex;justify-content:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host:focus:not(.granite-button-disabled):not(:active){border:1px solid var(--granite-color-focus)}button:host.granite-primary-button{background-color:var(--granite-color-background-active);color:var(--granite-color-text-on-active);border:1px solid transparent}button:host.granite-primary-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-active-hover);color:none}button:host.granite-primary-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-active-selected);color:none}button:host.granite-button{background-color:var(--granite-color-background-variant);color:var(--granite-color-text);border:1px solid var(--granite-color-border-soft)}button:host.granite-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-active-hover);color:var(--granite-color-text-on-active)}button:host.granite-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-active-selected);color:var(--granite-color-text-on-active)}button:host.granite-flat-button{background-color:transparent;color:var(--granite-color-text);border:1px solid transparent}button:host.granite-flat-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-hover);color:var(--granite-color-text)}button:host.granite-flat-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-selected);color:var(--granite-color-text)}button:host.granite-button-disabled,button:host.granite-button-disabled:active,button:host.granite-button-disabled:focus,button:host.granite-button-disabled:hover{opacity:.4;cursor:default}a:host.granite-button{background-color:var(--granite-color-background-variant);color:var(--granite-color-text-link);border:1px solid var(--granite-color-border-soft)}a:host.granite-button:hover:not(.granite-button-disabled){background-color:var(--granite-color-background-active-hover);color:var(--granite-color-text-on-active)}a:host.granite-button:active:not(.granite-button-disabled){background-color:var(--granite-color-background-active-selected);color:var(--granite-color-text-on-active)}a:host.granite-button-disabled,a:host.granite-button-disabled:active,a:host.granite-button-disabled:focus,a:host.granite-button-disabled:hover{opacity:.4;text-decoration:none;cursor:default;border:1px solid var(--granite-color-border-soft);pointer-events:none}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/cdk/a11y","name":"FocusMonitor","line":41,"character":29},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":42,"character":27}]}],"_anchorClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":90,"character":3},"arguments":["click",["$event"]]}]}],"ngOnChanges":[{"__symbolic":"method"}]}}}}]
|
|
@@ -8,4 +8,4 @@ GraniteButtonModule.decorators = [
|
|
|
8
8
|
exports: [GraniteButtonComponent, GraniteAnchorComponent],
|
|
9
9
|
},] }
|
|
10
10
|
];
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=button.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.module.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/button/button.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAM5B,MAAM,OAAO,mBAAmB;;;YAJ/B,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;gBAC9D,OAAO,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;aAC1D","sourcesContent":["import { NgModule } from '@angular/core';\nimport {\n GraniteAnchorComponent,\n GraniteButtonComponent,\n} from './button.component';\n\n@NgModule({\n declarations: [GraniteButtonComponent, GraniteAnchorComponent],\n exports: [GraniteButtonComponent, GraniteAnchorComponent],\n})\nexport class GraniteButtonModule {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteButtonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./button.component","name":"GraniteButtonComponent","line":7,"character":17},{"__symbolic":"reference","module":"./button.component","name":"GraniteAnchorComponent","line":7,"character":41}],"exports":[{"__symbolic":"reference","module":"./button.component","name":"GraniteButtonComponent","line":8,"character":12},{"__symbolic":"reference","module":"./button.component","name":"GraniteAnchorComponent","line":8,"character":36}]}]}]}}}]
|
|
@@ -31,4 +31,4 @@ export function getEaseOutSteepBack(duration, delay) {
|
|
|
31
31
|
export function getEaseLinear(duration, delay) {
|
|
32
32
|
return (`${duration}ms ` + (delay !== undefined ? ` ${delay}ms ` : '') + 'linear');
|
|
33
33
|
}
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=animation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/core/animation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,KAAc;IAC9D,OAAO,CACL,GAAG,QAAQ,KAAK;QAChB,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,4BAA4B,CAC7B,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAgB,EAAE,KAAc;IAClE,OAAO,CACL,GAAG,QAAQ,KAAK;QAChB,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,6BAA6B,CAC9B,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,KAAc;IAC5D,OAAO,CACL,GAAG,QAAQ,KAAK,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,CAC1E,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Returns an ease-out CSS animation string with a slightly steeper curve\n * than usual.\n *\n * @param duration Duration in milliseconds\n * @param delay Delay in milliseconds\n */\nexport function getEaseOutSteep(duration: number, delay?: number): string {\n return (\n `${duration}ms ` +\n (delay !== undefined ? ` ${delay}ms ` : '') +\n 'cubic-bezier(0, 0, 0.2, 1)'\n );\n}\n\n/**\n * Returns an ease-out-back CSS animation string with a slightly steeper\n * curve than usual.\n *\n * @param duration Duration in milliseconds\n * @param delay Delay in milliseconds\n */\nexport function getEaseOutSteepBack(duration: number, delay?: number): string {\n return (\n `${duration}ms ` +\n (delay !== undefined ? ` ${delay}ms ` : '') +\n 'cubic-bezier(.37,1.3,.77,1)'\n );\n}\n\n/**\n * Returns a linear CSS animation string\n *\n * @param duration Duration in milliseconds\n * @param delay Delay in milliseconds\n */\nexport function getEaseLinear(duration: number, delay?: number): string {\n return (\n `${duration}ms ` + (delay !== undefined ? ` ${delay}ms ` : '') + 'linear'\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"getEaseOutSteep":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"duration"},"right":"ms "},"right":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"delay"},"right":{"__symbolic":"reference","name":"undefined"}},"thenExpression":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":" ","right":{"__symbolic":"reference","name":"delay"}},"right":"ms "},"elseExpression":""}},"right":"cubic-bezier(0, 0, 0.2, 1)"}},"getEaseOutSteepBack":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"duration"},"right":"ms "},"right":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"delay"},"right":{"__symbolic":"reference","name":"undefined"}},"thenExpression":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":" ","right":{"__symbolic":"reference","name":"delay"}},"right":"ms "},"elseExpression":""}},"right":"cubic-bezier(.37,1.3,.77,1)"}},"getEaseLinear":{"__symbolic":"function","parameters":["duration","delay"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"duration"},"right":"ms "},"right":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"delay"},"right":{"__symbolic":"reference","name":"undefined"}},"thenExpression":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":" ","right":{"__symbolic":"reference","name":"delay"}},"right":"ms "},"elseExpression":""}},"right":"linear"}}}}]
|
|
@@ -17,4 +17,4 @@ export const deviceTouch = {
|
|
|
17
17
|
input: { devices: ['touch', 'onscreen-keyboard'] },
|
|
18
18
|
output: { device: 'touch' },
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=client-environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-environment.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/core/client-environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,CACpD,sBAAsB,CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,CACxB,CAAC;AA2BF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;IACzC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA0B;IAChD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,CAAC,EAAE;IAClD,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;CAC5B,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * Injection token used to provide components knowledge of what device types\n * are being used for input.\n */\nexport const GRANITE_CLIENT_INPUT = new InjectionToken<ClientInputInterface>(\n 'GRANITE_CLIENT_INPUT'\n);\n\n/**\n * Injection token used to provide components knowledge of what device type\n * is being used for output.\n */\nexport const GRANITE_CLIENT_OUTPUT = new InjectionToken<ClientOutputInterface>(\n 'GRANITE_CLIENT_OUTPUT'\n);\n\nexport type InputDeviceTypes =\n | void\n | 'touch'\n | 'mouse'\n | 'keyboard'\n | 'onscreen-keyboard';\n\nexport type OutputDeviceTypes =\n | void\n | 'touch' // TODO: Change to 'touch-screen' for touch\n | 'desktop'; // TODO: Change to 'screen' for desktop\n\nexport interface ClientInputInterface {\n devices: InputDeviceTypes[];\n}\n\nexport interface ClientOutputInterface {\n device: OutputDeviceTypes;\n}\n\ninterface DevicePrefabInterface {\n input: ClientInputInterface;\n output: ClientOutputInterface;\n}\n\nexport const deviceDesktop: DevicePrefabInterface = {\n input: { devices: ['mouse', 'keyboard'] },\n output: { device: 'desktop' },\n};\n\nexport const deviceTouch: DevicePrefabInterface = {\n input: { devices: ['touch', 'onscreen-keyboard'] },\n output: { device: 'touch' },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GRANITE_CLIENT_INPUT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":40},"arguments":["GRANITE_CLIENT_INPUT"]},"GRANITE_CLIENT_OUTPUT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":14,"character":41},"arguments":["GRANITE_CLIENT_OUTPUT"]},"InputDeviceTypes":{"__symbolic":"interface"},"OutputDeviceTypes":{"__symbolic":"interface"},"ClientInputInterface":{"__symbolic":"interface"},"ClientOutputInterface":{"__symbolic":"interface"},"deviceDesktop":{"input":{"devices":["mouse","keyboard"]},"output":{"device":"desktop"}},"deviceTouch":{"input":{"devices":["touch","onscreen-keyboard"]},"output":{"device":"touch"}}}}]
|
|
@@ -22,4 +22,4 @@ export const disabledMixin = (Base = class {
|
|
|
22
22
|
};
|
|
23
23
|
return Derived;
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=disabled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disabled.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/common-behaviors/disabled.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAA4B,SAAS,EAAE,MAAM,eAAe,CAAC;AAI3E,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,OAAU;CAAe,EACzB,EAAE;IACF,MAEM,OAAQ,SAAQ,IAAI;QAF1B;;YAIE,aAAQ,GAAY,KAAK,CAAC;QAO5B,CAAC;QALC,WAAW,CAAC,OAAsB;YAChC,IAAI,OAAO,CAAC,QAAQ,EAAE;gBACpB,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;aACtE;QACH,CAAC;;;gBAVF,SAAS;;;2BAGP,KAAK;;IAUR,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Input, OnChanges, SimpleChanges, Directive } from '@angular/core';\n\ntype Constructor<T> = new (...args: any[]) => T;\n\nexport const disabledMixin = <T extends Constructor<Record<string, unknown>>>(\n Base: T = class {} as any\n) => {\n @Directive()\n // eslint-disable-next-line @angular-eslint/directive-class-suffix\n class Derived extends Base implements OnChanges {\n @Input()\n disabled: boolean = false;\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.disabled) {\n this.disabled = coerceBooleanProperty(changes.disabled.currentValue);\n }\n }\n }\n\n return Derived;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"disabledMixin":{"__symbolic":"error","message":"Lambda not supported","line":6,"character":29}}}]
|
|
@@ -22,4 +22,4 @@ GraniteCoreModule.decorators = [
|
|
|
22
22
|
],
|
|
23
23
|
},] }
|
|
24
24
|
];
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=core.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.module.js","sourceRoot":"","sources":["../../../../../../libs/granite-components/src/lib/core/core.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,mDAAmD;AAgBnD,MAAM,OAAO,iBAAiB;;;YAd7B,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,4BAA4B;oBAC5B,0BAA0B;oBAC1B,2BAA2B;oBAC3B,yBAAyB;iBAC1B;gBACD,OAAO,EAAE;oBACP,4BAA4B;oBAC5B,0BAA0B;oBAC1B,2BAA2B;oBAC3B,yBAAyB;iBAC1B;aACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { ClientOutputDesktopDirective } from './devices/client-output-desktop.directive';\nimport { ClientOutputTouchDirective } from './devices/client-output-touch.directive';\nimport { ClientInputDesktopDirective } from './devices/client-input-desktop.directive';\nimport { ClientInputTouchDirective } from './devices/client-input-touch.directive';\n\n// TODO: Move client devices into a separate module\n\n@NgModule({\n declarations: [\n ClientOutputDesktopDirective,\n ClientOutputTouchDirective,\n ClientInputDesktopDirective,\n ClientInputTouchDirective,\n ],\n exports: [\n ClientOutputDesktopDirective,\n ClientOutputTouchDirective,\n ClientInputDesktopDirective,\n ClientInputTouchDirective,\n ],\n})\nexport class GraniteCoreModule {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"GraniteCoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./devices/client-output-desktop.directive","name":"ClientOutputDesktopDirective","line":10,"character":4},{"__symbolic":"reference","module":"./devices/client-output-touch.directive","name":"ClientOutputTouchDirective","line":11,"character":4},{"__symbolic":"reference","module":"./devices/client-input-desktop.directive","name":"ClientInputDesktopDirective","line":12,"character":4},{"__symbolic":"reference","module":"./devices/client-input-touch.directive","name":"ClientInputTouchDirective","line":13,"character":4}],"exports":[{"__symbolic":"reference","module":"./devices/client-output-desktop.directive","name":"ClientOutputDesktopDirective","line":16,"character":4},{"__symbolic":"reference","module":"./devices/client-output-touch.directive","name":"ClientOutputTouchDirective","line":17,"character":4},{"__symbolic":"reference","module":"./devices/client-input-desktop.directive","name":"ClientInputDesktopDirective","line":18,"character":4},{"__symbolic":"reference","module":"./devices/client-input-touch.directive","name":"ClientInputTouchDirective","line":19,"character":4}]}]}]}}}]
|
|
@@ -19,4 +19,4 @@ ClientInputDesktopDirective.decorators = [
|
|
|
19
19
|
},] }
|
|
20
20
|
];
|
|
21
21
|
export { ɵ0 };
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=client-input-desktop.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-input-desktop.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-input-desktop.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;WAW5D,aAAa,CAAC,KAAK;AATnC;;;GAGG;AAUH,MAAM,OAAO,2BAA2B;;;YATvC,SAAS,SAAC;gBACT,QAAQ,EAAE,6BAA6B;gBACvC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,oBAAoB;wBAC7B,QAAQ,IAAqB;qBAC9B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { deviceDesktop, GRANITE_CLIENT_INPUT } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client input\n * should be adapted for desktop devices, like personal computers.\n */\n@Directive({\n selector: `[graniteClientInputDesktop]`,\n providers: [\n {\n provide: GRANITE_CLIENT_INPUT,\n useValue: deviceDesktop.input,\n },\n ],\n})\nexport class ClientInputDesktopDirective {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceDesktop","line":12,"character":16},"member":"input"},"ClientInputDesktopDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientInputDesktop]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_INPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
|
|
@@ -19,4 +19,4 @@ ClientInputTouchDirective.decorators = [
|
|
|
19
19
|
},] }
|
|
20
20
|
];
|
|
21
21
|
export { ɵ0 };
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=client-input-touch.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-input-touch.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-input-touch.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;WAW1D,WAAW,CAAC,KAAK;AATjC;;;GAGG;AAUH,MAAM,OAAO,yBAAyB;;;YATrC,SAAS,SAAC;gBACT,QAAQ,EAAE,2BAA2B;gBACrC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,oBAAoB;wBAC7B,QAAQ,IAAmB;qBAC5B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { deviceTouch, GRANITE_CLIENT_INPUT } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client input\n * should be adapted for touch devices, like mobiles and tablets.\n */\n@Directive({\n selector: `[graniteClientInputTouch]`,\n providers: [\n {\n provide: GRANITE_CLIENT_INPUT,\n useValue: deviceTouch.input,\n },\n ],\n})\nexport class ClientInputTouchDirective {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceTouch","line":12,"character":16},"member":"input"},"ClientInputTouchDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientInputTouch]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_INPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
|
|
@@ -19,4 +19,4 @@ ClientOutputDesktopDirective.decorators = [
|
|
|
19
19
|
},] }
|
|
20
20
|
];
|
|
21
21
|
export { ɵ0 };
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=client-output-desktop.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-output-desktop.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-output-desktop.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;WAW7D,aAAa,CAAC,MAAM;AATpC;;;GAGG;AAUH,MAAM,OAAO,4BAA4B;;;YATxC,SAAS,SAAC;gBACT,QAAQ,EAAE,8BAA8B;gBACxC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,qBAAqB;wBAC9B,QAAQ,IAAsB;qBAC/B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { deviceDesktop, GRANITE_CLIENT_OUTPUT } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client output\n * should be adapted for desktop devices like personal computers.\n */\n@Directive({\n selector: `[graniteClientOutputDesktop]`,\n providers: [\n {\n provide: GRANITE_CLIENT_OUTPUT,\n useValue: deviceDesktop.output,\n },\n ],\n})\nexport class ClientOutputDesktopDirective {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceDesktop","line":12,"character":16},"member":"output"},"ClientOutputDesktopDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientOutputDesktop]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_OUTPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
|
|
@@ -19,4 +19,4 @@ ClientOutputTouchDirective.decorators = [
|
|
|
19
19
|
},] }
|
|
20
20
|
];
|
|
21
21
|
export { ɵ0 };
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=client-output-touch.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-output-touch.directive.js","sourceRoot":"","sources":["../../../../../../../libs/granite-components/src/lib/core/devices/client-output-touch.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;WAW3D,WAAW,CAAC,MAAM;AATlC;;;GAGG;AAUH,MAAM,OAAO,0BAA0B;;;YATtC,SAAS,SAAC;gBACT,QAAQ,EAAE,4BAA4B;gBACtC,SAAS,EAAE;oBACT;wBACE,OAAO,EAAE,qBAAqB;wBAC9B,QAAQ,IAAoB;qBAC7B;iBACF;aACF","sourcesContent":["import { Directive } from '@angular/core';\nimport { GRANITE_CLIENT_OUTPUT, deviceTouch } from '../client-environment';\n\n/**\n * Directive used to tell components and their sub components that client output\n * should be adapted for touch devices like mobiles and tablets.\n */\n@Directive({\n selector: `[graniteClientOutputTouch]`,\n providers: [\n {\n provide: GRANITE_CLIENT_OUTPUT,\n useValue: deviceTouch.output,\n },\n ],\n})\nexport class ClientOutputTouchDirective {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ɵ0":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../client-environment","name":"deviceTouch","line":12,"character":16},"member":"output"},"ClientOutputTouchDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"selector":"[graniteClientOutputTouch]","providers":[{"provide":{"__symbolic":"reference","module":"../client-environment","name":"GRANITE_CLIENT_OUTPUT","line":11,"character":15},"useValue":{"__symbolic":"reference","name":"ɵ0"}}]}]}]}}}]
|