bromcom-ui-next 0.1.2 → 0.1.3
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/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js.map +1 -1
- package/dist/bromcom-ui/p-047e562f.entry.js +2 -0
- package/dist/bromcom-ui/p-047e562f.entry.js.map +1 -0
- package/dist/bromcom-ui/p-3805363a.entry.js +2 -0
- package/dist/bromcom-ui/{p-2d836917.entry.js.map → p-3805363a.entry.js.map} +1 -1
- package/dist/bromcom-ui/p-61c030c5.js +3 -0
- package/dist/bromcom-ui/p-61c030c5.js.map +1 -0
- package/dist/bromcom-ui/p-6430a887.entry.js +2 -0
- package/dist/bromcom-ui/p-6430a887.entry.js.map +1 -0
- package/dist/bromcom-ui/p-9e94d920.entry.js +2 -0
- package/dist/bromcom-ui/p-9e94d920.entry.js.map +1 -0
- package/dist/bromcom-ui/p-bde58312.entry.js +2 -0
- package/dist/bromcom-ui/p-bde58312.entry.js.map +1 -0
- package/dist/bromcom-ui/p-dcc13a55.entry.js +2 -0
- package/dist/bromcom-ui/{p-0a74cf15.entry.js.map → p-dcc13a55.entry.js.map} +1 -1
- package/dist/bromcom-ui/p-e7732b0c.entry.js +2 -0
- package/dist/bromcom-ui/{p-f0c61f8c.entry.js.map → p-e7732b0c.entry.js.map} +1 -1
- package/dist/cjs/bcm-accordion-group.cjs.entry.js +92 -0
- package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +128 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
- package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-avatar.cjs.entry.js +2 -2
- package/dist/cjs/bcm-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-button_2.cjs.entry.js +549 -0
- package/dist/cjs/bcm-button_2.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-chip.cjs.entry.js +130 -0
- package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-text.cjs.entry.js +3 -3
- package/dist/cjs/bcm-text.cjs.entry.js.map +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +2 -2
- package/dist/cjs/{index-638f2d15.js → index-c36002ae.js} +32 -3
- package/dist/cjs/index-c36002ae.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.css +1 -1
- package/dist/collection/components/accordion-group/accordion-group.css +1 -1
- package/dist/collection/components/alert/alert.css +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/button/button.component.js +3 -3
- package/dist/collection/components/button/button.component.js.map +1 -1
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/chip/chip.css +1 -1
- package/dist/collection/components/input/input.component.js +865 -0
- package/dist/collection/components/input/input.component.js.map +1 -0
- package/dist/collection/components/input/input.css +2 -0
- package/dist/collection/components/input/types.js +2 -0
- package/dist/collection/components/input/types.js.map +1 -0
- package/dist/collection/components/text/text.component.js +1 -1
- package/dist/collection/components/text/text.css +1 -1
- package/dist/collection/utils/id/generate-id.js +16 -0
- package/dist/collection/utils/id/generate-id.js.map +1 -0
- package/dist/components/bcm-accordion-group.js +2 -2
- package/dist/components/bcm-accordion-group.js.map +1 -1
- package/dist/components/bcm-accordion.js +2 -2
- package/dist/components/bcm-accordion.js.map +1 -1
- package/dist/components/bcm-alert.js +2 -2
- package/dist/components/bcm-alert.js.map +1 -1
- package/dist/components/bcm-avatar.js +2 -2
- package/dist/components/bcm-avatar.js.map +1 -1
- package/dist/components/bcm-button.js +5 -5
- package/dist/components/bcm-button.js.map +1 -1
- package/dist/components/bcm-chip.js +2 -2
- package/dist/components/bcm-chip.js.map +1 -1
- package/dist/components/bcm-input.d.ts +11 -0
- package/dist/components/bcm-input.js +306 -0
- package/dist/components/bcm-input.js.map +1 -0
- package/dist/components/bcm-text.js +3 -3
- package/dist/components/bcm-text.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-0adcc84f.js → p-8ded2c73.js} +26 -3
- package/dist/{cjs/index-638f2d15.js.map → components/p-8ded2c73.js.map} +1 -1
- package/dist/esm/bcm-accordion-group.entry.js +88 -0
- package/dist/esm/bcm-accordion-group.entry.js.map +1 -0
- package/dist/esm/bcm-accordion.entry.js +124 -0
- package/dist/esm/bcm-accordion.entry.js.map +1 -0
- package/dist/esm/bcm-alert.entry.js +2 -2
- package/dist/esm/bcm-alert.entry.js.map +1 -1
- package/dist/esm/bcm-avatar.entry.js +2 -2
- package/dist/esm/bcm-avatar.entry.js.map +1 -1
- package/dist/esm/bcm-button_2.entry.js +544 -0
- package/dist/esm/bcm-button_2.entry.js.map +1 -0
- package/dist/esm/bcm-chip.entry.js +126 -0
- package/dist/esm/bcm-chip.entry.js.map +1 -0
- package/dist/esm/bcm-text.entry.js +3 -3
- package/dist/esm/bcm-text.entry.js.map +1 -1
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{index-ce2fac11.js → index-e23ee9b0.js} +32 -3
- package/dist/esm/index-e23ee9b0.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/input/input.component.d.ts +74 -0
- package/dist/types/components/input/types.d.ts +3 -0
- package/dist/types/components.d.ts +246 -0
- package/dist/types/utils/id/generate-id.d.ts +9 -0
- package/package.json +3 -2
- package/dist/bromcom-ui/p-0a74cf15.entry.js +0 -2
- package/dist/bromcom-ui/p-27c997d8.js +0 -3
- package/dist/bromcom-ui/p-27c997d8.js.map +0 -1
- package/dist/bromcom-ui/p-2d836917.entry.js +0 -2
- package/dist/bromcom-ui/p-84a5dcdb.entry.js +0 -2
- package/dist/bromcom-ui/p-84a5dcdb.entry.js.map +0 -1
- package/dist/bromcom-ui/p-f0c61f8c.entry.js +0 -2
- package/dist/cjs/bcm-accordion_4.cjs.entry.js +0 -623
- package/dist/cjs/bcm-accordion_4.cjs.entry.js.map +0 -1
- package/dist/components/p-0adcc84f.js.map +0 -1
- package/dist/esm/bcm-accordion_4.entry.js +0 -616
- package/dist/esm/bcm-accordion_4.entry.js.map +0 -1
- package/dist/esm/index-ce2fac11.js.map +0 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-c36002ae.js');
|
|
6
|
+
const index$1 = require('./index-310db2a6.js');
|
|
7
|
+
|
|
8
|
+
const STATUS_COLORS = {
|
|
9
|
+
info: 'blue',
|
|
10
|
+
error: 'red',
|
|
11
|
+
warning: 'amber',
|
|
12
|
+
success: 'green',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const chipCss = ":host{--bcm-chip-bg:var(--bcm-ui-color-background-default-default);--bcm-chip-text:var(--bcm-ui-color-text-default);--bcm-chip-border:var(--bcm-ui-color-border-default);--bcm-chip-hover-bg:var(--bcm-ui-color-background-default-hover);--bcm-chip-active-bg:var(--bcm-ui-color-background-default-active);--bcm-chip-radius:6px;display:inline-block}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.flex{display:flex}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-1{gap:.25rem}.rounded-\\[--bcm-chip-radius\\]{border-radius:var(--bcm-chip-radius)}.border{border-width:1px}.border-none{border-style:none}.border-\\[--bcm-chip-border\\]{border-color:var(--bcm-chip-border)}.border-transparent{border-color:transparent}.bg-\\[--bcm-chip-bg\\]{background-color:var(--bcm-chip-bg)}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-px{padding-bottom:1px;padding-top:1px}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.font-normal{font-weight:400}.text-\\[--bcm-chip-text\\]{color:var(--bcm-chip-text)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:bg-\\[--bcm-chip-hover-bg\\]:hover{background-color:var(--bcm-chip-hover-bg)}.active\\:bg-\\[--bcm-chip-active-bg\\]:active{background-color:var(--bcm-chip-active-bg)}";
|
|
16
|
+
const BcmChipStyle0 = chipCss;
|
|
17
|
+
|
|
18
|
+
const BcmChip = class {
|
|
19
|
+
constructor(hostRef) {
|
|
20
|
+
index.registerInstance(this, hostRef);
|
|
21
|
+
this.bcmDismiss = index.createEvent(this, "bcmDismiss", 1);
|
|
22
|
+
/** Chip size variant */
|
|
23
|
+
this.size = 'medium';
|
|
24
|
+
/** Chip style variant */
|
|
25
|
+
this.kind = 'filled';
|
|
26
|
+
/** Chip status */
|
|
27
|
+
this.status = 'default';
|
|
28
|
+
/** Whether chip can be dismissed */
|
|
29
|
+
this.dismissible = false;
|
|
30
|
+
/** Whether chip is disabled */
|
|
31
|
+
this.disabled = false;
|
|
32
|
+
this.chipClass = index$1.ce({
|
|
33
|
+
base: [
|
|
34
|
+
'chip bcm-ui-element font-normal flex items-center px-2 gap-1 w-full border',
|
|
35
|
+
'bg-[--bcm-chip-bg] text-[--bcm-chip-text] rounded-[--bcm-chip-radius] border-[--bcm-chip-border]',
|
|
36
|
+
'hover:bg-[--bcm-chip-hover-bg] active:bg-[--bcm-chip-active-bg]',
|
|
37
|
+
],
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
small: 'small py-px text-size-3',
|
|
41
|
+
medium: 'medium py-0.5 text-size-4',
|
|
42
|
+
large: 'large py-1 text-size-5',
|
|
43
|
+
},
|
|
44
|
+
kind: {
|
|
45
|
+
filled: 'filled border-transparent',
|
|
46
|
+
outlined: 'outlined',
|
|
47
|
+
text: 'text border-none',
|
|
48
|
+
},
|
|
49
|
+
disabled: {
|
|
50
|
+
true: 'cursor-not-allowed',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
}, { twMerge: false });
|
|
54
|
+
}
|
|
55
|
+
get chipStyle() {
|
|
56
|
+
let _color = this.color;
|
|
57
|
+
if (this.disabled) {
|
|
58
|
+
return {
|
|
59
|
+
'--bcm-chip-bg': 'var(--bcm-ui-color-background-disabled-default)',
|
|
60
|
+
'--bcm-chip-text': 'var(--bcm-ui-color-text-disabled)',
|
|
61
|
+
'--bcm-chip-border': 'var(--bcm-ui-color-border-disabled)',
|
|
62
|
+
'--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-disabled-default)',
|
|
63
|
+
'--bcm-chip-active-bg': 'var(--bcm-ui-color-background-disabled-default)',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (this.status !== 'default') {
|
|
67
|
+
_color = STATUS_COLORS[this.status];
|
|
68
|
+
}
|
|
69
|
+
const styles = {
|
|
70
|
+
filled: {
|
|
71
|
+
'--bcm-chip-bg': `var(--bcm-ui-color-background-palette-${_color}-default)`,
|
|
72
|
+
'--bcm-chip-text': `var(--bcm-ui-color-text-palette-${_color})`,
|
|
73
|
+
'--bcm-chip-border': `var(--bcm-ui-color-border-${_color})`,
|
|
74
|
+
'--bcm-chip-hover-bg': `var(--bcm-ui-color-background-palette-${_color}-hover)`,
|
|
75
|
+
'--bcm-chip-active-bg': `var(--bcm-ui-color-background-palette-${_color}-active)`,
|
|
76
|
+
},
|
|
77
|
+
outlined: {
|
|
78
|
+
'--bcm-chip-bg': 'transparent',
|
|
79
|
+
'--bcm-chip-text': `var(--bcm-ui-color-text-palette-${_color})`,
|
|
80
|
+
'--bcm-chip-border': `var(--bcm-ui-color-border-${_color})`,
|
|
81
|
+
'--bcm-chip-hover-bg': `var(--bcm-ui-color-background-palette-${_color}-hover)`,
|
|
82
|
+
'--bcm-chip-active-bg': `var(--bcm-ui-color-background-palette-${_color}-active)`,
|
|
83
|
+
},
|
|
84
|
+
text: {
|
|
85
|
+
'--bcm-chip-bg': 'transparent',
|
|
86
|
+
'--bcm-chip-text': `var(--bcm-ui-color-text-palette-${_color})`,
|
|
87
|
+
'--bcm-chip-border': 'transparent',
|
|
88
|
+
'--bcm-chip-hover-bg': `var(--bcm-ui-color-background-palette-${_color}-hover)`,
|
|
89
|
+
'--bcm-chip-active-bg': `var(--bcm-ui-color-background-palette-${_color}-active)`,
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
const defaultStyles = {
|
|
93
|
+
filled: {
|
|
94
|
+
'--bcm-chip-bg': 'var(--bcm-ui-color-background-default-default)',
|
|
95
|
+
'--bcm-chip-text': 'var(--bcm-ui-color-text-default)',
|
|
96
|
+
'--bcm-chip-border': 'var(--bcm-ui-color-border-default)',
|
|
97
|
+
'--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-default-hover)',
|
|
98
|
+
'--bcm-chip-active-bg': 'var(--bcm-ui-color-background-default-active)',
|
|
99
|
+
},
|
|
100
|
+
outlined: {
|
|
101
|
+
'--bcm-chip-bg': 'transparent',
|
|
102
|
+
'--bcm-chip-text': 'var(--bcm-ui-color-text-default)',
|
|
103
|
+
'--bcm-chip-border': 'var(--bcm-ui-color-border-default)',
|
|
104
|
+
'--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-default-hover)',
|
|
105
|
+
'--bcm-chip-active-bg': 'var(--bcm-ui-color-background-default-active)',
|
|
106
|
+
},
|
|
107
|
+
text: {
|
|
108
|
+
'--bcm-chip-bg': 'transparent',
|
|
109
|
+
'--bcm-chip-text': 'var(--bcm-ui-color-text-default)',
|
|
110
|
+
'--bcm-chip-border': 'transparent',
|
|
111
|
+
'--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-default-hover)',
|
|
112
|
+
'--bcm-chip-active-bg': 'var(--bcm-ui-color-background-default-active)',
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
return _color ? styles[this.kind] : defaultStyles[this.kind];
|
|
116
|
+
}
|
|
117
|
+
handleDismiss() {
|
|
118
|
+
if (!this.disabled) {
|
|
119
|
+
this.bcmDismiss.emit();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
render() {
|
|
123
|
+
return (index.h("div", { key: '83c822b736059446f9f19c9112ab8b11a1aa17b9', style: this.chipStyle, class: this.chipClass({ size: this.size, kind: this.kind, disabled: this.disabled }), role: "button", "aria-disabled": this.disabled ? 'true' : 'false' }, index.h("slot", { key: 'ef139f27de5b6f3d1c0077a08882fd965b0745c8' }), this.dismissible && index.h("bcm-icon", { key: '7ac646b4641eb8bd8db9df3e25895bf5b45231c5', onClick: () => this.handleDismiss(), class: "cursor-pointer", "icon-name": "fa-regular fa-xmark", "aria-label": "Dismiss chip" })));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
BcmChip.style = BcmChipStyle0;
|
|
127
|
+
|
|
128
|
+
exports.bcm_chip = BcmChip;
|
|
129
|
+
|
|
130
|
+
//# sourceMappingURL=bcm-chip.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"bcm-chip.entry.cjs.js","mappings":";;;;;;;AAIO,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;CACR;;ACTV,MAAM,OAAO,GAAG,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AI,CAAC,QAAQ,EAAE;YAClB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SACxB;KACF;IAED,MAAM;QACJ,QACEC,kEACE,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,EACpF,IAAI,EAAC,QAAQ,mBACE,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,IAE/CA,oEAAa,EACZ,IAAI,CAAC,WAAW,IAAIA,uEAAU,OAAO,EAAE,MAAM,IAAI,CAAC,aAAa,EAAE,EAAE,KAAK,EAAC,gBAAgB,eAAW,qBAAqB,gBAAY,cAAc,GAAY,CAC5J,EACN;KACH;;;;;;","names":["tv","h"],"sources":["src/components/chip/types.ts","src/components/chip/chip.css?tag=bcm-chip&encapsulation=shadow","src/components/chip/chip.component.tsx"],"sourcesContent":["export type ChipSize = 'small' | 'medium' | 'large';\nexport type ChipKind = 'filled' | 'outlined' | 'text';\nexport type ChipStatus = 'info' | 'error' | 'warning' | 'success' | 'default';\n\nexport const STATUS_COLORS = {\n info: 'blue',\n error: 'red',\n warning: 'amber',\n success: 'green',\n} as const;\n",":host {\n display: inline-block;\n --bcm-chip-bg: var(--bcm-ui-color-background-default-default);\n --bcm-chip-text: var(--bcm-ui-color-text-default);\n --bcm-chip-border: var(--bcm-ui-color-border-default);\n --bcm-chip-hover-bg: var(--bcm-ui-color-background-default-hover);\n --bcm-chip-active-bg: var(--bcm-ui-color-background-default-active);\n --bcm-chip-radius: 6px;\n}\n","import { Component, ComponentInterface, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { ChipKind, ChipSize, ChipStatus, STATUS_COLORS } from './types';\nimport { tv } from 'tailwind-variants';\n\n/**\n * @component BcmChip\n * @description A versatile chip component that can be used to display compact pieces of information, filters, or actions.\n * Supports different sizes, styles (filled, outlined, text), statuses, and can be dismissible.\n *\n * @example\n * <bcm-chip size=\"medium\" kind=\"filled\" status=\"success\">\n * Success Chip\n * </bcm-chip>\n *\n * @example Dismissible chip\n * <bcm-chip dismissible={true} onDismiss={() => handleDismiss()}>\n * Dismissible Chip\n * </bcm-chip>\n *\n * @prop {ChipSize} size - Defines the size of the chip: 'small' | 'medium' | 'large'\n * @prop {ChipKind} kind - Defines the visual style: 'filled' | 'outlined' | 'text'\n * @prop {ChipStatus} status - Defines the status color: 'info' | 'error' | 'warning' | 'success' | 'default'\n * @prop {boolean} dismissible - Whether the chip can be dismissed\n * @prop {boolean} disabled - Whether the chip is disabled\n * @prop {string} color - Custom color override for the chip\n *\n * @event {EventEmitter<void>} dismiss - Emitted when the dismiss button is clicked\n *\n * @csspart chip - The root chip element\n * @csspart dismiss-icon - The dismiss button icon\n */\n\n@Component({\n tag: 'bcm-chip',\n styleUrl: 'chip.css',\n shadow: true,\n})\nexport class BcmChip implements ComponentInterface {\n /** Chip size variant */\n @Prop()\n size?: ChipSize = 'medium';\n\n /** Chip style variant */\n @Prop()\n kind?: ChipKind = 'filled';\n\n /** Chip status */\n @Prop()\n status?: ChipStatus = 'default';\n\n /** Whether chip can be dismissed */\n @Prop()\n dismissible?: boolean = false;\n\n /** Whether chip is disabled */\n @Prop()\n disabled?: boolean = false;\n\n /** Chip color variant */\n @Prop()\n color?: string;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmDismiss: EventEmitter<void>;\n\n private chipClass = tv(\n {\n base: [\n 'chip bcm-ui-element font-normal flex items-center px-2 gap-1 w-full border',\n 'bg-[--bcm-chip-bg] text-[--bcm-chip-text] rounded-[--bcm-chip-radius] border-[--bcm-chip-border]',\n 'hover:bg-[--bcm-chip-hover-bg] active:bg-[--bcm-chip-active-bg]',\n ],\n variants: {\n size: {\n small: 'small py-px text-size-3',\n medium: 'medium py-0.5 text-size-4',\n large: 'large py-1 text-size-5',\n },\n kind: {\n filled: 'filled border-transparent',\n outlined: 'outlined',\n text: 'text border-none',\n },\n disabled: {\n true: 'cursor-not-allowed',\n },\n },\n },\n { twMerge: false },\n );\n\n private get chipStyle() {\n let _color = this.color;\n\n if (this.disabled) {\n return {\n '--bcm-chip-bg': 'var(--bcm-ui-color-background-disabled-default)',\n '--bcm-chip-text': 'var(--bcm-ui-color-text-disabled)',\n '--bcm-chip-border': 'var(--bcm-ui-color-border-disabled)',\n '--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-disabled-default)',\n '--bcm-chip-active-bg': 'var(--bcm-ui-color-background-disabled-default)',\n };\n }\n\n if (this.status !== 'default') {\n _color = STATUS_COLORS[this.status];\n }\n\n const styles = {\n filled: {\n '--bcm-chip-bg': `var(--bcm-ui-color-background-palette-${_color}-default)`,\n '--bcm-chip-text': `var(--bcm-ui-color-text-palette-${_color})`,\n '--bcm-chip-border': `var(--bcm-ui-color-border-${_color})`,\n '--bcm-chip-hover-bg': `var(--bcm-ui-color-background-palette-${_color}-hover)`,\n '--bcm-chip-active-bg': `var(--bcm-ui-color-background-palette-${_color}-active)`,\n },\n outlined: {\n '--bcm-chip-bg': 'transparent',\n '--bcm-chip-text': `var(--bcm-ui-color-text-palette-${_color})`,\n '--bcm-chip-border': `var(--bcm-ui-color-border-${_color})`,\n '--bcm-chip-hover-bg': `var(--bcm-ui-color-background-palette-${_color}-hover)`,\n '--bcm-chip-active-bg': `var(--bcm-ui-color-background-palette-${_color}-active)`,\n },\n text: {\n '--bcm-chip-bg': 'transparent',\n '--bcm-chip-text': `var(--bcm-ui-color-text-palette-${_color})`,\n '--bcm-chip-border': 'transparent',\n '--bcm-chip-hover-bg': `var(--bcm-ui-color-background-palette-${_color}-hover)`,\n '--bcm-chip-active-bg': `var(--bcm-ui-color-background-palette-${_color}-active)`,\n },\n };\n\n const defaultStyles = {\n filled: {\n '--bcm-chip-bg': 'var(--bcm-ui-color-background-default-default)',\n '--bcm-chip-text': 'var(--bcm-ui-color-text-default)',\n '--bcm-chip-border': 'var(--bcm-ui-color-border-default)',\n '--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-default-hover)',\n '--bcm-chip-active-bg': 'var(--bcm-ui-color-background-default-active)',\n },\n outlined: {\n '--bcm-chip-bg': 'transparent',\n '--bcm-chip-text': 'var(--bcm-ui-color-text-default)',\n '--bcm-chip-border': 'var(--bcm-ui-color-border-default)',\n '--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-default-hover)',\n '--bcm-chip-active-bg': 'var(--bcm-ui-color-background-default-active)',\n },\n text: {\n '--bcm-chip-bg': 'transparent',\n '--bcm-chip-text': 'var(--bcm-ui-color-text-default)',\n '--bcm-chip-border': 'transparent',\n '--bcm-chip-hover-bg': 'var(--bcm-ui-color-background-default-hover)',\n '--bcm-chip-active-bg': 'var(--bcm-ui-color-background-default-active)',\n },\n };\n\n return _color ? styles[this.kind] : defaultStyles[this.kind];\n }\n\n private handleDismiss() {\n if (!this.disabled) {\n this.bcmDismiss.emit();\n }\n }\n\n render() {\n return (\n <div\n style={this.chipStyle}\n class={this.chipClass({ size: this.size, kind: this.kind, disabled: this.disabled })}\n role=\"button\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n >\n <slot></slot>\n {this.dismissible && <bcm-icon onClick={() => this.handleDismiss()} class=\"cursor-pointer\" icon-name=\"fa-regular fa-xmark\" aria-label=\"Dismiss chip\"></bcm-icon>}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -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-c36002ae.js');
|
|
6
6
|
const index$1 = require('./index-a4eea4bb.js');
|
|
7
7
|
|
|
8
8
|
const variantTagMap = {
|
|
@@ -23,7 +23,7 @@ const variantTagMap = {
|
|
|
23
23
|
infoAccent: 'p',
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
const textCss = "
|
|
26
|
+
const textCss = ".static{position:static}.m-0{margin:0}.appearance-none{appearance:none}.p-0{padding:0}.text-size-12{font-size:var(--bcm-ui-font-size-12,60px);line-height:var(--bcm-ui-line-height-12,72px)}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.text-size-7{font-size:var(--bcm-ui-font-size-7,20px);line-height:var(--bcm-ui-line-height-7,28px)}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-color-caption{color:var(--bcm-ui-color-text-caption)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.text-color-header{color:var(--bcm-ui-color-text-header)}.text-color-helper{color:var(--bcm-ui-color-text-helper)}.text-color-label{color:var(--bcm-ui-color-text-label)}.text-color-placeholder{color:var(--bcm-ui-color-text-placeholder)}.text-color-primary{color:var(--bcm-ui-color-text-primary)}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}";
|
|
27
27
|
const BcmTextStyle0 = textCss;
|
|
28
28
|
|
|
29
29
|
const BcmText = class {
|
|
@@ -109,7 +109,7 @@ const BcmText = class {
|
|
|
109
109
|
render() {
|
|
110
110
|
const Tag = variantTagMap[this.variant];
|
|
111
111
|
const variantClass = this.getTextClass(this.variant, this.size);
|
|
112
|
-
return (index.h(Tag, { key: '
|
|
112
|
+
return (index.h(Tag, { key: 'be80ea42fcc903f96694e7e8a12f360e1e209a3a', class: index$1.cs('bcm-text appearance-none m-0 p-0', variantClass), part: "text" }, index.h("slot", { key: 'eeada28b9aad802ed2c88bb76cb297bac7c3464b' }, this.text)));
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
BcmText.style = BcmTextStyle0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"bcm-text.entry.cjs.js","mappings":";;;;;;;AAEO,MAAM,aAAa,GAAiC;IACzD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,GAAG;IACf,MAAM,EAAE,GAAG;IACX,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,GAAG;IAChB,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,GAAG;CAChB;;AClBD,MAAM,OAAO,GAAG,
|
|
1
|
+
{"file":"bcm-text.entry.cjs.js","mappings":";;;;;;;AAEO,MAAM,aAAa,GAAiC;IACzD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,GAAG;IACf,MAAM,EAAE,GAAG;IACX,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,GAAG;IAChB,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,GAAG;CAChB;;AClBD,MAAM,OAAO,GAAG,+7CAA+7C,CAAC;AACh9C,sBAAe,OAAO;;MCST,OAAO;IALpB;;;QAYE,YAAO,GAAgB,MAAM,CAAC;;QAI9B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MAAM,EAAE,6CAA6C;gBACrD,KAAK,EAAE,6CAA6C;aACrD;YACD,UAAU,EAAE;gBACV,KAAK,EAAE,2CAA2C;gBAClD,MAAM,EAAE,2CAA2C;gBACnD,KAAK,EAAE,2CAA2C;aACnD;SACO,CAAC;QAEH,iBAAY,GAAG,CAAC,OAAoB,EAAE,IAAc;YAC1D,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YAErD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;gBACtC,OAAO,cAAc,CAAC;aACvB;YAED,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;SAC7B,CAAC;KAYH;IAVC,MAAM;QACJ,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAEhE,QACEA,QAAC,GAAG,qDAAC,KAAK,EAAEC,UAAE,CAAC,kCAAkC,EAAE,YAAY,CAAC,EAAE,IAAI,EAAC,MAAM,IAC3ED,qEAAO,IAAI,CAAC,IAAI,CAAQ,CACpB,EACN;KACH;;;;;;","names":["h","cs"],"sources":["src/components/text/text.utils.ts","src/components/text/text.scss?tag=bcm-text&encapsulation=shadow","src/components/text/text.component.tsx"],"sourcesContent":["import { TextVariant, TextTag } from './text.types';\n\nexport const variantTagMap: Record<TextVariant, TextTag> = {\n display: 'h1',\n heading1: 'h2',\n heading2: 'h3',\n title1: 'h4',\n title2: 'h5',\n title3: 'h6',\n body: 'p',\n bodyAccent: 'p',\n helper: 'p',\n caption: 'p',\n label: 'label',\n placeholder: 'p',\n link: 'a',\n info: 'p',\n infoAccent: 'p',\n};\n","","import { Component, h, Prop } from '@stencil/core';\nimport cs from 'classnames';\nimport { TextVariant, TextSize } from './text.types';\nimport { variantTagMap } from './text.utils';\n\n@Component({\n tag: 'bcm-text',\n styleUrl: 'text.scss',\n shadow: true,\n})\nexport class BcmText {\n /** Text content */\n @Prop()\n text: string;\n\n /** Text variant */\n @Prop()\n variant: TextVariant = 'body';\n\n /** Text size */\n @Prop()\n size: TextSize = 'medium';\n\n private readonly variantClassMap = {\n display: 'font-semibold text-size-12 text-color-header',\n heading1: 'font-semibold text-size-7 text-color-header',\n heading2: 'font-semibold text-size-6 text-color-header',\n title1: {\n small: 'font-semibold text-size-5 text-color-header',\n medium: 'font-semibold text-size-6 text-color-header',\n large: 'font-semibold text-size-7 text-color-header',\n },\n title2: {\n small: 'font-semibold text-size-4 text-color-default',\n medium: 'font-semibold text-size-5 text-color-default',\n large: 'font-semibold text-size-6 text-color-default',\n },\n title3: {\n small: 'font-semibold text-size-3 text-color-disabled',\n medium: 'font-semibold text-size-4 text-color-disabled',\n large: 'font-semibold text-size-5 text-color-disabled',\n },\n body: {\n small: 'font-regular text-size-4 text-color-default',\n medium: 'font-regular text-size-5 text-color-default',\n large: 'font-regular text-size-6 text-color-default',\n },\n bodyAccent: {\n small: 'font-medium text-size-4 text-color-default',\n medium: 'font-medium text-size-5 text-color-default',\n large: 'font-medium text-size-6 text-color-default',\n },\n helper: {\n small: 'font-regular text-size-4 text-color-helper',\n medium: 'font-regular text-size-5 text-color-helper',\n large: 'font-regular text-size-6 text-color-helper',\n },\n caption: {\n small: 'font-regular text-size-3 text-color-caption',\n medium: 'font-regular text-size-4 text-color-caption',\n large: 'font-regular text-size-5 text-color-caption',\n },\n link: {\n small: 'font-medium text-size-4 underline text-color-primary',\n medium: 'font-medium text-size-5 underline text-color-primary',\n large: 'font-medium text-size-6 underline text-color-primary',\n },\n label: {\n small: 'font-medium text-size-3 text-color-label',\n medium: 'font-medium text-size-4 text-color-label',\n large: 'font-medium text-size-5 text-color-label',\n },\n placeholder: {\n small: 'font-regular text-size-4 text-color-placeholder',\n medium: 'font-regular text-size-5 text-color-placeholder',\n large: 'font-regular text-size-6 text-color-placeholder',\n },\n info: {\n small: 'font-regular text-size-3 text-color-default',\n medium: 'font-regular text-size-4 text-color-default',\n large: 'font-regular text-size-5 text-color-default',\n },\n infoAccent: {\n small: 'font-medium text-size-3 text-color-header',\n medium: 'font-medium text-size-4 text-color-header',\n large: 'font-medium text-size-5 text-color-header',\n },\n } as const;\n\n private getTextClass = (variant: TextVariant, size: TextSize): string => {\n const variantClasses = this.variantClassMap[variant];\n\n if (typeof variantClasses === 'string') {\n return variantClasses;\n }\n\n return variantClasses[size];\n };\n\n render() {\n const Tag = variantTagMap[this.variant];\n const variantClass = this.getTextClass(this.variant, this.size);\n\n return (\n <Tag class={cs('bcm-text appearance-none m-0 p-0', variantClass)} part=\"text\">\n <slot>{this.text}</slot>\n </Tag>\n );\n }\n}\n"],"version":3}
|
|
@@ -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-c36002ae.js');
|
|
6
6
|
const appGlobals = require('./app-globals-e8faea0d.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["bcm-
|
|
22
|
+
return index.bootstrapLazy([["bcm-button_2.cjs",[[1,"bcm-button",{"kind":[1],"size":[1],"status":[1],"variant":[1],"icon":[1],"iconPosition":[1,"icon-position"],"iconOnly":[4,"icon-only"],"fullWidth":[516,"full-width"],"type":[1],"loading":[4],"disabled":[4],"text":[1],"active":[4],"form":[1],"value":[1],"name":[1],"label":[1],"expanded":[1],"controls":[1]}],[1,"bcm-input",{"value":[1537],"placeholder":[1],"name":[1],"_id":[513,"id"],"size":[1],"status":[1],"fullWidth":[516,"full-width"],"type":[1],"disabled":[4],"readonly":[4],"required":[4],"autocomplete":[1],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"min":[2],"max":[2],"step":[2],"pattern":[1],"label":[1],"errorMessage":[1,"error-message"],"captionText":[1,"caption-text"],"labelledby":[1],"describedby":[1],"prefixIcon":[1,"prefix-icon"],"suffixIcon":[1,"suffix-icon"],"isFocused":[32],"setFocus":[64],"setBlur":[64],"select":[64]},null,{"value":["handleValueChange"]}]]],["bcm-accordion.cjs",[[1,"bcm-accordion",{"expanded":[1540],"headerTitle":[1,"header-title"],"group":[516],"hintText":[1,"hint-text"],"hasFooterContent":[32],"toggle":[64],"expand":[64],"collapse":[64]}]]],["bcm-accordion-group.cjs",[[1,"bcm-accordion-group",{"multi":[4],"accordionItems":[32],"expandAll":[64],"collapseAll":[64],"getExpandedItems":[64]},[[2,"bcmAccordionChange","handleAccordionChange"]]]]],["bcm-alert.cjs",[[1,"bcm-alert",{"status":[1],"size":[1],"kind":[1],"dismissible":[4],"showStatusIcon":[4,"show-status-icon"]}]]],["bcm-avatar.cjs",[[1,"bcm-avatar",{"image":[1],"alt":[1],"shape":[1],"size":[1],"color":[1],"icon":[1],"status":[1],"blink":[4],"name":[1],"isFallback":[32]}]]],["bcm-chip.cjs",[[1,"bcm-chip",{"size":[1],"kind":[1],"status":[1],"dismissible":[4],"disabled":[4],"color":[1]}]]],["bcm-text.cjs",[[1,"bcm-text",{"text":[1],"variant":[1],"size":[1]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'bromcom-ui';
|
|
24
|
-
const BUILD = /* bromcom-ui */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber:
|
|
24
|
+
const BUILD = /* bromcom-ui */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
@@ -346,6 +346,9 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
346
346
|
if (propType & 4 /* Boolean */) {
|
|
347
347
|
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
348
348
|
}
|
|
349
|
+
if (propType & 2 /* Number */) {
|
|
350
|
+
return parseFloat(propValue);
|
|
351
|
+
}
|
|
349
352
|
if (propType & 1 /* String */) {
|
|
350
353
|
return String(propValue);
|
|
351
354
|
}
|
|
@@ -998,6 +1001,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
998
1001
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
999
1002
|
);
|
|
1000
1003
|
}
|
|
1004
|
+
const elm = hostRef.$hostElement$ ;
|
|
1001
1005
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1002
1006
|
const flags = hostRef.$flags$;
|
|
1003
1007
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -1007,6 +1011,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1007
1011
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1008
1012
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1009
1013
|
if (instance) {
|
|
1014
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1015
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1016
|
+
if (watchMethods) {
|
|
1017
|
+
watchMethods.map((watchMethodName) => {
|
|
1018
|
+
try {
|
|
1019
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1020
|
+
} catch (e) {
|
|
1021
|
+
consoleError(e, elm);
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1010
1026
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1011
1027
|
scheduleUpdate(hostRef, false);
|
|
1012
1028
|
}
|
|
@@ -1018,7 +1034,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1018
1034
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1019
1035
|
var _a, _b;
|
|
1020
1036
|
const prototype = Cstr.prototype;
|
|
1021
|
-
if (cmpMeta.$members$ ||
|
|
1037
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1038
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1039
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1040
|
+
}
|
|
1022
1041
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1023
1042
|
members.map(([memberName, [memberFlags]]) => {
|
|
1024
1043
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
@@ -1168,6 +1187,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1168
1187
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1169
1188
|
}
|
|
1170
1189
|
if (!Cstr.isProxied) {
|
|
1190
|
+
{
|
|
1191
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1192
|
+
}
|
|
1171
1193
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1172
1194
|
Cstr.isProxied = true;
|
|
1173
1195
|
}
|
|
@@ -1183,6 +1205,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1183
1205
|
{
|
|
1184
1206
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1185
1207
|
}
|
|
1208
|
+
{
|
|
1209
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1210
|
+
}
|
|
1186
1211
|
endNewInstance();
|
|
1187
1212
|
}
|
|
1188
1213
|
if (Cstr && Cstr.style) {
|
|
@@ -1288,6 +1313,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1288
1313
|
let hasSlotRelocation = false;
|
|
1289
1314
|
lazyBundles.map((lazyBundle) => {
|
|
1290
1315
|
lazyBundle[1].map((compactMeta) => {
|
|
1316
|
+
var _a2;
|
|
1291
1317
|
const cmpMeta = {
|
|
1292
1318
|
$flags$: compactMeta[0],
|
|
1293
1319
|
$tagName$: compactMeta[1],
|
|
@@ -1306,6 +1332,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1306
1332
|
{
|
|
1307
1333
|
cmpMeta.$attrsToReflect$ = [];
|
|
1308
1334
|
}
|
|
1335
|
+
{
|
|
1336
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1337
|
+
}
|
|
1309
1338
|
const tagName = cmpMeta.$tagName$;
|
|
1310
1339
|
const HostElement = class extends HTMLElement {
|
|
1311
1340
|
// StencilLazyHost
|
|
@@ -1438,4 +1467,4 @@ exports.promiseResolve = promiseResolve;
|
|
|
1438
1467
|
exports.registerInstance = registerInstance;
|
|
1439
1468
|
exports.setNonce = setNonce;
|
|
1440
1469
|
|
|
1441
|
-
//# sourceMappingURL=index-
|
|
1470
|
+
//# sourceMappingURL=index-c36002ae.js.map
|