@3t-transform/threeteeui 0.1.4 → 0.1.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/dist/cjs/{index-5f6cbac9.js → index-906c2757.js} +14 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tttx-button.cjs.entry.js → tttx-button_2.cjs.entry.js} +50 -24
- package/dist/cjs/tttx-form.cjs.entry.js +364 -364
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +57 -57
- package/dist/cjs/tttx-list.cjs.entry.js +43 -43
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +58 -61
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +116 -110
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +0 -4
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +107 -107
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +3 -32
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +3 -32
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +572 -627
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +135 -148
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/collection/transform-tag-name.js +5 -0
- package/dist/components/tttx-button.js +59 -48
- package/dist/components/tttx-form.js +381 -381
- package/dist/components/tttx-icon2.js +29 -29
- package/dist/components/tttx-keyvalue-block.js +74 -74
- package/dist/components/tttx-list.js +65 -65
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-standalone-input.js +102 -108
- package/dist/esm/{index-ffdc7592.js → index-4010ad69.js} +14 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{tttx-button.entry.js → tttx-button_2.entry.js} +50 -25
- package/dist/esm/tttx-form.entry.js +364 -364
- package/dist/esm/tttx-keyvalue-block.entry.js +57 -57
- package/dist/esm/tttx-list.entry.js +43 -43
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-standalone-input.entry.js +58 -61
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/p-083eeedc.entry.js +1 -0
- package/dist/tttx/{p-f97a61bb.entry.js → p-3281444a.entry.js} +1 -1
- package/dist/tttx/p-5687f4ad.js +2 -0
- package/dist/tttx/{p-d7423a2c.entry.js → p-5c9a1626.entry.js} +1 -1
- package/dist/tttx/p-931e42c9.entry.js +1 -0
- package/dist/tttx/p-b5c1dd86.entry.js +1 -0
- package/dist/tttx/{p-ed708390.entry.js → p-dab7ee1b.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +13 -10
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -114
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +53 -56
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -122
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +0 -6
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/dist/types/transform-tag-name.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/tttx-icon.cjs.entry.js +0 -21
- package/dist/esm/tttx-icon.entry.js +0 -17
- package/dist/tttx/p-31c15d5e.entry.js +0 -1
- package/dist/tttx/p-6f51edf0.entry.js +0 -1
- package/dist/tttx/p-a31641f0.entry.js +0 -1
- package/dist/tttx/p-ccd04459.js +0 -2
- package/dist/tttx/p-e351f833.entry.js +0 -1
|
@@ -1171,6 +1171,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1171
1171
|
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1172
1172
|
}
|
|
1173
1173
|
endNewInstance();
|
|
1174
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1174
1175
|
}
|
|
1175
1176
|
if (Cstr.style) {
|
|
1176
1177
|
// this component has styles but we haven't registered them yet
|
|
@@ -1199,6 +1200,11 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1199
1200
|
schedule();
|
|
1200
1201
|
}
|
|
1201
1202
|
};
|
|
1203
|
+
const fireConnectedCallback = (instance) => {
|
|
1204
|
+
{
|
|
1205
|
+
safeCall(instance, 'connectedCallback');
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1202
1208
|
const connectedCallback = (elm) => {
|
|
1203
1209
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1204
1210
|
const hostRef = getHostRef(elm);
|
|
@@ -1237,6 +1243,10 @@ const connectedCallback = (elm) => {
|
|
|
1237
1243
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1238
1244
|
}
|
|
1239
1245
|
}
|
|
1246
|
+
else {
|
|
1247
|
+
// fire off connectedCallback() on component instance
|
|
1248
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1249
|
+
}
|
|
1240
1250
|
endConnected();
|
|
1241
1251
|
}
|
|
1242
1252
|
};
|
|
@@ -1273,7 +1283,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1273
1283
|
{
|
|
1274
1284
|
cmpMeta.$watchers$ = {};
|
|
1275
1285
|
}
|
|
1276
|
-
const tagName =
|
|
1286
|
+
const tagName = options.transformTagName
|
|
1287
|
+
? options.transformTagName(cmpMeta.$tagName$)
|
|
1288
|
+
: cmpMeta.$tagName$;
|
|
1277
1289
|
const HostElement = class extends HTMLElement {
|
|
1278
1290
|
// StencilLazyHost
|
|
1279
1291
|
constructor(self) {
|
|
@@ -1459,6 +1471,7 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
|
1459
1471
|
exports.Host = Host;
|
|
1460
1472
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1461
1473
|
exports.createEvent = createEvent;
|
|
1474
|
+
exports.getElement = getElement;
|
|
1462
1475
|
exports.h = h;
|
|
1463
1476
|
exports.promiseResolve = promiseResolve;
|
|
1464
1477
|
exports.registerInstance = registerInstance;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-906c2757.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["tttx-
|
|
17
|
+
return index.bootstrapLazy([["tttx-list.cjs",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-button_2.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}],[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -2,33 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-906c2757.js');
|
|
6
|
+
|
|
7
|
+
const transformTagName = (tagNameToBeTransformed, knownUntransformedTagName, knownUntransformedTagNameElementReference) => {
|
|
8
|
+
const actualCurrentTag = knownUntransformedTagNameElementReference.tagName.toLowerCase();
|
|
9
|
+
const [prefix, suffix] = actualCurrentTag.split(knownUntransformedTagName);
|
|
10
|
+
return prefix + tagNameToBeTransformed + suffix;
|
|
11
|
+
};
|
|
6
12
|
|
|
7
13
|
const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}.spacingleft{margin-left:8px}";
|
|
8
14
|
|
|
9
|
-
const TttxButton = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this._iconcolor = 'black';
|
|
13
|
-
this.notext = undefined;
|
|
14
|
-
this.icon = undefined;
|
|
15
|
-
this.iconposition = 'left';
|
|
16
|
-
this.design = 'default';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
15
|
+
const TttxButton = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
index.registerInstance(this, hostRef);
|
|
18
|
+
this._iconcolor = 'black';
|
|
19
|
+
this.notext = undefined;
|
|
20
|
+
this.icon = undefined;
|
|
21
|
+
this.iconposition = 'left';
|
|
22
|
+
this.design = 'default';
|
|
23
|
+
}
|
|
24
|
+
connectedCallback() {
|
|
25
|
+
const TttxButton = transformTagName('tttx-button', 'tttx-button', this.el);
|
|
26
|
+
this.buttonEl = this.el.closest(TttxButton);
|
|
27
|
+
}
|
|
28
|
+
componentWillLoad() {
|
|
29
|
+
this._design = this.design;
|
|
30
|
+
const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
|
|
31
|
+
if (!designs.includes(this.design)) {
|
|
32
|
+
this._design = 'default';
|
|
33
|
+
}
|
|
34
|
+
if (this._design === 'primary' || this._design === 'danger') {
|
|
35
|
+
this._iconcolor = 'white';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
return (index.h(index.Host, null, index.h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (index.h("div", { class: "icon-left" }, index.h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && index.h("div", { class: "button-content" }, index.h("slot", null)), this.icon && this.iconposition === 'right' && (index.h("div", { class: "icon-right" }, index.h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
|
|
40
|
+
}
|
|
41
|
+
get el() { return index.getElement(this); }
|
|
42
|
+
};
|
|
32
43
|
TttxButton.style = tttxButtonCss;
|
|
33
44
|
|
|
45
|
+
const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
|
|
46
|
+
|
|
47
|
+
const TttxIcon = class {
|
|
48
|
+
constructor(hostRef) {
|
|
49
|
+
index.registerInstance(this, hostRef);
|
|
50
|
+
this.icon = undefined;
|
|
51
|
+
this.color = 'grey';
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (index.h(index.Host, null, index.h("span", { class: `material-symbols-rounded ${this.color ? this.color : ''}` }, this.icon)));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
TttxIcon.style = tttxIconCss;
|
|
58
|
+
|
|
34
59
|
exports.tttx_button = TttxButton;
|
|
60
|
+
exports.tttx_icon = TttxIcon;
|