@frontile/status 0.17.0-alpha.5

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/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @frontile/status
2
+
3
+ Component Library for Ember Octane apps: Status
4
+
5
+ ## Compatibility
6
+
7
+ - Ember.js v3.16 or above
8
+ - Ember CLI v2.13 or above
9
+ - Node.js v10 or above
10
+
11
+ ## Installation
12
+
13
+ ```sh
14
+ ember install @frontile/status
15
+ ```
16
+
17
+ ## Documentation
18
+
19
+ Visit [frontile.dev](https://frontile.dev/) to read the docs
20
+ and see live demos.
21
+
22
+ ## License
23
+
24
+ This project is licensed under the [MIT License](LICENSE.md).
package/addon-main.js ADDED
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ const { addonV1Shim } = require('@embroider/addon-shim');
4
+ module.exports = addonV1Shim(__dirname);
@@ -0,0 +1,15 @@
1
+ import Component from '@glimmer/component';
2
+ interface MyComponentSignature {
3
+ Args: {
4
+ MyArg?: string;
5
+ };
6
+ Blocks: {
7
+ default: [string | null];
8
+ };
9
+ Element: HTMLDivElement;
10
+ }
11
+ declare class MyComponent extends Component<MyComponentSignature> {
12
+ }
13
+ export { MyComponent, type MyComponentSignature };
14
+ export default MyComponent;
15
+ //# sourceMappingURL=my-component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-component.d.ts","sourceRoot":"","sources":["../../src/components/my-component.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,UAAU,oBAAoB;IAC5B,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;KAC1B,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,cAAM,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;CAQxD;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,oBAAoB,EAAE,CAAC;AAClD,eAAe,WAAW,CAAC"}
@@ -0,0 +1,91 @@
1
+ /// <reference types="ember-source/types/stable/@ember/template" />
2
+ import Component from '@glimmer/component';
3
+ import type { SafeString } from '@ember/template';
4
+ interface ProgressBarSignature {
5
+ Args: {
6
+ /**
7
+ * The intent of the progress bar
8
+ */
9
+ intent?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
10
+ /**
11
+ * The size of the progress bar
12
+ */
13
+ size?: 'xs' | 'sm' | 'md' | 'lg';
14
+ /**
15
+ * The radius the progress bar
16
+ */
17
+ radius?: 'none' | 'sm' | 'lg' | 'full';
18
+ /**
19
+ * The current progress value
20
+ */
21
+ progress?: number;
22
+ /**
23
+ *
24
+ * The smallest value allowed for the input
25
+ *
26
+ * @defaultValue 0
27
+ */
28
+ minValue?: number;
29
+ /**
30
+ *
31
+ * The largest value allowed for the input
32
+ *
33
+ *@defaultValue 100
34
+ */
35
+ maxValue?: number;
36
+ /**
37
+ * Whether presentation is indeterminate when progress isn't known.
38
+ *
39
+ * @defaultValue false
40
+ */
41
+ isIndeterminate?: boolean;
42
+ /**
43
+ * The content to display as the label.
44
+ */
45
+ label?: string;
46
+ /**
47
+ * The content to display as the value's label (e.g. 1 of 4).
48
+ */
49
+ valueLabel?: string;
50
+ /**
51
+ * Whether the value's label is displayed.
52
+ * True by default if there's a label, false by default if not.
53
+ */
54
+ showValueLabel?: boolean;
55
+ /**
56
+ * The display format of the value.
57
+ * Values are formatted as a percentage by default.
58
+ */
59
+ formatOptions?: Intl.NumberFormatOptions;
60
+ /**
61
+ * The content to display as the hint.
62
+ */
63
+ hint?: string;
64
+ /**
65
+ * Custom class name, it will override the default ones using Tailwind Merge library.
66
+ */
67
+ class?: string;
68
+ };
69
+ Blocks: {
70
+ default: [];
71
+ };
72
+ Element: HTMLDivElement;
73
+ }
74
+ declare class ProgressBar extends Component<ProgressBarSignature> {
75
+ id: string;
76
+ get classNames(): {
77
+ base: string;
78
+ progress: string;
79
+ label: string;
80
+ };
81
+ get minValue(): number;
82
+ get maxValue(): number;
83
+ get progress(): number;
84
+ get percentage(): number;
85
+ get showValueLabel(): boolean;
86
+ get formattedValueLabel(): string;
87
+ get progressWidth(): SafeString;
88
+ }
89
+ export { ProgressBar, type ProgressBarSignature };
90
+ export default ProgressBar;
91
+ //# sourceMappingURL=progress-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../../src/components/progress-bar.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,UAAU,oBAAoB;IAC5B,IAAI,EAAE;QACJ;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG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B,EAAE,CAAC;AAClD,eAAe,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components/progress-bar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ProgressBar } from './index';
2
+ export default interface Registry {
3
+ ProgressBar: typeof ProgressBar;
4
+ }
5
+ //# sourceMappingURL=template-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,QAAQ;IAC/B,WAAW,EAAE,OAAO,WAAW,CAAC;CACjC"}
@@ -0,0 +1 @@
1
+ export { default } from "@frontile/status/components/progress-bar";
@@ -0,0 +1,85 @@
1
+ import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import Component from '@glimmer/component';
3
+ import { useStyles } from '@frontile/theme';
4
+ import { htmlSafe } from '@ember/template';
5
+ import { guidFor } from '@ember/object/internals';
6
+ import { precompileTemplate } from '@ember/template-compilation';
7
+ import { setComponentTemplate } from '@ember/component';
8
+
9
+ var _class;
10
+ let ProgressBar = (_class = class ProgressBar extends Component {
11
+ constructor(...args) {
12
+ super(...args);
13
+ _defineProperty(this, "id", guidFor(this));
14
+ }
15
+ get classNames() {
16
+ const {
17
+ progressBar: progressBar1
18
+ } = useStyles();
19
+ const {
20
+ base: base1,
21
+ progress: progress1,
22
+ label: label1
23
+ } = progressBar1({
24
+ intent: this.args.intent || 'default',
25
+ size: this.args.size,
26
+ radius: this.args.radius,
27
+ isIndeterminate: this.args.isIndeterminate
28
+ });
29
+ return {
30
+ base: base1({
31
+ class: this.args.class
32
+ }),
33
+ progress: progress1(),
34
+ label: label1()
35
+ };
36
+ }
37
+ get minValue() {
38
+ return this.args.minValue || 0;
39
+ }
40
+ get maxValue() {
41
+ return this.args.maxValue || 100;
42
+ }
43
+ get progress() {
44
+ return this.args.progress || this.minValue;
45
+ }
46
+ get percentage() {
47
+ return (this.progress - this.minValue) / (this.maxValue - this.minValue) * 100;
48
+ }
49
+ get showValueLabel() {
50
+ if (typeof this.args.showValueLabel !== 'undefined') {
51
+ return this.args.showValueLabel;
52
+ }
53
+ return !!this.args.label;
54
+ }
55
+ get formattedValueLabel() {
56
+ // check if the value label should not be shown
57
+ if (!this.showValueLabel || this.args.isIndeterminate) {
58
+ return '';
59
+ }
60
+ // if @labelValue is provided use it
61
+ if (this.args.valueLabel) {
62
+ return this.args.valueLabel;
63
+ }
64
+ // if format options are provided
65
+ if (this.args.formatOptions) {
66
+ const options1 = {
67
+ ...(this.args.formatOptions || {})
68
+ };
69
+ return new Intl.NumberFormat(navigator?.language || 'en-US', options1).format(this.progress);
70
+ }
71
+ return this.percentage.toFixed(0) + '%';
72
+ }
73
+ get progressWidth() {
74
+ let percentage1 = this.percentage;
75
+ if (this.args.isIndeterminate) {
76
+ percentage1 = 50;
77
+ }
78
+ return htmlSafe(`width: ${percentage1}%`);
79
+ }
80
+ }, setComponentTemplate(precompileTemplate("\n <div ...attributes>\n {{#if @label}}\n <div class={{this.classNames.label}}>\n <label id={{this.id}}>\n {{@label}}\n </label>\n {{#if this.showValueLabel}}\n <div>\n {{this.formattedValueLabel}}\n </div>\n {{/if}}\n </div>\n {{/if}}\n <div class={{this.classNames.base}}>\n <div role=\"progressbar\" aria-labelledby={{if @label this.id}} aria-valuenow={{this.progress}} aria-valuemin={{this.minValue}} aria-valuemax={{this.maxValue}} class={{this.classNames.progress}} style={{this.progressWidth}}></div>\n </div>\n </div>\n ", {
81
+ strictMode: true
82
+ }), _class), _class);
83
+
84
+ export { ProgressBar, ProgressBar as default };
85
+ //# sourceMappingURL=progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-bar.js","sources":["../../src/components/progress-bar.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport { useStyles } from '@frontile/theme';\nimport { htmlSafe } from '@ember/template';\nimport type { SafeString } from '@ember/template';\nimport { guidFor } from '@ember/object/internals';\ninterface ProgressBarSignature {\n Args: {\n /**\n * The intent of the progress bar\n */ intent?: 'default' | 'primary' | 'success' | 'warning' | 'danger';\n /**\n * The size of the progress bar\n */ size?: 'xs' | 'sm' | 'md' | 'lg';\n /**\n * The radius the progress bar\n */ radius?: 'none' | 'sm' | 'lg' | 'full';\n /**\n * The current progress value\n */ progress?: number;\n /**\n *\n * The smallest value allowed for the input\n *\n * @defaultValue 0\n */ minValue?: number;\n /**\n *\n * The largest value allowed for the input\n *\n *@defaultValue 100\n */ maxValue?: number;\n /**\n * Whether presentation is indeterminate when progress isn't known.\n *\n * @defaultValue false\n */ isIndeterminate?: boolean;\n /**\n * The content to display as the label.\n */ label?: string;\n /**\n * The content to display as the value's label (e.g. 1 of 4).\n */ valueLabel?: string;\n /**\n * Whether the value's label is displayed.\n * True by default if there's a label, false by default if not.\n */ showValueLabel?: boolean;\n /**\n * The display format of the value.\n * Values are formatted as a percentage by default.\n */ formatOptions?: Intl.NumberFormatOptions;\n /**\n * The content to display as the hint.\n */ hint?: string;\n /**\n * Custom class name, it will override the default ones using Tailwind Merge library.\n */ class?: string;\n };\n Blocks: {\n default: [];\n };\n Element: HTMLDivElement;\n}\nlet ProgressBar = class ProgressBar extends Component<ProgressBarSignature> {\n id = guidFor(this);\n get classNames() {\n const { progressBar: progressBar1 } = useStyles();\n const { base: base1, progress: progress1, label: label1 } = progressBar1({\n intent: this.args.intent || 'default',\n size: this.args.size,\n radius: this.args.radius,\n isIndeterminate: this.args.isIndeterminate\n });\n return {\n base: base1({\n class: this.args.class\n }),\n progress: progress1(),\n label: label1()\n };\n }\n get minValue(): number {\n return this.args.minValue || 0;\n }\n get maxValue(): number {\n return this.args.maxValue || 100;\n }\n get progress(): number {\n return this.args.progress || this.minValue;\n }\n get percentage(): number {\n return (((this.progress - this.minValue) / (this.maxValue - this.minValue)) * 100);\n }\n get showValueLabel(): boolean {\n if (typeof this.args.showValueLabel !== 'undefined') {\n return this.args.showValueLabel;\n }\n return !!this.args.label;\n }\n get formattedValueLabel(): string {\n // check if the value label should not be shown\n if (!this.showValueLabel || this.args.isIndeterminate) {\n return '';\n }\n // if @labelValue is provided use it\n if (this.args.valueLabel) {\n return this.args.valueLabel;\n }\n // if format options are provided\n if (this.args.formatOptions) {\n const options1: Intl.NumberFormatOptions = {\n ...(this.args.formatOptions || {})\n };\n return new Intl.NumberFormat(navigator?.language || 'en-US', options1).format(this.progress);\n }\n return this.percentage.toFixed(0) + '%';\n }\n get progressWidth(): SafeString {\n let percentage1 = this.percentage;\n if (this.args.isIndeterminate) {\n percentage1 = 50;\n }\n return htmlSafe(`width: ${percentage1}%`);\n }\n static{\n template(`\n <div ...attributes>\n {{#if @label}}\n <div class={{this.classNames.label}}>\n <label id={{this.id}}>\n {{@label}}\n </label>\n {{#if this.showValueLabel}}\n <div>\n {{this.formattedValueLabel}}\n </div>\n {{/if}}\n </div>\n {{/if}}\n <div class={{this.classNames.base}}>\n <div\n role=\"progressbar\"\n aria-labelledby={{if @label this.id}}\n aria-valuenow={{this.progress}}\n aria-valuemin={{this.minValue}}\n aria-valuemax={{this.maxValue}}\n class={{this.classNames.progress}}\n style={{this.progressWidth}}\n ></div>\n </div>\n </div>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n};\nexport { ProgressBar, ProgressBarSignature };\nexport default ProgressBar;\n"],"names":["ProgressBar","_class","Component","constructor","args","_defineProperty","guidFor","classNames","progressBar","progressBar1","useStyles","base","base1","progress","progress1","label","label1","intent","size","radius","isIndeterminate","class","minValue","maxValue","percentage","showValueLabel","formattedValueLabel","valueLabel","formatOptions","options1","Intl","NumberFormat","navigator","language","format","toFixed","progressWidth","percentage1","htm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C,CAAC,GAAG,GAAG,CAAA;AAC3C,GAAA;EACA,IAAIC,aAAaA,GAAe;AAC5B,IAAA,IAAIC,WAAW,GAAG,IAAI,CAACb,UAAU,CAAA;AACjC,IAAA,IAAI,IAAI,CAACpB,IAAI,CAACgB,eAAe,EAAE;AAC3BiB,MAAAA,WAAW,GAAG,EAAE,CAAA;AACpB,KAAA;AACA,IAAA,OAAOC,QAAQ,CAAE,CAASD,OAAAA,EAAAA,WAAY,GAAE,CAAC,CAAA;AAC7C,GAAA;AAmCJ,CAAC,EAAAE,oBAAA,CAjCOC,kBAAA,CA0BH,opBAAA,EAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAxC,MAAA,CAAA,EAAAA,MAAA;;;;"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { ProgressBar } from './components/progress-bar.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=template-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-registry.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@frontile/status",
3
+ "version": "0.17.0-alpha.5",
4
+ "description": "Component Library for Ember Octane apps: Status",
5
+ "keywords": [
6
+ "ember-addon",
7
+ "frontile"
8
+ ],
9
+ "repository": "https://github.com/josemarluedke/frontile",
10
+ "license": "MIT",
11
+ "author": "",
12
+ "directories": {
13
+ "doc": "doc",
14
+ "test": "tests"
15
+ },
16
+ "files": [
17
+ "addon-main.js",
18
+ "declarations",
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "concurrently -m 1 'npm:build:*'",
23
+ "build:js": "rollup --config",
24
+ "build:types": "glint --declaration",
25
+ "lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
26
+ "lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
27
+ "lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
28
+ "lint:js": "eslint . --cache",
29
+ "lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
30
+ "lint:js:fix": "eslint . --fix",
31
+ "lint:types": "glint",
32
+ "start": "concurrently 'npm:start:*'",
33
+ "start:js": "rollup --config --watch --no-watch.clearScreen",
34
+ "start:types": "glint -d --watch",
35
+ "test": "echo 'A v2 addon does not have tests, run tests in test-app'",
36
+ "prepack": "concurrently 'npm:build'"
37
+ },
38
+ "peerDependencies": {
39
+ "@babel/runtime": ">= 7",
40
+ "ember-source": "^4.0.0 || ^5.0.0"
41
+ },
42
+ "dependencies": {
43
+ "@embroider/addon-shim": "^1.8.7",
44
+ "@frontile/theme": "0.17.0-alpha.5"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/core": "7.23.7",
48
+ "@babel/plugin-proposal-class-properties": "7.18.6",
49
+ "@babel/plugin-proposal-decorators": "7.23.7",
50
+ "@babel/plugin-transform-class-static-block": "^7.23.4",
51
+ "@babel/preset-typescript": "7.23.3",
52
+ "@embroider/addon-dev": "4.1.3",
53
+ "@glimmer/component": "^1.1.2",
54
+ "@glimmer/tracking": "^1.1.2",
55
+ "@glint/core": "1.3.0",
56
+ "@glint/environment-ember-loose": "1.3.0",
57
+ "@glint/environment-ember-template-imports": "1.3.0",
58
+ "@glint/template": "1.3.0",
59
+ "@rollup/plugin-node-resolve": "^15.2.3",
60
+ "@tsconfig/ember": "^3.0.3",
61
+ "babel-plugin-ember-template-compilation": "^2.2.1",
62
+ "concurrently": "^8.2.2",
63
+ "ember-source": "^5.5.0",
64
+ "rollup": "^4.9.6",
65
+ "rollup-plugin-ts": "^3.4.5",
66
+ "tailwindcss": "^3.4.1",
67
+ "typescript": "^5.3.3"
68
+ },
69
+ "engines": {
70
+ "node": ">= 10.*"
71
+ },
72
+ "publishConfig": {
73
+ "access": "public"
74
+ },
75
+ "ember": {
76
+ "edition": "octane"
77
+ },
78
+ "ember-addon": {
79
+ "version": 2,
80
+ "type": "addon",
81
+ "main": "addon-main.js",
82
+ "app-js": {
83
+ "./components/progress-bar.js": "./dist/_app_/components/progress-bar.js"
84
+ }
85
+ },
86
+ "exports": {
87
+ ".": {
88
+ "types": "./declarations/index.d.ts",
89
+ "default": "./dist/index.js"
90
+ },
91
+ "./*": {
92
+ "types": "./declarations/*.d.ts",
93
+ "default": "./dist/*.js"
94
+ },
95
+ "./addon-main.js": "./addon-main.js"
96
+ },
97
+ "typesVersions": {
98
+ "*": {
99
+ "*": [
100
+ "declarations/*"
101
+ ]
102
+ }
103
+ },
104
+ "gitHead": "7e01670d8d6f8f3f807ab292f5a64694bcbc1fc7"
105
+ }